Function at 0x140183d00
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 0x140183d3a
xor eax, eax
jmp 0x140183fb0
test r12, r12
je 0x140183fae
test rbx, rbx
je 0x140183fae
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 0x140183eb6
mov rax, qword [0x140419600]
cmp qword [rax + 0xb8], rsi
je 0x140183fae
mov ecx, 0x20
call qword [0x1404195d8]
mov rsi, rax
test rax, rax
jne 0x140183d9b
mov eax, 0x1b
jmp 0x140183fb0
mov rax, qword [0x140419600]
mov r9d, 0x20
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call qword [rax + 0xb8]
test eax, eax
jne 0x140183fb0
lea r9, [rbp - 8]
mov rcx, rsi
lea r8, [rbp + 0x38]
lea edx, [rax + 0x20]
call fcn.1401a5a50
mov rcx, rsi
mov ebx, eax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
je 0x140183de8
mov eax, ebx
jmp 0x140183fb0
mov r8, qword [rbp + 0x38]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r15
call fcn.1401992c4
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rbx, rax
lea rcx, [rax + 1]
call qword [0x1404195d8]
mov r15, rax
test rax, rax
jne 0x140183e27
mov rcx, qword [rbp + 0x38]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140183d91
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rsi, r15
lea rdx, str._sha256__
mov rcx, rsi
call sub.VCRUNTIME140.dll_strstr
mov rbx, rax
test rax, rax
je 0x140183e53
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 0x140183e76
mov rcx, qword [rbp + 0x38]
lea rdx, [rsi + 8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140183e97
test rbx, rbx
je 0x140183e99
lea rdx, str.sha256__
mov byte [rbx], 0x3b
mov rcx, rbx
call sub.VCRUNTIME140.dll_strstr
mov rsi, rax
test rax, rax
jne 0x140183e39
jmp 0x140183e99
xor edi, edi
mov rcx, qword [rbp + 0x38]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
and qword [rbp + 0x38], 0
mov rcx, r15
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140183fae
lea rdx, [0x1403de9e4]
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r15, rax
test rax, rax
je 0x140183fae
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 0x140183f8d
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 0x140183f8d
cmp r14d, 0x100000
ja 0x140183f8d
mov rcx, r14
call fcn.140199f7c
mov r14, rax
cmp rbx, rax
ja 0x140183f8d
lea rcx, [rax + 1]
call qword [0x1404195d8]
mov rsi, rax
test rax, rax
je 0x140183f8d
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 0x140183f8d
cmp rbx, r14
jne 0x140183f59
mov rdx, rsi
jmp 0x140183f7c
lea r8, [rbp + 0x38]
mov byte [r14 + rsi], 0
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140184eb4
test eax, eax
jne 0x140183f8d
cmp rbx, qword [rbp + 0x38]
jne 0x140183f8d
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x10]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
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