Function at 0x140183330
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r12d, r12d
mov r15, rcx
mov r13, rdx
mov rdi, r8
mov r14, r9
mov qword [rsp + 0x38], 0
test rdx, rdx
je 0x14018370d
test r8, r8
je 0x14018336b
test r9, r9
jne 0x140183376
mov r12d, 0x5a
jmp 0x14018370d
mov r8d, 8
lea rdx, str.sha256__
mov rcx, r13
call sym.strncmp
test eax, eax
jne 0x14018351b
mov rax, qword [0x1401caf90]
mov r12d, 0x5a
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
cmp qword [rax + 0xb0], 0
je 0x14018370d
mov rax, qword [0x14027abe0]
mov ecx, 0x20
mov r12d, 0x1b
call qword [rax]
mov rsi, rax
test rax, rax
je 0x14018370d
mov r8, rax
mov rax, qword [0x1401caf90]
mov rdx, r14
mov rcx, rdi
mov r9d, 0x20
call qword [rax + 0xb0]
mov r12d, eax
test eax, eax
jne 0x14018341d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov edx, 0x20
mov rcx, rsi
call sym.Curl_base64_encode
mov r12d, eax
mov rbx, qword [0x14027abd0]
mov rcx, rsi
call qword [rbx]
test r12d, r12d
jne 0x14018370d
test r15, r15
je 0x140183467
test byte [r15 + 0x986], 0x20
je 0x140183467
mov rax, qword [r15 + 0x1120]
test rax, rax
je 0x140183453
cmp dword [rax + 8], 0
jle 0x140183467
mov r8, qword [rsp + 0x48]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r15
call sym.Curl_infof
mov rax, qword [0x14027ac00]
mov rcx, r13
lea rdi, str._sha256__
lea rsi, str.sha256__
call qword [rax]
mov r14, rax
mov r13, rax
test rax, rax
jne 0x1401834d0
mov rcx, qword [rsp + 0x48]
mov r12d, 0x1b
call qword [rbx]
jmp 0x14018370d
add r13, 8
mov rcx, r13
call sym.strlen
mov r8, rax
cmp rax, qword [rsp + 0x40]
je 0x1401834e8
test r15, r15
je 0x1401834fb
mov byte [r15], 0x3b
mov rdx, rsi
mov rcx, r15
call sym.strstr
mov r13, rax
test rax, rax
je 0x1401834fb
mov rdx, rdi
mov rcx, r13
call sym.strstr
mov r15, rax
test rax, rax
je 0x14018349e
mov byte [rax], 0
jmp 0x14018349e
mov rcx, qword [rsp + 0x48]
mov rdx, r13
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1401834b4
jmp 0x140183501
mov r12d, 0x5a
mov rcx, qword [rsp + 0x48]
call qword [rbx]
mov rcx, r14
mov qword [rsp + 0x48], 0
call qword [rbx]
jmp 0x14018370d
lea rdx, [0x14026f3fd]
mov rcx, r13
call sym.curlx_win32_fopen
mov r15, rax
test rax, rax
je 0x14018336b
xor edx, edx
mov r8d, 2
mov rcx, rax
call sym.fseek
test eax, eax
jne 0x1401836d8
mov rcx, r15
call sym.ftell
xor r8d, r8d
xor edx, edx
mov rcx, r15
mov ebx, eax
call sym.fseek
test eax, eax
jne 0x1401836d8
cmp ebx, 0x100000
ja 0x1401836d8
movsxd rcx, ebx
call sym.curlx_sotouz
mov rbx, rax
cmp r14, rax
ja 0x1401836d8
mov rbp, qword [0x14027abe0]
lea rcx, [rax + 1]
call qword [rbp]
mov r13, rax
test rax, rax
je 0x1401836d8
mov r9, r15
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call sym.fread
mov r12d, 0x5a
dec eax
jne 0x1401836e9
cmp r14, rbx
jne 0x1401835ee
mov r8, r14
mov rdx, r13
mov rcx, rdi
call sub.msvcrt.dll_memcmp
cmp eax, 1
sbb r12d, r12d
not r12d
and r12d, 0x5a
jmp 0x1401836e9
mov byte [r13 + rbx], 0
lea rdx, str._____BEGIN_PUBLIC_KEY_____
mov rcx, r13
call sym.strstr
test rax, rax
je 0x1401836e9
mov rbx, rax
sub rbx, r13
je 0x14018361e
cmp byte [rax - 1], 0xa
jne 0x1401836e9
add rbx, 0x1a
lea rdx, str._n_____END_PUBLIC_KEY_____
mov r12d, 0x5a
lea rcx, [r13 + rbx]
call sym.strstr
mov rsi, rax
test rax, rax
je 0x1401836e9
sub rsi, r13
mov rax, rsi
sub rax, rbx
lea rcx, [rax + 1]
call qword [rbp]
mov rcx, rax
xor eax, eax
test rcx, rcx
je 0x1401836e9
lea r8, [rcx + rax]
cmp rsi, rbx
jbe 0x140183686
mov dl, byte [r13 + rbx]
cmp dl, 0xa
je 0x140183681
cmp dl, 0xd
je 0x140183681
mov byte [r8], dl
inc rax
inc rbx
jmp 0x140183663
mov byte [r8], 0
lea rdx, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
call sym.Curl_base64_decode
mov rcx, qword [rsp + 0x28]
mov r12d, eax
mov rax, qword [0x14027abd0]
call qword [rax]
test r12d, r12d
jne 0x1401836e3
cmp qword [rsp + 0x48], r14
jne 0x1401836e3
mov rdx, qword [rsp + 0x38]
mov r8, r14
mov rcx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
mov eax, 0x5a
cmovne r12d, eax
jmp 0x1401836e9
mov r12d, 0x5a
xor r13d, r13d
jmp 0x1401836e9
mov r12d, 0x5a
mov rbx, qword [0x14027abd0]
mov rcx, r13
call qword [rbx]
mov rcx, qword [rsp + 0x38]
call qword [rbx]
mov rcx, r15
mov qword [rsp + 0x38], 0
call sym.fclose
mov eax, r12d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret