Function at 0x14013ad90
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r14, rcx
mov rbx, rdx
mov rsi, r8
mov r13, r9
mov qword [rsp + 0x48], 0
test rdx, rdx
je 0x14013afd0
test r8, r8
je 0x14013aeb0
lea rbp, str.sha256__
mov r8d, 8
mov rcx, rbx
mov rdx, rbp
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14013ae50
mov rdi, qword [0x14048b6f0]
mov rax, qword [rdi]
cmp qword [rax + 0xb8], 0
je 0x14013aeb0
mov rax, qword [0x14048b5c0]
mov ecx, 0x20
call qword [rax]
mov r15, rax
test rax, rax
je 0x14013b069
mov rax, qword [rdi]
mov r9d, 0x20
mov r8, r15
mov rdx, r13
mov rcx, rsi
call qword [rax + 0xb8]
mov edi, eax
test eax, eax
je 0x14013aec0
mov eax, edi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
lea rdx, [0x1403f230c]
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
je 0x14013aeb0
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x14013afe0
mov r12, qword [0x14048b5b0]
mov edi, 0x5a
xor ebp, ebp
mov rcx, rbp
call qword [r12]
mov rcx, qword [rsp + 0x48]
call qword [r12]
mov rcx, rbx
mov qword [rsp + 0x48], 0
call sub.msvcrt.dll_fclose
jmp 0x14013ae37
mov edi, 0x5a
jmp 0x14013ae37
lea rax, [rsp + 0x58]
lea rcx, [0x1403f2d60]
mov r8d, 0x20
mov rdx, r15
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
call fcn.140140620
mov r12, qword [0x14048b5b0]
mov rcx, r15
mov edi, eax
call qword [r12]
test edi, edi
jne 0x14013ae37
mov r8, qword [rsp + 0x50]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r14
call fcn.140123250
mov rcx, rbx
call sub.msvcrt.dll_strlen
lea rsi, [rax + 1]
mov rax, qword [0x14048b5c0]
mov rcx, rsi
call qword [rax]
mov r13, rax
test rax, rax
je 0x14013b060
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rsi, r13
call sub.msvcrt.dll_memcpy
lea r14, str._sha256__
jmp 0x14013af80
mov byte [rax], 0
mov rcx, rsi
call sub.msvcrt.dll_strlen
cmp rax, qword [rsp + 0x58]
je 0x14013b078
mov byte [rbx], 0x3b
mov rdx, rbp
mov rcx, rbx
call sub.msvcrt.dll_strstr
mov rsi, rax
test rax, rax
je 0x14013b1e5
mov rcx, rsi
mov rdx, r14
add rsi, 8
call sub.msvcrt.dll_strstr
mov rbx, rax
test rax, rax
jne 0x14013af50
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov r15, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x58]
je 0x14013b0a0
mov edi, 0x5a
mov rcx, r15
call qword [r12]
mov rcx, r13
mov qword [rsp + 0x50], 0
call qword [r12]
jmp 0x14013ae37
xor edi, edi
jmp 0x14013ae37
mov rcx, rbx
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, rbx
movsxd rdi, eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x14013ae7f
cmp edi, 0x100000
ja 0x14013ae7f
cmp rdi, r13
jb 0x14013ae7f
mov r12, qword [0x14048b5c0]
lea rcx, [rdi + 1]
call qword [r12]
mov rbp, rax
test rax, rax
je 0x14013ae7f
mov r9, rbx
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_fread
cmp eax, 1
je 0x14013b0bd
mov r12, qword [0x14048b5b0]
mov edi, 0x5a
jmp 0x14013ae8d
mov rcx, qword [rsp + 0x50]
call qword [r12]
mov edi, 0x1b
jmp 0x14013ae37
mov r15, qword [rsp + 0x50]
mov r8, rax
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14013af66
jmp 0x14013afb4
mov r8, rax
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_memcmp
test eax, eax
mov eax, 0x5a
cmovne edi, eax
jmp 0x14013afb4
cmp r13, rdi
jne 0x14013b0e6
mov r8, r13
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14013b1bd
mov r12, qword [0x14048b5b0]
xor edi, edi
jmp 0x14013ae8d
mov byte [rbp + rdi], 0
lea rdx, str._____BEGIN_PUBLIC_KEY_____
mov rcx, rbp
call sub.msvcrt.dll_strstr
test rax, rax
je 0x14013b1bd
mov r15, rax
sub r15, rbp
je 0x14013b115
cmp byte [rax - 1], 0xa
jne 0x14013b1bd
add r15, 0x1a
lea rdx, str._n_____END_PUBLIC_KEY_____
lea r14, [rbp + r15]
mov rcx, r14
call sub.msvcrt.dll_strstr
mov rdi, rax
test rax, rax
je 0x14013b1bd
sub rdi, rbp
mov rax, rdi
sub rax, r15
lea rcx, [rax + 1]
call qword [r12]
mov rcx, rax
test rax, rax
je 0x14013b1bd
cmp r15, rdi
jae 0x14013b1ef
add rdi, rbp
xor eax, eax
movzx edx, byte [r14]
cmp dl, 0xa
je 0x14013b175
cmp dl, 0xd
je 0x14013b175
mov byte [rcx + rax], dl
add rax, 1
add r14, 1
cmp r14, rdi
jne 0x14013b160
mov byte [rcx + rax], 0
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
call fcn.1401403a0
mov r12, qword [0x14048b5b0]
mov rcx, qword [rsp + 0x38]
mov edi, eax
call qword [r12]
test edi, edi
jne 0x14013b1b3
cmp qword [rsp + 0x58], r13
je 0x14013b1c6
mov edi, 0x5a
jmp 0x14013ae8d
mov r12, qword [0x14048b5b0]
jmp 0x14013b1b3
mov rdx, qword [rsp + 0x48]
mov r8, r13
mov rcx, rsi
call sub.msvcrt.dll_memcmp
test eax, eax
mov eax, 0x5a
cmovne edi, eax
jmp 0x14013ae8d
mov r15, qword [rsp + 0x50]
jmp 0x14013afaf
xor eax, eax
jmp 0x14013b17e