alloc(newmem,4048,"DiabloImmortal.exe"+15BEB27)
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

cmp [r14+68],5F317878 // xx1_submat
jne exit01
cmp [r14+6C],6D627573 // xx1_submat
jne exit01
mov [rax],r14

exit01:
pop rax

exit:

mov [r14],rdi
add r14,08

jmp returnhere

"DiabloImmortal.exe"+15BEB27:
jmp newmem
nop
nop
returnhere:

