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.
29 lines
558 B
29 lines
558 B
#include "Theodosius.h"
|
|
#include <intrin.h>
|
|
|
|
extern "C" int MessageBoxA(
|
|
unsigned hWnd,
|
|
char* lpText,
|
|
char* lpCaption,
|
|
unsigned uType
|
|
);
|
|
|
|
void UsermodeNoObfuscation()
|
|
{
|
|
for (auto idx = 0u; idx < 5; ++idx)
|
|
MessageBoxA(0, "Demo", "Hello From Non-Obfuscated Routine!", 0);
|
|
}
|
|
|
|
MutateRoutine
|
|
void UsermodeMutateDemo()
|
|
{
|
|
MessageBoxA(0, "Demo", "Hello From Mutated Routine!", 0);
|
|
}
|
|
|
|
ObfuscateRoutine
|
|
extern "C" int ModuleEntry()
|
|
{
|
|
MessageBoxA(0, "Demo", "Hello From Obfuscated Routine!", 0);
|
|
UsermodeMutateDemo();
|
|
UsermodeNoObfuscation();
|
|
} |