Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rz_types.h>
#include <rz_util.h>
#include <rz_hash.h>
#include "pe.h"
#include <time.h>
Go to the source code of this file.
Functions | |
PE_DWord PE_() | bin_pe_rva_to_paddr (RzBinPEObj *bin, PE_DWord rva) |
PE_DWord PE_() | bin_pe_rva_to_va (RzBinPEObj *bin, PE_DWord rva) |
PE_DWord PE_() | bin_pe_va_to_rva (RzBinPEObj *bin, PE_DWord va) |
static int | bin_pe_init (RzBinPEObj *bin) |
void *PE_() | rz_bin_pe_free (RzBinPEObj *bin) |
RzBinPEObj *PE_() | rz_bin_pe_new_buf (RzBuffer *buf, bool verbose) |
|
static |
Definition at line 40 of file pe.c.
References bin_pe_init_clr(), bin_pe_init_exports(), bin_pe_init_hdr(), bin_pe_init_imports(), bin_pe_init_overlay(), bin_pe_init_resource(), bin_pe_init_rich_info(), bin_pe_init_sections(), bin_pe_init_security(), bin_pe_init_tls(), bin_pe_parse_resource(), NULL, PE_, rz_bin_pe_get_sections(), rz_bin_pe_is_big_endian(), and RZ_LOG_ERROR.
Referenced by rz_bin_pe_new_buf().
PE_DWord PE_() bin_pe_rva_to_paddr | ( | RzBinPEObj * | bin, |
PE_DWord | rva | ||
) |
Definition at line 15 of file pe.c.
References i, PE_DWord, and rva().
Referenced by _parse_resource_directory(), bin_pe_get_overlay(), bin_pe_init_clr(), bin_pe_init_exports(), bin_pe_init_imports(), bin_pe_init_resource(), bin_pe_init_tls(), bin_pe_parse_imports(), bin_pe_store_tls_callbacks(), rz_bin_pe_get_clr_methoddef_offset(), rz_bin_pe_get_clr_symbols(), rz_bin_pe_get_debug_data(), rz_bin_pe_get_entrypoint(), rz_bin_pe_get_exports(), rz_bin_pe_get_imports(), and rz_bin_pe_get_libs().
PE_DWord PE_() bin_pe_rva_to_va | ( | RzBinPEObj * | bin, |
PE_DWord | rva | ||
) |
Definition at line 28 of file pe.c.
References PE_, rva(), and rz_bin_pe_get_image_base().
Referenced by _store_resource_sdb(), bin_pe_parse_imports(), parse_symbol_table(), rz_bin_pe_get_clr_methoddef_offset(), rz_bin_pe_get_clr_symbols(), rz_bin_pe_get_entrypoint(), and rz_bin_pe_get_exports().
PE_DWord PE_() bin_pe_va_to_rva | ( | RzBinPEObj * | bin, |
PE_DWord | va | ||
) |
Definition at line 32 of file pe.c.
References PE_, rz_bin_pe_get_image_base(), and ut64().
Referenced by bin_pe_init_tls(), and bin_pe_store_tls_callbacks().
void* PE_() rz_bin_pe_free | ( | RzBinPEObj * | bin | ) |
Definition at line 88 of file pe.c.
References bin_pe_dotnet_destroy_clr(), free(), free_security_directory(), NULL, PE_, rz_buf_free(), rz_hash_free(), rz_list_free(), rz_pkcs7_free_cms(), and rz_pkcs7_free_spcinfo().
Referenced by rz_bin_pe_new_buf(), rz_bin_pemixed_free(), rz_bin_pemixed_from_bytes_new(), and rz_bin_pemixed_init_dos().
RzBinPEObj* PE_() rz_bin_pe_new_buf | ( | RzBuffer * | buf, |
bool | verbose | ||
) |
Definition at line 116 of file pe.c.
References bin_pe_init(), NULL, PE_, rz_bin_pe_free(), rz_buf_ref(), rz_buf_size(), rz_hash_new(), RZ_NEW0, RzBinPEObj, sdb_new0(), and verbose.
Referenced by rz_bin_pemixed_from_bytes_new().