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() {
DOSExe::codeOffset
offset_t codeOffset()
Definition DOSExe.h:53
DOSExe::dosHeaderOffset
virtual offset_t dosHeaderOffset()
Definition DOSExe.h:49
DOSExe::rvaToRaw
virtual offset_t rvaToRaw(offset_t rva)
Definition DOSExe.h:34
-
DOSExe::getImageBase
virtual offset_t getImageBase()
Definition DOSExe.h:44
DOSExe::moduleSize
bufsize_t moduleSize()
Definition DOSExe.h:54
DOSExe::m_dosHdr
IMAGE_DOS_HEADER * m_dosHdr
Definition DOSExe.h:68
DOSExe::peSignatureOffset
offset_t peSignatureOffset()
Definition DOSExe.cpp:59
+
DOSExe::getImageBase
virtual offset_t getImageBase(bool recalculate=false)
Definition DOSExe.h:44
DOSExe::dosHdrWrapper
DosHdrWrapper * dosHdrWrapper
Definition DOSExe.h:67
DOSExe::getEntryPoint
virtual offset_t getEntryPoint(Executable::addr_type aType=Executable::RVA)
Definition DOSExe.h:45
DOSExe::rawToRva
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() {
Executable::toRaw
virtual offset_t toRaw(offset_t offset, addr_type addrType, bool allowExceptions=false)
Definition Executable.cpp:85
Executable::isValidAddr
virtual bool isValidAddr(offset_t addr, addr_type addrType)
Definition Executable.cpp:19
Executable::getContentAt
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
Definition Executable.h:57
+
Executable::getImageBase
virtual offset_t getImageBase(bool recalculate=false)=0
Executable::getFileName
QString getFileName()
Definition Executable.cpp:149
Executable::Executable
Executable(AbstractByteBuffer *v_buf, exe_bits v_bitMode)
Definition Executable.cpp:4
Executable::getRawSize
virtual offset_t getRawSize() const
Definition Executable.h:54
Executable::getMappedSize
virtual bufsize_t getMappedSize(Executable::addr_type aType)=0
Executable::rawToRva
virtual offset_t rawToRva(offset_t raw)=0
Executable::rvaToRaw
virtual offset_t rvaToRaw(offset_t rva)=0
-
Executable::getImageBase
virtual offset_t getImageBase()=0
Executable::convertAddr
virtual offset_t convertAddr(offset_t inAddr, Executable::addr_type inType, Executable::addr_type outType)
Definition Executable.cpp:46
Executable::detectAddrType
Executable::addr_type detectAddrType(offset_t addr, Executable::addr_type hintType)
Definition Executable.cpp:125
Executable::dumpFragment
virtual bool dumpFragment(offset_t offset, bufsize_t size, QString fileName)
Definition Executable.cpp:169
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() {
Executable::getContentAt
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
Definition Executable.h:57
Executable::isBit64
bool isBit64()
Definition Executable.h:44
Executable::isBit64
static bool isBit64(Executable *exe)
Definition Executable.h:41
+
Executable::getImageBase
virtual offset_t getImageBase(bool recalculate=false)=0
Executable::getContent
virtual BYTE * getContent()
Definition Executable.h:52
Executable::getFileName
QString getFileName()
Definition Executable.cpp:149
Executable::vaToRaw
virtual offset_t vaToRaw(offset_t va)
Definition Executable.h:99
@@ -260,7 +261,6 @@ $(function() {
Executable::rawToRva
virtual offset_t rawToRva(offset_t raw)=0
Executable::bitMode
exe_bits bitMode
Definition Executable.h:124
Executable::rvaToRaw
virtual offset_t rvaToRaw(offset_t rva)=0
-
Executable::getImageBase
virtual offset_t getImageBase()=0
Executable::getAlignment
virtual bufsize_t getAlignment(Executable::addr_type aType) const =0
Executable::convertAddr
virtual offset_t convertAddr(offset_t inAddr, Executable::addr_type inType, Executable::addr_type outType)
Definition Executable.cpp:46
Executable::resize
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() {
-
-Macros
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.

- -
-