Function at 0x1400f5130
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov qword [rdx + 0x10], 0
mov al, 1
test r8, r8
je 0x1400f5454
mov r15, r9
mov r14, r8
mov r12, rdx
mov rbx, rcx
mov rax, qword [0x140d81498]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400f518b
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x40], rax
mov qword [0x140d81498], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 1
je 0x1400f54a5
mov r13, rax
cmp rax, 2
je 0x1400f54c9
test r15, r15
je 0x1400f51e6
cmp r13, 0xffffffffffffffff
jne 0x1400f51e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
cmp r13, 0xffffffffffffffff
je 0x1400f540f
lea rdi, [rsp + 0x48]
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
nop
cmp rbx, r14
jae 0x1400f536a
mov rdx, qword [r12 + 0x10]
cmp rbx, rdx
jae 0x1400f5220
mov rbp, rdx
jmp 0x1400f530f
mov rsi, rdi
lea rbp, [rbx + rbx]
mov rax, qword [rsp + 0x40]
cmp rax, rbp
cmova rbp, rax
cmp rbp, r14
cmovae rbp, r14
cmp rdx, rbp
jae 0x1400f5300
cmp qword [r12 + 8], rbp
jae 0x1400f525a
mov rcx, r12
mov rdx, rbp
call method.__sanitizer::InternalMmapVectorNoCtor_char_.Realloc_unsigned_long_long_
mov rdx, qword [r12 + 0x10]
mov r8, qword [r12]
lea rcx, [r8 + rdx]
mov rax, rbp
sub rax, rdx
mov edi, ecx
or edi, eax
test dil, 0xf
je 0x1400f52cf
test rax, rax
je 0x1400f5300
not rdx
add rdx, rbp
mov edi, eax
and edi, 7
cmp rdx, 7
jb 0x1400f52b9
and rax, 0xfffffffffffffff8
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov byte [rcx + 2], 0
mov byte [rcx + 3], 0
mov byte [rcx + 4], 0
mov byte [rcx + 5], 0
mov byte [rcx + 6], 0
mov byte [rcx + 7], 0
add rcx, 8
add rax, 0xfffffffffffffff8
jne 0x1400f5290
test rdi, rdi
je 0x1400f5300
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdi, rax
jne 0x1400f52c0
jmp 0x1400f5300
and rax, 0xfffffffffffffff8
add rax, rcx
cmp rax, rcx
jbe 0x1400f5300
add r8, rdx
add r8, 0x10
cmp rax, r8
cmova r8, rax
sub r8, rcx
add r8, 0xf
and r8, 0xfffffffffffffff0
xor edx, edx
call sub.msvcrt.dll_memset
nop dword [rax + rax]
mov qword [r12 + 0x10], rbp
mov rdi, rsi
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
cmp rbp, rbx
jbe 0x1400f5465
cmp rbp, r14
ja 0x1400f5485
sub ebp, ebx
mov rdx, qword [r12]
add rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, r13
mov r8d, ebp
mov r9, rdi
call rsi
mov ebp, eax
test r15, r15
je 0x1400f5352
test ebp, ebp
jne 0x1400f5352
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
test ebp, ebp
je 0x1400f5413
mov eax, dword [rsp + 0x48]
add rbx, rax
test rax, rax
jne 0x1400f5200
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [r12 + 0x10]
cmp rbp, rbx
jae 0x1400f544d
cmp qword [r12 + 8], rbx
jae 0x1400f5398
mov rcx, r12
mov rdx, rbx
call method.__sanitizer::InternalMmapVectorNoCtor_char_.Realloc_unsigned_long_long_
mov rbp, qword [r12 + 0x10]
mov rdx, qword [r12]
lea rcx, [rdx + rbp]
mov rax, rbx
sub rax, rbp
mov edi, ecx
or edi, eax
test dil, 0xf
je 0x1400f5420
test rax, rax
je 0x1400f544d
not rbp
add rbp, rbx
mov edx, eax
and edx, 7
cmp rbp, 7
jb 0x1400f53f9
and rax, 0xfffffffffffffff8
nop
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov byte [rcx + 2], 0
mov byte [rcx + 3], 0
mov byte [rcx + 4], 0
mov byte [rcx + 5], 0
mov byte [rcx + 6], 0
mov byte [rcx + 7], 0
add rcx, 8
add rax, 0xfffffffffffffff8
jne 0x1400f53d0
test rdx, rdx
je 0x1400f544d
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdx, rax
jne 0x1400f5400
jmp 0x1400f544d
xor eax, eax
jmp 0x1400f5454
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400f5454
and rax, 0xfffffffffffffff8
add rax, rcx
cmp rax, rcx
jbe 0x1400f544d
lea r8, [rdx + rbp]
add r8, 0x10
cmp rax, r8
cmova r8, rax
sub r8, rcx
add r8, 0xf
and r8, 0xfffffffffffffff0
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [r12 + 0x10], rbx
mov al, 1
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x20], rbp
lea rcx, str.gotsan.cpp
lea r8, str.__read_len_______buff__size____
mov edx, 0x2bd7
mov r9, rbx
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0x20], r14
lea rcx, str.gotsan.cpp
lea r8, str.__buff__size_________max_len__
mov edx, 0x2bd8
mov r9, rbp
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
mov edx, 0x2485
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
mov edx, 0x2486
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
int3