Function at 0x14000ca00
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x64], 0
call fcn.140002230
cdqe
lea rcx, [0x140024d80]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x80], rax
call fcn.140002230
cdqe
lea rcx, [0x140024d80]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x80]
cmp qword [rcx + 8], rax
jb 0x14000ca5f
mov dword [rsp + 0x60], 1
jmp 0x14000ca67
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x5c], eax
call fcn.140002230
mov edx, eax
lea rcx, [0x140016c40]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x5c], 0
je 0x14000ca8e
call fcn.14000d190
call fcn.140002230
cdqe
lea rcx, [0x140024d80]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x88], rax
call fcn.140002230
cdqe
lea rcx, [0x140024d80]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
movzx eax, al
cmp eax, 2
jge 0x14000caf3
mov dword [rsp + 0x64], 1
call fcn.140002980
mov byte [rsp + 0x50], al
call fcn.140002230
mov edx, eax
lea rcx, [0x140016c60]
call sub.ntoskrnl.exe_DbgPrint
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdx, rax
lea rcx, [0x140016c70]
call sub.ntoskrnl.exe_DbgPrint
mov r8d, 0x706d6574
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14000cbaa
call fcn.140002230
cdqe
lea rcx, [0x140024d80]
mov rax, qword [rcx + rax*8]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rax]
mov rcx, qword [rsp + 0x70]
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x68]
lea rcx, [0x140016c90]
call sub.ntoskrnl.exe_DbgPrint
call fcn.140002230
cdqe
lea rcx, [0x140024d80]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x90], rax
call fcn.140002230
cdqe
lea rcx, [0x140024d80]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
jmp 0x14000cbcf
lea rcx, [0x140016ca0]
call sub.ntoskrnl.exe_DbgPrint
movzx ecx, byte [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
call fcn.1400022a0
mov eax, dword [rsp + 0x5c]
jmp 0x14000cdee
cmp dword [rsp + 0x64], 0
je 0x14000cbe1
movzx ecx, byte [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
cmp dword [0x14001f3e8], 0
je 0x14000cc55
lea rcx, [0x140016cc0]
call sub.ntoskrnl.exe_DbgPrint
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001f3e0]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x78], eax
mov edx, dword [rsp + 0x78]
lea rcx, [0x140016ce0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x14000cde5
lea rcx, [0x140016d00]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [0x14001f368], 0
je 0x14000cdd9
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14001f3c0]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
test eax, eax
jne 0x14000cdd9
lea rcx, [0x140016d30]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x14001f380]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
lea rcx, [0x140016d70]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [0x14001f368], 0
je 0x14000cd27
mov dword [rsp + 0x54], 0xffffffff
mov dword [rsp + 0x58], 0
jmp 0x14000cce0
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [0x14001c008]
cmp dword [rsp + 0x58], eax
jge 0x14000cd25
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 0x30
mov rcx, qword [0x14001f368]
cmp dword [rcx + rax], 0
je 0x14000cd23
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x54], eax
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [0x14001f368]
mov dword [rcx + rax], 0
jmp 0x14000cd25
jmp 0x14000ccd6
jmp 0x14000cd2f
mov dword [rsp + 0x54], 0xffffffff
cmp dword [rsp + 0x54], 0
jl 0x14000cdca
lfence
mov edx, dword [rsp + 0x54]
lea rcx, [0x140016db0]
call sub.ntoskrnl.exe_DbgPrint
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [0x14001f368]
mov rdx, qword [rsp + 0x68]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [0x14001f368]
mov edx, dword [rsp + 0x70]
mov dword [rcx + rax + 0x10], edx
call fcn.140002230
movsxd rcx, dword [rsp + 0x54]
imul rcx, rcx, 0x30
mov rdx, qword [0x14001f368]
mov dword [rdx + rcx + 0x14], eax
lea rcx, [0x140016dd0]
call sub.ntoskrnl.exe_DbgPrint
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [0x14001f368]
lea rax, [rcx + rax + 0x18]
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
lea rcx, [0x14001f380]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
jmp 0x14000cde5
lea rcx, [0x140016e00]
call sub.ntoskrnl.exe_DbgPrint
call fcn.1400022a0
mov eax, dword [rsp + 0x5c]
add rsp, 0xb8
pop rdi
pop rsi
ret