forked from IDontCode/Theodosius
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
506 B
25 lines
506 B
#define OBF __declspec(code_seg(".obf"))
|
|
|
|
extern "C" int MessageBoxA(void* hWnd,
|
|
char* lpText,
|
|
char* lpCaption,
|
|
void* uType);
|
|
|
|
struct test_t {
|
|
char* c;
|
|
char* c2;
|
|
char buff[0x2000];
|
|
};
|
|
|
|
test_t t = {"Hello", "World", {}};
|
|
|
|
OBF extern "C" void EntryPoint() {
|
|
t.buff[0] = 1;
|
|
t.buff[1] = 1;
|
|
|
|
if (t.buff[0])
|
|
MessageBoxA(nullptr, t.c, t.c2, nullptr);
|
|
|
|
if (t.buff[1])
|
|
MessageBoxA(nullptr, t.c, t.c2, nullptr);
|
|
} |