Function at 0x14018cd70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor esi, esi
mov rbx, r9
and qword [rbp - 0x10], rsi
mov r12, r8
mov r14, rdx
mov r15, rcx
lea edi, [rsi + 0x5a]
test rdx, rdx
jne 0x14018cdaa
xor eax, eax
jmp 0x14018d020
test r12, r12
je 0x14018d01e
test rbx, rbx
je 0x14018d01e
mov r8d, 8
lea rdx, str.sha256__
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14018cf26
mov rax, qword [0x1404255e0]
cmp qword [rax + 0xb8], rsi
je 0x14018d01e
mov ecx, 0x20
call qword [0x1404255b8]
mov rsi, rax
test rax, rax
jne 0x14018ce0b
mov eax, 0x1b
jmp 0x14018d020
mov rax, qword [0x1404255e0]
mov r9d, 0x20
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call qword [rax + 0xb8]
test eax, eax
jne 0x14018d020
lea r9, [rbp - 8]
mov rcx, rsi
lea r8, [rbp + 0x38]
lea edx, [rax + 0x20]
call fcn.1401aeaa4
mov rcx, rsi
mov ebx, eax
call qword [0x1404255c0]
test ebx, ebx
je 0x14018ce58
mov eax, ebx
jmp 0x14018d020
mov r8, qword [rbp + 0x38]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r15
call fcn.1401a2328
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rbx, rax
lea rcx, [rax + 1]
call qword [0x1404255b8]
mov r15, rax
test rax, rax
jne 0x14018ce97
mov rcx, qword [rbp + 0x38]
call qword [0x1404255c0]
jmp 0x14018ce01
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, r15
call fcn.1402e6f51
mov rsi, r15
lea rdx, str._sha256__
mov rcx, rsi
call sub.VCRUNTIME140.dll_strstr
mov rbx, rax
test rax, rax
je 0x14018cec3
mov byte [rax], 0
lea rcx, [rsi + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, qword [rbp - 8]
cmp r8, rax
jne 0x14018cee6
mov rcx, qword [rbp + 0x38]
lea rdx, [rsi + 8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14018cf07
test rbx, rbx
je 0x14018cf09
lea rdx, str.sha256__
mov byte [rbx], 0x3b
mov rcx, rbx
call sub.VCRUNTIME140.dll_strstr
mov rsi, rax
test rax, rax
jne 0x14018cea9
jmp 0x14018cf09
xor edi, edi
mov rcx, qword [rbp + 0x38]
call qword [0x1404255c0]
and qword [rbp + 0x38], 0
mov rcx, r15
call qword [0x1404255c0]
jmp 0x14018d01e
lea rdx, [0x1403ea2d4]
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r15, rax
test rax, rax
je 0x14018d01e
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14018cffd
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 r14, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14018cffd
cmp r14d, 0x100000
ja 0x14018cffd
mov rcx, r14
call fcn.1401a2fe4
mov r14, rax
cmp rbx, rax
ja 0x14018cffd
lea rcx, [rax + 1]
call qword [0x1404255b8]
mov rsi, rax
test rax, rax
je 0x14018cffd
mov r9, r15
mov r8d, 1
mov rdx, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
jne 0x14018cffd
cmp rbx, r14
jne 0x14018cfc9
mov rdx, rsi
jmp 0x14018cfec
lea r8, [rbp + 0x38]
mov byte [r14 + rsi], 0
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.14018df24
test eax, eax
jne 0x14018cffd
cmp rbx, qword [rbp + 0x38]
jne 0x14018cffd
mov rdx, qword [rbp - 0x10]
mov r8, rbx
mov rcx, r12
call sub.VCRUNTIME140.dll_memcmp
neg eax
sbb ecx, ecx
and edi, ecx
mov rcx, rsi
call qword [0x1404255c0]
mov rcx, qword [rbp - 0x10]
call qword [0x1404255c0]
and qword [rbp - 0x10], 0
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret