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.
18 lines
321 B
18 lines
321 B
#include "Theodosius.h"
|
|
|
|
namespace cppdemo
|
|
{
|
|
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;
|
|
|
|
return result.address_of_page_directory << 12;
|
|
}
|
|
} |