Function at 0x1400f03f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
push r15
lea rbp, [rsp - 0x3a8]
sub rsp, 0x4a8
mov rax, qword [0x1401db4c0]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r14, r9
mov r13, r8
mov rsi, rdx
mov r15, rcx
mov ebx, 0x5a
test rdx, rdx
jne 0x1400f0437
xor eax, eax
jmp 0x1400f07f8
mov qword [rsp + 0x4a0], rdi
mov qword [rsp + 0x498], r12
test r13, r13
je 0x1400f07e6
test r14, r14
je 0x1400f07e6
mov r8d, 8
lea rdx, str.sha256__
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
xor r12d, r12d
mov qword [rsp + 0x28], r12
test eax, eax
jne 0x1400f05c4
mov rax, qword [0x1401da958]
mov qword [rsp + 0x20], r12
cmp qword [rax + 0xb0], r12
je 0x1400f07e6
lea ecx, [r12 + 0x20]
call qword [0x1401da5d0]
mov rdi, rax
test rax, rax
je 0x1400f0524
mov r8, rax
lea r9d, [r12 + 0x20]
mov rax, qword [0x1401da958]
mov rdx, r14
mov rcx, r13
call qword [rax + 0xb0]
mov ebx, eax
test eax, eax
jne 0x1400f04e3
lea r9, [rsp + 0x28]
mov rcx, rdi
lea r8, [rsp + 0x20]
lea edx, [rax + 0x20]
call fcn.14011d6d0
mov ebx, eax
mov rcx, rdi
call qword [0x1401da5d8]
test ebx, ebx
jne 0x1400f07e6
mov r8, qword [rsp + 0x20]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r15
call fcn.1400fa510
mov rcx, rsi
call qword [case.0x1400ea28c.1]
mov rsi, rax
test rax, rax
jne 0x1400f052e
mov rcx, qword [rsp + 0x20]
call qword [0x1401da5d8]
mov eax, 0x1b
jmp 0x1400f07e8
mov rdi, rsi
lea rdx, str._sha256__
mov rcx, rdi
call sub.VCRUNTIME140.dll_strstr
mov rbx, rax
test rax, rax
je 0x1400f054b
mov byte [rax], r12b
lea rdx, [rdi + 8]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r12b
jne 0x1400f0556
mov r8, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
cmp r8, rax
jne 0x1400f057a
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400f05bf
test rbx, rbx
je 0x1400f059e
lea rdx, str.sha256__
mov byte [rbx], 0x3b
mov rcx, rbx
call sub.VCRUNTIME140.dll_strstr
mov rdi, rax
test rax, rax
jne 0x1400f0531
mov rdi, qword [rsp + 0x20]
mov ebx, 0x5a
mov rcx, rdi
call qword [0x1401da5d8]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [0x1401da5d8]
jmp 0x1400f07e6
mov ebx, r12d
jmp 0x1400f05a3
lea rdx, [0x140182488]
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r15, rax
test rax, rax
je 0x1400f07e6
mov edx, 0x100000
lea rcx, [rsp + 0x38]
call fcn.1400f4850
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400f07c3
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, r15
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400f07be
cmp ebx, 0x100000
ja 0x1400f07be
mov rcx, rbx
call fcn.1400f23a0
mov rsi, rax
cmp r14, rax
ja 0x1400f07be
mov rdi, rax
mov eax, 0x400
nop
cmp rdi, rax
lea rcx, [rbp - 0x80]
mov rbx, rdi
mov r9, r15
cmova rbx, rax
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rbx, rax
jne 0x1400f07be
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.1400f4810
test eax, eax
jne 0x1400f07be
mov eax, 0x400
sub rdi, rbx
jne 0x1400f0650
lea rcx, [rsp + 0x38]
call fcn.14001e580
cmp r14, rsi
jne 0x1400f06c8
mov rdx, rax
mov r8, r14
mov rcx, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400f07be
mov ebx, r12d
jmp 0x1400f07c3
mov rsi, rax
test rax, rax
je 0x1400f07be
mov edx, 0x100000
lea rcx, [rsp + 0x58]
call fcn.1400f4850
lea rdx, str._____BEGIN_PUBLIC_KEY_____
mov rcx, rsi
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x1400f07be
mov rbx, rax
sub rbx, rsi
je 0x1400f070d
cmp byte [rax - 1], 0xa
jne 0x1400f07be
add rbx, 0x1a
lea rdx, str._n_____END_PUBLIC_KEY_____
lea rcx, [rbx + rsi]
call sub.VCRUNTIME140.dll_strstr
mov rdi, rax
test rax, rax
je 0x1400f07be
sub rdi, rsi
cmp rbx, rdi
jae 0x1400f076e
nop word [rax + rax]
movzx ecx, byte [rbx + rsi]
lea rdx, [rbx + rsi]
cmp cl, 0xa
je 0x1400f0766
cmp cl, 0xd
je 0x1400f0766
mov r8d, 1
lea rcx, [rsp + 0x58]
call fcn.1400f4810
test eax, eax
jne 0x1400f07be
inc rbx
cmp rbx, rdi
jb 0x1400f0740
lea rcx, [rsp + 0x58]
call fcn.14001e580
mov rcx, rax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call fcn.14011d440
lea rcx, [rsp + 0x58]
mov ebx, eax
call fcn.1400f4820
test ebx, ebx
jne 0x1400f07be
cmp r14, qword [rsp + 0x30]
jne 0x1400f07be
mov rdx, qword [rsp + 0x28]
mov r8, r14
mov rcx, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
mov ebx, 0x5a
cmove ebx, r12d
jmp 0x1400f07c3
mov ebx, 0x5a
lea rcx, [rsp + 0x38]
call fcn.1400f4820
mov rcx, qword [rsp + 0x28]
call qword [0x1401da5d8]
mov rcx, r15
mov qword [rsp + 0x28], r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
mov rdi, qword [rsp + 0x4a0]
mov r12, qword [rsp + 0x498]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140146540
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret