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

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x1a8
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rdx
mov rbp, rcx
test rcx, rcx
je 0x14000d70a
test rdx, rdx
je 0x14000d70a
cmp qword [rdx], 0
je 0x14000d70a
cmp byte [0x14043f008], 0
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x18], rsi
jne 0x14000d66e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
test rax, rax
je 0x14000d711
xor eax, eax
lock cmpxchg qword [0x14043f010], rbx
mov rsi, rax
jne 0x14000d657
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [fcn.140011980]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
lea rcx, [0x14043f020]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.140016b20
call fcn.140017210
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x88]
lea rcx, [0x14043ef80]
mov dword [0x1401b5f78], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
lea r8, [0x14043df88]
mov r9d, esi
lea r11, [0x1401b5f80]
mov r10d, esi
movsxd rax, r10d
inc r9d
mov qword [r8 - 8], rsi
lea r8, [r8 + 0x10]
imul rcx, rax, 0x288
add r10d, 0x10
add rcx, r11
mov qword [r8 - 0x10], rcx
cmp r9d, 0x100
jb 0x14000d501
lea rcx, [0x14043efd8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x14000ded0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x14000d650
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x1401b5f70], rax
test rax, rax
jne 0x14000d587
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140016510
test eax, eax
jne 0x14000d650
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
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 [0x14012a668], rax
cmp rax, 0xffffffffffffffff
je 0x14000d5d1
xor edx, edx
lea rcx, [0x1400074b0]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
lea rcx, [0x14043efa8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000d605
movsd xmm1, qword [0x140111e18]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
jmp 0x14000d608
xorps xmm1, xmm1
mov rax, qword [0x14043f290]
movsd qword [0x14043efd0], xmm1
test rax, rax
je 0x14000d63e
lea rcx, [0x1400179b0]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rcx
lea r8, [rsp + 0x58]
mov ecx, 2
lea rdx, [rsp + 0x48]
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x14043f008], 1
jmp 0x14000d66e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
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]
test eax, eax
je 0x14000d6bc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140016510
mov rbx, qword [rsp + 0x1d0]
mov rsi, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400f3170
add rsp, 0x1a8
pop rdi
pop rbp
ret
mov byte [rsp + 0x18f], 0
lea rax, [rsp + 0x90]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000d6d3
cmp rbx, qword [rdi]
jb 0x14000d6ef
lea rax, [rbx + 1]
mov qword [rdi], rax
mov eax, 0xfffff024
jmp 0x14000d692
lea r8, [rbx + 1]
mov rcx, rbp
lea rdx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov qword [rdi], rbx
jmp 0x14000d692
mov eax, 0xfffff019
jmp 0x14000d6a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.140016450
int3