Rizin
unix-like reverse engineering framework and cli tools
|
#include "pe.h"
Go to the source code of this file.
Classes | |
struct | SymbolRecord |
Functions | |
static struct rz_bin_pe_export_t * | parse_symbol_table (RzBinPEObj *bin, struct rz_bin_pe_export_t *exports, int sz) |
static int | read_image_export_directory (RzBuffer *b, ut64 addr, PE_(image_export_directory) *export_dir) |
int PE_() | bin_pe_init_exports (RzBinPEObj *bin) |
struct rz_bin_pe_export_t *PE_() | rz_bin_pe_get_exports (RzBinPEObj *bin) |
int PE_() bin_pe_init_exports | ( | RzBinPEObj * | bin | ) |
Definition at line 140 of file pe_exports.c.
References bin_pe_rva_to_paddr(), malloc(), PE_, PE_DWord, PE_IMAGE_DIRECTORY_ENTRY_EXPORT, read_image_export_directory(), RZ_FREE, RZ_LOG_INFO, and rz_sys_perror.
Referenced by bin_pe_init().
|
static |
Definition at line 17 of file pe_exports.c.
References bin_pe_rva_to_va(), calloc(), COFF_SYMBOL_SIZE, rz_bin_pe_export_t::forwarder, free(), i, setup::idx, rz_bin_pe_export_t::last, rz_bin_pe_export_t::libname, malloc(), memcpy(), name, rz_bin_pe_export_t::name, NULL, num, rz_bin_pe_export_t::ordinal, rz_bin_pe_export_t::paddr, PE_, PE_NAME_LENGTH, realloc(), rz_buf_read_at(), rz_read_le32(), SymbolRecord::secnum, sections(), SymbolRecord::shortname, sprintf, SymbolRecord::symtype, ut64(), rz_bin_pe_export_t::vaddr, and SymbolRecord::value.
Referenced by rz_bin_pe_get_exports().
|
static |
Definition at line 118 of file pe_exports.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_exports().
struct rz_bin_pe_export_t* PE_() rz_bin_pe_get_exports | ( | RzBinPEObj * | bin | ) |
Definition at line 162 of file pe_exports.c.
References bin_pe_rva_to_paddr(), bin_pe_rva_to_va(), rz_bin_pe_export_t::forwarder, free(), i, rz_bin_pe_export_t::last, rz_bin_pe_export_t::libname, malloc(), memcpy(), n, rz_bin_pe_export_t::name, NULL, rz_bin_pe_export_t::ordinal, rz_bin_pe_export_t::paddr, parse_symbol_table(), PE_, PE_IMAGE_DIRECTORY_ENTRY_EXPORT, PE_NAME_LENGTH, PE_VWord, PE_Word, r, rz_buf_read_at(), rz_buf_read_le32_at, RZ_LOG_INFO, rz_read_at_ble16(), rz_read_at_ble32(), rz_return_val_if_fail, snprintf, st64, and rz_bin_pe_export_t::vaddr.
Referenced by rz_bin_mdmp_pe_get_symbols().