Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. [ENABLE]
  2. alloc(YHook,100)
  3. alloc(XHook,120)
  4. alloc(VacX,8)
  5. alloc(VacY,8)
  6. label(CharpID)
  7. label(SaveXY)
  8. label(SkipSave)
  9. label(RetY)
  10. label(RetX)
  11. label(YCode)
  12. label(XCode)
  13.  
  14. YHook:
  15. push eax
  16. call CharpID
  17. cmp esi,eax
  18. pop eax
  19. jne YCode
  20. mov eax,[VacY]
  21. jmp YCode
  22.  
  23. XHook:
  24. call SaveXY
  25. push eax
  26. call CharpID
  27. cmp esi,eax
  28. pop eax
  29. jne XCode
  30. mov eax,[VacX]
  31. jmp XCode
  32.  
  33. XCode:
  34. mov [ebx], eax
  35. mov edi,[ebp+10]
  36. jmp RetX
  37.  
  38. YCode:
  39. mov [edi],eax
  40. mov ebx,[ebp+14]
  41. jmp RetY
  42.  
  43. SaveXY:
  44. push eax
  45. mov eax,[00B349CC] //Mouse
  46. cmp dword ptr [eax+9b4],0c //Mouse Animation offset
  47. jne SkipSave
  48. mov eax,[eax+978] //Mouse Offset
  49. mov edx,[eax+84] //Mouse X Offset
  50. mov [VacX],edx
  51. mov edx,[eax+88] //Mouse Y Offset
  52. mov [VacY],edx
  53. SkipSave:
  54. pop eax
  55. ret
  56. CharpID:
  57. mov eax,[00B34628] //Char pID
  58. mov eax,[eax+11C4] //pID Offset
  59. ret
  60.  
  61. 009644FF:
  62. jmp YHook
  63.  
  64. RetY:
  65. 0096449A:
  66. jmp XHook
  67. RetX:
  68.  
  69. [DISABLE]
  70. 009644FF:
  71. db 89 07 8B 5D 14
  72.  
  73. 0096449A:
  74. db 89 03 8B 7D 10
  75.  
  76. dealloc(YHook)
  77. dealloc(XHook)
  78. dealloc(VacX)
  79. dealloc(VacY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement