#include "keyproph.h" //Do not change this file unsigned char ASMFunctionRestore[SIZE_FUNCTION_RESTORE]= { //We need to add in the missing code that modifies the offsets /*0x89,0x79,0x04, //MOV DWORD PTR DS:[ECX+4],EDI 0x89,0x31, //MOV DWORD PTR DS:[ECX],ESI*/ 0x90,0x90,0x90, 0x90,0x90, //*/ /* //We need to add in the missing code that modifies the offsets 0x89,0x79,0x04, //MOV DWORD PTR DS:[ECX+4],EDI 0x89,0x31, //MOV DWORD PTR DS:[ECX],ESI 0x8b,0xf9, //mov edi,ecx 0xb9,0x08,0x01,0x00,0x00, //mov ecx,0x108 0xbe,0xaa,0x04,0x7e,0x00,//#1 //mov esi,CODECAVE+KEY_BACKUP 0xf3,0xa4, //rep movs byte ptr[edi],byte ptr[esi] */ 0x90,0x90, //mov edi,ecx 0x90,0x90,0x90,0x90,0x90, //mov ecx,0x108 /*0x90,0x90,0x89,0x79,0x04,//#1 //mov esi,CODECAVE+KEY_BACKUP 0x89,0x31, //rep movs byte ptr[edi],byte ptr[esi]*/ 0x90,0x90,0x90,0x90,0x90, 0x90,0x90,//*/ 0xb9,0x7e,0x02,0x7e,0x00,//#2 0xb9,0x7e,0x02,0x7e,0x00, //mov ecx,dword ptr[CODECAVE+OLD_ECX_OFF] 0x5b, //pop ebx 0x5f, //pop edi 0xbe,0xb2,0x71,0x53,0x00,//#3 //mov esi,INJECT_KEY+INJECT_KEY_RESTORE_OFF+RETURN_IKR_OFF 0xff,0xe6 //jmp esi };