Function at 0x140065380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
mov eax, 0x2060
call fcn.14009f130
sub rsp, rax
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x2050], rax
xor r12d, r12d
mov ebx, r12d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x1050]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov r15d, r12d
mov qword [rsp + 0x28], r12
mov rcx, qword [0x140101da8]
test rcx, rcx
je 0x140065484
lea rdx, [0x1400de738]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r15, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400656ab
mov r9, rax
mov edx, 1
mov r8d, 0x1000
lea rcx, [rsp + 0x1050]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 0x1000
jae 0x14006547f
lfence
mov r15, qword [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14006547f
lfence
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r15, r12
mov qword [rsp + 0x28], r12
test eax, eax
jne 0x1400656ab
mov rbx, qword [rsp + 0x20]
jmp 0x1400654c0
jmp 0x1400656ab
mov r8, qword [0x140101d98]
test r8, r8
jne 0x140065495
mov rax, r12
jmp 0x1400654aa
mov edx, 0x4002
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r8, qword [0x140101d98]
mov r9, rax
mov edx, 0x1000
lea rcx, [rsp + 0x1050]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov byte [rsp + 0x204f], 0
mov edx, 0x1000
lea rcx, [rsp + 0x1050]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r14, rax
xor edx, edx
mov r8d, 0xff00
lea rcx, [0x140101dcc]
call sub.VCRUNTIME140.dll_memset
mov dword [0x140101dc8], r12d
lea rdi, [rsp + 0x1050]
mov qword [rsp + 0x30], rdi
lea r13, [0x140109d4c]
nop dword [rax]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
nop dword [rax]
cmp rbx, r14
jae 0x14006555d
movzx ecx, byte [rdi]
test cl, cl
je 0x14006555d
cmp cl, 0x3d
je 0x14006555d
mov byte [rax], cl
inc rax
mov qword [rsp + 0x38], rax
inc rdi
mov qword [rsp + 0x30], rdi
inc rbx
mov qword [rsp + 0x20], rbx
jmp 0x140065530
movzx eax, byte [rdi]
inc rdi
mov qword [rsp + 0x30], rdi
cmp al, 0x3d
jne 0x1400656ab
inc rbx
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x50]
call fcn.140078db0
mov rsi, rax
test rax, rax
jne 0x14006558f
mov rax, r12
jmp 0x14006559d
mov edx, 0x1000
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
lea rcx, [rsi - 1]
add rcx, rax
mov qword [rsp + 0x40], rcx
mov r8, rcx
movzx edx, byte [rcx]
cmp dl, 0x20
je 0x1400656db
cmp dl, 9
je 0x1400656db
lea r9, [rax + 1]
movsxd rax, dword [0x140101dc8]
imul rcx, rax, 0xff
lea rax, [0x140101dcc]
add rcx, rax
mov r8, rsi
mov edx, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
cmp rbx, r14
jae 0x140065647
movzx eax, byte [rdi]
test al, al
je 0x140065633
cmp al, 0x2c
je 0x140065633
mov byte [rcx], al
inc rcx
mov qword [rsp + 0x38], rcx
inc rdi
mov qword [rsp + 0x30], rdi
inc rbx
mov qword [rsp + 0x20], rbx
jmp 0x140065607
cmp rbx, r14
jae 0x140065647
movzx eax, byte [rdi]
inc rdi
mov qword [rsp + 0x30], rdi
cmp al, 0x2c
jne 0x1400656ab
inc rbx
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x50]
call fcn.140078db0
mov rsi, rax
test rax, rax
jne 0x140065666
mov rax, r12
jmp 0x140065674
mov edx, 0x1000
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
movsxd rcx, dword [0x140101dc8]
imul rcx, rcx, 0xff
add rcx, r13
mov r9, rax
mov r8, rsi
mov edx, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov eax, dword [0x140101dc8]
inc eax
mov dword [0x140101dc8], eax
cmp eax, 0x80
jl 0x1400656cd
nop
test r15, r15
je 0x1400656bf
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsp + 0x28], r12
mov eax, 1
jmp 0x1400656f1
cmp rbx, r14
jae 0x1400656d7
jmp 0x140065510
xor eax, eax
jmp 0x1400656f1
mov byte [rcx], 0
lea rcx, [r8 - 1]
mov qword [rsp + 0x40], rcx
jmp 0x1400655a9
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret