SHARE
TWEET

Untitled

a guest Nov 18th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable>
  3.   <CheatEntries>
  4.     <CheatEntry>
  5.       <ID>8</ID>
  6.       <Description>"HatWriteHook"</Description>
  7.       <Options moHideChildren="1"/>
  8.       <LastState Activated="1"/>
  9.       <VariableType>Auto Assembler Script</VariableType>
  10.       <AssemblerScript>{ Game   : RDR2.exe
  11.   Version:
  12.   Date   : 2019-11-06
  13.   Author : omega
  14.  
  15.   This script does blah blah blah
  16. }
  17.  
  18. [ENABLE]
  19. //code from here to '[DISABLE]' will be used to enable the cheat
  20.  
  21.  
  22.  
  23. aobscanmodule(HatWriteHook,RDR2.exe,49 89 04 C9 41 3B D0) // should be unique
  24. alloc(newmem,$1000,HatWriteHook)
  25. alloc(hatvaluetocompare,8,HatWriteHook)
  26. alloc(hatwritehookxd,8,HatWriteHook)
  27.  
  28. registersymbol(hatvaluetocompare)
  29. registersymbol(hatwritehookxd)
  30. label(code)
  31. label(return)
  32.  
  33. hatvaluetocompare:
  34. dq A468E782 //Worn Gambler's Hat
  35.  
  36. hatwritehookxd:
  37. dq 0
  38.  
  39. newmem:
  40.   cmp rax,[hatvaluetocompare]
  41.   jne code
  42.   mov [hatwritehookxd],r9
  43.   mov [r9+rcx*8],rax
  44.   cmp edx,r8d
  45.   jmp return
  46.  
  47. code:
  48.   mov [r9+rcx*8],rax
  49.   cmp edx,r8d
  50.   jmp return
  51.  
  52. HatWriteHook:
  53.   jmp newmem
  54.   nop 2
  55. return:
  56. registersymbol(HatWriteHook)
  57.  
  58. [DISABLE]
  59. //code from here till the end of the code will be used to disable the cheat
  60. HatWriteHook:
  61.   db 49 89 04 C9 41 3B D0
  62.  
  63. unregistersymbol(HatWriteHook)
  64. unregistersymbol(hatvaluetocompare)
  65. unregistersymbol(hatwritehookxd)
  66. dealloc(newmem)
  67. dealloc(hatvaluetocompare)
  68. dealloc(hatwritehookxd)
  69.  
  70. {
  71. // ORIGINAL CODE - INJECTION POINT: "RDR2.exe"+2A0F64C
  72.  
  73. "RDR2.exe"+2A0F62C: 4C 8B 0B           -  mov r9,[rbx]
  74. "RDR2.exe"+2A0F62F: 48 83 EB 10        -  sub rbx,10
  75. "RDR2.exe"+2A0F633: 45 85 C0           -  test r8d,r8d
  76. "RDR2.exe"+2A0F636: 0F 84 61 E8 FF FF  -  je RDR2.exe+2A0DE9D
  77. "RDR2.exe"+2A0F63C: 48 8B 03           -  mov rax,[rbx]
  78. "RDR2.exe"+2A0F63F: 41 8B C8           -  mov ecx,r8d
  79. "RDR2.exe"+2A0F642: 2B CA              -  sub ecx,edx
  80. "RDR2.exe"+2A0F644: 48 83 EB 08        -  sub rbx,08
  81. "RDR2.exe"+2A0F648: FF C9              -  dec ecx
  82. "RDR2.exe"+2A0F64A: FF C2              -  inc edx
  83. // ---------- INJECTING HERE ----------
  84. "RDR2.exe"+2A0F64C: 49 89 04 C9        -  mov [r9+rcx*8],rax
  85. "RDR2.exe"+2A0F650: 41 3B D0           -  cmp edx,r8d
  86. // ---------- DONE INJECTING  ----------
  87. "RDR2.exe"+2A0F653: 72 E7              -  jb RDR2.exe+2A0F63C
  88. "RDR2.exe"+2A0F655: E9 43 E8 FF FF     -  jmp RDR2.exe+2A0DE9D
  89. "RDR2.exe"+2A0F65A: 48 83 EB 08        -  sub rbx,08
  90. "RDR2.exe"+2A0F65E: 41 83 38 00        -  cmp dword ptr [r8],00
  91. "RDR2.exe"+2A0F662: E9 D0 F9 FF FF     -  jmp RDR2.exe+2A0F037
  92. "RDR2.exe"+2A0F667: 8B 07              -  mov eax,[rdi]
  93. "RDR2.exe"+2A0F669: 48 83 C7 03        -  add rdi,03
  94. "RDR2.exe"+2A0F66D: C1 E8 08           -  shr eax,08
  95. "RDR2.exe"+2A0F670: 48 83 EB 08        -  sub rbx,08
  96. "RDR2.exe"+2A0F674: 8B C8              -  mov ecx,eax
  97. }
  98. </AssemblerScript>
  99.       <CheatEntries>
  100.         <CheatEntry>
  101.           <ID>9</ID>
  102.           <Description>"No description"</Description>
  103.           <LastState Value="000002063773D1A0" RealAddress="7FF741D41008"/>
  104.           <ShowAsHex>1</ShowAsHex>
  105.           <VariableType>8 Bytes</VariableType>
  106.           <Address>hatwritehookxd</Address>
  107.         </CheatEntry>
  108.         <CheatEntry>
  109.           <ID>16196</ID>
  110.           <Description>"Hat"</Description>
  111.           <LastState Value="00000000A468E782" RealAddress="2063773D1A0"/>
  112.           <ShowAsHex>1</ShowAsHex>
  113.           <VariableType>8 Bytes</VariableType>
  114.           <Address>hatwritehookxd</Address>
  115.           <Offsets>
  116.             <Offset>0</Offset>
  117.           </Offsets>
  118.         </CheatEntry>
  119.       </CheatEntries>
  120.     </CheatEntry>
  121.   </CheatEntries>
  122. </CheatTable>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top