Advertisement
Guest User

Hitman 2 cheat table.

a guest
Dec 15th, 2019
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.35 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable CheatEngineTableVersion="29">
  3.   <CheatEntries>
  4.     <CheatEntry>
  5.       <ID>3</ID>
  6.       <Description>"Slowmo"</Description>
  7.       <LastState/>
  8.       <VariableType>Auto Assembler Script</VariableType>
  9.       <AssemblerScript>// This code toggles between 1 speedhack and 0.2 speedhack, bind this to a button for matrix mode.
  10. {$lua}
  11.  
  12. [ENABLE]
  13. speedhack_setSpeed(0.2)
  14.  
  15. [DISABLE]
  16. speedhack_setSpeed(1.0)
  17. </AssemblerScript>
  18.       <Hotkeys>
  19.         <Hotkey>
  20.           <Action>Toggle Activation</Action>
  21.           <Keys>
  22.             <Key>6</Key>
  23.           </Keys>
  24.           <ID>0</ID>
  25.         </Hotkey>
  26.       </Hotkeys>
  27.     </CheatEntry>
  28.     <CheatEntry>
  29.       <ID>2</ID>
  30.       <Description>"Infinite ammo"</Description>
  31.       <LastState/>
  32.       <VariableType>Auto Assembler Script</VariableType>
  33.       <AssemblerScript>// This script disables the code that changes the ammo count of the gun in your hand.
  34. // (only works with guns, no gadgets, coins, grenades etc)
  35. [ENABLE]
  36.  
  37. aobscanmodule(INJECT,hitman2.exe,42 89 2C B1 48 8D 8B 08 FC FF FF)
  38. alloc(newmem,$1000,"hitman2.exe"+1531F1)
  39.  
  40. label(code)
  41. label(return)
  42.  
  43. newmem:
  44.   jmp return
  45.  
  46. code:
  47.   mov [rcx+r14*4],ebp
  48.   lea rcx,[rbx-000003F8]
  49.   jmp return
  50.  
  51. INJECT:
  52.   jmp newmem
  53.   nop 6
  54. return:
  55. registersymbol(INJECT)
  56.  
  57. [DISABLE]
  58.  
  59. INJECT:
  60.   db 42 89 2C B1 48 8D 8B 08 FC FF FF
  61.  
  62. unregistersymbol(INJECT)
  63. dealloc(newmem)
  64.  
  65. {
  66. // ORIGINAL CODE - INJECTION POINT: "hitman2.exe"+1531F1
  67.  
  68. "hitman2.exe"+1531CB: 0F 57 D2              -  xorps xmm2,xmm2
  69. "hitman2.exe"+1531CE: BA 03 00 00 00        -  mov edx,00000003
  70. "hitman2.exe"+1531D3: 48 8B CF              -  mov rcx,rdi
  71. "hitman2.exe"+1531D6: E8 75 F8 FF FF        -  call hitman2.exe+152A50
  72. "hitman2.exe"+1531DB: 48 8D 8B 58 03 00 00  -  lea rcx,[rbx+00000358]
  73. "hitman2.exe"+1531E2: 48 8B 41 10           -  mov rax,[rcx+10]
  74. "hitman2.exe"+1531E6: 48 C1 E8 3E           -  shr rax,3E
  75. "hitman2.exe"+1531EA: A8 01                 -  test al,01
  76. "hitman2.exe"+1531EC: 75 03                 -  jne hitman2.exe+1531F1
  77. "hitman2.exe"+1531EE: 48 8B 09              -  mov rcx,[rcx]
  78. // ---------- INJECTING HERE ----------
  79. "hitman2.exe"+1531F1: 42 89 2C B1           -  mov [rcx+r14*4],ebp
  80. "hitman2.exe"+1531F5: 48 8D 8B 08 FC FF FF  -  lea rcx,[rbx-000003F8]
  81. // ---------- DONE INJECTING  ----------
  82. "hitman2.exe"+1531FC: 48 8B 83 08 FC FF FF  -  mov rax,[rbx-000003F8]
  83. "hitman2.exe"+153203: FF 50 58              -  call qword ptr [rax+58]
  84. "hitman2.exe"+153206: 48 39 30              -  cmp [rax],rsi
  85. "hitman2.exe"+153209: 75 23                 -  jne hitman2.exe+15322E
  86. "hitman2.exe"+15320B: 41 B8 05 00 00 00     -  mov r8d,00000005
  87. "hitman2.exe"+153211: 48 8D 15 A0 6F 55 01  -  lea rdx,[hitman2.exe+16AA1B8]
  88. "hitman2.exe"+153218: 48 8D 4C 24 30        -  lea rcx,[rsp+30]
  89. "hitman2.exe"+15321D: E8 DE 4E F8 FF        -  call hitman2.exe+D8100
  90. "hitman2.exe"+153222: 48 8D 44 24 30        -  lea rax,[rsp+30]
  91. "hitman2.exe"+153227: BB 01 00 00 00        -  mov ebx,00000001
  92. }
  93. </AssemblerScript>
  94.       <Hotkeys>
  95.         <Hotkey>
  96.           <Action>Toggle Activation</Action>
  97.           <Keys/>
  98.           <ID>0</ID>
  99.         </Hotkey>
  100.       </Hotkeys>
  101.     </CheatEntry>
  102.     <CheatEntry>
  103.       <ID>5</ID>
  104.       <Description>"No Spot (Non enforcers) doesn't affect cameras"</Description>
  105.       <LastState/>
  106.       <VariableType>Auto Assembler Script</VariableType>
  107.       <AssemblerScript>// This script disables the code that changes the "spot amount" value from non-enforcers.
  108. [ENABLE]
  109.  
  110. aobscanmodule(INJECT,hitman2.exe,F3 0F 11 49 64 89) // should be unique
  111. alloc(newmem,$1000,"hitman2.exe"+2F9843)
  112.  
  113. label(code)
  114. label(return)
  115.  
  116. newmem:
  117.   jmp return
  118.  
  119. code:
  120.   movss [rcx+64],xmm1
  121.   jmp return
  122.  
  123. INJECT:
  124.   jmp newmem
  125. return:
  126. registersymbol(INJECT)
  127.  
  128. [DISABLE]
  129.  
  130. INJECT:
  131.   db F3 0F 11 49 64
  132.  
  133. unregistersymbol(INJECT)
  134. dealloc(newmem)
  135.  
  136. {
  137. // ORIGINAL CODE - INJECTION POINT: "hitman2.exe"+2F9843
  138.  
  139. "hitman2.exe"+2F9837: CC                    -  int 3
  140. "hitman2.exe"+2F9838: CC                    -  int 3
  141. "hitman2.exe"+2F9839: CC                    -  int 3
  142. "hitman2.exe"+2F983A: CC                    -  int 3
  143. "hitman2.exe"+2F983B: CC                    -  int 3
  144. "hitman2.exe"+2F983C: CC                    -  int 3
  145. "hitman2.exe"+2F983D: CC                    -  int 3
  146. "hitman2.exe"+2F983E: CC                    -  int 3
  147. "hitman2.exe"+2F983F: CC                    -  int 3
  148. "hitman2.exe"+2F9840: 8B 41 64              -  mov eax,[rcx+64]
  149. // ---------- INJECTING HERE ----------
  150. "hitman2.exe"+2F9843: F3 0F 11 49 64        -  movss [rcx+64],xmm1
  151. // ---------- DONE INJECTING  ----------
  152. "hitman2.exe"+2F9848: 89 41 68              -  mov [rcx+68],eax
  153. "hitman2.exe"+2F984B: C3                    -  ret
  154. "hitman2.exe"+2F984C: CC                    -  int 3
  155. "hitman2.exe"+2F984D: CC                    -  int 3
  156. "hitman2.exe"+2F984E: CC                    -  int 3
  157. "hitman2.exe"+2F984F: CC                    -  int 3
  158. "hitman2.exe"+2F9850: 80 61 60 FE           -  and byte ptr [rcx+60],-02
  159. "hitman2.exe"+2F9854: 08 51 60              -  or [rcx+60],dl
  160. "hitman2.exe"+2F9857: C3                    -  ret
  161. "hitman2.exe"+2F9858: CC                    -  int 3
  162. }
  163. </AssemblerScript>
  164.     </CheatEntry>
  165.     <CheatEntry>
  166.       <ID>7</ID>
  167.       <Description>"No Spot (Enforcers) doesn't affect cameras"</Description>
  168.       <LastState/>
  169.       <VariableType>Auto Assembler Script</VariableType>
  170.       <AssemblerScript>// This script disables the code that changes the "spot amount" value from enforcers.
  171. [ENABLE]
  172.  
  173. aobscanmodule(INJECT,hitman2.exe,F3 0F 11 49 70 C3) // should be unique
  174. alloc(newmem,$1000,"hitman2.exe"+2F9870)
  175.  
  176. label(code)
  177. label(return)
  178.  
  179. newmem:
  180.   jmp return
  181.  
  182. code:
  183.   movss [rcx+70],xmm1
  184.   jmp return
  185.  
  186. INJECT:
  187.   jmp newmem
  188. return:
  189. registersymbol(INJECT)
  190.  
  191. [DISABLE]
  192.  
  193. INJECT:
  194.   db F3 0F 11 49 70
  195.  
  196. unregistersymbol(INJECT)
  197. dealloc(newmem)
  198.  
  199. {
  200. // ORIGINAL CODE - INJECTION POINT: "hitman2.exe"+2F9870
  201.  
  202. "hitman2.exe"+2F9866: CC                       -  int 3
  203. "hitman2.exe"+2F9867: CC                       -  int 3
  204. "hitman2.exe"+2F9868: CC                       -  int 3
  205. "hitman2.exe"+2F9869: CC                       -  int 3
  206. "hitman2.exe"+2F986A: CC                       -  int 3
  207. "hitman2.exe"+2F986B: CC                       -  int 3
  208. "hitman2.exe"+2F986C: CC                       -  int 3
  209. "hitman2.exe"+2F986D: CC                       -  int 3
  210. "hitman2.exe"+2F986E: CC                       -  int 3
  211. "hitman2.exe"+2F986F: CC                       -  int 3
  212. // ---------- INJECTING HERE ----------
  213. "hitman2.exe"+2F9870: F3 0F 11 49 70           -  movss [rcx+70],xmm1
  214. // ---------- DONE INJECTING  ----------
  215. "hitman2.exe"+2F9875: C3                       -  ret
  216. "hitman2.exe"+2F9876: CC                       -  int 3
  217. "hitman2.exe"+2F9877: CC                       -  int 3
  218. "hitman2.exe"+2F9878: CC                       -  int 3
  219. "hitman2.exe"+2F9879: CC                       -  int 3
  220. "hitman2.exe"+2F987A: CC                       -  int 3
  221. "hitman2.exe"+2F987B: CC                       -  int 3
  222. "hitman2.exe"+2F987C: CC                       -  int 3
  223. "hitman2.exe"+2F987D: CC                       -  int 3
  224. "hitman2.exe"+2F987E: CC                       -  int 3
  225. }
  226. </AssemblerScript>
  227.     </CheatEntry>
  228.   </CheatEntries>
  229.   <UserdefinedSymbols/>
  230. </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement