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.
Theodosius/DemoDrv/ObfuscateDemo.c

14 lines
266 B

#include "Theodosius.h"
ObfuscateRoutine
unsigned long long get_dirbase()
{
cr3 result;
result.flags =
*(unsigned long long*)(IoGetCurrentProcess() + 0x28);
if (!result.address_of_page_directory)
return -1;
return result.address_of_page_directory << 12;
}