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.
17 lines
390 B
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;
|
|
} |