Advertisement
LunaeStellsr

MHI_LMHP_finder

Mar 13th, 2020
1,211
0
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>1337092177</ID>
  6.       <Description>"Large Monster HP Finder"</Description>
  7.       <Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
  8.       <LastState Activated="1"/>
  9.       <VariableType>Auto Assembler Script</VariableType>
  10.       <AssemblerScript>[ENABLE]
  11.  
  12. aobscanmodule(INJ_LM_HP,MonsterHunterWorld.exe,F3 0F 10 41 60 C3) // should be unique
  13. alloc(lmhpmem,256)
  14. alloc(newmem,$1000,"MonsterHunterWorld.exe"+B2903A0)
  15. label(lmhp_rescan_timer)
  16. label(pt_lm_hp)
  17. label(pt_lm_hp2)
  18. label(pt_lm_hp3)
  19. label(reset_lm_timer)
  20. label(write_lm_pt)
  21. label(code)
  22. label(return_code)
  23. label(return)
  24.  
  25. lmhpmem:
  26. lmhp_rescan_timer:
  27.   db 00 00 00 00
  28.  
  29. flag_mem_hp:
  30.   db 00 00 00 00 00 00 00 00
  31.  
  32. pt_lm_hp:
  33.   db 00 00 00 00 00 00 00 00
  34.  
  35. pt_lm_hp2:
  36.   db 00 00 00 00 00 00 00 00
  37.  
  38. pt_lm_hp3:
  39.   db 00 00 00 00 00 00 00 00
  40.  
  41. registersymbol(lmhp_rescan_timer)
  42. registersymbol(flag_mem_hp)
  43. registersymbol(pt_lm_hp)
  44. registersymbol(pt_lm_hp2)
  45. registersymbol(pt_lm_hp3)
  46.  
  47. newmem:
  48.   push rax
  49.   push rbx
  50.   inc [lmhp_rescan_timer]
  51.   cmp [lmhp_rescan_timer],4200
  52.   jge reset_lm_timer
  53.   movss xmm0,[rcx+60]
  54.   mov rax,000007D0
  55.   cvtsi2ss xmm15,rax
  56.   comiss xmm0,xmm15
  57.   jb return_code
  58.   mov rax,000F4240
  59.   cvtsi2ss xmm15,rax
  60.   comiss xmm0,xmm15
  61.   ja return_code
  62.   // Searching wheather used
  63.   mov rbx,rcx
  64.   add rbx,60
  65.   cmp rbx,[pt_lm_hp]
  66.   je return_code
  67.  
  68.   mov rbx,rcx
  69.   add rbx,60
  70.   cmp rbx,[pt_lm_hp2]
  71.   je return_code
  72.  
  73.   mov rbx,rcx
  74.   add rbx,60
  75.   cmp rbx,[pt_lm_hp3]
  76.   je return_code
  77.  
  78.   // Searching unused memory
  79.   mov eax,[pt_lm_hp]
  80.   cmp eax,0
  81.   mov rax,pt_lm_hp
  82.   je write_lm_pt
  83.  
  84.   mov eax,[pt_lm_hp2]
  85.   cmp eax,0
  86.   mov rax,pt_lm_hp2
  87.   je write_lm_pt
  88.  
  89.   mov eax,[pt_lm_hp3]
  90.   cmp eax,0
  91.   mov rax,pt_lm_hp3
  92.   je write_lm_pt
  93.   // All 3 Large Monster registered
  94.   jmp return_code
  95.  
  96. reset_lm_timer:
  97.   mov [lmhp_rescan_timer],0
  98.   mov [pt_lm_hp],0
  99.   mov [pt_lm_hp2],0
  100.   mov [pt_lm_hp3],0
  101.   jmp return_code
  102.  
  103. write_lm_pt:
  104.   mov [rax],rbx
  105.   jmp return_code
  106.  
  107. return_code:
  108. pop rbx
  109.   pop rax
  110.   jmp code
  111.  
  112. code:
  113.   movss xmm0,[rcx+60]
  114.   jmp return
  115.  
  116. INJ_LM_HP:
  117.   jmp newmem
  118.  
  119. return:
  120. registersymbol(INJ_LM_HP)
  121.  
  122. [DISABLE]
  123.  
  124. INJ_LM_HP:
  125.   db F3 0F 10 41 60
  126.  
  127. unregistersymbol(INJ_LM_HP)
  128. unregistersymbol(pt_lm_hp3)
  129. unregistersymbol(pt_lm_hp2)
  130. unregistersymbol(pt_lm_hp)
  131. unregistersymbol(flag_mem_hp)
  132. unregistersymbol(lmhp_rescan_timer)
  133. dealloc(lmhpmem)
  134. dealloc(newmem)
  135. </AssemblerScript>
  136.       <CheatEntries>
  137.         <CheatEntry>
  138.           <ID>1337092178</ID>
  139.           <Description>"HP 1"</Description>
  140.           <VariableType>Float</VariableType>
  141.           <Address>pt_lm_hp</Address>
  142.           <Offsets>
  143.             <Offset>4</Offset>
  144.           </Offsets>
  145.         </CheatEntry>
  146.         <CheatEntry>
  147.           <ID>1337092180</ID>
  148.           <Description>"HP 2"</Description>
  149.           <VariableType>Float</VariableType>
  150.           <Address>pt_lm_hp2</Address>
  151.           <Offsets>
  152.             <Offset>4</Offset>
  153.           </Offsets>
  154.         </CheatEntry>
  155.         <CheatEntry>
  156.           <ID>1337092179</ID>
  157.           <Description>"HP 3"</Description>
  158.           <VariableType>Float</VariableType>
  159.           <Address>pt_lm_hp3</Address>
  160.           <Offsets>
  161.             <Offset>4</Offset>
  162.           </Offsets>
  163.         </CheatEntry>
  164.       </CheatEntries>
  165.     </CheatEntry>
  166.   </CheatEntries>
  167. </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement