Function at 0x140008290
Capabilities:
Print debug messages

Disassembly:
push rsi
sub rsp, 0x130
mov rdx, rcx
lea rcx, [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor esi, esi
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0xf0]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x70]
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0x158]
mov edx, 0x80
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0xc0], 0x30
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0xd8], 0x240
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xe8], rsi
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
jns 0x140008360
lea rcx, str.Open_file_error_n
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x130
pop rsi
ret
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
mov rcx, qword [rsp + 0x158]
lea rax, [rsp + 0x150]
mov r8, qword [r8]
xor r9d, r9d
mov edx, 0x1f01ff
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jns 0x1400083bb
lea rcx, str.get_fileobject_is_error_n
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
add rsp, 0x130
pop rsi
ret
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0x140], rbx
mov qword [rsp + 0x120], rdi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.ntoskrnl.exe_IoGetRelatedDeviceObject]
mov dl, 1
movzx ecx, byte [rax + 0x4c]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
mov rbx, rax
test rax, rax
jne 0x14000840f
lea rcx, str.allocate_irp_is_error_n
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140008643
xor r8d, r8d
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x128], rbp
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r11d, r11d
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa0], r11
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], r11
mov dword [rsp + 0xa0], 0x80
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x98], r11
mov qword [rbx + 0x18], rax
lea rax, [rsp + 0xa8]
lea rbp, [0x140008240]
mov qword [rbx + 0x50], rax
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x150]
mov qword [rbx + 0xc0], rax
mov rax, qword gs:[0x188]
mov rcx, qword [rbx + 0xb8]
mov qword [rbx + 0x98], rax
mov byte [rbx + 0x40], sil
mov byte [rcx - 0x48], 6
mov qword [rcx - 0x20], rdi
mov rax, qword [rsp + 0x150]
mov dword [rcx - 0x40], 0x28
mov qword [rcx - 0x18], rax
mov dword [rcx - 0x38], 4
mov rax, qword [rsp + 0x150]
mov qword [rcx - 0x30], rax
mov rax, qword [rbx + 0xb8]
lea rcx, [rsp + 0xa8]
mov qword [rax - 8], rcx
mov rcx, rdi
mov qword [rax - 0x10], rbp
mov byte [rax - 0x45], 0xe0
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
lea rcx, [rsp + 0xa8]
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r11d, r11d
mov dl, 1
mov byte [rsp + 0x148], r11b
movzx ecx, byte [rdi + 0x4c]
call qword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
mov rbx, rax
test rax, rax
jne 0x140008572
lea rcx, str.allocate_irp_2_is_error_n
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov byte [rsp + 0x148], 1
lea rax, [rsp + 0x148]
mov rdx, rbx
mov qword [rbx + 0x18], rax
lea rax, [rsp + 0x70]
mov qword [rbx + 0x48], rax
lea rax, [rsp + 0x100]
mov qword [rbx + 0x50], rax
mov rax, qword [rsp + 0x150]
mov qword [rbx + 0xc0], rax
mov rax, qword gs:[0x188]
mov rcx, qword [rbx + 0xb8]
mov qword [rbx + 0x98], rax
mov byte [rbx + 0x40], sil
mov qword [rcx - 0x20], rdi
mov rax, qword [rsp + 0x150]
mov byte [rcx - 0x48], 6
mov dword [rcx - 0x40], 1
mov qword [rcx - 0x18], rax
mov dword [rcx - 0x38], 0xd
mov rax, qword [rsp + 0x150]
mov qword [rcx - 0x30], rax
mov rax, qword [rbx + 0xb8]
lea rcx, [rsp + 0x100]
mov qword [rax - 8], rcx
mov qword [rax - 0x10], rbp
mov byte [rax - 0x45], 0xe0
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax + 0x28]
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbp, qword [rsp + 0x128]
mov rbx, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x120]
xor eax, eax
add rsp, 0x130
pop rsi
ret