Function at 0x14001ece4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3fd0]
mov eax, 0x40d0
call fcn.140047cb0
sub rsp, rax
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rbp + 0x3fc0], rax
mov rax, qword [rbp + 0x4030]
xor r12d, r12d
mov r13, qword [rbp + 0x4038]
mov r14, rdx
mov qword [rsp + 0x40], r9
mov rbx, rcx
mov dword [rsp + 0x38], r8d
mov r9, rcx
lea edi, [r12 + 1]
mov qword [rsp + 0x48], rax
mov edx, edi
mov qword [r13], r12
mov r8d, 0x4000
lea rcx, [rbp - 0x40]
mov r15d, r12d
call fcn.140053074
mov rcx, rbx
mov rsi, rax
call fcn.140052a78
test esi, esi
js 0x14001f033
cmp esi, 0x4000
je 0x14001f033
lea rax, str.file_format_error
mov qword [r13], rax
cmp esi, edi
jl 0x14001f03e
cmp byte [rbp - 0x40], r12b
jne 0x14001f03e
cmp esi, edi
jle 0x14001f03e
movzx ebx, byte [rbp - 0x3f]
mov dword [rsp + 0x34], ebx
test ebx, ebx
je 0x14001edb9
cmp ebx, 3
jne 0x14001f03e
lea eax, [rsi - 2]
cmp eax, 4
jl 0x14001f03e
cmp byte [rbp - 0x3e], r12b
jne 0x14001f03e
cmp byte [rbp - 0x3d], r12b
jne 0x14001f03e
cmp byte [rbp - 0x3c], r12b
jne 0x14001f03e
cmp byte [rbp - 0x3b], r12b
jne 0x14001f03e
lea edx, [rsi - 6]
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea rcx, [rbp - 0x3a]
mov r8, r14
call fcn.14001aff4
test eax, eax
js 0x14001f03e
lea edi, [rax + 6]
movsxd rdx, edi
movzx eax, byte [rbp + rdx - 0x3f]
movzx ecx, byte [rbp + rdx - 0x40]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + rdx - 0x3e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + rdx - 0x3d]
shl ecx, 8
or ecx, eax
call fcn.14003986c
add edi, 4
mov dword [rsp + 0x30], eax
mov ecx, eax
test eax, eax
js 0x14001f03e
mov eax, esi
sub eax, edi
cmp eax, ecx
jl 0x14001f03e
lea eax, [rcx + 1]
mov edx, 1
movsxd rcx, eax
call fcn.140039714
mov r12, rax
test rax, rax
je 0x14001ee90
movsxd rbx, dword [rsp + 0x30]
lea rdx, [rbp - 0x40]
movsxd rax, edi
mov r8, rbx
add rdx, rax
mov rcx, r12
call fcn.140048790
mov byte [rbx + r12], r15b
mov ebx, dword [rsp + 0x34]
add edi, dword [rsp + 0x30]
cmp qword [rsp + 0x40], r15
je 0x14001eeab
mov rcx, r12
call fcn.140039178
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
test r14, r14
je 0x14001eeb6
mov qword [r14 + 0x38], r12
jmp 0x14001eebe
mov rcx, r12
call fcn.140039700
cmp dword [rsp + 0x38], r15d
je 0x14001eed0
mov r15d, 1
jmp 0x14001f03e
test r14, r14
jne 0x14001eee4
test ebx, ebx
setne r15b
and qword [r13], r14
jmp 0x14001f03e
test ebx, ebx
je 0x14001ef4b
lea rcx, [rsp + 0x50]
call fcn.1400192d4
mov rcx, qword [rsp + 0x48]
call fcn.14004bdc0
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8, rax
call fcn.140019364
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.1400191b4
mov r8d, esi
movsxd rax, edi
sub r8d, edi
lea rdx, [rbp - 0x40]
add r8d, 7
lea rcx, [rbp - 0x50]
and r8d, 0xfffffff8
add rdx, rax
call fcn.140016fe4
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rbp - 0x50]
call fcn.1400446c4
mov eax, esi
sub eax, edi
cmp eax, 4
jl 0x14001f03e
lea eax, [rdi + 2]
movsxd rdx, edi
movsxd rcx, eax
mov al, byte [rbp + rcx - 0x40]
cmp byte [rbp + rdx - 0x40], al
jne 0x14001f026
lea eax, [rdi + 3]
movsxd rdx, eax
lea eax, [rdi + 1]
movsxd rcx, eax
mov al, byte [rbp + rdx - 0x40]
cmp byte [rbp + rcx - 0x40], al
jne 0x14001f026
add edi, 4
lea rcx, [rbp - 0x40]
movsxd rax, edi
mov edx, esi
add rcx, rax
sub edx, edi
mov r8, r14
call fcn.14001b120
test eax, eax
js 0x14001f03e
add edi, eax
lea rcx, [rbp - 0x40]
movsxd rax, edi
lea r8, [r14 + 0x30]
mov edx, esi
add rcx, rax
sub edx, edi
call fcn.14002da48
test eax, eax
js 0x14001f03e
add edi, eax
lea rcx, [rbp - 0x40]
movsxd rax, edi
lea r8, [r14 + 0x28]
mov edx, esi
add rcx, rax
sub edx, edi
call fcn.14002da48
test eax, eax
js 0x14001f03e
add edi, eax
lea rcx, [rbp - 0x40]
movsxd rax, edi
lea r8, [r14 + 0x20]
sub esi, edi
add rcx, rax
mov edx, esi
call fcn.14002da48
test eax, eax
js 0x14001f03e
mov rcx, r14
call fcn.14001b6fc
test eax, eax
jne 0x14001eec5
lea rax, str.rsa_verify_failed
mov rcx, r14
mov qword [r13], rax
call fcn.14001af4c
jmp 0x14001f03e
lea rax, str.wrong_passphrase
or r15d, 0xffffffff
jmp 0x14001f03a
lea rax, str.error_reading_file
mov qword [r13], rax
mov edx, 0x4000
lea rcx, [rbp - 0x40]
call fcn.1400446c4
mov eax, r15d
mov rcx, qword [rbp + 0x3fc0]
xor rcx, rsp
call fcn.1400479e0
mov rbx, qword [rsp + 0x4120]
add rsp, 0x40d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret