|
virtual void | GenPrologue (bool switchMode=false) |
| Generate function prologue code More...
|
|
virtual void | GenEpilogue (bool switchMode=false, int retSize=0) |
| 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 (uint64_t pExitThread, size_t resultPtr=0) |
| Save rax value and terminate current thread More...
|
|
virtual void | SaveRetValAndSignalEvent (size_t pSetEvent, size_t ResultPtr, size_t EventPtr, size_t lastStatusPtr, eReturnType rtype=rt_int32) |
| Save return value and signal thread return event More...
|
|
virtual void | EnableX64CallStack (bool state) |
| Set stack reservation policy on call generation More...
|
|
virtual void | SetTebPtr () |
| Move TEB pointer into rdx More...
|
|
virtual void | ExitThreadWithStatus (size_t pExitThread, size_t resultPtr)=0 |
|
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::host::Assembler * | operator-> () |
|
|
asmjit::JitRuntime | _runtime |
|
asmjit::host::Assembler | _assembler |
|
void blackbone::AsmHelper64::EnableX64CallStack |
( |
bool |
state | ) |
|
|
virtual |
Set stack reservation policy on call generation
- Parameters
-
state | If true - stack space will be reserved during each call generation If false - no automatic stack reservation, user must allocate stack by hand |
Implements blackbone::AsmHelperBase.
void blackbone::AsmHelper64::ExitThreadWithStatus |
( |
uint64_t |
pExitThread, |
|
|
size_t |
resultPtr = 0 |
|
) |
| |
|
virtual |
Save rax value and terminate current thread
- Parameters
-
pExitThread | NtTerminateThread address |
resultPtr | Memry where rax value will be saved |
void blackbone::AsmHelper64::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 | Ignored |
Implements blackbone::AsmHelperBase.
void blackbone::AsmHelper64::GenEpilogue |
( |
bool |
switchMode = false , |
|
|
int |
retSize = 0 |
|
) |
| |
|
virtual |
Generate function epilogue code
- Parameters
-
switchMode | true if execution must be swithed to x86 mode |
retSize | Stack change value |
Implements blackbone::AsmHelperBase.
void blackbone::AsmHelper64::GenPrologue |
( |
bool |
switchMode = false | ) |
|
|
virtual |
Generate function prologue code
- Parameters
-
switchMode | true if execution must be swithed to x64 mode |
Implements blackbone::AsmHelperBase.
void blackbone::AsmHelper64::SaveRetValAndSignalEvent |
( |
size_t |
pSetEvent, |
|
|
size_t |
ResultPtr, |
|
|
size_t |
EventPtr, |
|
|
size_t |
lastStatusPtr, |
|
|
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::AsmHelper64::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/AsmHelper64.h
- C:/Users/Ton/Documents/Visual Studio 2013/Projects/BlackBone/src/BlackBone/Asm/AsmHelper64.cpp