#include "keyproph.h" //This file should not be changed unsigned char ASMFunction[SIZE_FUNCTION_ASM]= { 0x56, //push esi 0x50, //push eax 0x03,0x0c2, //add eax,edx 0x8b,0xf0, //mov esi,eax //5 from 0 //old code 0x89,0x55,0x10, //mov dword ptr[ebp+0x10],edx 0x8b,0x55,0x08, //mov edx,dword ptr[ebp+0x08] 0x89,0x55,0x08, 0x89,0x8b,0xaa,0x03,0x00,0x00,//#1 //mov dword ptr[ebx+OLD_ECX_OFF],ecx ;store the original value of ecx 0xB9,0xA0,0x03,0x7E,0x00,//#2//mem address //mov ecx,CODECAVE+DATA_OFFSET ;change ecx to point to our data //end //25 from 0 0xb8,0xc2,0x05,0x7e,0x00,//#3//addr //mov eax,007E05C2h 0x8a,0x18, //mov bl,[eax] 0x80,0xfb,0x01, //cmp bl,01h 0x0f,0x85,0x00,0x00,0x00,0x00,//#4//off //jnz L1000101D 0xbb,0xaa,0x02,0x7e,0x00,//#5//addr //mov ebx,007E02AAh 0xff,0xe3, //0xff,0xe3, //jmp ebx //48 from 0 0x58, //pop eax 0x5e, //pop esi //50 from 0 //old code 0xBB,0x63,0x71,0x53,0x00,//#6//mem addr //mov ebx,INJECT_KEY+RETURN_IK_OFF //Grab the offsets and place them in the registers 5 bytes /*0x8b,0x31, 0x8b,0x79,0x04,*/ 0x90,0x90, 0x90,0x90,0x90, 0xff,0xe3 //jmp ebx //57 from 0 };