Function at 0x140038410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
xor r12d, r12d
mov rbx, r9
mov qword [rsp + 0x30], r12
mov r15, r8
mov rdi, rdx
mov rbp, rcx
mov esi, r12d
lea r14d, [r12 + 0x5a]
test rdx, rdx
jne 0x14003844e
xor eax, eax
jmp 0x14003871b
test r15, r15
je 0x140038718
test rbx, rbx
je 0x140038718
mov r8d, 8
lea rdx, str.sha256__
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140038606
mov rax, qword [case.0x140034407.2]
cmp qword [rax + 0xb8], rsi
je 0x140038718
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14003854c
mov r8, rax
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [case.0x140034407.2]
mov rdx, rbx
mov rcx, r15
call qword [rax + 0xb8]
test eax, eax
jne 0x14003871b
lea rax, [rsp + 0x38]
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call fcn.1400528f0
mov rcx, rsi
mov ebx, eax
call qword [0x1400a3008]
test ebx, ebx
je 0x140038506
mov eax, ebx
jmp 0x14003871b
mov r8, qword [rsp + 0x88]
lea rdx, str._t_public_key_hash:_sha256___s_n
mov rcx, rbp
call fcn.1400400a0
or rbx, 0xffffffffffffffff
cmp byte [rdi + rbx + 1], r12b
lea rbx, [rbx + 1]
jne 0x140038521
lea rcx, [rbx + 1]
call qword [section..data]
mov rsi, rax
test rax, rax
jne 0x140038556
mov rcx, qword [rsp + 0x88]
call qword [0x1400a3008]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14003871b
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rdi, rsi
nop dword [rax + rax]
lea rdx, str._sha256__
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbx, rax
test rax, rax
je 0x14003858b
mov byte [rax], r12b
lea rdx, [rdi + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r12b
jne 0x140038593
mov r8, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x88]
cmp r8, rax
jne 0x1400385ba
mov rcx, rdi
call fcn.140076bbc
test eax, eax
je 0x140038601
test rbx, rbx
je 0x1400385e2
lea rdx, str.sha256__
mov byte [rbx], Ordinal_60
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rdi, rax
test rax, rax
jne 0x140038570
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
call qword [0x1400a3008]
mov rcx, rsi
mov qword [rsp + 0x88], r12
call qword [0x1400a3008]
jmp 0x140038718
mov r14d, r12d
jmp 0x1400385e2
lea rdx, [0x14007bc5c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
je 0x140038718
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 0x1400386f6
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
movsxd rdi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400386f6
cmp edi, 0x100000
ja 0x1400386f6
mov rcx, rdi
call fcn.140001ac0
mov rdi, rax
cmp rbx, rax
ja 0x1400386f6
lea rcx, [rax + 1]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400386f6
mov r9, rbp
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
jne 0x1400386f6
cmp rbx, rdi
jne 0x1400386bf
mov r8, rbx
mov rdx, rsi
mov rcx, r15
call fcn.140076bbc
test eax, eax
jne 0x1400386f6
mov r14d, r12d
jmp 0x1400386f6
lea r8, [rsp + 0x40]
mov byte [rdi + rsi], r12b
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140039470
test eax, eax
jne 0x1400386f6
cmp rbx, qword [rsp + 0x40]
jne 0x1400386f6
mov rdx, qword [rsp + 0x30]
mov r8, rbx
mov rcx, r15
call fcn.140076bbc
test eax, eax
cmove r14d, r12d
mov rcx, rsi
call qword [0x1400a3008]
mov rcx, qword [rsp + 0x30]
call qword [0x1400a3008]
mov rcx, rbp
mov qword [rsp + 0x30], r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, r14d
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret