Advertisement
antoshka1312

кд % артефакты

Oct 18th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. alloc(newmem,2048)
  2. label(returnhere)
  3. label(originalcode)
  4. label(exit)
  5.  
  6. newmem: //this is allocated memory, you have read,write,execute access
  7. //place your code here
  8. pushad
  9. mov ecx,[ebp+11*4+1C0]
  10. cmp ecx,0
  11. jne go
  12. mov ecx,[ebp+12*4+1C0]
  13. cmp ecx,0
  14. je exas
  15. go:
  16. mov ecx,[ecx+30]
  17. cmp word ptr[ecx+24],0197
  18. jne exas
  19. popad
  20. push eax
  21. push ebx
  22. mov eax, edx // тут тип скок кд
  23. mov ebx, 0A //тут число типа сколько надо %
  24. mul ebx // умножение
  25. mov bl, 64 //типа 100
  26. div ebx // деление
  27. pop ebx
  28. movzx edx,word ptr [ebx+4A]
  29. sub edx,eax
  30. pop eax
  31. jmp originalcode
  32. exas:
  33. popad
  34. originalcode:
  35. imul edx,edx,000003E8
  36.  
  37. exit:
  38. jmp returnhere
  39.  
  40. "ps_game.exe"+5DEAA:
  41. jmp newmem
  42. nop
  43. returnhere:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement