32 bit assembler helper
More...
#include <AsmHelper32.h>
|
| virtual void | GenPrologue (bool switchMode=false) |
| | Generate function prologue code More...
|
| |
| virtual void | GenEpilogue (bool switchMode=false, int retSize=4) |
| | Generate function epilogue code More...
|
| |
| virtual void | GenCall (const AsmVariant &pFN, const std::vector< AsmVariant > &args, eCalligConvention cc=cc_stdcall) |
| | Generate function call More...
|
| |
| virtual void | ExitThreadWithStatus (size_t pExitThread, size_t resultPtr) |
| | Save eax value and terminate current thread More...
|
| |
| virtual void | SaveRetValAndSignalEvent (size_t pSetEvent, size_t ResultPtr, size_t EventPtr, size_t errPtr, eReturnType rtype=rt_int32) |
| | Save return value and signal thread return event More...
|
| |
| virtual void | EnableX64CallStack (bool) |
| | Does nothing under x86 More...
|
| |
| virtual void | SetTebPtr () |
| | Move TEB pointer into edx More...
|
| |
| BLACKBONE_API void | SwitchTo86 () |
| | Switch processor into WOW64 emulation mode More...
|
| |
| BLACKBONE_API void | SwitchTo64 () |
| | Switch processor into x64 mode (long mode) More...
|
| |
BLACKBONE_API
asmjit::X86Assembler * | assembler () |
| |
BLACKBONE_API
asmjit::X86Assembler * | operator-> () |
| |
|
|
asmjit::JitRuntime | _runtime |
| |
|
asmjit::X86Assembler | _assembler |
| |
| virtual void blackbone::AsmHelper32::EnableX64CallStack |
( |
bool |
| ) |
|
|
inlinevirtual |
| void blackbone::AsmHelper32::ExitThreadWithStatus |
( |
size_t |
pExitThread, |
|
|
size_t |
resultPtr = 0 |
|
) |
| |
|
virtual |
Save eax value and terminate current thread
- Parameters
-
| pExitThread | NtTerminateThread address |
| resultPtr | Memry where eax value will be saved |
Implements blackbone::AsmHelperBase.
| void blackbone::AsmHelper32::GenCall |
( |
const AsmVariant & |
pFN, |
|
|
const std::vector< AsmVariant > & |
args, |
|
|
eCalligConvention |
cc = cc_stdcall |
|
) |
| |
|
virtual |
Generate function call
- Parameters
-
| pFN | Function pointer |
| args | Function arguments |
| cc | Calling convention |
Implements blackbone::AsmHelperBase.
| void blackbone::AsmHelper32::GenEpilogue |
( |
bool |
switchMode = false, |
|
|
int |
retSize = 4 |
|
) |
| |
|
virtual |
Generate function epilogue code
- Parameters
-
| switchMode | Unused |
| retSize | Stack change value |
Implements blackbone::AsmHelperBase.
| void blackbone::AsmHelper32::GenPrologue |
( |
bool |
switchMode = false | ) |
|
|
virtual |
| void blackbone::AsmHelper32::SaveRetValAndSignalEvent |
( |
size_t |
pSetEvent, |
|
|
size_t |
ResultPtr, |
|
|
size_t |
EventPtr, |
|
|
size_t |
errPtr, |
|
|
eReturnType |
rtype = rt_int32 |
|
) |
| |
|
virtual |
Save return value and signal thread return event
- Parameters
-
| pSetEvent | NtSetEvent address |
| ResultPtr | Result value memory location |
| EventPtr | Event memory location |
| errPtr | Error code memory location |
| rtype | Return type |
Implements blackbone::AsmHelperBase.
| virtual void blackbone::AsmHelper32::SetTebPtr |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following files:
- C:/Users/Ton/Documents/visual studio 2013/projects/blackbone/src/BlackBone/Asm/AsmHelper32.h
- C:/Users/Ton/Documents/visual studio 2013/projects/blackbone/src/BlackBone/Asm/AsmHelper32.cpp