Function at 0x14017e4e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x14039a678]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
lea r8, [0x1402a9904]
mov rdx, rcx
lea rcx, [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
mov r9, qword [rsp + 0x28]
test r9, r9
jne 0x14017e5c6
xor ebx, ebx
mov qword [rbp - 0x51], rbx
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], SafeArrayGetLBound
mov byte [rbp - 0x51], bl
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], bl
jne 0x14017e550
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.1400e82b0
nop
lea r8, [rbp - 0x51]
lea rdx, str._AES256__writeFile__Can_not_open_output_file:
lea rcx, [rbp - 0x71]
call fcn.1400d13b0
mov rcx, rax
call fcn.14017eab0
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14017e6ff
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017e6fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017e8df
jmp 0x14017e6fa
mov r8, r14
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, qword [rsp + 0x28]
cmp rax, r14
je 0x14017e706
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
xor ebx, ebx
mov qword [rbp - 0x51], rbx
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], SafeArrayGetLBound
mov byte [rbp - 0x51], bl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], bl
jne 0x14017e605
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.1400e82b0
nop
lea r8, [rbp - 0x51]
lea rdx, str._AES256__writeFile__Write_to_file
lea rcx, [rbp - 0x11]
call fcn.1400d13b0
nop
mov r8d, 7
lea rdx, str._failed
mov rcx, rax
call fcn.1400e7f00
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x21], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], SafeArrayGetLBound
mov byte [rax], 0
lea rcx, [rbp - 0x31]
call fcn.14017eab0
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14017e6b4
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017e6af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017e8e5
call fcn.1401e3784
mov qword [rbp - 1], rbx
mov qword [rbp + 7], SafeArrayGetLBound
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14017e6ff
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017e6fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017e8eb
call fcn.1401e3784
xor eax, eax
jmp 0x14017e8bf
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
xor ebx, ebx
mov qword [rbp - 0x51], rbx
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], SafeArrayGetLBound
mov byte [rbp - 0x51], bl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], bl
jne 0x14017e727
mov rdx, rdi
lea rcx, [rbp - 0x51]
call fcn.1400e82b0
nop
mov edx, r14d
lea rcx, [rbp - 0x31]
call fcn.14010bd70
nop
mov r8, rax
lea rdx, str._AES256__writeFile__Write
lea rcx, [rbp - 0x11]
call fcn.1400d13b0
nop
mov r8d, SafeArrayGetLBound
lea rdx, str._bytes_to_file
mov rcx, rax
call fcn.1400e7f00
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], SafeArrayGetLBound
mov byte [rax], 0
lea r9, [rbp - 0x51]
lea r8, [rbp + 0xf]
movzx edx, byte [rsp + 0x20]
lea rcx, [rbp - 0x71]
call fcn.1400da300
lea rcx, [rbp - 0x71]
call fcn.14017eab0
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14017e7ed
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017e7e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017e8f1
call fcn.1401e3784
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14017e828
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017e823
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017e8f7
call fcn.1401e3784
mov qword [rbp - 1], rbx
mov qword [rbp + 7], SafeArrayGetLBound
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x14017e873
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017e86e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017e8fd
call fcn.1401e3784
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], SafeArrayGetLBound
mov byte [rbp - 0x31], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14017e8ba
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017e8b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017e8d9
call fcn.1401e3784
mov eax, 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401e3ce0
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3