Function at 0x140162670
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [r8], r14d
lea r8, [0x14027d3d4]
mov rdx, rcx
lea rcx, [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jne 0x140162756
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], SafeArrayGetLBound
mov byte [rbp - 0x51], r14b
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], r14b
jne 0x1401626e0
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.1400d0690
nop
lea r8, [rbp - 0x51]
lea rdx, str._AES256__readFile__Can_not_open_input_file:
lea rcx, [rbp - 0x71]
call fcn.1400b9790
mov rcx, rax
call fcn.1401630b0
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1401628ca
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401628c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140162ab1
jmp 0x1401628c5
xor edx, edx
lea r8d, [rdx + 2]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov dword [rdi], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test rsi, rsi
je 0x140162a82
mov r8d, dword [rdi]
mov r9, qword [rsp + 0x28]
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ecx, dword [rdi]
cmp rax, rcx
je 0x1401628d1
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], SafeArrayGetLBound
mov byte [rbp - 0x51], r14b
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], r14b
jne 0x1401627d0
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.1400d0690
nop
lea r8, [rbp - 0x51]
lea rdx, str._AES256__readFile__Read_from_file
lea rcx, [rbp - 0x11]
call fcn.1400b9790
nop
mov r8d, 7
lea rdx, str._failed
mov rcx, rax
call fcn.1400d02e0
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x21], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], SafeArrayGetLBound
mov byte [rax], 0
lea rcx, [rbp - 0x31]
call fcn.1401630b0
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14016287f
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016287a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140162ab7
call fcn.1401c72f8
mov qword [rbp - 1], r14
mov qword [rbp + 7], SafeArrayGetLBound
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1401628ca
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401628c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140162abd
call fcn.1401c72f8
xor eax, eax
jmp 0x140162a91
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], SafeArrayGetLBound
mov byte [rbp - 0x51], r14b
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], r14b
jne 0x1401628f0
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.1400d0690
nop
mov edx, dword [rdi]
lea rcx, [rbp - 0x31]
call fcn.1400f4040
nop
mov r8, rax
lea rdx, str._AES256__readFile__Read
lea rcx, [rbp - 0x11]
call fcn.1400b9790
nop
mov r8d, SafeArrayGetLBound
lea rdx, str._bytes_from_file
mov rcx, rax
call fcn.1400d02e0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], r14
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.1400c26e0
lea rcx, [rbp - 0x71]
call fcn.1401630b0
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x1401629b5
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401629af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140162ac3
call fcn.1401c72f8
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x1401629f0
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401629eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140162ac9
call fcn.1401c72f8
mov qword [rbp - 1], r14
mov qword [rbp + 7], SafeArrayGetLBound
mov byte [rbp - 0x11], 0
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140162a3b
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140162a36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140162acf
call fcn.1401c72f8
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], SafeArrayGetLBound
mov byte [rbp - 0x31], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140162a82
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140162a7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140162aab
call fcn.1401c72f8
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401c7850
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