Function at 0x13374
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r15
sub rsp, 0xb0
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
and qword [rsp + 0x28], 0
lea rax, [rax + 0x18]
mov r8, qword [r8]
xor r9d, r9d
mov edx, 0x10000
mov rsi, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
lea r15, [0x000136a4]
test eax, eax
js 0x134de
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_IoGetRelatedDeviceObject]
mov rbx, rax
test rax, rax
je 0x134d0
mov cl, byte [rax + 0x4c]
mov dl, 1
call qword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
mov rdi, rax
test rax, rax
je 0x134d0
xor r8d, r8d
lea rcx, [rsp + 0x30]
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x28]
call fcn.00013b70
mov dword [rsp + 0x80], 0x80
lea rax, [rsp + 0x60]
mov qword [rdi + 0x18], rax
lea rax, [rsp + 0x30]
mov rdx, rdi
mov qword [rdi + 0x50], rax
lea rax, [rsp + 0x88]
mov qword [rdi + 0x48], rax
mov rax, qword [rsp + 0xe0]
mov qword [rdi + 0xc0], rax
mov rax, qword gs:[0x188]
mov rcx, qword [rdi + 0xb8]
mov qword [rdi + 0x98], rax
mov byte [rdi + 0x40], 0
mov byte [rcx - 0x48], 6
mov qword [rcx - 0x20], rbx
mov rax, qword [rsp + 0xe0]
mov dword [rcx - 0x40], 0x28
mov qword [rcx - 0x18], rax
mov dword [rcx - 0x38], 4
mov rax, qword [rsp + 0xe0]
mov qword [rcx - 0x30], rax
mov rax, qword [rdi + 0xb8]
lea rcx, [rsp + 0x30]
mov qword [rax - 8], rcx
mov rcx, rbx
mov qword [rax - 0x10], r15
mov byte [rax - 0x45], 0xe0
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
mov r9b, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0xe8]
mov r8, qword [r8]
xor r9d, r9d
mov edx, 0x10000
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x1368a
mov rcx, qword [rsp + 0xe8]
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x13535
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x13535
bt dword [rcx + 0x50], 0xb
jae 0x13556
bt dword [rcx + 0x50], 0xb
jb 0x13552
mov rax, qword [rcx + 8]
mov rbx, qword [rax + 0x38]
test rbx, rbx
je 0x13552
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x13556
mov rbx, qword [rcx + 8]
cmp qword [rbx + 0x18], 0
je 0x13569
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoGetAttachedDevice]
mov rbx, rax
mov cl, byte [rbx + 0x4c]
mov dl, 1
call qword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
mov rdi, rax
test rax, rax
jne 0x13594
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000088
jmp 0x1368a
xor r8d, r8d
lea rcx, [rsp + 0x48]
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov byte [rsp + 0xd8], 1
lea rax, [rsp + 0xd8]
mov qword [rdi + 0x18], rax
lea rax, [rsp + 0x48]
mov rdx, rdi
mov qword [rdi + 0x50], rax
lea rax, [rsp + 0x98]
mov qword [rdi + 0x48], rax
mov rax, qword [rsp + 0xe8]
mov qword [rdi + 0xc0], rax
mov rax, qword gs:[0x188]
mov rcx, qword [rdi + 0xb8]
mov qword [rdi + 0x98], rax
mov byte [rdi + 0x40], 0
mov byte [rcx - 0x48], 6
mov qword [rcx - 0x20], rbx
mov rax, qword [rsp + 0xe8]
mov dword [rcx - 0x40], 1
mov qword [rcx - 0x18], rax
mov dword [rcx - 0x38], 0xd
mov rax, qword [rsp + 0xe8]
mov qword [rcx - 0x30], rax
mov rax, qword [rdi + 0xb8]
lea rcx, [rsp + 0x48]
mov qword [rax - 8], rcx
mov qword [rax - 0x10], r15
mov byte [rax - 0x45], 0xe0
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax + 0x28]
and qword [rcx + 0x10], 0
and qword [rcx], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x48]
mov r9b, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rdi + 0x30]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop r15
pop rdi
pop rsi
ret