Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <cstdio>
- class TestClass
- {
- public:
- int x;
- TestClass()
- {
- x = 0;
- }
- static void __fastcall Increment()
- {
- TestClass *that;
- __asm
- {
- mov that, ecx;
- }
- that->x = 0x0A55FACE;
- }
- };
- int main()
- {
- TestClass *a = new TestClass();
- a->Increment();
- return a->x;
- }
Add Comment
Please, Sign In to add comment