Function at 0x140050450
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, 0xe8
mov rsi, rcx
mov dword [rbp + 0x7f], 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 [0x14010e5a0]
mov dword [rcx], eax
mov byte [rcx + 4], r13b
mov dword [rbp + 0x7f], 1
mov r12b, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x1400504f8
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.140071310
mov edx, ebx
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, [0x1400714e0]
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 0x140050585
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 - 0x71], r13
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [0x140101418]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140101428]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x14005059c
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.140071310
mov edx, ebx
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, [0x1400714e0]
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, rsi
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rbp - 0x79], r13
mov rax, qword [rbp - 0x71]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, Ordinal_26
call fcn.1400ed2dc
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x1400505e7
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140050a40
jmp 0x1400505ea
mov rbx, r13
mov qword [rbp - 0x21], rbx
test rbx, rbx
je 0x140050a4b
lea rax, [rbp - 0x79]
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 [rbx]
mov rcx, qword [rbp - 0x71]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140050664
mov rcx, qword [rbx]
test rcx, rcx
je 0x140050645
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r13
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140050657
call fcn.1400ed628
mov qword [rbx + 8], r13
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1400ed628
test edi, edi
jns 0x1400506a5
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.140071310
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, [0x1400714e0]
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 - 0x71]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14005057e
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 - 0x79]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x140050720
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.140071310
mov edx, ebx
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, [0x1400714e0]
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 - 0x79]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14005057e
mov qword [rbp - 0x69], r13
mov rax, qword [rbp - 0x79]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, Ordinal_26
call fcn.1400ed2dc
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140050764
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_VideoController
call fcn.1400ee4d0
mov qword [rbx], rax
jmp 0x140050767
mov rbx, r13
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x140050a4b
mov r14, qword [rbx]
mov ecx, Ordinal_26
call fcn.1400ed2dc
mov rdi, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x1400507a9
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, [0x14010e734]
call fcn.1400ee4d0
mov qword [rdi], rax
jmp 0x1400507ac
mov rdi, r13
mov qword [rbp - 0x11], rdi
test rdi, rdi
je 0x140050a35
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, Ordinal_50
mov r8, r14
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x79]
call r15
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x14005081d
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400507fd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r13
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14005080f
call fcn.1400ed628
mov qword [rdi + 8], r13
mov edx, Ordinal_26
mov rcx, rdi
call fcn.1400ed628
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x14005085c
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005083d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r13
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005084f
call fcn.1400ed628
mov qword [rbx + 8], r13
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1400ed628
test r14d, r14d
jns 0x14005087c
lea rdx, str.Failed_to_execute_WQL_query._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140071310
mov edx, r14d
jmp 0x1400506ee
mov qword [rbp - 0x61], r13
mov dword [rbp + 0x77], r13d
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x1400509e9
mov ebx, dword [rbp + 0x7f]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x77]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x61]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp + 0x77], 0
je 0x1400509e9
mov rcx, qword [rbp - 0x61]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x59]
xor r8d, r8d
lea rdx, str.Name
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x1400509d2
mov rcx, qword [rbp - 0x51]
call fcn.1400ee3b0
mov r8, 0xffffffffffffffff
test r12b, r12b
je 0x140050920
inc r8
cmp byte [rax + r8], 0
jne 0x140050905
mov rdx, rax
mov rcx, rsi
call fcn.14006e9c0
xor r12b, r12b
jmp 0x140050935
inc r8
cmp byte [rax + r8], 0
jne 0x140050920
mov rdx, rax
mov rcx, rsi
call fcn.14006b650
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.140050310
nop
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
mov rcx, rax
call fcn.14006b650
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x31], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or ebx, 2
mov dword [rbp + 0x7f], ebx
lea rdx, [rbp - 0x41]
mov rcx, rsi
call fcn.14006b6e0
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x1400509bf
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400509b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050a2e
call fcn.1400ed628
nop
lea rcx, [rbp - 9]
call fcn.140049850
lea rcx, [rbp - 0x59]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x61]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x69]
test rcx, rcx
jne 0x1400508a0
mov rcx, qword [rbp - 0x79]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x71]
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]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsi + 0x10]
dec rcx
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140050a21
mov rax, qword [rsi]
mov qword [rsi + 0x10], rcx
mov byte [rax + rcx], 0
jmp 0x140050585
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 0x8007000e
call fcn.1400ee3a0
nop
mov ecx, 0x8007000e
call fcn.1400ee3a0
nop
mov ecx, 0x8007000e
call fcn.1400ee3a0
int3