Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | COMMENTS_SIZE 32 |
Definition at line 1241 of file mdmp.c.
References setup::idx, length, rz_buf_read8_at(), and rz_buf_read_at().
Referenced by rz_bin_mdmp_init_pe_bins().
Definition at line 1272 of file mdmp.c.
References setup::idx, length, rz_buf_read8_at(), and rz_buf_read_at().
Referenced by rz_bin_mdmp_init_pe_bins().
|
static |
Definition at line 638 of file mdmp.c.
References addr, b, desc, RZ_BUF_CUR, rz_buf_read_le64, rz_buf_seek(), RZ_BUF_SET, st64, autogen_x86imm::tmp, and ut64().
Referenced by rz_bin_mdmp_init_directory_entry().
Definition at line 1151 of file mdmp.c.
References addr, b, rva(), RZ_BUF_CUR, rz_buf_read_le32, rz_buf_seek(), RZ_BUF_SET, st64, and autogen_x86imm::tmp.
Referenced by rz_bin_mdmp_init_directory().
Definition at line 348 of file mdmp.c.
References b, flags, reserved, RZ_BUF_CUR, rz_buf_read_le32, rz_buf_read_le64, rz_buf_seek(), RZ_BUF_SET, signature(), st64, autogen_x86imm::tmp, ut64(), and version.
Referenced by rz_bin_mdmp_init_hdr().
|
static |
Definition at line 609 of file mdmp.c.
References addr, b, RZ_BUF_CUR, rz_buf_read_le64, rz_buf_seek(), RZ_BUF_SET, st64, autogen_x86imm::tmp, and ut64().
Referenced by rz_bin_mdmp_init_directory_entry().
Definition at line 590 of file mdmp.c.
References addr, b, read_module_aux(), RZ_BUF_CUR, rz_buf_seek(), RZ_BUF_SET, st64, and autogen_x86imm::tmp.
Referenced by rz_bin_mdmp_init_directory_entry().
Definition at line 442 of file mdmp.c.
References b, rz_buf_read_le32, rz_buf_read_le64, and ut64().
Referenced by read_module().
void rz_bin_mdmp_free | ( | struct rz_bin_mdmp_obj * | obj | ) |
Definition at line 97 of file mdmp.c.
References rz_bin_mdmp_obj::b, rz_bin_mdmp_obj::minidump_streams::comments_a, rz_bin_mdmp_obj::minidump_streams::comments_w, rz_bin_mdmp_obj::minidump_streams::ex_threads, rz_bin_mdmp_obj::minidump_streams::exception, free(), rz_bin_mdmp_obj::minidump_streams::function_table, rz_bin_mdmp_obj::minidump_streams::handle_data, rz_bin_mdmp_obj::hdr, rz_bin_mdmp_obj::minidump_streams::memories, rz_bin_mdmp_obj::minidump_streams::memories64, rz_bin_mdmp_obj::minidump_streams::memory_infos, rz_bin_mdmp_obj::minidump_streams::misc_info, rz_bin_mdmp_obj::minidump_streams::misc_info_1, rz_bin_mdmp_obj::minidump_streams::modules, NULL, rz_bin_mdmp_obj::minidump_streams::operations, rz_bin_mdmp_obj::pe32_bins, rz_bin_mdmp_obj::pe64_bins, rz_buf_free(), rz_list_free(), rz_bin_mdmp_obj::streams, rz_bin_mdmp_obj::minidump_streams::system_info, rz_bin_mdmp_obj::minidump_streams::thread_infos, rz_bin_mdmp_obj::minidump_streams::threads, rz_bin_mdmp_obj::minidump_streams::token_infos, and rz_bin_mdmp_obj::minidump_streams::unloaded_modules.
Referenced by destroy(), and rz_bin_mdmp_new_buf().
|
static |
Definition at line 79 of file mdmp.c.
References RZ_FREE, and sdb_free().
Referenced by rz_bin_mdmp_new_buf().
|
static |
Definition at line 88 of file mdmp.c.
References RZ_FREE, and sdb_free().
Referenced by rz_bin_mdmp_new_buf().
struct minidump_memory_info* rz_bin_mdmp_get_mem_info | ( | struct rz_bin_mdmp_obj * | obj, |
ut64 | vaddr | ||
) |
Definition at line 30 of file mdmp.c.
References rz_bin_mdmp_obj::minidump_streams::memory_infos, NULL, and rz_bin_mdmp_obj::streams.
Referenced by mem(), and rz_bin_mdmp_get_perm().
ut64 rz_bin_mdmp_get_paddr | ( | struct rz_bin_mdmp_obj * | obj, |
ut64 | vaddr | ||
) |
Definition at line 11 of file mdmp.c.
References rz_bin_mdmp_obj::minidump_streams::base_rva, rz_bin_mdmp_obj::minidump_streams::memories, rz_bin_mdmp_obj::minidump_streams::memories64, rz_bin_mdmp_obj::streams, and ut64().
Referenced by rz_bin_mdmp_init_pe_bins(), and sections().
ut32 rz_bin_mdmp_get_perm | ( | struct rz_bin_mdmp_obj * | obj, |
ut64 | vaddr | ||
) |
Definition at line 47 of file mdmp.c.
References MINIDUMP_PAGE_EXECUTE, MINIDUMP_PAGE_EXECUTE_READ, MINIDUMP_PAGE_EXECUTE_READWRITE, MINIDUMP_PAGE_EXECUTE_WRITECOPY, MINIDUMP_PAGE_GUARD, MINIDUMP_PAGE_NOACCESS, MINIDUMP_PAGE_NOCACHE, MINIDUMP_PAGE_READONLY, MINIDUMP_PAGE_READWRITE, MINIDUMP_PAGE_WRITECOMBINE, MINIDUMP_PAGE_WRITECOPY, rz_bin_mdmp_get_mem_info(), RZ_PERM_R, RZ_PERM_RW, RZ_PERM_RWX, RZ_PERM_RX, and RZ_PERM_X.
|
static |
Definition at line 1368 of file mdmp.c.
References rz_bin_mdmp_init_directory(), rz_bin_mdmp_init_hdr(), rz_bin_mdmp_init_parsing(), rz_bin_mdmp_init_pe_bins(), and RZ_LOG_ERROR.
Referenced by rz_bin_mdmp_new_buf().
|
static |
Definition at line 1186 of file mdmp.c.
References rz_bin_mdmp_obj::b, delta, rz_bin_mdmp_obj::hdr, i, rz_bin_mdmp_obj::kv, read_entry(), rz_bin_mdmp_init_directory_entry(), RZ_LOG_ERROR, RZ_MIN, sdb_num_set(), sdb_set(), rz_bin_mdmp_obj::size, and ut64().
Referenced by rz_bin_mdmp_init().
|
static |
Definition at line 667 of file mdmp.c.
References rz_bin_mdmp_obj::b, rz_bin_mdmp_obj::minidump_streams::base_rva, COMMENT_STREAM_A, COMMENT_STREAM_W, rz_bin_mdmp_obj::minidump_streams::comments_a, COMMENTS_SIZE, rz_bin_mdmp_obj::minidump_streams::comments_w, desc, rz_bin_mdmp_obj::minidump_streams::ex_threads, rz_bin_mdmp_obj::minidump_streams::exception, EXCEPTION_STREAM, rz_bin_mdmp_obj::minidump_streams::function_table, FUNCTION_TABLE_STREAM, rz_bin_mdmp_obj::minidump_streams::handle_data, HANDLE_DATA_STREAM, HANDLE_OPERATION_LIST_STREAM, i, info(), rz_bin_mdmp_obj::kv, LAST_RESERVED_STREAM, rz_bin_mdmp_obj::minidump_streams::memories, rz_bin_mdmp_obj::minidump_streams::memories64, MEMORY_64_LIST_STREAM, MEMORY_INFO_LIST_STREAM, rz_bin_mdmp_obj::minidump_streams::memory_infos, MEMORY_LIST_STREAM, rz_bin_mdmp_obj::minidump_streams::misc_info, rz_bin_mdmp_obj::minidump_streams::misc_info_1, MISC_INFO_STREAM, MODULE_LIST_STREAM, rz_bin_mdmp_obj::minidump_streams::modules, rz_bin_mdmp_obj::minidump_streams::operations, PFMT64d, r, read_desc(), read_memory64_list(), read_module(), RESERVED_STREAM_0, RESERVED_STREAM_1, rz_buf_read_at(), rz_buf_read_le32_at, rz_buf_size(), rz_list_append(), RZ_LOG_ERROR, RZ_LOG_WARN, RZ_NEW, RZ_NEWS, sdb_fmt(), sdb_num_set(), sdb_set(), rz_bin_mdmp_obj::streams, rz_bin_mdmp_obj::minidump_streams::system_info, SYSTEM_INFO_STREAM, THREAD_EX_LIST_STREAM, THREAD_INFO_LIST_STREAM, rz_bin_mdmp_obj::minidump_streams::thread_infos, THREAD_LIST_STREAM, rz_bin_mdmp_obj::minidump_streams::token_infos, TOKEN_STREAM, UNLOADED_MODULE_LIST_STREAM, rz_bin_mdmp_obj::minidump_streams::unloaded_modules, UNUSED_STREAM, and ut64().
Referenced by rz_bin_mdmp_init_directory().
|
static |
Definition at line 409 of file mdmp.c.
References rz_bin_mdmp_obj::b, rz_bin_mdmp_obj::hdr, rz_bin_mdmp_obj::kv, read_hdr(), RZ_LOG_ERROR, RZ_LOG_INFO, RZ_LOG_WARN, RZ_NEW, sdb_num_set(), and sdb_set().
Referenced by rz_bin_mdmp_init().
|
static |
Definition at line 131 of file mdmp.c.
References rz_bin_mdmp_obj::kv, and sdb_set().
Referenced by rz_bin_mdmp_init().
|
static |
Definition at line 1302 of file mdmp.c.
References rz_bin_mdmp_obj::b, b, check_pe32_buf(), check_pe64_buf(), dup, rz_bin_mdmp_obj::minidump_streams::modules, rz_bin_mdmp_obj::pe32_bins, rz_bin_mdmp_obj::pe64_bins, r, rz_bin_mdmp_get_paddr(), rz_bin_mdmp_patch_pe_headers(), rz_buf_free(), rz_buf_new_with_bytes(), rz_buf_read_at(), rz_list_append(), RZ_NEW0, RZ_NEWS, rz_bin_mdmp_obj::streams, and ut64().
Referenced by rz_bin_mdmp_init().
struct rz_bin_mdmp_obj* rz_bin_mdmp_new_buf | ( | RzBuffer * | buf | ) |
Definition at line 1389 of file mdmp.c.
References rz_bin_mdmp_obj::b, rz_bin_mdmp_obj::minidump_streams::ex_threads, fail, free(), rz_bin_mdmp_obj::kv, rz_bin_mdmp_obj::minidump_streams::memories, rz_bin_mdmp_obj::minidump_streams::memories64, rz_bin_mdmp_obj::minidump_streams::memory_infos, rz_bin_mdmp_obj::minidump_streams::modules, NULL, rz_bin_mdmp_obj::minidump_streams::operations, rz_bin_mdmp_obj::pe32_bins, rz_bin_mdmp_obj::pe64_bins, rz_bin_mdmp_free(), rz_bin_mdmp_free_pe32_bin(), rz_bin_mdmp_free_pe64_bin(), rz_bin_mdmp_init(), rz_buf_ref(), rz_buf_size(), rz_list_new(), rz_list_newf(), RZ_NEW0, sdb_new0(), rz_bin_mdmp_obj::size, rz_bin_mdmp_obj::streams, rz_bin_mdmp_obj::minidump_streams::thread_infos, rz_bin_mdmp_obj::minidump_streams::threads, rz_bin_mdmp_obj::minidump_streams::token_infos, and rz_bin_mdmp_obj::minidump_streams::unloaded_modules.
Referenced by load_buffer().
Definition at line 1217 of file mdmp.c.
References Pe32_image_dos_header::e_lfanew, Pe64_image_nt_headers::file_header, i, Pe32_image_file_header::NumberOfSections, Pe64_read_dos_header(), Pe64_read_image_section_header(), Pe64_read_nt_headers(), Pe64_write_image_section_header(), Pe32_image_file_header::SizeOfOptionalHeader, and ut64().
Referenced by rz_bin_mdmp_init_pe_bins().