Guest User

grounded fix

a guest
Jul 14th, 2023
1,807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | None | 0 0
  1. [ENABLE]
  2. aobscanmodule(get_canBuildThere,$process,66 83 BB * * 00 00 00 48 8B 8B)
  3. aobscanmodule(get_surfaceType,$process,47 65 74 53 75 72 66 61 63 65 54 79 70 65)
  4. registersymbol(get_canBuildThere)
  5. registersymbol(get_surfaceType)
  6. alloc(fSurfaceType,$1000,get_surfaceType)
  7. label(fSurfaceTypeRet)
  8. alloc(get_canBuildThereS,8)
  9. registersymbol(get_canBuildThereS)
  10.  
  11. get_canBuildThereS:
  12. readmem(get_canBuildThere,8)
  13.  
  14. fSurfaceType:
  15. cmp byte ptr [rcx+Building.AnchoredSurface],00 //If there's no surface
  16. jne @f
  17. mov byte ptr [rcx+Building.AnchoredSurface],07 //Then set it to Default
  18. @@:
  19. cmp byte ptr [rcx+Building.AnchoredSurface],01
  20. jmp fSurfaceTypeRet
  21.  
  22. get_canBuildThere:
  23. db 38 C0 90 90 90 90 90 90
  24.  
  25. get_surfaceType:
  26. jmp fSurfaceType
  27. nop 2
  28. fSurfaceTypeRet:
  29.  
  30. [DISABLE]
  31. get_canBuildThere:
  32. readmem(get_canBuildThereS,8)
  33.  
  34. get_surfaceType+3:
  35. cmp byte ptr [rcx+Building.AnchoredSurface],01
  36.  
  37. unregistersymbol(get_canBuildThere)
  38. unregistersymbol(get_surfaceType)
  39. dealloc(fSurfaceType)
  40.  
  41. {
  42. //Allow Placement Anywhere - Sets to Allowed or Not
  43. Maine-Win64-Shipping.exe+13F0550 - 48 89 5C 24 08 - mov [rsp+08],rbx
  44. Maine-Win64-Shipping.exe+13F0555 - 48 89 74 24 10 - mov [rsp+10],rsi
  45. Maine-Win64-Shipping.exe+13F055A - 57 - push rdi
  46. Maine-Win64-Shipping.exe+13F055B - 48 83 EC 20 - sub rsp,20
  47. Maine-Win64-Shipping.exe+13F055F - 0F10 02 - movups xmm0,[rdx]
  48. Maine-Win64-Shipping.exe+13F0562 - 4C 8D 41 60 - lea r8,[rcx+60]
  49. Maine-Win64-Shipping.exe+13F0566 - 0F11 01 - movups [rcx],xmm0
  50. Maine-Win64-Shipping.exe+13F0569 - 48 8B FA - mov rdi,rdx
  51. Maine-Win64-Shipping.exe+13F056C - 0F10 4A 10 - movups xmm1,[rdx+10]
  52. Maine-Win64-Shipping.exe+13F0570 - 33 F6 - xor esi,esi
  53. Maine-Win64-Shipping.exe+13F0572 - 0F11 49 10 - movups [rcx+10],xmm1
  54. Maine-Win64-Shipping.exe+13F0576 - 48 8B D9 - mov rbx,rcx
  55. Maine-Win64-Shipping.exe+13F0579 - 0F10 42 20 - movups xmm0,[rdx+20]
  56. Maine-Win64-Shipping.exe+13F057D - 0F11 41 20 - movups [rcx+20],xmm0
  57. Maine-Win64-Shipping.exe+13F0581 - 48 8B 42 30 - mov rax,[rdx+30]
  58. Maine-Win64-Shipping.exe+13F0585 - 48 89 41 30 - mov [rcx+30],rax
  59. Maine-Win64-Shipping.exe+13F0589 - 0F10 42 38 - movups xmm0,[rdx+38]
  60. Maine-Win64-Shipping.exe+13F058D - 0F11 41 38 - movups [rcx+38],xmm0
  61. Maine-Win64-Shipping.exe+13F0591 - 8B 42 48 - mov eax,[rdx+48]
  62. Maine-Win64-Shipping.exe+13F0594 - 89 41 48 - mov [rcx+48],eax
  63. Maine-Win64-Shipping.exe+13F0597 - 8B 42 4C - mov eax,[rdx+4C]
  64. Maine-Win64-Shipping.exe+13F059A - 89 41 4C - mov [rcx+4C],eax
  65. Maine-Win64-Shipping.exe+13F059D - 8B 42 50 - mov eax,[rdx+50]
  66. Maine-Win64-Shipping.exe+13F05A0 - 89 41 50 - mov [rcx+50],eax
  67. Maine-Win64-Shipping.exe+13F05A3 - 0FB6 42 54 - movzx eax,byte ptr [rdx+54]
  68. Maine-Win64-Shipping.exe+13F05A7 - 88 41 54 - mov [rcx+54],al
  69. Maine-Win64-Shipping.exe+13F05AA - 48 8B 42 58 - mov rax,[rdx+58]
  70. Maine-Win64-Shipping.exe+13F05AE - 48 83 C2 60 - add rdx,60
  71. Maine-Win64-Shipping.exe+13F05B2 - 48 89 41 58 - mov [rcx+58],rax
  72. Maine-Win64-Shipping.exe+13F05B6 - 4C 3B C2 - cmp r8,rdx
  73. Maine-Win64-Shipping.exe+13F05B9 - 74 2D - je Maine-Win64-Shipping.exe+13F05E8
  74. Maine-Win64-Shipping.exe+13F05BB - 48 8B 02 - mov rax,[rdx]
  75. Maine-Win64-Shipping.exe+13F05BE - 49 89 00 - mov [r8],rax
  76. Maine-Win64-Shipping.exe+13F05C1 - 48 8B 42 08 - mov rax,[rdx+08]
  77. Maine-Win64-Shipping.exe+13F05C5 - 48 89 32 - mov [rdx],rsi
  78. Maine-Win64-Shipping.exe+13F05C8 - 49 8B 48 08 - mov rcx,[r8+08]
  79. Maine-Win64-Shipping.exe+13F05CC - 49 89 40 08 - mov [r8+08],rax
  80. Maine-Win64-Shipping.exe+13F05D0 - 48 89 72 08 - mov [rdx+08],rsi
  81. Maine-Win64-Shipping.exe+13F05D4 - 48 85 C9 - test rcx,rcx
  82. Maine-Win64-Shipping.exe+13F05D7 - 74 0F - je Maine-Win64-Shipping.exe+13F05E8
  83. Maine-Win64-Shipping.exe+13F05D9 - 83 69 0C 01 - sub dword ptr [rcx+0C],01
  84. Maine-Win64-Shipping.exe+13F05DD - 75 09 - jne Maine-Win64-Shipping.exe+13F05E8
  85. Maine-Win64-Shipping.exe+13F05DF - 48 8B 01 - mov rax,[rcx]
  86. Maine-Win64-Shipping.exe+13F05E2 - 8D 56 01 - lea edx,[rsi+01]
  87. Maine-Win64-Shipping.exe+13F05E5 - FF 50 08 - call qword ptr [rax+08]
  88. Maine-Win64-Shipping.exe+13F05E8 - 48 8B 47 70 - mov rax,[rdi+70]
  89. Maine-Win64-Shipping.exe+13F05EC - 4C 8D 87 80000000 - lea r8,[rdi+00000080]
  90. Maine-Win64-Shipping.exe+13F05F3 - 4C 8D 8B 80000000 - lea r9,[rbx+00000080]
  91. Maine-Win64-Shipping.exe+13F05FA - 48 89 43 70 - mov [rbx+70],rax
  92. Maine-Win64-Shipping.exe+13F05FE - 8B 47 78 - mov eax,[rdi+78]
  93. Maine-Win64-Shipping.exe+13F0601 - 89 43 78 - mov [rbx+78],eax <-------------------------------------------------------------
  94. Maine-Win64-Shipping.exe+13F0604 - 4D 3B C8 - cmp r9,r8
  95. Maine-Win64-Shipping.exe+13F0607 - 74 2F - je Maine-Win64-Shipping.exe+13F0638
  96. Maine-Win64-Shipping.exe+13F0609 - 49 8B 00 - mov rax,[r8]
  97. Maine-Win64-Shipping.exe+13F060C - 49 89 01 - mov [r9],rax
  98. Maine-Win64-Shipping.exe+13F060F - 49 8B 40 08 - mov rax,[r8+08]
  99. Maine-Win64-Shipping.exe+13F0613 - 49 89 30 - mov [r8],rsi
  100. Maine-Win64-Shipping.exe+13F0616 - 49 8B 49 08 - mov rcx,[r9+08]
  101. Maine-Win64-Shipping.exe+13F061A - 49 89 41 08 - mov [r9+08],rax
  102. Maine-Win64-Shipping.exe+13F061E - 49 89 70 08 - mov [r8+08],rsi
  103. Maine-Win64-Shipping.exe+13F0622 - 48 85 C9 - test rcx,rcx
  104. Maine-Win64-Shipping.exe+13F0625 - 74 11 - je Maine-Win64-Shipping.exe+13F0638
  105. Maine-Win64-Shipping.exe+13F0627 - 83 69 0C 01 - sub dword ptr [rcx+0C],01
  106. Maine-Win64-Shipping.exe+13F062B - 75 0B - jne Maine-Win64-Shipping.exe+13F0638
  107. Maine-Win64-Shipping.exe+13F062D - 48 8B 01 - mov rax,[rcx]
  108. Maine-Win64-Shipping.exe+13F0630 - BA 01000000 - mov edx,00000001
  109. Maine-Win64-Shipping.exe+13F0635 - FF 50 08 - call qword ptr [rax+08]
  110. Maine-Win64-Shipping.exe+13F0638 - 0FB6 87 90000000 - movzx eax,byte ptr [rdi+00000090]
  111. Maine-Win64-Shipping.exe+13F063F - 48 8B 74 24 38 - mov rsi,[rsp+38]
  112. Maine-Win64-Shipping.exe+13F0644 - 88 83 90000000 - mov [rbx+00000090],al
  113. Maine-Win64-Shipping.exe+13F064A - 48 8B C3 - mov rax,rbx
  114. Maine-Win64-Shipping.exe+13F064D - 48 8B 5C 24 30 - mov rbx,[rsp+30]
  115. Maine-Win64-Shipping.exe+13F0652 - 48 83 C4 20 - add rsp,20
  116. Maine-Win64-Shipping.exe+13F0656 - 5F - pop rdi
  117. Maine-Win64-Shipping.exe+13F0657 - C3 - ret
  118.  
  119. //Check if allowed ( Current Used )
  120. Maine-Win64-Shipping.exe+1421FE1 - 48 85 C9 - test rcx,rcx
  121. Maine-Win64-Shipping.exe+1421FE4 - 74 11 - je Maine-Win64-Shipping.exe+1421FF7
  122. Maine-Win64-Shipping.exe+1421FE6 - 83 69 0C 01 - sub dword ptr [rcx+0C],01
  123. Maine-Win64-Shipping.exe+1421FEA - 75 0B - jne Maine-Win64-Shipping.exe+1421FF7
  124. Maine-Win64-Shipping.exe+1421FEC - 48 8B 01 - mov rax,[rcx]
  125. Maine-Win64-Shipping.exe+1421FEF - BA 01000000 - mov edx,00000001
  126. Maine-Win64-Shipping.exe+1421FF4 - FF 50 08 - call qword ptr [rax+08]
  127. Maine-Win64-Shipping.exe+1421FF7 - 66 83 BB 1A020000 00 - cmp word ptr [rbx+0000021A],00 <-------------------------------
  128. Maine-Win64-Shipping.exe+1421FFF - 48 8B 8B 60010000 - mov rcx,[rbx+00000160]
  129. Maine-Win64-Shipping.exe+1422006 - 0F94 C2 - sete dl
  130. Maine-Win64-Shipping.exe+1422009 - E8 D2CFFBFF - call Maine-Win64-Shipping.exe+13DEFE0
  131. Maine-Win64-Shipping.exe+142200E - 0FB6 93 30020000 - movzx edx,byte ptr [rbx+00000230]
  132. Maine-Win64-Shipping.exe+1422015 - 48 8B 8B 60010000 - mov rcx,[rbx+00000160]
  133.  
  134. //Check Surface Type on Hover
  135. Maine-Win64-Shipping.exe+13BE6FC: CC - int 3
  136. Maine-Win64-Shipping.exe+13BE6FD: CC - int 3
  137. Maine-Win64-Shipping.exe+13BE6FE: CC - int 3
  138. Maine-Win64-Shipping.exe+13BE6FF: CC - int 3
  139. Maine-Win64-Shipping.exe+13BE700: 48 89 5C 24 10 - mov [rsp+10],rbx
  140. Maine-Win64-Shipping.exe+13BE705: 48 89 74 24 18 - mov [rsp+18],rsi
  141. Maine-Win64-Shipping.exe+13BE70A: 57 - push rdi
  142. Maine-Win64-Shipping.exe+13BE70B: 48 81 EC 80 00 00 00 - sub rsp,00000080
  143. Maine-Win64-Shipping.exe+13BE712: 33 F6 - xor esi,esi
  144. Maine-Win64-Shipping.exe+13BE714: 48 8B D9 - mov rbx,rcx
  145. // ---------- INJECTING HERE ----------
  146. Maine-Win64-Shipping.exe+13BE717: 47 65 74 53 75 72 66 61 63 65 54 79 70 65 - cmp byte ptr [rcx+00000570],01
  147. // ---------- DONE INJECTING ----------
  148. Maine-Win64-Shipping.exe+13BE71E: 89 74 24 58 - mov [rsp+58],esi
  149. Maine-Win64-Shipping.exe+13BE722: 0F 87 25 02 00 00 - ja Maine-Win64-Shipping.exe+13BE94D
  150. Maine-Win64-Shipping.exe+13BE728: 0F 10 81 70 03 00 00 - movups xmm0,[rcx+00000370]
  151. Maine-Win64-Shipping.exe+13BE72F: 0F 10 89 80 03 00 00 - movups xmm1,[rcx+00000380]
  152. Maine-Win64-Shipping.exe+13BE736: 0F 11 44 24 20 - movups [rsp+20],xmm0
  153. Maine-Win64-Shipping.exe+13BE73B: F2 0F 10 81 90 03 00 00 - movsd xmm0,[rcx+00000390]
  154. Maine-Win64-Shipping.exe+13BE743: 48 8D 4C 24 20 - lea rcx,[rsp+20]
  155. Maine-Win64-Shipping.exe+13BE748: F2 0F 11 44 24 40 - movsd [rsp+40],xmm0
  156. Maine-Win64-Shipping.exe+13BE74E: 0F 11 4C 24 30 - movups [rsp+30],xmm1
  157. Maine-Win64-Shipping.exe+13BE753: E8 28 77 65 00 - call Maine-Win64-Shipping.exe+1A15E80
  158. }
  159.  
  160.  
Tags: Fix
Advertisement
Add Comment
Please, Sign In to add comment