parent
8122a76182
commit
dcea33c072
@ -0,0 +1,3 @@
|
||||
#include "CryptedCode.h"
|
||||
|
||||
PNATIVE_CODE_BLOCK RxEmitXorForInstruction(PNATIVE_CODE_LINK Link);
|
@ -0,0 +1,11 @@
|
||||
#ifndef __CRYPTED_CODE_H
|
||||
#define __CRYPTED_CODE_H
|
||||
|
||||
#include "Windas.h"
|
||||
#include "XedWrap.h"
|
||||
#include "NativeCode.h"
|
||||
|
||||
PNATIVE_CODE_BLOCK RxEmitXorForInstruction(PNATIVE_CODE_LINK Link);
|
||||
|
||||
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
#include "VirtualMachine.h"
|
||||
|
||||
|
||||
PUCHAR VmEmitVmEnter(PULONG Size)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
PUCHAR VmEmitVmExit(PULONG Size)
|
||||
{
|
||||
return NULL;
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef __VIRTUAL_MACHINE_H
|
||||
#define __VIRTUAL_MACHINE_H
|
||||
|
||||
#include "Windas.h"
|
||||
#include "XedWrap.h"
|
||||
|
||||
typedef struct _VM_DATA
|
||||
{
|
||||
PVOID RegisterFile[32];
|
||||
}VM_DATA, *PVM_DATA;
|
||||
|
||||
/*
|
||||
* VmEnter:
|
||||
* Move all x86 8 byte registers into storage inside of VM_DATA structure.
|
||||
* Move address of VM_DATA structure into rcx
|
||||
* Move virtual instruction pointer into rdx
|
||||
*/
|
||||
PUCHAR VmEmitVmEnter(PULONG Size);
|
||||
PUCHAR VmEmitVmExit(PULONG Size);
|
||||
|
||||
#endif
|
@ -1 +1,15 @@
|
||||
#include "Virtualizer.h"
|
||||
|
||||
BOOL ViCanHandleInst(PNATIVE_CODE_LINK Link)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
BOOL ViValidateNativeCodeBlock(PNATIVE_CODE_BLOCK Block)
|
||||
{
|
||||
for (PNATIVE_CODE_LINK T = Block->Start; T; T = T->Next)
|
||||
{
|
||||
if (!ViCanHandleInst(T))
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
Binary file not shown.
Loading…
Reference in new issue