Function at 0x1800d0290
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 [0x180371940]
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 0x1800d0313
xor al, al
jmp 0x1800d0598
mov dword [rbp + 0x384], 0x7d0
lea r9, [rbp + 0x384]
movabs r8, 0x2b9fff192bd4c83e
movabs rdx, 0xbb62c62c9808ea37
lea rcx, [rbp + 0x28]
call fcn.1800c1b10
nop
lea rcx, [rbp + 0x28]
call fcn.1800cf090
add rax, 0x10
mov qword [rbp + 0x68], rax
lea rax, [0x180377b50]
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x88]
call fcn.1800d2270
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0x88]
call fcn.1800d2300
mov qword [rbp + 0xc8], rax
jmp 0x1800d039b
mov rax, qword [rbp + 0xa8]
add rax, 0x28
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xc8]
cmp qword [rbp + 0xa8], rax
je 0x1800d03d4
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xe8], rax
mov rcx, qword [rbp + 0xe8]
call fcn.1800cf090
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 0x10]
mov qword [rbp + 0x68], rax
jmp 0x1800d0389
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 0x1800d0429
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 0x1800d0429
mov byte [rbp + 0x3a4], 0
lea rcx, [rbp + 0x28]
call fcn.1800c8020
movzx eax, byte [rbp + 0x3a4]
jmp 0x1800d0598
mov rcx, qword [rbp + 0x68]
call fcn.180162320
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.1800d10a0
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
lea rax, [0x180377b50]
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0x168]
call fcn.1800d2270
mov qword [rbp + 0x188], rax
mov rcx, qword [rbp + 0x168]
call fcn.1800d2300
mov qword [rbp + 0x1a8], rax
jmp 0x1800d04cb
mov rax, qword [rbp + 0x188]
add rax, 0x28
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x1a8]
cmp qword [rbp + 0x188], rax
je 0x1800d0525
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x128]
cmp qword [rbp + 0x148], rax
jbe 0x1800d04fc
int3
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x148]
call fcn.1800d10a0
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
jmp 0x1800d04b9
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.180162360
cmp dword [rbp + 0x1e4], 0
je 0x1800d0574
mov byte [rbp + 0x3d4], 1
jmp 0x1800d057b
mov byte [rbp + 0x3d4], 0
movzx eax, byte [rbp + 0x3d4]
mov byte [rbp + 0x3c4], al
lea rcx, [rbp + 0x28]
call fcn.1800c8020
movzx eax, byte [rbp + 0x3c4]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x180257af0]
call fcn.180225a10
mov rax, rdi
mov rcx, qword [rbp + 0x3d8]
xor rcx, rbp
call fcn.180225d60
lea rsp, [rbp + 0x3e8]
pop rdi
pop rbp
ret