Code:
[ENABLE] alloc(newmem,2048) //2kb should be enough label(returnhere) label(originalcode) label(exit) 004EB3E3://<----------OFFSET jmp newmem nop returnhere: newmem: //this is allocated memory, you have read,write,execute access //place your code here originalcode: mov eax,00000002 exit: jmp returnhere [DISABLE] mov eax,00000002
Code:
[ENABLE] alloc(DrakoSpeed,16) label(ReturnSpeed) label(SpeedValue) registersymbol(SpeedValue) 007E988A: //<----------OFFSET jmp DrakoSpeed ReturnSpeed: DrakoSpeed: fld dword ptr [SpeedValue] pop edi pop esi jmp ReturnSpeed SpeedValue: db 00 00 20 41 [DISABLE] dealloc(DrakoSpeed) unregistersymbol(SpeedValue) 007E988A: //<----------OFFSET fld dword ptr [eax+08] pop edi pop esi
/complaining






