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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x10008c74
lea eax, [ebp - 8]
push eax
push 0x100384b8
push 1
push 0
push 0x10038458
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10008c6e
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0xc], 0
mov ecx, dword [eax]
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x10008acd
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0xc]
js 0x10008ac7
lea edx, [ebp - 0x10]
push edx
push 0
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
mov dword [ebp - 0x10], 0
mov ecx, dword [eax]
push 0x10037134
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x10008adb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x10008c6e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x10008c1b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [ebx]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x18], 0
je 0x10008c18
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x14]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x28]
push edx
push 0
push str.RegisteredUser
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x28], 8
jne 0x10008c18
mov edi, dword [ebp - 0x20]
test edi, edi
jne 0x10008b54
xor eax, eax
jmp 0x10008b93
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008b60
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x10008b7e
xor eax, eax
jmp 0x10008b93
add esi, esi
mov eax, esi
call fcn.1000ff30
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.100024f0
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x14]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push str.Organization
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x38], 8
jne 0x10008c18
mov edi, dword [ebp - 0x30]
test edi, edi
jne 0x10008bcd
xor eax, eax
jmp 0x10008c05
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008bd2
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x10008bf0
xor eax, eax
jmp 0x10008c05
add esi, esi
mov eax, esi
call fcn.1000ff30
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.100024f0
push eax
push dword [ebp + 0xc]
call ebx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x10008b00
jmp 0x10008c1b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x10008c32
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
test edx, edx
je 0x10008c49
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], 0
test ecx, ecx
je 0x10008c5a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10008c6e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret