Function at 0x14000ce00
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov rax, qword [0x14001c050]
xor rax, rsp
mov qword [rsp + 0xf0], rax
cmp dword [rsp + 0x138], 0x40
jle 0x14000ce42
mov eax, 0xc0000001
jmp 0x14000d175
mov eax, dword [rsp + 0x128]
mov dword [0x14001f3e8], eax
cmp dword [0x14001f3e8], 0
je 0x14000cf4b
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xb0], 0x240
lea rax, [rsp + 0x88]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov rdx, qword [rsp + 0x90]
lea rcx, [0x140017050]
call sub.ntoskrnl.exe_DbgPrint
mov qword [0x14001f3e0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x24
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x98]
mov edx, 0x10100005
lea rcx, [0x14001f3e0]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
lea rcx, [0x140017070]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x138]
mov dword [0x14001c008], eax
mov r8d, dword [0x14001c008]
mov edx, dword [0x14001c008]
lea rcx, [0x14001f3c0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeSemaphore]
lea rcx, [0x14001f380]
call fcn.14000c980
movsxd rax, dword [0x14001c008]
imul rax, rax, 0x30
mov r8d, 0x42544144
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [0x14001f368], rax
movsxd rax, dword [0x14001c008]
shl rax, 3
mov r8d, 0x4c505244
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [0x14001f360], rax
movsxd rax, dword [0x14001c008]
imul rax, rax, 0x30
mov qword [rsp + 0x70], rax
mov rdi, qword [0x14001f368]
xor eax, eax
mov rcx, qword [rsp + 0x70]
rep stosb byte [rdi], al
movsxd rax, dword [0x14001c008]
shl rax, 3
mov qword [rsp + 0x78], rax
mov rdi, qword [0x14001f360]
xor eax, eax
mov rcx, qword [rsp + 0x78]
rep stosb byte [rdi], al
cmp qword [0x14001f368], 0
je 0x14000d164
cmp qword [0x14001f360], 0
je 0x14000d164
mov dword [rsp + 0x60], 0
jmp 0x14000d034
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [0x14001c008]
cmp dword [rsp + 0x60], eax
jge 0x14000d0c7
lfence
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x30
mov rcx, qword [0x14001f368]
mov qword [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x60]
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_KeInitializeEvent]
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x30
mov rcx, qword [0x14001f368]
mov dword [rcx + rax], 1
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x30
mov rcx, qword [0x14001f368]
lea rax, [rcx + rax + 0x18]
movsxd rcx, dword [rsp + 0x60]
mov rdx, qword [0x14001f360]
mov qword [rdx + rcx*8], rax
jmp 0x14000d02a
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0xe8], eax
mov rax, qword [sym.imp.ntoskrnl.exe_HalDispatchTable]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
lea r8, [0x14001c010]
mov edx, 8
mov ecx, 1
mov rax, qword [rsp + 0x80]
call qword [0x14001a3d0]
mov dword [rsp + 0x68], eax
mov edx, dword [rsp + 0x68]
lea rcx, [0x140017090]
call sub.ntoskrnl.exe_DbgPrint
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xd8]
lea rcx, [0x14000d530]
call fcn.1400022c0
xor eax, eax
jmp 0x14000d175
lea rcx, [0x1400170c0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc00000a0
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140014890
add rsp, 0x100
pop rdi
ret