Function at 0x14003b1a8
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.14006ee20
sub rsp, rax
mov rax, qword [0x1400bfa10]
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.14007e51c
mov rcx, rbx
mov rsi, rax
call fcn.140071c6c
test esi, esi
js 0x14003b4e8
cmp esi, 0x4000
je 0x14003b4e8
lea rax, str.file_format_error
mov qword [r13], rax
cmp esi, edi
jl 0x14003b4f3
cmp byte [rbp - 0x40], r12b
jne 0x14003b4f3
lea eax, [rsi - 1]
cmp eax, edi
jl 0x14003b4f3
movzx ebx, byte [rbp - 0x3f]
mov dword [rsp + 0x34], ebx
test ebx, ebx
je 0x14003b280
cmp ebx, 3
jne 0x14003b4f3
lea eax, [rsi - 2]
cmp eax, 4
jl 0x14003b4f3
cmp byte [rbp - 0x3e], r12b
jne 0x14003b4f3
cmp byte [rbp - 0x3d], r12b
jne 0x14003b4f3
cmp byte [rbp - 0x3c], r12b
jne 0x14003b4f3
cmp byte [rbp - 0x3b], r12b
jne 0x14003b4f3
lea edx, [rsi - 6]
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea rcx, [rbp - 0x3a]
mov r8, r14
call fcn.14003e250
test eax, eax
js 0x14003b4f3
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.14000ff04
add edi, 4
mov dword [rsp + 0x30], eax
mov ecx, eax
test eax, eax
js 0x14003b4f3
mov eax, esi
sub eax, edi
cmp eax, ecx
jl 0x14003b4f3
lea eax, [rcx + 1]
mov edx, 1
movsxd rcx, eax
call fcn.14000fd10
mov r12, rax
test rax, rax
je 0x14003b357
movsxd rbx, dword [rsp + 0x30]
lea rdx, [rbp - 0x40]
movsxd rax, edi
mov r8, rbx
add rdx, rax
mov rcx, r12
call fcn.14006f9f0
mov byte [rbx + r12], r15b
mov ebx, dword [rsp + 0x34]
add edi, dword [rsp + 0x30]
cmp qword [rsp + 0x40], r15
je 0x14003b372
mov rcx, r12
call fcn.14000f6d4
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
test r14, r14
je 0x14003b37d
mov qword [r14 + 0x38], r12
jmp 0x14003b385
mov rcx, r12
call fcn.14000fcfc
cmp dword [rsp + 0x38], r15d
je 0x14003b397
mov r15d, 1
jmp 0x14003b4f3
test r14, r14
jne 0x14003b3ab
test ebx, ebx
setne r15b
and qword [r13], r14
jmp 0x14003b4f3
test ebx, ebx
je 0x14003b412
lea rcx, [rsp + 0x50]
call fcn.140039c78
mov rcx, qword [rsp + 0x48]
call fcn.140071b40
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8, rax
call fcn.140039d30
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.140039b6c
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.140031f74
mov edx, 0x10
lea rcx, [rbp - 0x50]
call fcn.140065c14
mov eax, esi
sub eax, edi
cmp eax, 4
jl 0x14003b4f3
movsxd rcx, edi
mov al, byte [rbp + rcx - 0x3e]
cmp byte [rbp + rcx - 0x40], al
jne 0x14003b4db
mov al, byte [rbp + rcx - 0x3d]
cmp byte [rbp + rcx - 0x3f], al
jne 0x14003b4db
add edi, 4
lea rcx, [rbp - 0x40]
movsxd rax, edi
mov edx, esi
add rcx, rax
sub edx, edi
mov r8, r14
call fcn.14003e37c
test eax, eax
js 0x14003b4f3
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.1400307ac
test eax, eax
js 0x14003b4f3
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.1400307ac
test eax, eax
js 0x14003b4f3
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.1400307ac
test eax, eax
js 0x14003b4f3
mov rcx, r14
call fcn.14003e97c
test eax, eax
jne 0x14003b38c
lea rax, str.rsa_verify_failed
mov rcx, r14
mov qword [r13], rax
call fcn.14003e1a8
jmp 0x14003b4f3
lea rax, str.wrong_passphrase
or r15d, 0xffffffff
jmp 0x14003b4ef
lea rax, str.error_reading_file
mov qword [r13], rax
mov edx, 0x4000
lea rcx, [rbp - 0x40]
call fcn.140065c14
mov eax, r15d
mov rcx, qword [rbp + 0x3fc0]
xor rcx, rsp
call fcn.14006eb50
mov rbx, qword [rsp + 0x4120]
add rsp, 0x40d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret