Function at 0x14004fb30
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov rbx, rcx
mov dword [rbp + 0x77], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r13d, r13d
mov qword [rcx + 0x10], 4
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov eax, dword [str.none]
mov dword [rcx], eax
mov byte [rcx + 4], r13b
mov r12d, 1
mov dword [rbp + 0x77], r12d
movzx r15d, r12b
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test eax, eax
jns 0x14004fbdc
lea rdx, str.Failed_to_initialize_COM_library._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400656a0
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140065870]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14004fc68
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov qword [rbp - 0x69], r13
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea r9, [0x14014a4b8]
xor edx, edx
mov r8d, r12d
lea rcx, [0x14014a4c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
jns 0x14004fc7f
lea rdx, str.Failed_to_create_IWbemLocator_object._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400656a0
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140065870]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rax, rbx
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rbp + 0x6f], r13
mov rax, qword [rbp - 0x69]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, Ordinal_27
call fcn.1401353f8
mov rdi, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14004fcca
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
je 0x140050072
jmp 0x14004fccd
mov rdi, r13
mov qword [rbp - 0x59], rdi
test rdi, rdi
je 0x14005007d
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x69]
call rsi
mov edi, eax
lea rcx, [rbp - 0x59]
call fcn.14004aec0
test edi, edi
jns 0x14004fd52
lea rdx, str.Failed_to_connect_to_WMI_namespace._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400656a0
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140065870]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14004fc61
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test eax, eax
jns 0x14004fdcd
lea rdx, str.Failed_to_set_proxy_blanket._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400656a0
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140065870]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14004fc61
mov qword [rbp - 0x61], r13
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rax]
mov r14, qword [rcx + 0xa0]
mov ecx, Ordinal_27
call fcn.1401353f8
mov rdi, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14004fe11
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_VideoController
call fcn.1401365f0
mov qword [rdi], rax
jmp 0x14004fe14
mov rdi, r13
mov qword [rbp - 0x49], rdi
test rdi, rdi
je 0x14005007d
mov rsi, qword [rdi]
mov ecx, Ordinal_27
call fcn.1401353f8
mov rdi, rax
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14004fe56
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, [0x14015c394]
call fcn.1401365f0
mov qword [rdi], rax
jmp 0x14004fe59
mov rdi, r13
mov qword [rbp - 0x59], rdi
test rdi, rdi
je 0x140050067
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, Ordinal_50
mov r8, rsi
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x6f]
call r14
mov edi, eax
lea rcx, [rbp - 0x59]
call fcn.14004aec0
nop
lea rcx, [rbp - 0x49]
call fcn.14004aec0
test edi, edi
jns 0x14004feac
lea rdx, str.Failed_to_execute_WQL_query._Error_code:
jmp 0x14004fd8d
mov qword [rbp - 0x51], r13
mov dword [rbp + 0x7f], r13d
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14005001b
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x51]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp + 0x7f], 0
je 0x14005001b
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x41]
xor r8d, r8d
lea rdx, str.Name
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x140050004
mov rcx, qword [rbp - 0x39]
call fcn.1401364d0
mov r8, 0xffffffffffffffff
test r15b, r15b
je 0x14004ff50
inc r8
cmp byte [rax + r8], 0
jne 0x14004ff35
mov rdx, rax
mov rcx, rbx
call fcn.140062d50
xor r15b, r15b
jmp 0x14004ff65
inc r8
cmp byte [rax + r8], 0
jne 0x14004ff50
mov rdx, rax
mov rcx, rbx
call fcn.14005f950
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.14004f9f0
nop
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
mov rcx, rax
call fcn.14005f950
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or r12d, 2
mov dword [rbp + 0x77], r12d
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.14005f9e0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14004fff1
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ffeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050060
call fcn.140135744
nop
lea rcx, [rbp - 9]
call fcn.140048e70
lea rcx, [rbp - 0x41]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x61]
test rcx, rcx
jne 0x14004fed0
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x61]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rbx + 0x10]
dec rcx
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140050053
mov rax, qword [rbx]
mov qword [rbx + 0x10], rcx
mov byte [rax + rcx], 0
jmp 0x14004fc68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 0x8007000e
call fcn.1401364c0
nop
mov ecx, 0x8007000e
call fcn.1401364c0
nop
mov ecx, 0x8007000e
call fcn.1401364c0
int3