alloc(newmem,4048,"DiabloImmortal.exe"+15B77A0)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:


push rax // address
mov rax,newmem+500 // address 0x0 value vtmem

//mov byte ptr [rcx+6C],01 // test



mov [rax],rsi
mov [rax+8],rbx

exit01:
pop rax


exit:

mov rax,[rsi+rbx]
inc [rax]
// [rsi+rbx] = id enemy attack player



jmp returnhere

"DiabloImmortal.exe"+15B77A0:
jmp newmem
nop
nop
returnhere:

