Function at 0x1400c5a80
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 0x1400c5da4
mov r15, r9
mov r14, r8
mov r12, rdx
mov rbx, rcx
mov rax, qword [0x140cb88e8]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400c5adb
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x40], rax
mov qword [0x140cb88e8], 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 0x1400c5df5
mov r13, rax
cmp rax, 2
je 0x1400c5e19
test r15, r15
je 0x1400c5b36
cmp r13, 0xffffffffffffffff
jne 0x1400c5b36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
cmp r13, 0xffffffffffffffff
je 0x1400c5d5f
lea rdi, [rsp + 0x48]
mov rsi, qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
nop
cmp rbx, r14
jae 0x1400c5cba
mov rdx, qword [r12 + 0x10]
cmp rbx, rdx
jae 0x1400c5b70
mov rbp, rdx
jmp 0x1400c5c5f
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 0x1400c5c50
cmp qword [r12 + 8], rbp
jae 0x1400c5baa
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 0x1400c5c1f
test rax, rax
je 0x1400c5c50
not rdx
add rdx, rbp
mov edi, eax
and edi, 7
cmp rdx, 7
jb 0x1400c5c09
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 0x1400c5be0
test rdi, rdi
je 0x1400c5c50
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdi, rax
jne 0x1400c5c10
jmp 0x1400c5c50
and rax, 0xfffffffffffffff8
add rax, rcx
cmp rax, rcx
jbe 0x1400c5c50
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.api_ms_win_crt_string_l1_1_0.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 0x1400c5db5
cmp rbp, r14
ja 0x1400c5dd5
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 0x1400c5ca2
test ebp, ebp
jne 0x1400c5ca2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
test ebp, ebp
je 0x1400c5d63
mov eax, dword [rsp + 0x48]
add rbx, rax
test rax, rax
jne 0x1400c5b50
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [r12 + 0x10]
cmp rbp, rbx
jae 0x1400c5d9d
cmp qword [r12 + 8], rbx
jae 0x1400c5ce8
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 0x1400c5d70
test rax, rax
je 0x1400c5d9d
not rbp
add rbp, rbx
mov edx, eax
and edx, 7
cmp rbp, 7
jb 0x1400c5d49
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 0x1400c5d20
test rdx, rdx
je 0x1400c5d9d
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdx, rax
jne 0x1400c5d50
jmp 0x1400c5d9d
xor eax, eax
jmp 0x1400c5da4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400c5da4
and rax, 0xfffffffffffffff8
add rax, rcx
cmp rax, rcx
jbe 0x1400c5d9d
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.api_ms_win_crt_string_l1_1_0.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, 0x2c3c
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, 0x2c3d
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, 0x24e8
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, 0x24e9
xor r9d, r9d
call method.__sanitizer.CheckFailed_char_const__int__char_const__unsigned_long_long__unsigned_long_long_
int3