Function at 0x14001e160
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xe0], 0
jne 0x14001e196
int 0x2c
mov dword [rsp + 0x70], 0
jmp 0x14001e19e
mov dword [rsp + 0x70], 1
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
movzx eax, al
test eax, eax
je 0x14001e1b7
int 0x2c
mov dword [rsp + 0x74], 0
jmp 0x14001e1bf
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0xe0]
add rax, 0x38
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExEnterCriticalRegionAndAcquireResourceExclusive]
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xe0]
add rax, 0x30
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeAcquireInStackQueuedSpinLock]
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x78], rax
jne 0x14001e246
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x80], rax
jmp 0x14001e25a
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x80]
mov qword [rax], rcx
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov byte [rax + rcx], 0
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_KeReleaseInStackQueuedSpinLock]
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x14001e3c4
mov rcx, qword [rsp + 0x58]
call fcn.14001eab0
mov byte [rsp + 0x50], al
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14001f070
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
cmp byte [rax + rcx], 0
jne 0x14001e312
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14001e395
call fcn.14001dee0
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x14001e3a8
mov rcx, qword [rsp + 0x58]
call fcn.14001def0
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
lea rax, [rax + rcx + 1]
mov qword [rsp + 0x58], rax
jmp 0x14001e2c8
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0xe0]
add rax, 0x38
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceAndLeaveCriticalRegion]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140021990
add rsp, 0xd0
pop rdi
ret