Advertisement
tcyknhrabirwjyljhp

Untitled

May 1st, 2021
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable>
  3. <CheatEntries>
  4. <CheatEntry>
  5. <ID>27060</ID>
  6. <Description>"Enable 4.1.7"</Description>
  7. <Options moDeactivateChildrenAsWell="1"/>
  8. <LastState Activated="1"/>
  9. <Color>0000FF</Color>
  10. <VariableType>Auto Assembler Script</VariableType>
  11. <AssemblerScript Async="1">{$lua}
  12. if syntaxcheck then return end
  13. --print(string.format("%X",0))
  14.  
  15. function aobScanEx( aob )
  16. local Proc = "GameAssembly.dll"
  17. local p, a, n, s, e = nil or '*X*W', nil or fsmNotAligned, nil or '0', getAddress( Proc ) or 0x0, ( getAddress( Proc ) + getModuleSize( Proc ) ) or 0xffffffffffffffff
  18. local ms = pb and createMemScan( pb ) or createMemScan()
  19. local fl = createFoundList( ms )
  20. ms.firstScan( soExactValue, vtByteArray, nil, aob, nil, s, e, p, a, n, true, false, false, false )
  21. ms.waitTillDone()
  22. fl.initialize()
  23. local result = nil
  24. if fl ~= nil and fl.getCount() &gt; 0 then
  25. result = createStringlist()
  26. for i = 1, fl.getCount() do result.add( fl.getAddress( i - 1 ) ) end
  27. end
  28. fl.destroy()
  29. ms.destroy()
  30. return result
  31. end
  32.  
  33. function string.fromhex( s )
  34. return ( s:gsub( '..', function ( cc )
  35. return string.char( tonumber( cc, 16 ) )
  36. end ) )
  37. end
  38.  
  39. function aobScanSmall( aob, s, e )
  40. local i = byteTableToString( readBytes( s, e, true ) ):find( string.fromhex( aob ), 1, true )
  41. if i == nil then i = 1 end
  42. return ( s + i - 1 )
  43. end
  44.  
  45. function EnableHook()
  46. local B = getAddressSafe( "GameAssembly.dll" )
  47. local O = 0x500
  48. qCaveAdd = B + O
  49. fullAccess( qCaveAdd, 0x500)
  50. executeCodeEx( 0, nil, getAddressSafe( "RtlZeroMemory" ), qCaveAdd, 0x500 )
  51. unregisterSymbol( "CodeCave" )
  52. registerSymbol( "CodeCave", qCaveAdd, true )
  53.  
  54. ----
  55. ----
  56.  
  57. local pInsideRemoveCur = "48 8B 43 20 0F 28 F0 48 85 C0 0F"
  58. pInsideRemoveCur = aobScanEx( pInsideRemoveCur )
  59. local t = tonumber( pInsideRemoveCur[0], 16 )
  60.  
  61. pInsideRemoveCur = aobScanSmall( "40534881EC", (t-120), 0x100 )
  62. unregisterSymbol( "pInsideCur" )
  63. registerSymbol( "pInsideCur", pInsideRemoveCur, true )
  64.  
  65. AutoAssemble([[
  66. aobscanmodule(aobCallRemoveCur,GameAssembly.dll,0F 10 83 38 03 00 00 45 33 C0 48 8D 55 C7 0F 10 8B 48 03 00 00 48 8B C8 0F 29 45 C7 0F 10 83 58 03 00 00 0F 29 4D D7 0F 10 8B 68 03 00 00 0F 29 45 E7 0F 10 83 78 03 00 00 0F 29 4D F7 F2 0F 10 8B 88 03 00 00 0F 29 45 07 F2 0F 11 4D 17 E8 ** ** ** ** 33 D2 48 8B CB) // should be unique
  67. label(pRemoveCur)
  68. registersymbol(pRemoveCur)
  69.  
  70. aobCallRemoveCur+4D+(DWORD)[aobCallRemoveCur+4F]+06:
  71. pRemoveCur:
  72.  
  73. registersymbol(aobCallRemoveCur)
  74.  
  75. //
  76.  
  77. aobscanmodule(aobCallDamageMember,GameAssembly.dll,41 FF 92 80 01 00 00 48 8B 4E) // should be unique
  78.  
  79. label(return)
  80. label(pDamage)
  81. registersymbol(pDamage)
  82.  
  83.  
  84. CodeCave:
  85. push rax
  86. mov rax,[r10+180]
  87. mov [pDamage],rax
  88. pop rax
  89. call qword ptr [r10+00000180]
  90. jmp return
  91. pDamage:
  92. dq 0
  93.  
  94. aobCallDamageMember:
  95. jmp CodeCave
  96. nop 2
  97. return:
  98. registersymbol(aobCallDamageMember)
  99.  
  100. ]])
  101.  
  102. end
  103.  
  104. [ENABLE]
  105.  
  106. return EnableHook()
  107.  
  108. [DISABLE]
  109.  
  110. local pCodeCave = getAddressSafe( "CodeCave" )
  111. executeCodeEx( 0, nil, getAddressSafe( "RtlZeroMemory" ), pCodeCave, 0x500 )
  112.  
  113. unregisterSymbol( "pInsideCur" )
  114. unregisterSymbol( "CodeCave" )
  115.  
  116. AutoAssemble([[
  117. unregistersymbol(aobCallRemoveCur)
  118.  
  119. aobCallDamageMember:
  120. db 41 FF 92 80 01 00 00
  121.  
  122. unregistersymbol(aobCallDamageMember)
  123. dealloc(newmem)
  124. ]])
  125.  
  126.  
  127. </AssemblerScript>
  128. <CheatEntries>
  129. <CheatEntry>
  130. <ID>27115</ID>
  131. <Description>"Easy Kills"</Description>
  132. <LastState Activated="1"/>
  133. <VariableType>Auto Assembler Script</VariableType>
  134. <AssemblerScript>{ Game : Firestone.exe
  135. Version:
  136. Date : 2021-05-01
  137. Author : cfe
  138.  
  139. This script does blah blah blah
  140. }
  141.  
  142. [ENABLE]
  143.  
  144.  
  145. aobscanregion(aobSubHealth,[pDamage],7fffffffffffffff,0F 29 45 C0 48 8D 4D 30) // should be unique
  146.  
  147. label(return)
  148.  
  149. newmem:
  150.  
  151. CodeCave+100:
  152. movaps [rbp-40],xmm0
  153. lea rcx,[rbp+30]
  154. xorpd xmm0,xmm0
  155. movupd [rdx],xmm0
  156. jmp return
  157.  
  158. aobSubHealth:
  159. jmp CodeCave+100
  160. nop 3
  161. return:
  162. registersymbol(aobSubHealth)
  163.  
  164. [DISABLE]
  165.  
  166. aobSubHealth:
  167. db 0F 29 45 C0 48 8D 4D 30
  168.  
  169. unregistersymbol(aobSubHealth)
  170.  
  171.  
  172.  
  173. </AssemblerScript>
  174. </CheatEntry>
  175. <CheatEntry>
  176. <ID>27110</ID>
  177. <Description>"No Gold Loss"</Description>
  178. <LastState Activated="1"/>
  179. <VariableType>Auto Assembler Script</VariableType>
  180. <AssemblerScript>[ENABLE]
  181. pRemoveCur:
  182. db C3
  183.  
  184.  
  185. [DISABLE]
  186. pRemoveCur:
  187. db 4C
  188. </AssemblerScript>
  189. </CheatEntry>
  190. <CheatEntry>
  191. <ID>27097</ID>
  192. <Description>"No Currency Loss"</Description>
  193. <LastState Activated="1"/>
  194. <VariableType>Auto Assembler Script</VariableType>
  195. <AssemblerScript>[ENABLE]
  196. pInsideCur:
  197. db C3
  198.  
  199.  
  200.  
  201. [DISABLE]
  202. pInsideCur:
  203. db 40
  204. </AssemblerScript>
  205. </CheatEntry>
  206. <CheatEntry>
  207. <ID>27107</ID>
  208. <Description>"Free Shop (use with no currency loss)"</Description>
  209. <LastState Activated="1"/>
  210. <VariableType>Auto Assembler Script</VariableType>
  211. <AssemblerScript>[ENABLE]
  212.  
  213. aobscanmodule(aobHaveCurrencyPurchase,GameAssembly.dll,0F 84 03 FF FF FF 48 8B 43) // should be unique
  214.  
  215. aobHaveCurrencyPurchase:
  216. db 90 90 90 90 90 90
  217.  
  218. registersymbol(aobHaveCurrencyPurchase)
  219.  
  220. [DISABLE]
  221.  
  222. aobHaveCurrencyPurchase:
  223. db 0F 84 03 FF FF FF
  224.  
  225. unregistersymbol(aobHaveCurrencyPurchase)
  226. </AssemblerScript>
  227. </CheatEntry>
  228. </CheatEntries>
  229. </CheatEntry>
  230. </CheatEntries>
  231. </CheatTable>
  232.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement