Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [ENABLE]
  2. //code from here to '[DISABLE]' will be used to enable the cheat
  3. alloc(LightMem,256)
  4.  
  5. label(LightStart)
  6. registersymbol(LightStart)
  7. label(LightReturn)
  8. label(LightDat)
  9. registersymbol(LightDat)
  10.  
  11. "DARKSOULS.exe"+9A66E3:
  12. LightStart:
  13. jmp LightMem
  14. db 90 90 90
  15. LightReturn:
  16.  
  17. LightMem:
  18. movq [ecx+00000168],xmm3
  19. push edi
  20. mov edi,[LightDat+0]
  21. mov [ecx+00000150],edi //red
  22. mov edi,[LightDat+4]
  23. mov [ecx+00000154],edi //green
  24. mov edi,[LightDat+8]
  25. mov [ecx+00000158],edi //blue
  26. mov edi,[LightDat+c]
  27. mov [ecx+0000015c],edi //Saturation
  28. mov edi,[LightDat+10]
  29. mov [ecx+00000160],edi //Hue info?
  30. mov edi,[LightDat+14]
  31. mov [ecx+00000164],edi
  32. mov edi,[LightDat+18]
  33. mov [ecx+00000168],edi
  34. pop edi
  35. jmp LightReturn
  36. LightDat:
  37. db 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F
  38.  
  39.  
  40.  
  41. [DISABLE]
  42. //code from here till the end of the code will be used to disable the cheat
  43. LightStart:
  44. db 66 0F D6 99 68 01 00 00
  45.  
  46. dealloc(LightMem)
  47. unregistersymbol(LightStart)
  48. unregistersymbol(LightDat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement