alloc(newmem,4048,"DiabloImmortal.exe"+1244D00)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
movups xmm0,[rdx]
movups xmm1,[rdx+r8-10]
//movups [rcx],xmm0
//movups [rcx+r8-10],xmm1
// rdx+0 = color hex
// rdx+7 = text

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem

cmp [rdx+7],6C6C694B // Kill the Rift Guardian
jne exit02
cmp [rdx+15],72617547 // Kill the Rift Guardian
jne exit02
mov [rax+8*0],2
mov [rax+8*1],rdx
exit02:


pop rax


exit:
jmp returnhere

"DiabloImmortal.exe"+1244D00:
jmp newmem
nop
nop
nop
nop
returnhere:

