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
3 years ago
|
#define OBF __declspec(code_seg(".obf"))
|
||
|
|
||
3 years ago
|
extern "C" int MessageBoxA(void* hWnd,
|
||
3 years ago
|
char* lpText,
|
||
|
char* lpCaption,
|
||
|
void* uType);
|
||
3 years ago
|
|
||
3 years ago
|
struct test_t {
|
||
3 years ago
|
char* c;
|
||
|
char* c2;
|
||
3 years ago
|
char buff[0x2000];
|
||
|
};
|
||
|
|
||
3 years ago
|
test_t t = {"Hello", "World", {}};
|
||
3 years ago
|
|
||
3 years ago
|
OBF extern "C" void EntryPoint() {
|
||
3 years ago
|
t.buff[0] = 1;
|
||
3 years ago
|
t.buff[1] = 1;
|
||
3 years ago
|
|
||
|
if (t.buff[0])
|
||
3 years ago
|
MessageBoxA(nullptr, t.c, t.c2, nullptr);
|
||
3 years ago
|
|
||
|
if (t.buff[1])
|
||
3 years ago
|
MessageBoxA(nullptr, t.c, t.c2, nullptr);
|
||
3 years ago
|
}
|