SHARE
TWEET

[FF8/ASM HACK] UV Hack- EBP-05,6,7,8 stack hack

MaKiPL Dec 20th, 2016 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alloc(newmem,2048)
  2.  
  3. newmem:
  4. FirstRemove:
  5. cmp cl,[ebp-04]
  6. jne FirstAdd
  7. sub cl, 0 //U1
  8. JMP SecondRemove
  9.  
  10. FirstAdd:
  11. CMP cl, [ebp-01]
  12. JNZ short SecondRemove
  13. add cl, 0 //U1
  14.  
  15. SecondRemove:
  16. mov dl, [ebp-08]
  17. push ECX
  18. add cl, 2
  19. mov [ebp-05], cl      //MOV
  20. pop ECX
  21. cmp dl, [ebp-02]
  22. jne SecondAdd
  23. sub dl, 0 //V1
  24. jmp ThirdRemove
  25.  
  26. SecondAdd:
  27. cmp dl, [ebp-03]
  28. jne ThirdRemove
  29. add dl, 0 //V1
  30.  
  31. ThirdRemove:
  32. mov cl, [ebp-04]
  33. push EDX
  34. add dl, 0
  35. mov [ebp-06], dl      //MOV
  36. pop EDX
  37. mov dl, [ebp-07]
  38. cmp dl, cl
  39. jne ThirdAdd
  40. sub dl, 0 //U2
  41. jmp FourthRemove
  42.  
  43. ThirdAdd:
  44. cmp dl, [ebp-01]
  45. jne FourthRemove
  46. add dl, 0 //U2
  47.  
  48. FourthRemove:
  49. mov cl, [ebp-02]
  50. push EDX
  51. add dl, 0
  52. mov [ebp-07], dl     //MOV
  53. POP EDX
  54. mov dl, [ebp-09]
  55. cmp dl, cl
  56. jne FourthAdd
  57. sub dl, 0 //V2
  58. jmp FifthRemove
  59.  
  60. FourthAdd:
  61. cmp dl, [ebp-03]
  62. jne FifthRemove
  63. add dl, 0 //V2
  64.  
  65. FifthRemove:
  66. mov cl, [ebp-04]
  67. push EDX
  68. add dl, 2
  69. mov [ebp-08], dl     //MOV
  70. pop EDX
  71. mov dl, [ebp-0A]
  72. cmp dl, cl
  73. jne FifthAdd
  74. sub dl, 0 //U3
  75. jmp SixthRemove
  76.  
  77. FifthAdd:
  78. cmp dl, [ebp-01]
  79. jne SixthRemove
  80. add dl, 0 //U3
  81.  
  82. SixthRemove:
  83. cmp bl, [ebp-02]
  84. jne SixthAdd
  85. sub bl,0 //V3
  86. JMP final
  87.  
  88. SixthAdd:
  89. cmp bl, [ebp-03]
  90. jne final
  91. add bl,0 //V3
  92.  
  93. final:
  94. JMP FF8_EN.exe+153D43
  95.  
  96. "FF8_EN.exe"+153CB1:
  97. JMP newmem
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top