Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | HM(x) (int)((int)(x[0] << 8) | (int)(x[1])) |
Functions | |
static Sdb * | get_sdb (RzBinFile *bf) |
static bool | knownHeaderBuffer (RzBuffer *b, ut16 offset) |
static bool | checkEntrypointBuffer (RzBuffer *b) |
static bool | check_buffer (RzBuffer *b) |
static bool | load (RzBinFile *bf, RzBinObject *obj, RzBuffer *buf, Sdb *sdb) |
static void | destroy (RzBinFile *bf) |
static RzBinAddr * | binsym (RzBinFile *bf, RzBinSpecialSymbol type) |
static RzList * | entries (RzBinFile *bf) |
static RzList * | sections (RzBinFile *bf) |
static RzBinInfo * | info (RzBinFile *bf) |
static void | header (RzBinFile *bf) |
static RzList * | relocs (RzBinFile *bf) |
Variables | |
RzBinPlugin | rz_bin_plugin_mz |
RZ_API RzLibStruct | rizin_plugin |
|
static |
Definition at line 138 of file bin_mz.c.
References rz_bin_object_t::bin_obj, NULL, rz_bin_file_t::o, rz_bin_mz_get_main_vaddr(), RZ_BIN_SPECIAL_SYMBOL_MAIN, and type.
Definition at line 89 of file bin_mz.c.
References b, checkEntrypointBuffer(), h, knownHeaderBuffer(), rz_buf_read_at(), rz_buf_read_le16_at, rz_buf_size(), rz_return_val_if_fail, and ut64().
Definition at line 45 of file bin_mz.c.
References b, test_evm::cs, h, ip, length, rz_buf_read_at(), rz_buf_read_le16_at, rz_buf_size(), autogen_x86imm::tmp, and ut64().
Referenced by check_buffer().
|
static |
Definition at line 134 of file bin_mz.c.
References rz_bin_object_t::bin_obj, rz_bin_file_t::o, and rz_bin_mz_free().
Definition at line 152 of file bin_mz.c.
References rz_bin_object_t::bin_obj, free(), NULL, rz_bin_file_t::o, rz_bin_mz_get_entrypoint(), rz_list_append(), and rz_list_newf().
Definition at line 12 of file bin_mz.c.
References rz_bin_object_t::bin_obj, if(), NULL, and rz_bin_file_t::o.
|
static |
Definition at line 194 of file bin_mz.c.
References rz_bin_object_t::bin_obj, MZ_image_dos_header::blocks_in_file, MZ_image_dos_header::bytes_in_last_block, MZ_image_dos_header::checksum, MZ_image_dos_header::cs, rz_bin_mz_obj_t::dos_header, eprintf, MZ_image_dos_header::header_paragraphs, MZ_image_dos_header::ip, MZ_image_dos_header::max_extra_paragraphs, MZ_image_dos_header::min_extra_paragraphs, MZ_image_dos_header::num_relocs, rz_bin_file_t::o, MZ_image_dos_header::overlay_number, MZ_image_dos_header::reloc_table_offset, MZ_image_dos_header::signature, MZ_image_dos_header::sp, and MZ_image_dos_header::ss.
Definition at line 169 of file bin_mz.c.
References rz_bin_info_t::arch, rz_bin_info_t::bclass, rz_bin_info_t::big_endian, rz_bin_info_t::bits, rz_bin_info_t::dbg_info, rz_bin_info_t::file, rz_bin_file_t::file, rz_bin_info_t::has_canary, rz_bin_info_t::has_crypto, rz_bin_info_t::has_nx, rz_bin_info_t::has_pi, rz_bin_info_t::has_retguard, rz_bin_info_t::has_va, rz_bin_info_t::machine, NULL, rz_bin_info_t::os, rz_bin_info_t::rclass, RZ_NEW0, strdup(), rz_bin_info_t::subsystem, and rz_bin_info_t::type.
Definition at line 23 of file bin_mz.c.
References b, h, rz_buf_read_at(), and rz_buf_size().
Referenced by check_buffer().
|
static |
Definition at line 124 of file bin_mz.c.
References rz_bin_object_t::bin_obj, rz_bin_mz_obj_t::kv, rz_bin_mz_new_buf(), and sdb_ns_set().
Definition at line 227 of file bin_mz.c.
References rz_bin_object_t::bin_obj, free(), i, NULL, rz_bin_file_t::o, rz_bin_reloc_t::paddr, rz_bin_mz_get_relocs(), RZ_BIN_RELOC_16, rz_list_append(), rz_list_free(), rz_list_newf(), RZ_NEW0, rz_bin_reloc_t::type, and rz_bin_reloc_t::vaddr.
Definition at line 165 of file bin_mz.c.
References rz_bin_object_t::bin_obj, rz_bin_file_t::o, and rz_bin_mz_get_segments().
RZ_API RzLibStruct rizin_plugin |
RzBinPlugin rz_bin_plugin_mz |