Function at 0x1400c0710
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f8]
sub rsp, 0x6d0
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r14, rcx
mov qword [rbp - 0x18], rcx
lea rbx, [0x140023590]
mov qword [rsp + 0x40], rbx
lea rdi, [0x140023d40]
mov qword [rsp + 0x48], rdi
lea rax, [0x140023578]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x25b
mov r13d, 1
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
xor r12d, r12d
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [r13 + 0x77]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.140052e50
nop
mov rcx, r14
call fcn.1400c0314
mov r15, rax
mov qword [rsp + 0x38], rax
lea rax, [0x140001b60]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], r15
mov dword [rbp + 0x78], 0x9d4feff5
mov qword [rbp + 0x7c], 1
mov rsi, qword [r14 + 0xb0]
test rsi, rsi
je 0x1400c08b6
lea r14, [0x140023590]
lea r15, [0x140023d40]
mov rdi, qword [rsi + 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x50]
mov rcx, rbx
call qword [fcn.14005e6a0]
lea rdx, [rsp + 0x34]
mov rcx, rdi
call rbx
mov dword [rbp + 8], eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
lea rax, [0x140023578]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x26f
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r8, [0x140012a90]
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.14006dcc8
test byte [rsp + 0x34], 8
je 0x1400c0893
add dword [rbp + 0x80], r13d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1400c080d
mov r14, qword [rbp - 0x18]
mov r15, qword [rsp + 0x38]
lea rbx, [0x140023590]
lea rdi, [0x140023d40]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rbp + 0x78]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0x1400c08de
cmp dword [rsp + 0x30], 0xc
je 0x1400c094a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400c08f0
movzx eax, ax
or eax, 0x80070000
mov dword [rbp + 8], eax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
lea rax, [0x140023578]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x27b
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r8, [0x140023980]
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.14006dcc8
mov rsi, qword [r14 + 0xb0]
test rsi, rsi
je 0x1400c0be3
lea r14, [0x140023590]
mov rdi, qword [rsi + 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x50]
mov rcx, rbx
call qword [fcn.14005e6a0]
lea rdx, [rsp + 0x34]
mov rcx, rdi
call rbx
mov dword [rbp + 8], eax
mov qword [rsp + 0x40], r14
lea rbx, [0x140023d40]
mov qword [rsp + 0x48], rbx
lea rdi, [0x140023578]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], 0x285
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r8, [0x140012a90]
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.14006dcc8
test byte [rsp + 0x34], 8
jne 0x1400c09ef
mov rsi, qword [rsi]
jmp 0x1400c0bd6
mov qword [rsp + 0x38], r12
mov rdi, qword [rsi + 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14005e6a0]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call rbx
mov dword [rbp + 8], eax
mov qword [rsp + 0x40], r14
lea rbx, [0x140023d40]
mov qword [rsp + 0x48], rbx
lea rdi, [0x140023578]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], 0x293
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r8, [0x140012b80]
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.140073c8c
mov rcx, qword [rsp + 0x38]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400c0a7c
add eax, r13d
mov dword [rbp + 0x88], eax
movups xmm0, xmmword [rsi + 8]
movdqu xmmword [rbp + 0x8c], xmm0
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, 0x14
lea rdx, [rbp + 0x88]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0x1400c0ac6
cmp dword [rsp + 0x30], 0x14
je 0x1400c0b2b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400c0ad8
movzx eax, ax
or eax, 0x80070000
mov dword [rbp + 8], eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], 0x2a0
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r8, [0x140023980]
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.14006dcc8
mov r8d, dword [rbp + 0x88]
add r8d, r8d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0x1400c0b63
mov ecx, dword [rbp + 0x88]
add rcx, rcx
mov eax, dword [rsp + 0x30]
cmp rax, rcx
je 0x1400c0bc8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400c0b75
movzx eax, ax
or eax, 0x80070000
mov dword [rbp + 8], eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], 0x2a8
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
lea r8, [0x140023980]
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.14006dcc8
mov rsi, qword [rsi]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rsi, rsi
jne 0x1400c0961
mov r14, qword [rbp - 0x18]
lea rcx, [rbp - 0x10]
call fcn.140073d40
lea r8, [rbp + 0xa0]
xor edx, edx
mov rcx, r14
call fcn.1400bf738
lea r8, [rbp + 0x330]
mov dl, r13b
mov rcx, r14
call fcn.1400bf738
lea rdx, [rbp + 0xa0]
call fcn.1400bf530
test al, al
je 0x1400c0c2b
lea rdx, [rbp + 0xa0]
call fcn.1400bf3f0
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x330]
call fcn.1400c01c4
nop
lea rcx, [rbp - 0x10]
call fcn.140070dec
nop
lea rcx, [rbp]
call fcn.140050f50
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret