Function at 0x14000bda0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x64], 0
call fcn.140002480
cdqe
lea rcx, [0x14001f9c0]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x80], rax
call fcn.140002480
cdqe
lea rcx, [0x14001f9c0]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x80]
cmp qword [rcx + 8], rax
jb 0x14000bdff
mov dword [rsp + 0x60], 1
jmp 0x14000be07
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x14000be1b
call fcn.14000c420
call fcn.140002480
cdqe
lea rcx, [0x14001f9c0]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x88], rax
call fcn.140002480
cdqe
lea rcx, [0x14001f9c0]
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 fcn.140002bb0
movzx eax, al
cmp eax, 2
jge 0x14000be7f
mov dword [rsp + 0x64], 1
call fcn.140002bc0
mov byte [rsp + 0x50], al
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14000bef7
call fcn.140002480
cdqe
lea rcx, [0x14001f9c0]
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]
call fcn.140002480
cdqe
lea rcx, [0x14001f9c0]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x90], rax
call fcn.140002480
cdqe
lea rcx, [0x14001f9c0]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
jmp 0x14000bf0f
movzx ecx, byte [rsp + 0x50]
call fcn.140002bd0
call fcn.1400024f0
mov eax, dword [rsp + 0x5c]
jmp 0x14000c0bf
cmp dword [rsp + 0x64], 0
je 0x14000bf20
movzx ecx, byte [rsp + 0x50]
call fcn.140002bd0
cmp dword [0x14001a028], 0
je 0x14000bf78
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 [0x14001a020]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x78], eax
jmp 0x14000c0b6
cmp qword [0x140019fa8], 0
je 0x14000c0b6
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14001a000]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
test eax, eax
jne 0x14000c0b6
lea rcx, [0x140019fc0]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
cmp qword [0x140019fa8], 0
je 0x14000c026
mov dword [rsp + 0x54], 0xffffffff
mov dword [rsp + 0x58], 0
jmp 0x14000bfdf
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [0x140016008]
cmp dword [rsp + 0x58], eax
jge 0x14000c024
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 0x30
mov rcx, qword [0x140019fa8]
cmp dword [rcx + rax], 0
je 0x14000c022
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x54], eax
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [0x140019fa8]
mov dword [rcx + rax], 0
jmp 0x14000c024
jmp 0x14000bfd5
jmp 0x14000c02e
mov dword [rsp + 0x54], 0xffffffff
cmp dword [rsp + 0x54], 0
jl 0x14000c0a9
lfence
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [0x140019fa8]
mov rdx, qword [rsp + 0x68]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [0x140019fa8]
mov edx, dword [rsp + 0x70]
mov dword [rcx + rax + 0x10], edx
call fcn.140002480
movsxd rcx, dword [rsp + 0x54]
imul rcx, rcx, 0x30
mov rdx, qword [0x140019fa8]
mov dword [rdx + rcx + 0x14], eax
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [0x140019fa8]
lea rax, [rcx + rax + 0x18]
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
lea rcx, [0x140019fc0]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
call fcn.1400024f0
mov eax, dword [rsp + 0x5c]
add rsp, 0xb8
pop rdi
pop rsi
ret