added console example/macros you need to define

2.0
_xeroxz 4 years ago
parent 2e83608811
commit f1a6393e00

@ -1,6 +1,9 @@
#pragma once #pragma once
#define WINUSERAPI #define WINUSERAPI
#define _KERNEL32_
#define _ACRTIMP
#include <Windows.h> #include <Windows.h>
#include <stdio.h>
#define ObfuscateRoutine __declspec(code_seg(".theo"), noinline) #define ObfuscateRoutine __declspec(code_seg(".theo"), noinline)
#define MutateRoutine __declspec(code_seg(".theo1"), noinline) #define MutateRoutine __declspec(code_seg(".theo1"), noinline)

@ -3,6 +3,13 @@
ObfuscateRoutine ObfuscateRoutine
extern "C" int ModuleEntry() extern "C" int ModuleEntry()
{ {
AllocConsole();
freopen("conin$", "r", stdin);
freopen("conout$", "w", stdout);
freopen("conout$", "w", stderr);
printf("hello world\n");
getchar();
MessageBoxA(0, "Demo", "Hello From Obfuscated Routine!", 0); MessageBoxA(0, "Demo", "Hello From Obfuscated Routine!", 0);
UsermodeMutateDemo(); UsermodeMutateDemo();
UsermodeNoObfuscation(); UsermodeNoObfuscation();

Loading…
Cancel
Save