Function at 0x1800059c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x18001c010]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rsi, rdx
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x78], r14
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
call fcn.18000572c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x58]
mov ebx, eax
test eax, eax
js 0x180005bf1
mov rcx, qword [rsp + 0x78]
mov r10, qword [rcx]
xor r9d, r9d
lea r8, [rbp - 0x70]
lea edx, [r9 + 1]
call qword [r10 + 0x18]
test eax, eax
jne 0x180005bf1
cmp dword [rbp - 0x68], 1
jne 0x180005aaf
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
call qword [rax + 0x30]
cmp qword [rbp - 0x80], r14
je 0x180005bf1
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x68], rax
jmp 0x180005a42
cmp dword [rbp - 0x68], 2
jne 0x180005a42
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
js 0x180005bf1
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.18000fa44
nop
or r9, 0xffffffffffffffff
inc r9
cmp word [rsi + r9*2], r14w
jne 0x180005af6
mov r8, rsi
mov rcx, rax
call fcn.1800131c4
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r14
mov qword [rbp], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rsp + 0x48]
call fcn.18000f9e0
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180005be3
mov rcx, qword [rsp + 0x70]
mov r10, qword [rcx]
lea r9, [rbp - 0x20]
mov r8d, 0x400
lea rdx, [rbp + 0x10]
call qword [r10 + 0x18]
jmp 0x180005bd5
mov r8d, dword [rbp - 0x20]
test r8d, r8d
je 0x180005bd9
mov qword [rsp + 0x20], r14
lea r9, [rbp + 8]
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r9, [rbp - 0x20]
mov r8d, 0x400
lea rdx, [rbp + 0x10]
call qword [rax + 0x18]
test eax, eax
jns 0x180005b9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x18]
call fcn.18000f9e0
jmp 0x180005a42
lea rcx, [rsp + 0x68]
call fcn.180005708
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180005c0b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.180014930
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret