Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>1015</ID>
<Description>"Inf/Max Item"</Description>
<LastState/>
<Color>008000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{======================
Author : aanpsx
Date : 2021-02-09
Game : nioh2.exe
Version : 1.0.0.0
======================}
define(bytes_GetItems,db 49 8B CE 48 8B D8)
define(fmax,(float)999999999)
define(imax,#999999999)
define(fmin,(float)0)
define(mov1,mov byte ptr)
define(cmp1,cmp byte ptr)
define(bit,byte ptr)
define(8b,dq 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
// 0 81018202830384048505860687078808890
[ENABLE]
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x000080ff
-------------- A.B.G.R
{$asm}
aobscanmodule(PSX_GetItems,nioh2.exe,49 8B CE 48 8B D8 E8 ** ** ** ** 4C 8B CE 89)
alloc(newmem_GetItems,$1000,PSX_GetItems)
label(_GetItems)
label(code_GetItems)
registersymbol(_GetItems)
registersymbol(PSX_GetItems)
registersymbol(code_GetItems)
newmem_GetItems:
mov [_GetItems],rcx //main pointer
mov rcx,r14
movzx ebx,word ptr [rcx+04]
cmp ebx,63
jg @f
mov word ptr [rcx+04],63
jmp exit_GetItems
@@:
cmp ebx,3E7
jg @f
mov word ptr [rcx+04],03E7
jmp exit_GetItems
@@:
mov word ptr [rcx+04],270F
exit_GetItems:
mov rbx,rax
jmp return_GetItems
code_GetItems:
readmem(PSX_GetItems,6)
jmp return_GetItems
_GetItems:
8b
PSX_GetItems:
jmp newmem_GetItems
nop
return_GetItems:
[DISABLE]
unregistersymbol(*)//unreg all
dealloc(*)//dealoc all
//unregistersymbol(_GetItems)
//unregistersymbol(PSX_GetItems)
//unregistersymbol(code_GetItems)
//dealloc(newmem_GetItems)
PSX_GetItems:
readmem(code_GetItems,6)
//Alt: mov rcx,r14
//Alt: mov rbx,rax
{$lua}
if syntaxcheck then return end
-----------------------
memrec.Color=0x00008000
-------------- A.B.G.R
{$asm}
{
// ORIGINAL CODE - INJECTION POINT: nioh2.exe+12DED30
nioh2.exe+12DECD2: E9 84 01 00 00 - jmp nioh2.exe+12DEE5B
nioh2.exe+12DECD7: 48 8B 0D 9A 21 46 01 - mov rcx,[nioh2.exe+2740E78]
nioh2.exe+12DECDE: BA 1E D6 32 00 - mov edx,0032D61E
nioh2.exe+12DECE3: E8 38 02 28 00 - call nioh2.exe+155EF20
nioh2.exe+12DECE8: 4C 8B C0 - mov r8,rax
nioh2.exe+12DECEB: 48 8D 4D 90 - lea rcx,[rbp-70]
nioh2.exe+12DECEF: BA 40 00 00 00 - mov edx,00000040
nioh2.exe+12DECF4: E8 77 68 8F FF - call nioh2.exe+BD5570
nioh2.exe+12DECF9: E9 5D 01 00 00 - jmp nioh2.exe+12DEE5B
nioh2.exe+12DECFE: 48 8B 35 0B CF 2B 01 - mov rsi,[nioh2.exe+259BC10]
nioh2.exe+12DED05: 80 F9 02 - cmp cl,02
nioh2.exe+12DED08: 75 15 - jne nioh2.exe+12DED1F
nioh2.exe+12DED0A: 41 8B 55 00 - mov edx,[r13+00]
nioh2.exe+12DED0E: 48 8B CB - mov rcx,rbx
nioh2.exe+12DED11: E8 6A C8 9F FF - call nioh2.exe+CDB580
nioh2.exe+12DED16: 48 8B 35 13 7F 81 01 - mov rsi,[nioh2.exe+2AF6C30]
nioh2.exe+12DED1D: 8B F8 - mov edi,eax
nioh2.exe+12DED1F: 48 8B 0D 52 21 46 01 - mov rcx,[nioh2.exe+2740E78]
nioh2.exe+12DED26: BA 43 11 1D 00 - mov edx,001D1143
nioh2.exe+12DED2B: E8 F0 01 28 00 - call nioh2.exe+155EF20
// ---------- INJECTING HERE ----------
nioh2.exe+12DED30: 49 8B CE - mov rcx,r14
// ---------- DONE INJECTING ----------
nioh2.exe+12DED33: 48 8B D8 - mov rbx,rax
nioh2.exe+12DED36: E8 95 57 C7 FF - call nioh2.exe+F544D0
nioh2.exe+12DED3B: 4C 8B CE - mov r9,rsi
nioh2.exe+12DED3E: 89 7C 24 28 - mov [rsp+28],edi
nioh2.exe+12DED42: 4C 8B C3 - mov r8,rbx
nioh2.exe+12DED45: 89 44 24 20 - mov [rsp+20],eax
nioh2.exe+12DED49: BA 40 00 00 00 - mov edx,00000040
nioh2.exe+12DED4E: 48 8D 4D 90 - lea rcx,[rbp-70]
nioh2.exe+12DED52: E8 19 68 8F FF - call nioh2.exe+BD5570
nioh2.exe+12DED57: E9 FF 00 00 00 - jmp nioh2.exe+12DEE5B
nioh2.exe+12DED5C: 41 F7 46 10 00 44 00 00 - test [r14+10],00004400
nioh2.exe+12DED64: 0F 85 B8 00 00 00 - jne nioh2.exe+12DEE22
nioh2.exe+12DED6A: 45 0F B7 6E 0A - movzx r13d,word ptr [r14+0A]
nioh2.exe+12DED6F: BB 78 00 00 00 - mov ebx,00000078
nioh2.exe+12DED74: 66 41 3B DD - cmp bx,r13w
nioh2.exe+12DED78: 41 0F B7 C5 - movzx eax,r13w
nioh2.exe+12DED7C: 66 0F 42 C3 - cmovb ax,bx
nioh2.exe+12DED80: 66 85 C0 - test ax,ax
nioh2.exe+12DED83: 74 62 - je nioh2.exe+12DEDE7
nioh2.exe+12DED85: 41 0F B6 7E 14 - movzx edi,byte ptr [r14+14]
}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatTable>