Function at 0x140018de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rbp - 0x28], rax
cmp qword [rcx + 0x18], 7
movaps xmm6, xmm3
movaps xmm7, xmm2
mov qword [rbp - 0x60], 0
mov rdi, rdx
jbe 0x140018e23
mov rcx, qword [rcx]
mov rdx, rcx
lea r8, [0x140053ac8]
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r9, qword [rbp - 0x60]
test r9, r9
jne 0x140018e49
lea eax, [r9 + 1]
jmp 0x14001904e
mov edx, 6
mov qword [rsp + 0xa0], rbx
lea rcx, [rbp - 0x58]
mov dword [rbp - 0x58], 0x2000600
mov word [rbp - 0x54], 0x5802
lea r8d, [rdx - 5]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rbp - 0x60]
lea rcx, [rbp - 0x58]
xor eax, eax
mov dword [rbp - 0x58], 0x2011c00
xorps xmm0, xmm0
mov qword [rbp - 0x30], rax
mov r9, rbx
movups xmmword [rbp - 0x40], xmm0
lea edx, [rax + 4]
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 0x18
lea rcx, [rbp - 0x40]
mov r9, rbx
lea r8d, [rdx - 0x17]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rbp - 0x60]
lea rcx, [rbp - 0x58]
mov edx, 4
mov dword [rbp - 0x58], 0x6020400
mov r9, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor edx, edx
lea rcx, [0x140053ee1]
mov r9, rbx
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xorps xmm0, xmm0
lea rdx, [rbp - 0x50]
movups xmmword [rbp - 0x50], xmm0
movaps xmm0, xmm7
call fcn.140015ef0
lea rdx, [rbp - 0x48]
movaps xmm0, xmm6
call fcn.140015ef0
mov rbx, qword [rbp - 0x60]
lea rcx, [rbp - 0x58]
mov edx, 4
mov dword [rbp - 0x58], 0x5031400
mov r9, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 0x10
lea rcx, [rbp - 0x50]
mov r9, rbx
lea r8d, [rdx - 0xf]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rbp - 0x60]
lea rcx, [rbp - 0x58]
mov edx, 4
mov dword [rbp - 0x58], 0x2051c00
mov r9, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 0x18
lea rcx, [rbp - 0x40]
mov r9, rbx
lea r8d, [rdx - 0x17]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rbp - 0x60]
lea rcx, [rbp - 0x58]
mov edx, 4
mov dword [rbp - 0x58], 0x6060800
mov r9, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 3
lea rcx, [0x1400573a0]
mov r9, rbx
lea r8d, [rdx - 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rbx, rdi
je 0x140018ffe
nop dword [rax + rax]
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
sub r8, rdx
sar r8, 4
test r8, r8
je 0x140019075
movzx r9d, word [rbx + 0x18]
mov rcx, qword [rbp - 0x60]
call fcn.140016050
add rbx, 0x40
cmp rbx, rdi
jne 0x140018fd0
mov r9, qword [rbp - 0x60]
lea rcx, [rbp - 0x58]
mov edx, 4
mov dword [rbp - 0x58], 0x70400
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x60]
lea rcx, [rbp - 0x58]
mov edx, 4
mov dword [rbp - 0x58], 0x40400
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0xa0]
xor eax, eax
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.140033a80
mov rdi, qword [rsp + 0xa8]
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
add rsp, 0x80
pop rbp
ret
call fcn.140019480
int3