From c4533f839be5fbbe613198a535f5249e647b7667 Mon Sep 17 00:00:00 2001 From: hasherezade Date: Sun, 4 Jun 2023 16:19:35 +0000 Subject: [PATCH] deploy: c152370a880b07b5dc04b8f438593bfeeb2ef602 --- _d_o_s_exe_8h_source.html | 4 +- _executable_8cpp_source.html | 8 +- _executable_8h_source.html | 6 +- _p_e_core_8cpp.html | 25 -- _p_e_core_8cpp_source.html | 361 +++++++++--------- _p_e_core_8h.html | 25 +- _p_e_core_8h_source.html | 156 ++++---- _p_e_file_8cpp_source.html | 12 +- _p_e_file_8h_source.html | 24 +- class_d_o_s_exe-members.html | 2 +- class_d_o_s_exe.html | 17 +- class_delay_imp_entry_wrapper.html | 12 +- ...a59df1fa18dcac641c18820d67ba4ab_cgraph.map | 2 +- ...a59df1fa18dcac641c18820d67ba4ab_cgraph.md5 | 2 +- ...fb7884c5a6a8dbcaa4122d55bf4e2fc_cgraph.map | 2 +- ...fb7884c5a6a8dbcaa4122d55bf4e2fc_cgraph.md5 | 2 +- ...9ca36c4ce27892ea6e8a6debf3d6343_cgraph.map | 2 +- ...9ca36c4ce27892ea6e8a6debf3d6343_cgraph.md5 | 2 +- ...16e2e700ae85ed8f249549255af18e7_cgraph.map | 2 +- ...16e2e700ae85ed8f249549255af18e7_cgraph.md5 | 2 +- ...d79b0c4556c89d51d65d60d947629ee_cgraph.map | 2 +- ...d79b0c4556c89d51d65d60d947629ee_cgraph.md5 | 2 +- ...74d7479281a025c5bb1092f007e91f9_cgraph.map | 2 +- ...74d7479281a025c5bb1092f007e91f9_cgraph.md5 | 2 +- class_delay_imp_func_wrapper.html | 6 +- ...d8546adf2b32cd7895bf3e5191f808d_cgraph.map | 2 +- ...d8546adf2b32cd7895bf3e5191f808d_cgraph.md5 | 2 +- ...3070cc1b024432ee1d3b589662af725_cgraph.map | 2 +- ...3070cc1b024432ee1d3b589662af725_cgraph.md5 | 2 +- ...af9cfcb23b977daeaa89a7beae4d754_cgraph.map | 2 +- ...af9cfcb23b977daeaa89a7beae4d754_cgraph.md5 | 2 +- class_executable-members.html | 2 +- class_executable.html | 31 +- ...10a106a5d61c54137c75c54042f4fa0_cgraph.map | 2 +- ...10a106a5d61c54137c75c54042f4fa0_cgraph.md5 | 2 +- ...83eb91b928dc417d9a631704737a192_cgraph.map | 2 +- ...83eb91b928dc417d9a631704737a192_cgraph.md5 | 2 +- ...3f47abf247435055849c62f25cddb36_cgraph.map | 2 +- ...3f47abf247435055849c62f25cddb36_cgraph.md5 | 2 +- ...92fa85544c5badfe25a33ce98f2ea72_cgraph.map | 2 +- ...92fa85544c5badfe25a33ce98f2ea72_cgraph.md5 | 2 +- ...c38d78f5e14efeaaa205b9ee593dd4a_cgraph.map | 2 +- ...c38d78f5e14efeaaa205b9ee593dd4a_cgraph.md5 | 2 +- ...8129d6c42c7b4e84bf524381e4561b9_cgraph.map | 2 +- ...8129d6c42c7b4e84bf524381e4561b9_cgraph.md5 | 2 +- ...8d6133f42ed4b4f4267f60dde4a3646_cgraph.map | 2 +- ...8d6133f42ed4b4f4267f60dde4a3646_cgraph.md5 | 2 +- ...01bb6955b84cb82c66f7a0c5ba1cd82_cgraph.map | 2 +- ...01bb6955b84cb82c66f7a0c5ba1cd82_cgraph.md5 | 2 +- ...3a32e3cea7c9c5a9aa2e938fc1091b9_cgraph.map | 2 +- ...3a32e3cea7c9c5a9aa2e938fc1091b9_cgraph.md5 | 2 +- class_import_dir_wrapper.html | 6 +- ...27f2de941acbc47703f0e216e1a01c1_cgraph.map | 2 +- ...27f2de941acbc47703f0e216e1a01c1_cgraph.md5 | 2 +- ...299a35ac29e73bc70c4788a7e7d1099_cgraph.map | 2 +- ...299a35ac29e73bc70c4788a7e7d1099_cgraph.md5 | 2 +- ...294c418dc641d108d10ea9c4e1e1694_cgraph.map | 2 +- ...294c418dc641d108d10ea9c4e1e1694_cgraph.md5 | 2 +- class_import_entry_wrapper.html | 16 +- ...21b26ef410620ed558536575794e5e3_cgraph.map | 2 +- ...21b26ef410620ed558536575794e5e3_cgraph.md5 | 2 +- ...32724524fcda326d1945ca222874ec4_cgraph.map | 2 +- ...32724524fcda326d1945ca222874ec4_cgraph.md5 | 2 +- ...ce480e25eb5fd9670ce9d73b8c36fdd_cgraph.map | 2 +- ...ce480e25eb5fd9670ce9d73b8c36fdd_cgraph.md5 | 2 +- ...135167a00f8e3fc243f05a701e9b065_cgraph.map | 2 +- ...135167a00f8e3fc243f05a701e9b065_cgraph.md5 | 2 +- ...a8b765e428aaf85d898604b50dba99f_cgraph.map | 2 +- ...a8b765e428aaf85d898604b50dba99f_cgraph.md5 | 2 +- ...2c962b8758ac8db68510abe5471a562_cgraph.map | 2 +- ...2c962b8758ac8db68510abe5471a562_cgraph.md5 | 2 +- ...86bfb5f98a9f19cd11c43e60c03891c_cgraph.map | 2 +- ...86bfb5f98a9f19cd11c43e60c03891c_cgraph.md5 | 2 +- ...18124fd3d07afe983e64f03128fe158_cgraph.map | 2 +- ...18124fd3d07afe983e64f03128fe158_cgraph.md5 | 2 +- class_imported_func_wrapper.html | 16 +- ...20e5ba636f893c0e7321cfba0eaa28a_cgraph.map | 2 +- ...20e5ba636f893c0e7321cfba0eaa28a_cgraph.md5 | 2 +- ...6d38df3d80ae19d4b93dfe2551690c9_cgraph.map | 2 +- ...6d38df3d80ae19d4b93dfe2551690c9_cgraph.md5 | 2 +- ...1f344dd0d7ea17343b367c3900f9436_cgraph.map | 2 +- ...1f344dd0d7ea17343b367c3900f9436_cgraph.md5 | 2 +- ...6a7797cd4c3881c787a90cdc619d8ce_cgraph.map | 2 +- ...6a7797cd4c3881c787a90cdc619d8ce_cgraph.md5 | 2 +- ...188244dbc4ad0c1834bac394cf0d66d_cgraph.map | 2 +- ...188244dbc4ad0c1834bac394cf0d66d_cgraph.md5 | 2 +- ...5f1f5bbb47762df7c8db1782dee8483_cgraph.map | 2 +- ...5f1f5bbb47762df7c8db1782dee8483_cgraph.md5 | 2 +- ...7014f620a332a27fe02a9bdaed196fc_cgraph.map | 2 +- ...7014f620a332a27fe02a9bdaed196fc_cgraph.md5 | 2 +- ...38284626478d2f787593f24344fad45_cgraph.map | 2 +- ...38284626478d2f787593f24344fad45_cgraph.md5 | 2 +- class_ld_config_dir_wrapper.html | 4 +- ...613b2322fdc9fd3b90640b0ef709ae3_cgraph.map | 2 +- ...613b2322fdc9fd3b90640b0ef709ae3_cgraph.md5 | 2 +- ...bbe5e6db01da6cbb3a66f562a40a261_cgraph.map | 2 +- ...bbe5e6db01da6cbb3a66f562a40a261_cgraph.md5 | 2 +- class_mapped_exe-members.html | 2 +- class_mapped_exe.html | 4 +- class_p_e_core-members.html | 2 +- class_p_e_core.html | 63 +-- ...de22e67191aa4cc85a13d4647e1d926_cgraph.map | 0 ...de22e67191aa4cc85a13d4647e1d926_cgraph.md5 | 0 ...de22e67191aa4cc85a13d4647e1d926_cgraph.png | Bin class_p_e_file-members.html | 2 +- class_p_e_file.html | 35 +- ...18b06da416a1526c02f4813a4bb71c8_cgraph.map | 2 +- ...18b06da416a1526c02f4813a4bb71c8_cgraph.md5 | 2 +- ...3bbc757bcbca899daa22ac72a173426_cgraph.map | 2 +- ...3bbc757bcbca899daa22ac72a173426_cgraph.md5 | 2 +- ...a78dd40f84d8774eb785e6d0bd063ab_cgraph.md5 | 1 - ...40e79b6105e41a69f04fc5374367b36_cgraph.map | 2 +- ...40e79b6105e41a69f04fc5374367b36_cgraph.md5 | 2 +- ...01394b4354a7b4091bef37c00345868_cgraph.map | 2 +- ...01394b4354a7b4091bef37c00345868_cgraph.md5 | 2 +- ...31999ef77e6cf9492993e5d5af1e5ab_cgraph.map | 2 +- ...31999ef77e6cf9492993e5d5af1e5ab_cgraph.md5 | 1 + ...31999ef77e6cf9492993e5d5af1e5ab_cgraph.png | Bin ...219c042888b181861cd766a4be6b4a5_cgraph.map | 2 +- ...219c042888b181861cd766a4be6b4a5_cgraph.md5 | 2 +- ...f86eb668cdc7e21f7aeaad5dd390334_cgraph.map | 2 +- ...f86eb668cdc7e21f7aeaad5dd390334_cgraph.md5 | 2 +- class_resource_content_wrapper.html | 8 +- ...116597104df986ee72358a2e776603a_cgraph.map | 2 +- ...116597104df986ee72358a2e776603a_cgraph.md5 | 2 +- ...7630d9bfa014f5dbff2055bbd4d4562_cgraph.map | 2 +- ...7630d9bfa014f5dbff2055bbd4d4562_cgraph.md5 | 2 +- ...f5c1d1f45d33558f59c0290e164a97c_cgraph.map | 2 +- ...f5c1d1f45d33558f59c0290e164a97c_cgraph.md5 | 2 +- ...ac99cadf3741f1befe2e002a3107591_cgraph.map | 2 +- ...ac99cadf3741f1befe2e002a3107591_cgraph.md5 | 2 +- class_resource_strings_wrapper.html | 4 +- ...5b72c8ff9142caaa3ee283358924962_cgraph.map | 2 +- ...5b72c8ff9142caaa3ee283358924962_cgraph.md5 | 2 +- ...7fdbd278641336a3356f184318a5a4c_cgraph.map | 2 +- ...7fdbd278641336a3356f184318a5a4c_cgraph.md5 | 2 +- class_resource_version_wrapper.html | 10 +- ...ebf304f4ac40fd0f05820e1950e026f_cgraph.map | 2 +- ...ebf304f4ac40fd0f05820e1950e026f_cgraph.md5 | 2 +- ...67bf3096440ab652d8db4c451b4cd44_cgraph.map | 2 +- ...67bf3096440ab652d8db4c451b4cd44_cgraph.md5 | 2 +- ...5079a4da58b6d6782879813d0f7bd77_cgraph.map | 2 +- ...5079a4da58b6d6782879813d0f7bd77_cgraph.md5 | 2 +- ...652ff8191ff1cbac970ecb0f2c52d95_cgraph.map | 2 +- ...652ff8191ff1cbac970ecb0f2c52d95_cgraph.md5 | 2 +- ...7d577345747ca0bebc8d20ec2e58d0c_cgraph.map | 2 +- ...7d577345747ca0bebc8d20ec2e58d0c_cgraph.md5 | 2 +- class_tls_dir_wrapper.html | 4 +- ...a60743f4c55cf39f23dbbb77fe796cf_cgraph.map | 2 +- ...a60743f4c55cf39f23dbbb77fe796cf_cgraph.md5 | 2 +- ...2c8d1fad578d9c0d440008430c03471_cgraph.map | 2 +- ...2c8d1fad578d9c0d440008430c03471_cgraph.md5 | 2 +- class_tls_entry_wrapper.html | 4 +- ...d71e1b9dca112bd059909f2ece5286f_cgraph.map | 2 +- ...d71e1b9dca112bd059909f2ece5286f_cgraph.md5 | 2 +- ...a3e2f030c68847abf36ad96aa42e1a4_cgraph.map | 2 +- ...a3e2f030c68847abf36ad96aa42e1a4_cgraph.md5 | 2 +- functions_func_g.html | 2 +- functions_g.html | 2 +- globals.html | 2 +- globals_defs.html | 2 +- search/all_4.js | 2 +- search/all_7.js | 2 +- search/defines_1.js | 2 +- search/functions_7.js | 2 +- 165 files changed, 566 insertions(+), 565 deletions(-) rename class_p_e_core_a7e2c4c279eba3d3573b6a66a6832e519_cgraph.map => class_p_e_core_a7de22e67191aa4cc85a13d4647e1d926_cgraph.map (100%) rename class_p_e_core_a7e2c4c279eba3d3573b6a66a6832e519_cgraph.md5 => class_p_e_core_a7de22e67191aa4cc85a13d4647e1d926_cgraph.md5 (100%) rename class_p_e_core_a7e2c4c279eba3d3573b6a66a6832e519_cgraph.png => class_p_e_core_a7de22e67191aa4cc85a13d4647e1d926_cgraph.png (100%) delete mode 100644 class_p_e_file_a4a78dd40f84d8774eb785e6d0bd063ab_cgraph.md5 rename class_p_e_file_a4a78dd40f84d8774eb785e6d0bd063ab_cgraph.map => class_p_e_file_a631999ef77e6cf9492993e5d5af1e5ab_cgraph.map (89%) create mode 100644 class_p_e_file_a631999ef77e6cf9492993e5d5af1e5ab_cgraph.md5 rename class_p_e_file_a4a78dd40f84d8774eb785e6d0bd063ab_cgraph.png => class_p_e_file_a631999ef77e6cf9492993e5d5af1e5ab_cgraph.png (100%) diff --git a/_d_o_s_exe_8h_source.html b/_d_o_s_exe_8h_source.html index e03459b5..aa75f8b9 100644 --- a/_d_o_s_exe_8h_source.html +++ b/_d_o_s_exe_8h_source.html @@ -120,7 +120,7 @@ $(function() {
41 }
42
43 virtual bufsize_t getAlignment(Executable::addr_type aType) const { return 0; } //TODO
-
44 virtual offset_t getImageBase() { return m_dosHdr->e_cs; }
+
44 virtual offset_t getImageBase(bool recalculate = false) { return m_dosHdr->e_cs; }
45 virtual offset_t getEntryPoint(Executable::addr_type aType = Executable::RVA) { return codeOffset() + m_dosHdr->e_ip; }
46
47 //---
@@ -161,10 +161,10 @@ $(function() {
offset_t codeOffset()
Definition DOSExe.h:53
virtual offset_t dosHeaderOffset()
Definition DOSExe.h:49
virtual offset_t rvaToRaw(offset_t rva)
Definition DOSExe.h:34
-
virtual offset_t getImageBase()
Definition DOSExe.h:44
bufsize_t moduleSize()
Definition DOSExe.h:54
IMAGE_DOS_HEADER * m_dosHdr
Definition DOSExe.h:68
offset_t peSignatureOffset()
Definition DOSExe.cpp:59
+
virtual offset_t getImageBase(bool recalculate=false)
Definition DOSExe.h:44
DosHdrWrapper * dosHdrWrapper
Definition DOSExe.h:67
virtual offset_t getEntryPoint(Executable::addr_type aType=Executable::RVA)
Definition DOSExe.h:45
virtual offset_t rawToRva(offset_t raw)
Definition DOSExe.h:33
diff --git a/_executable_8cpp_source.html b/_executable_8cpp_source.html index ac1f7a68..5fb49c1f 100644 --- a/_executable_8cpp_source.html +++ b/_executable_8cpp_source.html @@ -100,7 +100,7 @@ $(function() {
21 if (addr == INVALID_ADDR || addrType == Executable::NOT_ADDR) {
22 return false;
23 }
-
24 offset_t mappedFrom = (addrType == Executable::VA) ? this->getImageBase() : 0;
+
24 offset_t mappedFrom = (addrType == Executable::VA) ? this->getImageBase() : 0;
25 offset_t mappedTo = mappedFrom + this->getMappedSize(addrType);
26
27 return (addr >= mappedFrom && addr < mappedTo) ? true : false;
@@ -110,7 +110,7 @@ $(function() {
31{
32 if (va == INVALID_ADDR) return INVALID_ADDR;
33
-
34 const offset_t mappedFrom = this->getImageBase();
+
34 const offset_t mappedFrom = this->getImageBase();
35 const offset_t mappedTo = mappedFrom + this->getMappedSize(Executable::RVA);
36
37 if (autodetect && !isValidAddr(va, Executable::VA)) {
@@ -132,7 +132,7 @@ $(function() {
53 }
54 if (inType == outType) return inAddr;
55
-
56 const offset_t imgBase = this->getImageBase();
+
56 const offset_t imgBase = this->getImageBase();
57
58 if (outType == Executable::RAW) {
59 if (inType == Executable::VA) {
@@ -279,13 +279,13 @@ $(function() {
virtual offset_t toRaw(offset_t offset, addr_type addrType, bool allowExceptions=false)
virtual bool isValidAddr(offset_t addr, addr_type addrType)
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
Definition Executable.h:57
+
virtual offset_t getImageBase(bool recalculate=false)=0
QString getFileName()
Executable(AbstractByteBuffer *v_buf, exe_bits v_bitMode)
Definition Executable.cpp:4
virtual offset_t getRawSize() const
Definition Executable.h:54
virtual bufsize_t getMappedSize(Executable::addr_type aType)=0
virtual offset_t rawToRva(offset_t raw)=0
virtual offset_t rvaToRaw(offset_t rva)=0
-
virtual offset_t getImageBase()=0
virtual offset_t convertAddr(offset_t inAddr, Executable::addr_type inType, Executable::addr_type outType)
Executable::addr_type detectAddrType(offset_t addr, Executable::addr_type hintType)
virtual bool dumpFragment(offset_t offset, bufsize_t size, QString fileName)
diff --git a/_executable_8h_source.html b/_executable_8h_source.html index 65c3d6b3..534c5e19 100644 --- a/_executable_8h_source.html +++ b/_executable_8h_source.html @@ -139,7 +139,7 @@ $(function() {
60//------------------------------
61 virtual bufsize_t getMappedSize(Executable::addr_type aType) = 0;
62 virtual bufsize_t getAlignment(Executable::addr_type aType) const = 0;
-
63 virtual offset_t getImageBase() = 0;
+
63 virtual offset_t getImageBase(bool recalculate = false) = 0;
64 virtual offset_t getEntryPoint(Executable::addr_type aType = Executable::RVA) = 0;
65
66 virtual bufsize_t getImageSize() { return getMappedSize(Executable::VA); }
@@ -171,7 +171,7 @@ $(function() {
92
93 virtual offset_t rvaToVa(offset_t rva)
94 {
-
95 return (rva == INVALID_ADDR) ? INVALID_ADDR : (rva + this->getImageBase());
+
95 return (rva == INVALID_ADDR) ? INVALID_ADDR : (rva + this->getImageBase());
96 }
97
98 // VA -> FileAddr
@@ -248,6 +248,7 @@ $(function() {
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
Definition Executable.h:57
bool isBit64()
Definition Executable.h:44
static bool isBit64(Executable *exe)
Definition Executable.h:41
+
virtual offset_t getImageBase(bool recalculate=false)=0
virtual BYTE * getContent()
Definition Executable.h:52
QString getFileName()
virtual offset_t vaToRaw(offset_t va)
Definition Executable.h:99
@@ -260,7 +261,6 @@ $(function() {
virtual offset_t rawToRva(offset_t raw)=0
exe_bits bitMode
Definition Executable.h:124
virtual offset_t rvaToRaw(offset_t rva)=0
-
virtual offset_t getImageBase()=0
virtual bufsize_t getAlignment(Executable::addr_type aType) const =0
virtual offset_t convertAddr(offset_t inAddr, Executable::addr_type inType, Executable::addr_type outType)
virtual bool resize(bufsize_t newSize)
Definition Executable.h:109
diff --git a/_p_e_core_8cpp.html b/_p_e_core_8cpp.html index 4cbeeb88..690c60d2 100644 --- a/_p_e_core_8cpp.html +++ b/_p_e_core_8cpp.html @@ -74,37 +74,12 @@ $(function() {
-
PECore.cpp File Reference
#include "pe/PECore.h"

Go to the source code of this file.

- - - - -

-Macros

#define DEFAULT_IMGBASE   0x10000
 
-

Macro Definition Documentation

- -

◆ DEFAULT_IMGBASE

- -
-
- - - - -
#define DEFAULT_IMGBASE   0x10000
-
- -

Definition at line 3 of file PECore.cpp.

- -
-