#include <loader/Win32BinaryFile.h>
Inheritance diagram for Win32BinaryFile:
Definition at line 159 of file Win32BinaryFile.h.
Public Member Functions | |
virtual void | AddSymbol (ADDRESS uNative, const char *pName) |
virtual void | Close () |
virtual bool | DisplayDetails (const char *fileName, FILE *f=stdout) |
void | dumpSymbols () |
virtual ADDRESS | GetAddressByName (const char *name, bool bNoTypeOK=false) |
DWord | getDelta () |
virtual std::list< const char * > | getDependencyList () |
virtual const char * | GetDynamicProcName (ADDRESS uNative) |
virtual ADDRESS | GetEntryPoint () |
virtual std::list< SectionInfo * > & | GetEntryPoints (const char *pEntry="main") |
virtual const char * | getFilename () const |
virtual LOAD_FMT | GetFormat () const |
virtual ADDRESS | getImageBase () |
virtual size_t | getImageSize () |
virtual MACHINE | GetMachine () const |
virtual ADDRESS | GetMainEntryPoint () |
virtual std::map< ADDRESS, std::string > & | getSymbols () |
bool | hasDebugInfo () |
virtual bool | IsDynamicLinkedProcPointer (ADDRESS uNative) |
virtual ADDRESS | IsJumpToAnotherAddr (ADDRESS uNative) |
virtual bool | isLibrary () const |
bool | IsMinGWsAllocStack (ADDRESS uNative) |
bool | IsMinGWsCleanupSetup (ADDRESS uNative) |
bool | IsMinGWsFrameEnd (ADDRESS uNative) |
bool | IsMinGWsFrameInit (ADDRESS uNative) |
bool | IsMinGWsMalloc (ADDRESS uNative) |
virtual bool | IsStaticLinkedLibProc (ADDRESS uNative) |
virtual bool | Open (const char *sName) |
virtual int | readNative1 (ADDRESS a) |
virtual int | readNative2 (ADDRESS a) |
virtual int | readNative4 (ADDRESS a) |
virtual QWord | readNative8 (ADDRESS a) |
virtual float | readNativeFloat4 (ADDRESS a) |
virtual double | readNativeFloat8 (ADDRESS a) |
virtual const char * | SymbolByAddress (ADDRESS dwAddr) |
virtual void | UnLoad () |
Win32BinaryFile () | |
virtual | ~Win32BinaryFile () |
Protected Member Functions | |
virtual bool | RealLoad (const char *sName) |
int | win32Read2 (short *ps) const |
int | win32Read4 (int *pi) const |
Private Member Functions | |
void | findJumps (ADDRESS curr) |
bool | PostLoad (void *handle) |
Private Attributes | |
char * | base |
std::map< ADDRESS, std::string > | dlprocptrs |
bool | haveDebugInfo |
int | m_cbImage |
int | m_cReloc |
const char * | m_pFileName |
Header * | m_pHeader |
PEHeader * | m_pPEHeader |
DWord * | m_pRelocTable |
bool | mingw_main |
|
Definition at line 117 of file Win32BinaryFile.cpp. |
|
Definition at line 120 of file Win32BinaryFile.cpp. References BinaryFile::m_iNumSections, and BinaryFile::m_pSections. |
|
Reimplemented from BinaryFile. Definition at line 885 of file Win32BinaryFile.cpp. |
|
Implements BinaryFile. Definition at line 134 of file Win32BinaryFile.cpp. References UnLoad(). |
|
Reimplemented from BinaryFile. Definition at line 890 of file Win32BinaryFile.cpp. |
|
Definition at line 1184 of file Win32BinaryFile.cpp. |
|
Definition at line 590 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByName(), LH, LMMH2, NULL, SectionInfo::uHostAddr, and SectionInfo::uNativeAddr. |
|
Reimplemented from BinaryFile. Definition at line 872 of file Win32BinaryFile.cpp. Referenced by GetMainEntryPoint(). |
|
Definition at line 1164 of file Win32BinaryFile.cpp. References base, PEHeader::Imagebase, and m_pPEHeader. |
|
Implements BinaryFile. Definition at line 1159 of file Win32BinaryFile.cpp. |
|
Reimplemented from BinaryFile. Definition at line 1129 of file Win32BinaryFile.cpp. |
|
Implements BinaryFile. Definition at line 147 of file Win32BinaryFile.cpp. References PEHeader::EntrypointRVA, PEHeader::Imagebase, LMMH, and m_pPEHeader. |
|
Implements BinaryFile. Definition at line 138 of file Win32BinaryFile.cpp. |
|
Implements BinaryFile. Definition at line 171 of file Win32BinaryFile.h. References m_pFileName. |
|
Implements BinaryFile. Definition at line 1134 of file Win32BinaryFile.cpp. References LOADFMT_PE. |
|
Implements BinaryFile. Definition at line 1149 of file Win32BinaryFile.cpp. References PEHeader::Imagebase, and m_pPEHeader. |
|
Implements BinaryFile. Definition at line 1154 of file Win32BinaryFile.cpp. References PEHeader::ImageSize, and m_pPEHeader. |
|
Implements BinaryFile. Definition at line 1139 of file Win32BinaryFile.cpp. References MACHINE_PENTIUM. |
|
Implements BinaryFile. Definition at line 156 of file Win32BinaryFile.cpp. References addr(), base, dlprocptrs, PEHeader::EntrypointRVA, GetAddressByName(), BinaryFile::GetSectionInfoByName(), PEHeader::Imagebase, LMMH, m_pPEHeader, main(), microX86Dis(), NO_ADDRESS, NULL, readNative4(), size, PEHeader::Subsystem, and SectionInfo::uSectionSize. |
|
Reimplemented from BinaryFile. Definition at line 218 of file Win32BinaryFile.h. References dlprocptrs. |
|
Reimplemented from BinaryFile. Definition at line 220 of file Win32BinaryFile.h. References haveDebugInfo. |
|
Reimplemented from BinaryFile. Definition at line 977 of file Win32BinaryFile.cpp. |
|
Reimplemented from BinaryFile. Definition at line 1122 of file Win32BinaryFile.cpp. References readNative1(), and readNative4(). |
|
Implements BinaryFile. Definition at line 1144 of file Win32BinaryFile.cpp. References PEHeader::Flags, and m_pPEHeader. |
|
Definition at line 1004 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByAddr(), mingw_main, SectionInfo::uHostAddr, and SectionInfo::uNativeAddr. Referenced by IsStaticLinkedLibProc(), and SymbolByAddress(). |
|
Definition at line 1076 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByAddr(), mingw_main, SectionInfo::uHostAddr, and SectionInfo::uNativeAddr. Referenced by IsStaticLinkedLibProc(), and SymbolByAddress(). |
|
Definition at line 1053 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByAddr(), mingw_main, SectionInfo::uHostAddr, and SectionInfo::uNativeAddr. Referenced by IsStaticLinkedLibProc(), and SymbolByAddress(). |
|
Definition at line 1025 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByAddr(), mingw_main, SectionInfo::uHostAddr, and SectionInfo::uNativeAddr. Referenced by IsStaticLinkedLibProc(), and SymbolByAddress(). |
|
Definition at line 1101 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByAddr(), mingw_main, SectionInfo::uHostAddr, and SectionInfo::uNativeAddr. Referenced by IsStaticLinkedLibProc(), and SymbolByAddress(). |
|
Reimplemented from BinaryFile. Definition at line 984 of file Win32BinaryFile.cpp. References haveDebugInfo, IsMinGWsAllocStack(), IsMinGWsCleanupSetup(), IsMinGWsFrameEnd(), IsMinGWsFrameInit(), IsMinGWsMalloc(), and NULL. |
|
Implements BinaryFile. Definition at line 129 of file Win32BinaryFile.cpp. |
|
Implements BinaryFile. Definition at line 619 of file Win32BinaryFile.cpp. |
|
Reimplemented from BinaryFile. Definition at line 912 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByAddr(), SectionInfo::uHostAddr, and SectionInfo::uNativeAddr. Referenced by IsJumpToAnotherAddr(). |
|
Reimplemented from BinaryFile. Definition at line 921 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByAddr(), SectionInfo::uHostAddr, SectionInfo::uNativeAddr, and win32Read2(). |
|
Reimplemented from BinaryFile. Definition at line 930 of file Win32BinaryFile.cpp. References BinaryFile::GetSectionInfoByAddr(), SectionInfo::uHostAddr, SectionInfo::uNativeAddr, and win32Read4(). Referenced by GetMainEntryPoint(), IsJumpToAnotherAddr(), readNative8(), readNativeFloat4(), and readNativeFloat8(). |
|
Reimplemented from BinaryFile. Definition at line 939 of file Win32BinaryFile.cpp. References readNative4(). |
|
Reimplemented from BinaryFile. Definition at line 954 of file Win32BinaryFile.cpp. References readNative4(). |
|
Reimplemented from BinaryFile. Definition at line 962 of file Win32BinaryFile.cpp. References readNative4(). |
|
|
Reimplemented from BinaryFile. Definition at line 793 of file Win32BinaryFile.cpp. References count, PEHeader::EntrypointRVA, PEHeader::Imagebase, IsMinGWsAllocStack(), IsMinGWsCleanupSetup(), IsMinGWsFrameEnd(), IsMinGWsFrameInit(), IsMinGWsMalloc(), LMMH, m_pPEHeader, NULL, and PEHeader::Subsystem. |
|
Implements BinaryFile. Definition at line 615 of file Win32BinaryFile.cpp. Referenced by Close(). |
|
Definition at line 896 of file Win32BinaryFile.cpp. Referenced by readNative2(), and win32Read4(). |
|
Definition at line 903 of file Win32BinaryFile.cpp. References win32Read2(). Referenced by readNative4(). |
|
Definition at line 235 of file Win32BinaryFile.h. Referenced by getDelta(), GetMainEntryPoint(), and RealLoad(). |
|
Definition at line 237 of file Win32BinaryFile.h. Referenced by GetMainEntryPoint(), and getSymbols(). |
|
Definition at line 239 of file Win32BinaryFile.h. Referenced by hasDebugInfo(), and IsStaticLinkedLibProc(). |
|
Definition at line 232 of file Win32BinaryFile.h. |
|
Definition at line 233 of file Win32BinaryFile.h. |
|
Definition at line 238 of file Win32BinaryFile.h. Referenced by getFilename(), and RealLoad(). |
|
Definition at line 230 of file Win32BinaryFile.h. Referenced by RealLoad(). |
|
Definition at line 231 of file Win32BinaryFile.h. Referenced by getDelta(), GetEntryPoint(), getImageBase(), getImageSize(), GetMainEntryPoint(), isLibrary(), RealLoad(), and SymbolByAddress(). |
|
Definition at line 234 of file Win32BinaryFile.h. |
|
Definition at line 240 of file Win32BinaryFile.h. Referenced by IsMinGWsAllocStack(), IsMinGWsCleanupSetup(), IsMinGWsFrameEnd(), IsMinGWsFrameInit(), and IsMinGWsMalloc(). |