Function at 0x140067f90
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov rbx, rdx
mov rsi, r8
mov r12, r9
test rdx, rdx
je 0x1400681f8
test r8, r8
je 0x1400680c0
test r9, r9
je 0x1400680c0
lea rbp, str.sha256__
mov r8d, 8
mov rcx, rbx
mov rdx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140068060
mov qword [rsp + 0x30], 0
mov rax, qword [0x140169cc0]
mov qword [rsp + 0x38], 0
cmp qword [rax + 0xb8], 0
je 0x1400680c0
mov rax, qword [0x140184850]
mov ecx, 0x20
call qword [rax]
mov r13, rax
test rax, rax
je 0x140068208
mov r8, rax
mov rax, qword [0x140169cc0]
mov rdx, r12
mov rcx, rsi
mov r9d, 0x20
call qword [rax + 0xb8]
mov edi, eax
test eax, eax
je 0x1400680e0
mov rax, qword [0x140184840]
mov rcx, r13
call qword [rax]
jmp 0x1400680c5
mov rcx, rbx
lea rdx, [0x140176a8c]
call fcn.1400720c0
mov rbx, rax
test rax, rax
je 0x1400680c0
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
je 0x140068218
mov r14, qword [0x140184840]
mov edi, 0x5a
xor ebp, ebp
mov rcx, rbp
call qword [r14]
mov rcx, qword [rsp + 0x28]
call qword [r14]
mov rcx, rbx
mov qword [rsp + 0x28], 0
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
jmp 0x1400680c5
mov edi, 0x5a
mov eax, edi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov edx, 0x20
call fcn.14006a270
mov r14, qword [0x140184840]
mov rcx, r13
mov edi, eax
call qword [r14]
test edi, edi
jne 0x1400680c5
mov rax, qword [0x140184870]
mov rcx, rbx
lea r12, str._sha256__
call qword [rax]
mov r13, rax
mov rsi, rax
test rax, rax
je 0x140068200
nop dword [rax]
mov rcx, rsi
mov rdx, r12
add rsi, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
mov rbx, rax
test rax, rax
je 0x140068180
mov byte [rax], 0
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rax, qword [rsp + 0x30]
je 0x1400681b8
mov byte [rbx], 0x3b
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
mov rsi, rax
test rax, rax
jne 0x140068130
mov r15, qword [rsp + 0x38]
mov edi, 0x5a
jmp 0x140068199
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r15, qword [rsp + 0x38]
cmp rax, qword [rsp + 0x30]
je 0x1400681d8
mov edi, 0x5a
mov rcx, r15
call qword [r14]
mov rcx, r13
mov qword [rsp + 0x38], 0
call qword [r14]
jmp 0x1400680c5
mov r15, qword [rsp + 0x38]
mov r8, rax
mov rdx, rsi
mov rcx, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x140068159
jmp 0x140068199
mov r8, rax
mov rdx, rsi
mov rcx, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
mov eax, 0x5a
cmovne edi, eax
jmp 0x140068199
xor edi, edi
jmp 0x1400680c5
mov rcx, qword [rsp + 0x38]
call qword [r14]
mov edi, 0x1b
jmp 0x1400680c5
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov edi, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
jne 0x14006808f
cmp edi, 0x100000
ja 0x14006808f
movsxd rcx, edi
call fcn.140065290
mov rdi, rax
cmp rax, r12
jb 0x14006808f
mov r13, qword [0x140184850]
lea rcx, [rax + 1]
call qword [r13]
mov rbp, rax
test rax, rax
je 0x14006808f
mov r9, rbx
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r14, qword [0x140184840]
cmp eax, 1
je 0x14006829c
mov edi, 0x5a
jmp 0x14006809d
cmp r12, rdi
jne 0x1400682bb
mov r8, r12
mov rdx, rbp
mov rcx, rsi
xor edi, edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
je 0x14006809d
jmp 0x140068292
mov byte [rbp + rdi], 0
lea rdx, str._____BEGIN_PUBLIC_KEY_____
mov rcx, rbp
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
test rax, rax
je 0x140068292
mov r15, rax
sub r15, rbp
je 0x1400682e2
cmp byte [rax - 1], 0xa
jne 0x140068292
add r15, 0x1a
lea rdx, str._n_____END_PUBLIC_KEY_____
lea r14, [rbp + r15]
mov rcx, r14
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
mov rdi, rax
test rax, rax
je 0x1400683aa
sub rdi, rbp
mov rax, rdi
sub rax, r15
lea rcx, [rax + 1]
call qword [r13]
mov r13, rax
test rax, rax
je 0x1400683aa
cmp r15, rdi
jae 0x1400683a6
add rdi, rbp
xor eax, eax
movzx edx, byte [r14]
cmp dl, 0xa
je 0x140068344
cmp dl, 0xd
je 0x140068344
mov byte [r13 + rax], dl
add rax, 1
add r14, 1
cmp r14, rdi
jne 0x14006832d
mov byte [r13 + rax], 0
mov rcx, r13
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x38]
call fcn.140069ff0
mov r14, qword [0x140184840]
mov rcx, r13
mov edi, eax
call qword [r14]
test edi, edi
jne 0x140068292
cmp qword [rsp + 0x38], r12
jne 0x140068292
mov rdx, qword [rsp + 0x28]
mov r8, r12
mov rcx, rsi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
mov eax, 0x5a
cmovne edi, eax
jmp 0x14006809d
xor eax, eax
jmp 0x14006834d
mov r14, qword [0x140184840]
jmp 0x140068292