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

17 lines
390 B

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