Function at 0x140027b00
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 - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400a45f8]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor ebx, ebx
lea r8, [rsp + 0x38]
mov rdi, rdx
mov qword [rsp + 0x30], rbx
mov rsi, rcx
lea rcx, [rbp + 0xa0]
lea edx, [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ctime64_s]
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140027bc9
test r14d, r14d
jne 0x140027bc9
mov r8, qword [rsp + 0x38]
lea edx, [rbx + 0x1c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea edx, [rbx + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
jne 0x140027b9b
mov eax, 1
jmp 0x140027d4d
lea r8, [rax + 1]
mov edx, 0x1c
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov edx, 0x20
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140027b91
mov byte [rax + 1], bl
jmp 0x140027bcd
mov byte [rsp + 0x40], bl
test rsi, rsi
je 0x140027bd9
mov qword [rsp + 0x30], rsi
jmp 0x140027c00
cmp byte [0x1400a6020], bl
je 0x140027c00
lea r8, [0x14008730c]
lea rdx, [0x1400a6020]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsp + 0x30], rbx
je 0x140027b91
mov edx, 0x32
lea rcx, [rsp + 0x60]
call fcn.1400264c0
cmp eax, 0xffffffff
je 0x140027cc1
lea rcx, [rsp + 0x60]
lea rdx, str.NONAME
nop dword [rax + rax]
movzx eax, byte [rcx + rbx]
inc rbx
cmp al, byte [rdx + rbx - 1]
jne 0x140027c7d
cmp rbx, 7
jne 0x140027c30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
lea r9, [rsp + 0x40]
mov edx, 0x100
lea r8, str._n_s___lu_
mov dword [rsp + 0x20], eax
lea rcx, [rbp - 0x60]
call fcn.1400292e0
or rbx, 0xffffffffffffffff
lea rax, [rbp - 0x60]
mov rdx, rbx
inc rdx
cmp byte [rax + rdx], 0
jne 0x140027c72
jmp 0x140027cf9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x60]
mov edx, 0x100
lea r8, str._n_s___s:_lu_
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x60]
call fcn.1400292e0
or rbx, 0xffffffffffffffff
lea rax, [rbp - 0x60]
mov rdx, rbx
inc rdx
cmp byte [rax + rdx], 0
jne 0x140027cb6
jmp 0x140027cf9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
lea r9, [rsp + 0x40]
mov edx, 0x100
lea r8, str._n_s___lu_
mov dword [rsp + 0x20], eax
lea rcx, [rbp - 0x60]
call fcn.1400292e0
or rbx, 0xffffffffffffffff
lea rax, [rbp - 0x60]
mov rdx, rbx
inc rdx
cmp byte [rax + rdx], 0
jne 0x140027cf0
mov r9, qword [rsp + 0x30]
lea rcx, [rbp - 0x60]
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test rdi, rdi
je 0x140027d40
cmp byte [rdi], 0
je 0x140027d40
nop dword [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140027d20
mov r9, qword [rsp + 0x30]
mov rdx, rbx
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140077b10
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret