Function at 0x1800377a0
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x68], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
movzx eax, al
test eax, eax
jne 0x180037823
xor eax, eax
jmp 0x180037b8a
mov dword [rsp + 0x78], 0x100002
mov dword [rsp + 0x80], 5
movzx eax, byte [rsp + 0x130]
test eax, eax
je 0x180037858
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x80], 3
mov dword [rsp + 0xc8], 0x30
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xe0], 0x40
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
lea r8, [rsp + 0xc8]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x18003790e
jmp 0x180037b46
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x130]
test eax, eax
je 0x180037960
mov dword [rsp + 0xb0], 0xffffffff
mov dword [rsp + 0xb4], 0xffffffff
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x90], rax
cmp dword [rsp + 0x120], 0x80000000
jae 0x1800379eb
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
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 [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x1800379d3
jmp 0x180037b46
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x68], eax
jmp 0x180037b46
mov dword [rsp + 0x60], 0x7fffffff
mov eax, dword [rsp + 0x120]
cdq
idiv dword [rsp + 0x60]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x7c], 0
jmp 0x180037a1a
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0x7c], eax
jge 0x180037ab9
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
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 [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x180037a86
jmp 0x180037b46
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x68], eax
jmp 0x180037a10
mov eax, dword [rsp + 0x120]
cdq
idiv dword [rsp + 0x60]
mov eax, edx
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
je 0x180037b46
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
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 [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x180037b33
jmp 0x180037b46
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0x70], 0
je 0x180037b78
movzx eax, byte [rsp + 0x128]
test eax, eax
je 0x180037b6d
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtFlushBuffersFile]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [rsp + 0x68]
add rsp, 0x100
pop rdi
ret