Function at 0x140002580
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x358
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov eax, 0x20
mov word [rsp + 0xf0], ax
mov eax, 0x22
mov word [rsp + 0xf2], ax
lea rax, [0x140004490]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40
lea rcx, [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x14000271c
lea rax, [rsp + 0x100]
lea rcx, [rsp + 0xf0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, dword [0x1400090a0]
imul rax, rax, 0x20
lea rcx, [0x1400070c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov eax, dword [0x1400090a0]
inc eax
mov dword [0x1400090a0], eax
mov rax, qword [rsp + 0x88]
add rax, 0x70
mov ecx, 8
imul rcx, rcx, 0xe
add rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x10], rcx
lea rax, [0x1400018f0]
mov rcx, qword [rsp + 0xb0]
xchg qword [rcx], rax
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0xb8]
mov qword [0x1400070a0], rax
lea rax, [rsp + 0x100]
mov rdi, qword [rsp + 0x80]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x100]
lea rcx, [0x140004320]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140002738
lfence
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0xf0]
lea rcx, [0x140004340]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
lea rcx, [0x1400044c0]
call fcn.1400035a0
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x14000275e
jmp 0x140002b59
lea r8, [0x1400044d0]
lea rdx, [0x1400044e0]
mov rcx, qword [rsp + 0x90]
call fcn.140003490
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140002b59
lea r8, [0x1400044f0]
lea rdx, [0x140004510]
mov rcx, qword [rsp + 0x90]
call fcn.140003490
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x140002b59
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x48]
add rax, 3
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 7]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
jmp 0x140002813
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140002b59
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + rax]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x140002b54
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x28]
add rax, 0x10
mov edx, 0x104
mov rcx, rax
call fcn.140003840
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x140002ae0
lea rax, [rsp + 0x130]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x82
mov rcx, qword [rsp + 0x98]
call fcn.140003a30
mov r8, rax
lea rdx, [0x140004530]
lea rcx, [rsp + 0x130]
call sub.ntoskrnl.exe_swprintf
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xc8], 0
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xe8]
mov edx, 1
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jl 0x140002ae0
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140002ad2
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x40], 0
jmp 0x14000296e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [0x140006090]
cmp dword [rsp + 0x40], eax
jae 0x1400029a0
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x10
lea rcx, [0x140006098]
mov rdx, qword [rsp + 0x68]
cmp qword [rcx + rax], rdx
jne 0x14000299e
mov dword [rsp + 0x54], 1
jmp 0x1400029a0
jmp 0x140002964
cmp dword [rsp + 0x54], 0
je 0x1400029ac
jmp 0x140002ad2
mov eax, dword [0x140006090]
imul rax, rax, 0x10
lea rcx, [0x140006098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
lea rax, [rsp + 0x120]
mov rcx, qword [rsp + 0x68]
mov rdi, rax
lea rsi, [rcx + 0x38]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, dword [0x1400090a0]
imul rax, rax, 0x20
lea rcx, [0x1400070c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov eax, dword [0x1400090a0]
inc eax
mov dword [0x1400090a0], eax
mov rax, qword [rsp + 0x68]
add rax, 0x70
mov ecx, 8
imul rcx, rcx, 0xe
add rax, rcx
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xd0]
mov qword [rax + 0x10], rcx
lea rax, [0x1400016e0]
mov rcx, qword [rsp + 0xd0]
xchg qword [rcx], rax
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 8], rcx
lea rax, [rsp + 0x120]
mov rdi, qword [rsp + 0xa0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x120]
lea rcx, [0x140004320]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [0x140006090]
inc eax
mov dword [0x140006090], eax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0xa8]
add rax, 0x464
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x70]
add rcx, 2
mov r8d, eax
mov rdx, rcx
mov ecx, dword [0x1400070b0]
call fcn.1400038f0
mov rax, qword [rsp + 0xa8]
add rax, 0x486
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x70]
add rcx, 2
mov r8d, eax
mov rdx, rcx
mov ecx, dword [0x1400070b0]
call fcn.1400038f0
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x140002805
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140003af0
add rsp, 0x358
pop rdi
pop rsi
ret