Function at 0x1400f0a80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor eax, eax
mov r12d, 0x5a
mov qword [rsp + 0x30], rax
mov r13, r9
mov dword [rsp + 0x88], r12d
mov r14, r8
mov rdi, rdx
mov rbp, rcx
mov esi, eax
mov r15d, eax
test rdx, rdx
je 0x1400f0eb4
mov qword [rsp + 0x80], rbx
test r8, r8
je 0x1400f0ea9
test r9, r9
je 0x1400f0ea9
lea r8d, [rax + 8]
mov rcx, rdi
lea rdx, str.sha256__
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400f0c71
mov rax, qword [case.0x1400fa348.2]
cmp qword [rax + 0xb8], r15
je 0x1400f0ea9
lea ecx, [r15 + 0x20]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400f0bc6
mov r8, rax
lea r9d, [r15 + 0x20]
mov rax, qword [case.0x1400fa348.2]
mov rdx, r13
mov rcx, r14
call qword [rax + 0xb8]
test eax, eax
jne 0x1400f0eac
lea rax, [rsp + 0x30]
mov rdx, rbx
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r8d, [r15 + 0x20]
call fcn.14010e8e0
mov rcx, rbx
mov esi, eax
call qword [0x1402ba0c8]
test esi, esi
je 0x1400f0b79
mov eax, esi
jmp 0x1400f0eac
mov r14, qword [rsp + 0x88]
lea rdx, str._public_key_hash:_sha256___s
mov r8, r14
mov rcx, rbp
call fcn.140106050
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rdi + rbx + 1], r15b
lea rbx, [rbx + 1]
jne 0x1400f0ba0
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x1400f0bd0
mov rcx, r14
call qword [0x1402ba0c8]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400f0eac
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rsi, qword [rsp + 0x30]
mov rdi, rbp
nop word [rax + rax]
lea rdx, str._sha256__
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbx, rax
test rax, rax
je 0x1400f0c0b
mov byte [rax], r15b
lea rdx, [rdi + 8]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r15b
jne 0x1400f0c16
cmp rsi, rax
jne 0x1400f0c33
mov r8, rsi
mov rcx, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400f0c55
test rbx, rbx
je 0x1400f0c5a
lea rdx, str.sha256__
mov byte [rbx], 0x3b
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rdi, rax
test rax, rax
jne 0x1400f0bf0
jmp 0x1400f0c5a
xor eax, eax
mov r12d, eax
mov rcx, r14
call qword [0x1402ba0c8]
mov rcx, rbp
call qword [0x1402ba0c8]
jmp 0x1400f0ea9
mov rcx, rdi
call fcn.14010a890
lea rcx, [0x140205104]
mov rdi, rax
call fcn.14010a890
mov rbx, rax
test rdi, rdi
je 0x1400f0ca8
test rax, rax
je 0x1400f0ca8
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov r12, rax
xor ebp, ebp
jmp 0x1400f0cbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ebp, ebp
mov r12d, ebp
mov dword [rax], 0x2726
test rdi, rdi
je 0x1400f0cc7
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400f0cd5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
je 0x1400f0ea3
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400f0e7f
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, r12
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400f0e7f
cmp ebx, 0x100000
ja 0x1400f0e7f
cmp r13, rbx
ja 0x1400f0e7f
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400f0e7f
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
jne 0x1400f0e7f
cmp r13, rbx
jne 0x1400f0d82
mov r8, r13
mov rdx, rsi
mov rcx, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400f0e7f
mov ebx, ebp
jmp 0x1400f0e84
lea rdx, str._____BEGIN_PUBLIC_KEY_____
mov byte [rbx + rsi], r15b
mov rcx, rsi
mov rdi, rbp
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x1400f0e7f
mov rbx, rax
sub rbx, rsi
je 0x1400f0db4
cmp byte [rax - 1], 0xa
jne 0x1400f0e7f
add rbx, 0x1a
lea rdx, str._n_____END_PUBLIC_KEY_____
lea rcx, [rbx + rsi]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbp, rax
test rax, rax
je 0x1400f0e7f
sub rbp, rsi
mov rcx, rbp
sub rcx, rbx
inc rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1400f0e7f
cmp rbx, rbp
jae 0x1400f0e1c
nop dword [rax + rax]
movzx ecx, byte [rbx + rsi]
cmp cl, 0xa
je 0x1400f0e14
cmp cl, 0xd
je 0x1400f0e14
mov byte [rax + rdi], cl
inc rdi
inc rbx
cmp rbx, rbp
jb 0x1400f0e00
lea r8, [rsp + 0x38]
mov byte [rax + rdi], r15b
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14010e640
mov rcx, r14
mov ebx, eax
call qword [0x1402ba0c8]
mov r15, qword [rsp + 0x30]
test ebx, ebx
jne 0x1400f0e7f
cmp r13, qword [rsp + 0x38]
jne 0x1400f0e76
mov rcx, qword [rsp + 0x90]
mov r8, r13
mov rdx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
mov ecx, 0x5a
mov eax, 0
cmove ecx, eax
mov dword [rsp + 0x88], ecx
mov ebx, dword [rsp + 0x88]
jmp 0x1400f0e84
mov ebx, 0x5a
mov rcx, rsi
call qword [0x1402ba0c8]
mov rcx, r15
call qword [0x1402ba0c8]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
jmp 0x1400f0eac
mov r12d, 0x5a
mov eax, r12d
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret