retdec
|
#include <unpacking_stub.h>
Public Member Functions | |
UnpackingStub (loader::Image *file) | |
virtual | ~UnpackingStub ()=default |
virtual void | unpack (const std::string &outputFile)=0 |
virtual void | cleanup ()=0 |
loader::Image * | getFile () |
Protected Member Functions | |
void | setFile (loader::Image *file) |
Protected Attributes | |
loader::Image * | _file |
Base class for unpacking stubs that can be subclassed in unpacker plugins that work on unpacking stub simulation basis.
|
inline |
Constructs the unpacking stub object operating on provided file.
file | File to operate on. |
|
virtualdefault |
Destructor.
|
pure virtual |
Pure virtual method that should free all owned resources.
Implemented in retdec::unpackertool::upx::PeUpxStub< bits >, retdec::unpackertool::upx::MachOUpxStub< bits >, and retdec::unpackertool::upx::ElfUpxStub< bits >.
|
inline |
Returns the file the unpacking stub is operating on.
|
inlineprotected |
|
pure virtual |
Pure virtual method that should implement unpacking process in its subclasses.
outputFile | Path to the output unpacked file. |
Implemented in retdec::unpackertool::upx::MachOUpxStub< bits >, retdec::unpackertool::upx::ElfUpxStub< bits >, and retdec::unpackertool::upx::PeUpxStub< bits >.
|
protected |