Rizin
unix-like reverse engineering framework and cli tools
|
#include "pe.h"
Go to the source code of this file.
Functions | |
int PE_() | read_image_import_directory (RzBuffer *b, ut64 addr, PE_(image_import_directory) *import_dir) |
int PE_() | read_image_delay_import_directory (RzBuffer *b, ut64 addr, PE_(image_delay_import_directory) *directory) |
static char * | resolveModuleOrdinal (Sdb *sdb, const char *module, int ordinal) |
static int | bin_pe_parse_imports (RzBinPEObj *bin, struct rz_bin_pe_import_t **importp, int *nimp, const char *dll_name, PE_DWord OriginalFirstThunk, PE_DWord FirstThunk) |
struct rz_bin_pe_import_t *PE_() | rz_bin_pe_get_imports (RzBinPEObj *bin) |
int PE_() | bin_pe_init_imports (RzBinPEObj *bin) |
int PE_() bin_pe_init_imports | ( | RzBinPEObj * | bin | ) |
HACK to modify import size because of begin 0.. this may report wrong info con corkami tests
Definition at line 325 of file pe_imports.c.
References bin_pe_rva_to_paddr(), count, fail, free(), indx(), NULL, off, PE_, PE_DWord, PE_IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT, PE_IMAGE_DIRECTORY_ENTRY_IMPORT, read_image_delay_import_directory(), read_image_import_directory(), realloc(), rz_buf_size(), RZ_FREE, RZ_LOG_INFO, RZ_MIN, rz_sys_perror, and ut64().
Referenced by bin_pe_init().
|
static |
Definition at line 54 of file pe_imports.c.
References bin_pe_rva_to_paddr(), bin_pe_rva_to_va(), error(), free(), i, ILT_MASK1, ILT_MASK2, len, rz_bin_pe_import_t::libname, memcpy(), name, NULL, off, PE_, PE_DWord, PE_NAME_LENGTH, PE_Word, PFMT64x, realloc(), resolveModuleOrdinal(), rz_buf_read_at(), rz_buf_read_le16_at, RZ_BUF_READ_PE_DWORD_AT, rz_file_exists(), RZ_FREE, RZ_JOIN_3_PATHS, RZ_LOG_INFO, RZ_LOG_WARN, rz_path_system(), RZ_SDB_FORMAT, rz_str_case(), rz_str_newf(), rz_sys_perror, sdb_free(), sdb_new(), snprintf, strdup(), UT16_MAX, and ut64().
Referenced by rz_bin_pe_get_imports().
int PE_() read_image_delay_import_directory | ( | RzBuffer * | b, |
ut64 | addr, | ||
PE_(image_delay_import_directory) * | directory | ||
) |
Definition at line 24 of file pe_imports.c.
References addr, b, regress::directory, PE_, PE_READ_STRUCT_FIELD, RZ_BUF_CUR, rz_buf_read(), rz_buf_seek(), RZ_BUF_SET, and st64.
Referenced by bin_pe_init_imports(), rz_bin_pe_get_imports(), and rz_bin_pe_get_libs().
int PE_() read_image_import_directory | ( | RzBuffer * | b, |
ut64 | addr, | ||
PE_(image_import_directory) * | import_dir | ||
) |
Definition at line 8 of file pe_imports.c.
References addr, b, PE_, PE_READ_STRUCT_FIELD, RZ_BUF_CUR, rz_buf_read(), rz_buf_seek(), RZ_BUF_SET, and st64.
Referenced by bin_pe_init_imports(), rz_bin_pe_get_imports(), and rz_bin_pe_get_libs().
Definition at line 43 of file pe_imports.c.
References foo, free(), NULL, sdb_fmt(), and sdb_get().
Referenced by bin_pe_parse_imports().
struct rz_bin_pe_import_t* PE_() rz_bin_pe_get_imports | ( | RzBinPEObj * | bin | ) |
Definition at line 198 of file pe_imports.c.
References bin_pe_parse_imports(), bin_pe_rva_to_paddr(), free(), imports(), rz_bin_pe_import_t::last, NULL, off, rz_bin_pe_import_t::paddr, PE_, PE_DWord, PE_NAME_LENGTH, r, read_image_delay_import_directory(), read_image_import_directory(), realloc(), rz_bin_pe_get_image_base(), rz_buf_read_at(), RZ_LOG_INFO, rz_sys_perror, and ut64().
Referenced by rz_bin_mdmp_pe_get_imports(), and rz_bin_mdmp_pe_get_symbols().