Gun Mod (Go to Customize and highlight gun)
- Changes are non-permanent and resets when game is closed
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>34</ID>
<Description>"Gun Mod"</Description>
<Options moHideChildren="1"/>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
alloc(gunPtr,8,Resonance of Fate.exe)
alloc(gunPtr2,8,Resonance of Fate.exe)
registersymbol(gunPtr)
registersymbol(gunPtr2)
aobscanmodule(aob_gunMod,Resonance of Fate.exe,48 8B C8 40 84 ED)
registersymbol(aob_gunMod)
alloc(newmem_gunMod,1024,Resonance of Fate.exe)
label(return_gunMod)
newmem_gunMod:
mov [gunPtr],rax
mov rcx,rax
test bpl,bpl
jmp return_gunMod
aob_gunMod:
jmp newmem_gunMod
nop
return_gunMod:
////////////////////////////////////////////////////////////////////////////////////////////////////
aobscanmodule(aob_gunMod2Tmp,Resonance of Fate.exe,98 FD FF 48 85 C0 74 1C 0F 10 00 0F 11 03)
label(aob_gunMod2)
registersymbol(aob_gunMod2)
alloc(newmem_gunMod2,1024,Resonance of Fate.exe)
label(return_gunMod2)
newmem_gunMod2:
mov [gunPtr2],rax
movups xmm0,[rax]
movups [rbx],xmm0
jmp return_gunMod2
aob_gunMod2Tmp+08:
aob_gunMod2:
jmp newmem_gunMod2
nop
return_gunMod2:
[DISABLE]
aob_gunMod:
db 48 8B C8 40 84 ED
unregistersymbol(aob_gunMod)
dealloc(newmem_gunMod)
{
// ORIGINAL CODE - INJECTION POINT: "Resonance of Fate.exe"+17CB0B
"Resonance of Fate.exe"+17CAE4: 48 8B CF - mov rcx,rdi
"Resonance of Fate.exe"+17CAE7: 0F 29 74 24 20 - movaps [rsp+20],xmm6
"Resonance of Fate.exe"+17CAEC: E8 3F D5 FF FF - call "Resonance of Fate.exe"+17A030
"Resonance of Fate.exe"+17CAF1: 48 8B F0 - mov rsi,rax
"Resonance of Fate.exe"+17CAF4: 0F 57 F6 - xorps xmm6,xmm6
"Resonance of Fate.exe"+17CAF7: 48 85 C0 - test rax,rax
"Resonance of Fate.exe"+17CAFA: 0F 84 2F 01 00 00 - je "Resonance of Fate.exe"+17CC2F
"Resonance of Fate.exe"+17CB00: 8B 50 10 - mov edx,[rax+10]
"Resonance of Fate.exe"+17CB03: 49 8B CF - mov rcx,r15
"Resonance of Fate.exe"+17CB06: E8 C5 98 FD FF - call "Resonance of Fate.exe"+1563D0
// ---------- INJECTING HERE ----------
"Resonance of Fate.exe"+17CB0B: 48 8B C8 - mov rcx,rax
"Resonance of Fate.exe"+17CB0E: 40 84 ED - test bpl,bpl
// ---------- DONE INJECTING ----------
"Resonance of Fate.exe"+17CB11: 75 35 - jne "Resonance of Fate.exe"+17CB48
"Resonance of Fate.exe"+17CB13: 48 85 C0 - test rax,rax
"Resonance of Fate.exe"+17CB16: 0F 84 D3 02 00 00 - je "Resonance of Fate.exe"+17CDEF
"Resonance of Fate.exe"+17CB1C: 0F 10 00 - movups xmm0,[rax]
"Resonance of Fate.exe"+17CB1F: 0F 11 43 34 - movups [rbx+34],xmm0
"Resonance of Fate.exe"+17CB23: 0F 10 48 10 - movups xmm1,[rax+10]
"Resonance of Fate.exe"+17CB27: 0F 11 4B 44 - movups [rbx+44],xmm1
"Resonance of Fate.exe"+17CB2B: 0F 10 40 20 - movups xmm0,[rax+20]
"Resonance of Fate.exe"+17CB2F: 0F 11 43 54 - movups [rbx+54],xmm0
"Resonance of Fate.exe"+17CB33: F2 0F 10 48 30 - movsd xmm1,[rax+30]
}
////////////////////////////////////////////////////////////////////////////////////////////////////
aob_gunMod2:
db 0F 10 00 0F 11 03
unregistersymbol(aob_gunMod2)
dealloc(newmem_gunMod2)
{
// ORIGINAL CODE - INJECTION POINT: "Resonance of Fate.exe"+17CC13
"Resonance of Fate.exe"+17CBF4: 72 06 - jb "Resonance of Fate.exe"+17CBFC
"Resonance of Fate.exe"+17CBF6: 8B 41 38 - mov eax,[rcx+38]
"Resonance of Fate.exe"+17CBF9: 89 43 6C - mov [rbx+6C],eax
"Resonance of Fate.exe"+17CBFC: 0F B6 41 2C - movzx eax,byte ptr [rcx+2C]
"Resonance of Fate.exe"+17CC00: 88 43 60 - mov [rbx+60],al
"Resonance of Fate.exe"+17CC03: 8B 56 0C - mov edx,[rsi+0C]
"Resonance of Fate.exe"+17CC06: 49 8B CF - mov rcx,r15
"Resonance of Fate.exe"+17CC09: E8 82 98 FD FF - call "Resonance of Fate.exe"+156490
"Resonance of Fate.exe"+17CC0E: 48 85 C0 - test rax,rax
"Resonance of Fate.exe"+17CC11: 74 1C - je "Resonance of Fate.exe"+17CC2F
// ---------- INJECTING HERE ----------
"Resonance of Fate.exe"+17CC13: 0F 10 00 - movups xmm0,[rax]
"Resonance of Fate.exe"+17CC16: 0F 11 03 - movups [rbx],xmm0
// ---------- DONE INJECTING ----------
"Resonance of Fate.exe"+17CC19: 0F 10 48 10 - movups xmm1,[rax+10]
"Resonance of Fate.exe"+17CC1D: 0F 11 4B 10 - movups [rbx+10],xmm1
"Resonance of Fate.exe"+17CC21: 0F 10 40 20 - movups xmm0,[rax+20]
"Resonance of Fate.exe"+17CC25: 0F 11 43 20 - movups [rbx+20],xmm0
"Resonance of Fate.exe"+17CC29: 8B 40 30 - mov eax,[rax+30]
"Resonance of Fate.exe"+17CC2C: 89 43 30 - mov [rbx+30],eax
"Resonance of Fate.exe"+17CC2F: 48 8B CF - mov rcx,rdi
"Resonance of Fate.exe"+17CC32: E8 D9 D5 FF FF - call "Resonance of Fate.exe"+17A210
"Resonance of Fate.exe"+17CC37: 0F B7 D0 - movzx edx,ax
"Resonance of Fate.exe"+17CC3A: 49 8B CE - mov rcx,r14
}
unregistersymbol(gunPtr)
unregistersymbol(gunPtr2)
dealloc(gunPtr)
dealloc(gunPtr2)
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>47</ID>
<Description>"Fixed Attribute"</Description>
<Color>000000</Color>
<VariableType>4 Bytes</VariableType>
<Address>gunPtr</Address>
<Offsets>
<Offset>0</Offset>
</Offsets>
<CheatEntries>
<CheatEntry>
<ID>48</ID>
<Description>"Attack Power"</Description>
<VariableType>4 Bytes</VariableType>
<Address>+8</Address>
</CheatEntry>
<CheatEntry>
<ID>49</ID>
<Description>"Knockback"</Description>
<VariableType>Float</VariableType>
<Address>+20</Address>
</CheatEntry>
<CheatEntry>
<ID>50</ID>
<Description>"Gauge Break = X * 100"</Description>
<VariableType>Float</VariableType>
<Address>+38</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>36</ID>
<Description>"Customizable Attribute"</Description>
<VariableType>4 Bytes</VariableType>
<Address>gunPtr2</Address>
<Offsets>
<Offset>0</Offset>
</Offsets>
<CheatEntries>
<CheatEntry>
<ID>37</ID>
<Description>"Magazine Size"</Description>
<VariableType>4 Bytes</VariableType>
<Address>+18</Address>
</CheatEntry>
<CheatEntry>
<ID>38</ID>
<Description>"Rate of Fire = 100 - X"</Description>
<VariableType>4 Bytes</VariableType>
<Address>+1C</Address>
</CheatEntry>
<CheatEntry>
<ID>39</ID>
<Description>"Charge Speed = X / 100"</Description>
<VariableType>4 Bytes</VariableType>
<Address>+20</Address>
</CheatEntry>
<CheatEntry>
<ID>40</ID>
<Description>"Bullet Focus = 99 - (X * 10)"</Description>
<VariableType>Float</VariableType>
<Address>+24</Address>
</CheatEntry>
<CheatEntry>
<ID>41</ID>
<Description>"Charge Acceleration = (X * 100) - 100"</Description>
<VariableType>Float</VariableType>
<Address>+28</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>