Function at 0x14017fd40
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 7], rcx
mov dword [rbp - 0x19], 1
xor r12d, r12d
mov qword [rbp - 9], r12
mov qword [rcx], r12
mov dword [rbp - 0x19], 1
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [0x140342e00]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x140351a10]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
jns 0x14017fe75
mov rbx, qword [0x1403ff728]
test rbx, rbx
je 0x14017fe52
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
test al, al
je 0x14017fe52
mov dword [rbp - 0x11], edi
lea r8, [rbp - 0x11]
lea rdx, str.The_call_to_CoCreateInstance_failed._hresult__
lea rcx, [rbp + 0xf]
call fcn.140038e90
nop
mov rax, qword [rbx]
lea r9, [rbp + 0xf]
lea r8, str.eax::services::systemInfo::_anonymous_namespace::setUpWmi
lea edx, [r12 + 1]
mov rcx, rbx
call qword [rax + gethostname]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14017fe42
inc rdx
mov rcx, qword [rbp + 0xf]
cmp rdx, 0x1000
jb 0x14017fe3d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14017fe6e
mov rcx, r8
call fcn.140096c70
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], sendto
mov byte [rbp + 0xf], 0
mov dword [rbp - 0x19], r12d
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140180123
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
jmp 0x140180123
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, qword [rbp - 9]
mov rax, qword [rbx]
mov r15, qword [rax + 0x18]
cmp qword [r14 + 0x18], 8
jb 0x14017fe8a
mov r14, qword [r14]
mov ecx, SafeArrayPutElement
call fcn.1401f0dd4
mov rdi, rax
mov qword [rbp - 1], rax
test rax, rax
je 0x14017fec7
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
jne 0x14017feca
test r14, r14
jne 0x140180159
jmp 0x14017feca
mov rdi, r12
mov qword [rbp - 0x11], rdi
test rdi, rdi
je 0x14018014e
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call r15
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x14017ff44
cmp qword [rdi], 0
je 0x14017ff23
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
cmp qword [rdi + 8], 0
je 0x14017ff37
mov rcx, qword [rdi + 8]
call fcn.140096c70
mov qword [rdi + 8], r12
mov edx, SafeArrayPutElement
mov rcx, rdi
call fcn.140096c70
mov qword [rbp - 0x11], r12
test r14d, r14d
jns 0x140180017
mov rbx, qword [0x1403ff728]
test rbx, rbx
je 0x14017ffe8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
test al, al
je 0x14017ffe8
mov dword [rbp - 0x11], r14d
lea r8, [rbp - 0x11]
lea rdx, str.The_call_IWbemLocator__ConnectServer_failed._hresult__
lea rcx, [rbp + 0xf]
call fcn.140038e90
nop
mov rax, qword [rbx]
lea r9, [rbp + 0xf]
lea r8, str.eax::services::systemInfo::_anonymous_namespace::setUpWmi
mov edx, 1
mov rcx, rbx
call qword [rax + gethostname]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14017ffd8
inc rdx
mov rcx, qword [rbp + 0xf]
cmp rdx, 0x1000
jb 0x14017ffd3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140180010
mov rcx, r8
call fcn.140096c70
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], sendto
mov byte [rbp + 0xf], 0
cmp qword [rsi], 0
je 0x140180007
mov qword [rbp - 1], r12
mov rcx, qword [rsi]
mov qword [rbp - 1], rcx
mov qword [rsi], r12
test rcx, rcx
je 0x140180007
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov dword [rbp - 0x19], r12d
jmp 0x140180114
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test eax, eax
jns 0x140180110
mov rbx, qword [0x1403ff728]
test rbx, rbx
je 0x1401800e4
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x30]
test al, al
je 0x1401800e4
mov dword [rbp - 0x11], edi
lea r8, [rbp - 0x11]
lea rdx, str.The_call_to_CoSetProxyBlanket_failed._hresult__
lea rcx, [rbp + 0xf]
call fcn.140038e90
nop
mov rax, qword [rbx]
lea r9, [rbp + 0xf]
lea r8, str.eax::services::systemInfo::_anonymous_namespace::setUpWmi
mov edx, 1
mov rcx, rbx
call qword [rax + gethostname]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x1401800d4
inc rdx
mov rcx, qword [rbp + 0xf]
cmp rdx, 0x1000
jb 0x1401800cf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140180109
mov rcx, r8
call fcn.140096c70
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], sendto
mov byte [rbp + 0xf], 0
cmp qword [rsi], 0
je 0x140180103
mov qword [rbp - 1], r12
mov rcx, qword [rsi]
mov qword [rbp - 1], rcx
mov qword [rsi], r12
test rcx, rcx
je 0x140180103
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov dword [rbp - 0x19], r12d
jmp 0x140180114
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rbp - 0x19], r12d
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140180123
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, rsi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401f11e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1401f1f80
nop
mov ecx, 0x8007000e
call fcn.1401f1f80
int3