[ENABLE]
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
originalcode:
mov [ecx],00000004
mov eax,[ecx]
pop esi
pop ecx
ret
exit:
jmp returnhere
00458465:
jmp newmem
returnhere:
[DISABLE]
dealloc(newmem)