Function at 0x1800cfdf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x9a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x180370940]
xor rax, rbp
mov qword [rbp + 0x3d8], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, qword [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1800cfe73
xor al, al
jmp 0x1800d00f8
mov dword [rbp + 0x384], 0x7d0
lea r9, [rbp + 0x384]
movabs r8, 0x2b9fff192bd4c83e
movabs rdx, 0xbb62c62c9808ea37
lea rcx, [rbp + 0x28]
call fcn.1800c09e0
nop
lea rcx, [rbp + 0x28]
call fcn.1800cebf0
add rax, 0x10
mov qword [rbp + 0x68], rax
lea rax, [0x180376b70]
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x88]
call fcn.1800d1dd0
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0x88]
call fcn.1800d1e60
mov qword [rbp + 0xc8], rax
jmp 0x1800cfefb
mov rax, qword [rbp + 0xa8]
add rax, 0x28
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0xa8], rax
je 0x1800cff34
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xe8], rax
mov rcx, qword [rbp + 0xe8]
call fcn.1800cebf0
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 0x10]
mov qword [rbp + 0x68], rax
jmp 0x1800cfee9
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp + 0x68]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1800cff89
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1800cff89
mov byte [rbp + 0x3a4], 0
lea rcx, [rbp + 0x28]
call fcn.1800c7540
movzx eax, byte [rbp + 0x3a4]
jmp 0x1800d00f8
mov rcx, qword [rbp + 0x68]
call fcn.180161280
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0x148], rax
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x108]
call fcn.1800d0c00
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
lea rax, [0x180376b70]
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0x168]
call fcn.1800d1dd0
mov qword [rbp + 0x188], rax
mov rcx, qword [rbp + 0x168]
call fcn.1800d1e60
mov qword [rbp + 0x1a8], rax
jmp 0x1800d002b
mov rax, qword [rbp + 0x188]
add rax, 0x28
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x1a8]
cmp qword [rbp + 0x188], rax
je 0x1800d0085
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x128]
cmp qword [rbp + 0x148], rax
jbe 0x1800d005c
int3
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x148]
call fcn.1800d0c00
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
jmp 0x1800d0019
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x68]
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x1e4], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x108]
call fcn.1801612c0
cmp dword [rbp + 0x1e4], 0
je 0x1800d00d4
mov byte [rbp + 0x3d4], 1
jmp 0x1800d00db
mov byte [rbp + 0x3d4], 0
movzx eax, byte [rbp + 0x3d4]
mov byte [rbp + 0x3c4], al
lea rcx, [rbp + 0x28]
call fcn.1800c7540
movzx eax, byte [rbp + 0x3c4]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x180256d60]
call fcn.180224a80
mov rax, rdi
mov rcx, qword [rbp + 0x3d8]
xor rcx, rbp
call fcn.180224dd0
lea rsp, [rbp + 0x3e8]
pop rdi
pop rbp
ret