Function at 0x1400c9a20
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
mov r14, qword [rcx + 0x70]
mov rbx, rcx
test byte [r14], 8
jne 0x1400c9a46
mov dword [rcx + 0x60], reloc.WS2_32.dll_WSAGetLastError
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
mov qword [rsp + 0x58], rbp
lea rdx, [rcx + 0x28]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
call fcn.1400ca200
test eax, eax
je 0x1400c9cc5
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.1400ca200
test eax, eax
je 0x1400c9cc5
lea rdx, [rbx + 0x30]
mov rcx, rbx
call fcn.1400ca200
test eax, eax
je 0x1400c9cc5
lea rdx, [rbx + 0x34]
mov rcx, rbx
call fcn.1400ca200
test eax, eax
je 0x1400c9cc5
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1400c9ac3
lea rdx, [rsp + 0x50]
mov r8d, 1
mov rcx, rbx
call rax
cdqe
jmp 0x1400c9ada
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x50]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x60], rsi
cmp rax, 1
je 0x1400c9b02
mov dword [rbx + 0x60], 0x66
call fcn.1400cac70
xor esi, esi
mov qword [rbx + 0x40], rsi
xor eax, eax
jmp 0x1400c9c2e
movzx edx, byte [rsp + 0x50]
mov qword [rsp + 0x30], rdi
xor esi, esi
movzx eax, dl
mov edi, edx
shr al, 6
and edi, 7
and al, 1
mov byte [rbx + 0x38], al
test rcx, rcx
je 0x1400c9b31
call fcn.1400cac70
movzx edx, byte [rsp + 0x50]
mov qword [rbx + 0x40], rsi
test dl, dl
jns 0x1400c9be8
lea ecx, [rdi + 1]
mov eax, 1
xor edx, edx
shl eax, cl
mov ecx, eax
call fcn.1400cadb0
mov qword [rbx + 0x40], rax
test rax, rax
je 0x1400c9c96
mov edi, esi
cmp dword [rax], esi
jbe 0x1400c9be8
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1400c9b84
lea rdx, [rsp + 0x50]
mov r8d, 3
mov rcx, rbx
call rax
cdqe
jmp 0x1400c9b9c
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 2]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 3
jne 0x1400c9c13
mov eax, edi
inc edi
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x50]
mov byte [rdx + rcx], al
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x51]
mov byte [rcx + rdx + 1], al
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x52]
mov byte [rcx + rdx + 2], al
mov rax, qword [rbx + 0x40]
cmp edi, dword [rax]
jb 0x1400c9b63
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400c9c4a
mov eax, dword [rbx + 0x20]
mov r8d, gethostname
inc eax
movsxd rdx, eax
call fcn.1400cb210
test rax, rax
je 0x1400c9c96
mov qword [rbx + 0x48], rax
jmp 0x1400c9c5e
mov rcx, qword [rbx + 0x40]
call fcn.1400cac70
mov dword [rbx + 0x60], 0x66
mov qword [rbx + 0x40], rsi
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x38
pop r14
pop rbx
ret
mov ecx, gethostname
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbx + 0x48], rax
test rax, rax
je 0x1400c9c96
movsxd rax, dword [rbx + 0x20]
movups xmm0, xmmword [rbx + 0x28]
imul rdi, rax, 0x38
add rdi, qword [rbx + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x38]
movups xmmword [rdi + 0x10], xmm1
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x1400c9c9f
mov rdx, qword [rax + 0x10]
mov ecx, dword [rax]
call fcn.1400cadb0
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400c9c9f
mov dword [rbx + 0x60], WSAGetLastError
jmp 0x1400c9c27
mov qword [rdi + 0x20], rsi
mov dword [rdi + 0x28], esi
mov qword [rdi + 0x30], rsi
mov eax, dword [rbx + 0x34]
inc dword [rbx + 0x20]
mov rcx, rbx
imul eax, dword [rbx + 0x30]
mov dword [r14 + 0x34], eax
call fcn.1400ca700
jmp 0x1400c9c29
xor eax, eax
jmp 0x1400c9c33