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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100149ba
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x1001b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x1000d2b9
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_initialize_COM_library._Error_code:
call fcn.100045f0
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push 0x10004820
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x1000d303
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
test esi, esi
jns 0x1000d323
mov edx, str.Failed_to_initialize_security._Error_code:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.100045f0
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push 0x10004820
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10012545
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push 0x10015490
push 1
push 0
push 0x100154a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x1000d34f
mov edx, str.Failed_to_create_IWbemLocator_object._Error_code:
jmp 0x1000d2dc
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0xc
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
call fcn.10012815
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1000d39d
push str.ROOTCIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x1000d847
jmp 0x1000d39f
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x60], esi
test esi, esi
je 0x1000d847
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi]
push dword [ebp - 0x64]
call edi
mov edi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x1000d418
mov ecx, dword [esi]
test ecx, ecx
je 0x1000d3f6
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000d40d
push eax
call fcn.10012b90
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10012b5f
add esp, 8
test edi, edi
jns 0x1000d450
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_connect_to_WMI_namespace._Error_code:
call fcn.100045f0
push edi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push 0x10004820
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000d2fd
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0
push 0xc
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x60], eax
call fcn.10012815
mov esi, eax
add esp, 4
mov dword [ebp - 0x7c], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x1000d498
push str.SELECT__FROM_Win32_OperatingSystem
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.10013560
mov dword [esi], eax
jmp 0x1000d49a
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x80], esi
test esi, esi
je 0x1000d847
mov dword [ebp - 4], 3
mov eax, dword [esi]
push 0xc
mov dword [ebp - 0x7c], eax
call fcn.10012815
mov edi, eax
add esp, 4
mov dword [ebp - 0x74], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x1000d4eb
push 0x10015b60
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.10013560
mov dword [edi], eax
jmp 0x1000d4ed
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x74], edi
test edi, edi
je 0x1000d851
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 5
push eax
push 0
push 0x30
push dword [ebp - 0x7c]
push dword [edi]
push dword [ebp - 0x68]
call dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x1000d55b
mov ecx, dword [edi]
test ecx, ecx
je 0x1000d536
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1000d54d
push eax
call fcn.10012b90
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.10012b5f
add esp, 8
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1000d59f
mov eax, dword [esi]
test eax, eax
je 0x1000d57d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000d594
push eax
call fcn.10012b90
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10012b5f
add esp, 8
mov esi, dword [ebp - 0x60]
test esi, esi
jns 0x1000d5e3
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Query_for_operating_system_information_failed._Error_code:
call fcn.100045f0
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
push 0x10004820
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000d2fd
push 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x10015770
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10002dc0
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x1000d7b7
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ecx]
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x70]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x78], 0
je 0x1000d7b7
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x90]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push 0x10015b64
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x1000d79a
cmp word [ebp - 0x90], 8
jne 0x1000d77d
push dword [ebp - 0x88]
call fcn.10013440
mov edx, eax
mov dword [ebp - 0x44], 0
mov ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d6b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.10002dc0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44]
mov ecx, 0xe
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x34], ecx
mov dword [ebp - 0x4c], 0
cmovb ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 0x10
push ecx
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], 0xf
call fcn.10002dc0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1000d731
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d727
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d82f
push edx
push ecx
call fcn.10012b5f
add esp, 8
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x4c]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x30]
movq qword [ebp - 0x1c], xmm0
cmp edx, 0x10
jb 0x1000d79a
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d771
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d82f
push edx
push ecx
call fcn.10012b5f
add esp, 8
jmp 0x1000d79a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.InstallDate_property_is_not_a_string.
call fcn.100045f0
push 0x10004820
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x90]
push eax
call edi
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x1000d631
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.10012b9e
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
add esp, 4
cmp edi, 0x10
mov dword [ebp - 0x60], eax
mov esi, eax
cmovae ecx, edx
sub esi, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x1000d800
cmp edi, 0x10
jb 0x1000d83f
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d835
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d835
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10012b5f
add esp, 8
mov eax, dword [ebp - 0x60]
jmp 0x1000d305
push 0x8007000e
call fcn.10013420
push 0x8007000e
call fcn.10013420
int3