alloc(newmem,4048,"DiabloImmortal.exe"+1244D65)
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

cmp [rdx+0],77687341 // Ashwold Cemetery
jne exit01
mov [rax+8*0],rdx
exit01:

pop rax

exit:

movdqu xmm0,[rdx]
movdqu [rax],xmm0

jmp returnhere

"DiabloImmortal.exe"+1244D65:
jmp newmem
nop
nop
nop
returnhere:

