alloc(newmem,2048,"DiabloImmortal.exe"+BEBE0) 
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:

// [rcx+10] = number step move



mov rax,[rcx+10]
ret 

exit:
jmp returnhere

"DiabloImmortal.exe"+BEBE0:
jmp newmem
returnhere:

