Guest User

Untitled

a guest
Nov 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <Windows.h>
  2. #include <cstdio>
  3.  
  4. class TestClass
  5. {
  6. public:
  7. int x;
  8.  
  9. TestClass()
  10. {
  11. x = 0;
  12. }
  13.  
  14. static void __fastcall Increment()
  15. {
  16. TestClass *that;
  17. __asm
  18. {
  19. mov that, ecx;
  20. }
  21.  
  22. that->x = 0x0A55FACE;
  23. }
  24. };
  25.  
  26. int main()
  27. {
  28. TestClass *a = new TestClass();
  29. a->Increment();
  30.  
  31. return a->x;
  32. }
Add Comment
Please, Sign In to add comment