Function at 0x1400ff270
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 r13, r9
mov dword [rsp + 0x88], edi
mov rbx, r8
mov rbp, rdx
mov r12, rcx
mov esi, r14d
mov r15d, r14d
test rdx, rdx
jne 0x1400ff2bb
xor eax, eax
jmp 0x1400ff676
test rbx, rbx
je 0x1400ff674
test r13, r13
je 0x1400ff674
mov r8d, 8
lea rdx, str.sha256__
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400ff44b
mov rax, qword [0x1402d9140]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
cmp qword [rax + 0xb8], rsi
je 0x1400ff674
mov ecx, 0x20
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400ff3a9
mov r8, rax
mov r9d, 0x20
mov rax, qword [0x1402d9140]
mov rdx, r13
mov rcx, rbx
call qword [rax + 0xb8]
mov ebx, eax
test eax, eax
jne 0x1400ff369
lea rax, [rsp + 0x30]
mov rdx, rdi
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 0x20]
call fcn.140120e50
mov r14, qword [rsp + 0x30]
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
call qword [fcn.14016c458]
test ebx, ebx
je 0x1400ff37d
mov eax, ebx
jmp 0x1400ff676
mov r8, rsi
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r12
call fcn.140115960
mov rcx, rbp
call qword [case.0x14010f187.0]
mov rbp, rax
test rax, rax
jne 0x1400ff3b3
mov rcx, rsi
call qword [fcn.14016c458]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400ff676
mov rdi, rbp
nop word [rax + rax]
lea rdx, str._sha256__
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbx, rax
test rax, rax
je 0x1400ff3db
mov byte [rax], r15b
lea rdx, [rdi + 8]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r15b
jne 0x1400ff3e6
cmp r14, rax
jne 0x1400ff403
mov r8, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400ff425
test rbx, rbx
je 0x1400ff42d
lea rdx, str.sha256__
mov byte [rbx], 0x3b
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rdi, rax
test rax, rax
jne 0x1400ff3c0
jmp 0x1400ff42d
mov dword [rsp + 0x88], r15d
mov rcx, rsi
call qword [fcn.14016c458]
mov rcx, rbp
call qword [fcn.14016c458]
mov eax, dword [rsp + 0x88]
jmp 0x1400ff676
mov rcx, rbp
call fcn.14011cc70
lea rcx, [0x14022050c]
mov rdi, rax
call fcn.14011cc70
mov rbx, rax
test rdi, rdi
je 0x1400ff480
test rax, rax
je 0x1400ff480
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov r12, rax
jmp 0x1400ff494
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, r14
mov dword [rax], 0x2726
test rdi, rdi
je 0x1400ff49d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400ff4ab
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
je 0x1400ff66f
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400ff64b
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, r12
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400ff64b
cmp ebx, 0x100000
ja 0x1400ff64b
cmp r13, rbx
ja 0x1400ff64b
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400ff64b
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
jne 0x1400ff64b
cmp r13, rbx
jne 0x1400ff563
mov rcx, qword [rsp + 0x90]
mov r8, r13
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400ff64b
mov dword [rsp + 0x88], r14d
jmp 0x1400ff64b
lea rdx, str._____BEGIN_PUBLIC_KEY_____
mov byte [rbx + rsi], r14b
mov rcx, rsi
mov rdi, r14
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x1400ff64b
mov rbx, rax
sub rbx, rsi
je 0x1400ff595
cmp byte [rax - 1], 0xa
jne 0x1400ff64b
add rbx, 0x1a
lea rdx, str._n_____END_PUBLIC_KEY_____
lea rcx, [rbx + rsi]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbp, rax
test rax, rax
je 0x1400ff64b
sub rbp, rsi
mov rcx, rbp
sub rcx, rbx
inc rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1400ff64b
cmp rbx, rbp
jae 0x1400ff5f1
movzx ecx, byte [rsi + rbx]
cmp cl, 0xa
je 0x1400ff5e9
cmp cl, 0xd
je 0x1400ff5e9
mov byte [rax + rdi], cl
inc rdi
inc rbx
cmp rbx, rbp
jb 0x1400ff5d5
lea r8, [rsp + 0x38]
mov byte [rax + rdi], r15b
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140120bc0
mov rcx, r14
mov ebx, eax
call qword [fcn.14016c458]
mov r15, qword [rsp + 0x30]
test ebx, ebx
jne 0x1400ff64b
cmp r13, qword [rsp + 0x38]
jne 0x1400ff64b
mov rcx, qword [rsp + 0x90]
mov r8, r13
mov rdx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
mov ecx, 0x5a
mov eax, 0
cmove ecx, eax
mov dword [rsp + 0x88], ecx
mov rcx, rsi
call qword [fcn.14016c458]
mov rcx, r15
call qword [fcn.14016c458]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [rsp + 0x88]
jmp 0x1400ff676
mov edi, 0x5a
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