Function at 0x140185570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov edi, 0x5a
mov qword [rsp + 0x30], r14
mov r12, r9
mov dword [rsp + 0x88], edi
mov rbx, r8
mov rbp, rdx
mov r13, rcx
mov esi, r14d
mov r15d, r14d
test rdx, rdx
jne 0x1401855bb
xor eax, eax
jmp 0x14018591b
test rbx, rbx
je 0x140185919
test r12, r12
je 0x140185919
mov r8d, 8
lea rdx, str.sha256__
mov rcx, rbp
call fcn.140226ab0
test eax, eax
jne 0x140185749
mov rax, qword [case.0x1401d6e31.3]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
cmp qword [rax + 0xb8], rsi
je 0x140185919
mov ecx, 0x20
call qword [fcn.14022b0a0]
mov rdi, rax
test rax, rax
je 0x1401856a8
mov r8, rax
mov r9d, 0x20
mov rax, qword [case.0x1401d6e31.3]
mov rdx, r12
mov rcx, rbx
call qword [rax + 0xb8]
mov ebx, eax
test eax, eax
jne 0x140185668
lea rax, [rsp + 0x30]
mov rdx, rdi
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 0x20]
call fcn.1401a1da0
mov r14, qword [rsp + 0x30]
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
call qword [fcn.140229280]
test ebx, ebx
je 0x14018567c
mov eax, ebx
jmp 0x14018591b
mov r8, rsi
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r13
call fcn.14019b1d0
mov rcx, rbp
call qword [case.0x140194a27.0]
mov rbp, rax
test rax, rax
jne 0x1401856b2
mov rcx, rsi
call qword [fcn.140229280]
mov eax, 0x1b
jmp 0x14018591b
mov rdi, rbp
nop word [rax + rax]
lea rdx, str._sha256__
mov rcx, rdi
call fcn.1401f8e00
mov rbx, rax
test rax, rax
je 0x1401856da
mov byte [rax], r15b
lea rdx, [rdi + 8]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r15b
jne 0x1401856e5
cmp r14, rax
jne 0x140185702
mov r8, r14
mov rcx, rsi
call fcn.140276ba0
test eax, eax
je 0x140185723
test rbx, rbx
je 0x14018572b
lea rdx, str.sha256__
mov byte [rbx], 0x3b
mov rcx, rbx
call fcn.1401f8e00
mov rdi, rax
test rax, rax
jne 0x1401856c0
jmp 0x14018572b
mov dword [rsp + 0x88], r15d
mov rcx, rsi
call qword [fcn.140229280]
mov rcx, rbp
call qword [fcn.140229280]
mov eax, dword [rsp + 0x88]
jmp 0x14018591b
lea rdx, [0x1402e5204]
mov rcx, rbp
call fcn.140227fa0
mov r13, rax
test rax, rax
je 0x140185919
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.140210d50
test eax, eax
jne 0x1401858f6
mov rcx, r13
call fcn.1402023c0
xor r8d, r8d
movsxd rbx, eax
xor edx, edx
mov rcx, r13
call fcn.140210d50
test eax, eax
jne 0x1401858f6
cmp ebx, 0x100000
ja 0x1401858f6
cmp r12, rbx
ja 0x1401858f6
lea rcx, [rbx + 1]
call qword [fcn.14022b0a0]
mov rsi, rax
test rax, rax
je 0x1401858f6
mov r9, r13
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.14022a270
cmp eax, 1
jne 0x1401858f6
cmp r12, rbx
jne 0x14018580f
mov rcx, qword [rsp + 0x90]
mov r8, r12
mov rdx, rsi
call fcn.140276ba0
test eax, eax
jne 0x1401858f6
mov dword [rsp + 0x88], r14d
jmp 0x1401858f6
lea rdx, str._____BEGIN_PUBLIC_KEY_____
mov byte [rbx + rsi], r14b
mov rcx, rsi
mov rdi, r14
call fcn.1401f8e00
test rax, rax
je 0x1401858f6
mov rbx, rax
sub rbx, rsi
je 0x140185840
cmp byte [rax - 1], 0xa
jne 0x1401858f6
add rbx, 0x1a
lea rdx, str._n_____END_PUBLIC_KEY_____
lea rcx, [rbx + rsi]
call fcn.1401f8e00
mov rbp, rax
test rax, rax
je 0x1401858f6
sub rbp, rsi
mov rcx, rbp
sub rcx, rbx
inc rcx
call qword [fcn.14022b0a0]
mov r14, rax
test rax, rax
je 0x1401858f6
cmp rbx, rbp
jae 0x14018589c
nop
movzx ecx, byte [rsi + rbx]
cmp cl, 0xa
je 0x140185894
cmp cl, 0xd
je 0x140185894
mov byte [rax + rdi], cl
inc rdi
inc rbx
cmp rbx, rbp
jb 0x140185880
lea r8, [rsp + 0x38]
mov byte [rax + rdi], r15b
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1401a1b10
mov rcx, r14
mov ebx, eax
call qword [fcn.140229280]
mov r15, qword [rsp + 0x30]
test ebx, ebx
jne 0x1401858f6
cmp r12, qword [rsp + 0x38]
jne 0x1401858f6
mov rcx, qword [rsp + 0x90]
mov r8, r12
mov rdx, r15
call fcn.140276ba0
test eax, eax
mov ecx, 0x5a
mov eax, 0
cmove ecx, eax
mov dword [rsp + 0x88], ecx
mov rcx, rsi
call qword [fcn.140229280]
mov rcx, r15
call qword [fcn.140229280]
mov rcx, r13
call fcn.14020b2c0
mov eax, dword [rsp + 0x88]
jmp 0x14018591b
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret