#include <main_detection.h>
◆ MainDetection()
retdec::bin2llvmir::MainDetection::MainDetection |
( |
| ) |
|
◆ applyResult()
◆ getFromContext()
◆ getFromCrtSetCheckCount()
Try to find main call at _CrtSetCheckCount + 0x2B. Detect if main is called through wrapper.
◆ getFromEntryPointOffset()
TODO: maybe add wrapper handling as in other functions.
◆ getFromFunctionNames()
◆ getFromInterlockedExchange()
Try to find main call at InterlockedExchange + 0x46. Detect if main is called through wrapper.
◆ removeStaticallyLinked()
void retdec::bin2llvmir::MainDetection::removeStaticallyLinked |
( |
| ) |
|
|
private |
Delete statically linked functions bodies only after main detection run. TODO: This is not ideal here, very random, move main detection to decoding? and delete linked bodies right after they have been found? TODO: do this when shared?
◆ run()
bool retdec::bin2llvmir::MainDetection::run |
( |
| ) |
|
|
private |
◆ runOnModule()
bool retdec::bin2llvmir::MainDetection::runOnModule |
( |
llvm::Module & |
M | ) |
|
|
overridevirtual |
◆ runOnModuleCustom()
bool retdec::bin2llvmir::MainDetection::runOnModuleCustom |
( |
llvm::Module & |
m, |
|
|
Config * |
c, |
|
|
FileImage * |
img = nullptr , |
|
|
NameContainer * |
names = nullptr |
|
) |
| |
◆ skipAnalysis()
bool retdec::bin2llvmir::MainDetection::skipAnalysis |
( |
| ) |
|
|
private |
◆ _config
Config* retdec::bin2llvmir::MainDetection::_config = nullptr |
|
private |
◆ _image
FileImage* retdec::bin2llvmir::MainDetection::_image = nullptr |
|
private |
◆ _module
llvm::Module* retdec::bin2llvmir::MainDetection::_module = nullptr |
|
private |
◆ _names
NameContainer* retdec::bin2llvmir::MainDetection::_names = nullptr |
|
private |
◆ ID
char retdec::bin2llvmir::MainDetection::ID = 0 |
|
static |
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/bin2llvmir/optimizations/main_detection/main_detection.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/bin2llvmir/optimizations/main_detection/main_detection.cpp