Function at 0x140013cd0
Capabilities:
Get hostname
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x190]
xor edx, edx
mov r8d, 0x100
call fcn.140147f00
xor ebp, ebp
cmp byte [0x140466b68], bpl
jne 0x140013f26
xor r9d, r9d
lea edx, [rbp + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
test rax, rax
je 0x140014010
xor eax, eax
lock cmpxchg qword [0x140466b70], rbx
mov rsi, rax
jne 0x140013f0f
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [fcn.140013170]
call fcn.14014f45c
lea rcx, [0x140466b80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.1400f9270
call fcn.1400fa080
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x88]
lea rcx, [0x1401ddb08]
mov dword [0x1401ddacc], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r9d, ebp
lea r8, [0x140465b38]
mov r10d, ebp
lea r11, [0x1401ddb30]
nop dword [rax]
movsxd rax, r10d
inc r9d
mov qword [r8 - 8], rbp
lea r8, [r8 + 0x10]
imul rcx, rax, 0x288
add r10d, 0x10
add rcx, r11
mov qword [r8 - 0x10], rcx
cmp r9d, 0x100
jb 0x140013dc0
lea rcx, [0x140466b30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x1400f0cc0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14001400a
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x1401ddad0], rax
test rax, rax
jne 0x140013e46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8400
test eax, eax
jne 0x14001400a
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
lea rcx, str.CONOUT_
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401d06a8], rax
cmp rax, 0xffffffffffffffff
je 0x140013e90
xor edx, edx
lea rcx, [0x1400eae90]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
lea rcx, [0x1401ddad8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140013ec4
movsd xmm1, qword [0x1401a5148]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
jmp 0x140013ec7
xorps xmm1, xmm1
mov rax, qword [0x1404674b0]
movsd qword [0x1401ddb00], xmm1
test rax, rax
je 0x140013efd
lea rdx, [0x1400fa820]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rdx
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov ecx, 2
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x140466b68], 1
jmp 0x140013f26
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x100
lea rcx, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_gethostname]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x140013f88
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400f8400
test eax, eax
je 0x140013fca
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
mov rax, rdi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140128f50
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov byte [rsp + 0x18f], bpl
lea rax, [rsp + 0x90]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bpl
jne 0x140013fa0
cmp r8, 0x100
jae 0x140013f55
inc r8
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x190]
call fcn.140147a90
mov qword [rdi], rbp
lea rax, [rsp + 0x190]
inc rbx
cmp byte [rax + rbx], bpl
jne 0x140013fd5
lea rcx, [rbx + 1]
mov qword [rdi + 8], rbx
call fcn.1401295b0
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x190]
inc r8
mov qword [rdi], rax
mov rcx, rax
call fcn.140147a90
jmp 0x140013f5c
call fcn.1401513ec
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.1400f8350
int3