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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b986
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100b1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
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 0x10004094
mov edx, str.Failed_to_initialize_COM_library._Error_code:_0x
call fcn.10008230
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.10005ca0
push eax
call fcn.100084f0
add esp, 4
jmp 0x10004882
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 0x100040eb
mov edx, str.Failed_to_initialize_security._Error_code:_0x
call fcn.10008230
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.10005ca0
push eax
call fcn.100084f0
add esp, 4
jmp 0x1000487c
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x1002e338
push 1
push 0
push 0x1002e348
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x10004149
mov edx, str.Failed_to_create_IWbemLocator_object._Error_code:_0x
call fcn.10008230
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.10005ca0
push eax
call fcn.100084f0
add esp, 4
jmp 0x1000487c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
push 0xc
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
call fcn.1000a805
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x100041a5
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
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 0x100048a0
jmp 0x100041a7
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x58], esi
test esi, esi
je 0x100048aa
lea eax, [ebp - 0x30]
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 - 0x34]
call edi
mov edi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x10004222
mov ecx, dword [esi]
test ecx, ecx
je 0x10004200
push ecx
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10004217
push eax
call fcn.1000a603
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1000ab4f
add esp, 8
test edi, edi
jns 0x1000425f
mov edx, str.Could_not_connect_to_WMI_namespace._Error_code:_0x
call fcn.10008230
push edi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.10005ca0
push eax
call fcn.100084f0
add esp, 4
jmp 0x10004873
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
test esi, esi
jns 0x100042b5
mov edx, str.Could_not_set_proxy_blanket._Error_code:_0x
call fcn.10008230
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.10005ca0
push eax
call fcn.100084f0
add esp, 4
jmp 0x1000486a
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x3c], 0
push str.SELECT__FROM_Win32_NetworkAdapter
mov eax, dword [eax]
mov edi, dword [eax + 0x50]
call fcn.10002a60
mov dword [ebp - 4], 2
mov esi, dword [eax]
test esi, esi
je 0x100042e2
mov esi, dword [esi]
jmp 0x100042e4
xor esi, esi
push 0x10035260
lea ecx, [ebp - 0x54]
call fcn.10002a60
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x100042ff
mov eax, dword [eax]
jmp 0x10004301
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0x30
push esi
push eax
push dword [ebp - 0x30]
call edi
mov esi, dword [ebp - 0x54]
mov edi, eax
test esi, esi
je 0x10004360
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x10004359
test esi, esi
je 0x10004359
mov eax, dword [esi]
test eax, eax
je 0x10004337
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000434e
push eax
call fcn.1000a603
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1000ab4f
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x100043ae
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x100043ae
test esi, esi
je 0x100043ae
mov eax, dword [esi]
test eax, eax
je 0x1000438c
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100043a3
push eax
call fcn.1000a603
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1000ab4f
add esp, 8
test edi, edi
jns 0x100043c2
mov edx, str.Query_for_network_adapters_failed._Error_code:_0x
call fcn.10008230
push edi
jmp 0x10004287
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
test ecx, ecx
je 0x10004864
nop dword [eax + eax]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x38]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
je 0x10004861
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push str.DeviceID
push ecx
call dword [eax + 0x10]
test eax, eax
jns 0x10004426
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x10004854
push dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.10005f40
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
call fcn.10008590
cmp dword [ebp - 0x18], 7
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.1000a390
add esp, 4
push eax
call fcn.10008860
mov eax, dword [ebp - 0x30]
add esp, 4
mov eax, dword [eax]
push 0xc
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x58], eax
call fcn.1000a805
mov edi, eax
add esp, 4
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 5
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test edi, edi
je 0x100044bf
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x1003533c
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call ebx
mov dword [edi], eax
test eax, eax
je 0x100048a0
jmp 0x100044c1
xor edi, edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x100048a0
mov byte [ebp - 4], 6
mov eax, dword [edi]
push 0xc
mov dword [ebp - 0x78], eax
call fcn.1000a805
mov esi, eax
add esp, 4
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x1000451f
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push str.Win32_NetworkAdapter.DeviceID_
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebx
mov dword [esi], eax
test eax, eax
je 0x100048a0
jmp 0x10004521
xor esi, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x100048a0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
push 0xc
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
call fcn.1000a805
mov ebx, eax
add esp, 4
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 4], 9
test ebx, ebx
je 0x10004595
push dword [ebp - 0x54]
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
jne 0x1000459a
cmp dword [ebp - 0x54], eax
jne 0x100048a0
jmp 0x1000459a
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], 8
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x100048a0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10002b60
mov dword [ebp - 0x74], eax
push 0xc
mov byte [ebp - 4], 0xb
call fcn.1000a805
mov ebx, eax
add esp, 4
mov dword [ebp - 0x88], ebx
mov byte [ebp - 4], 0xc
test ebx, ebx
je 0x10004611
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
push 0x10035338
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
je 0x100048a0
jmp 0x10004613
xor ebx, ebx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x70], ebx
test ebx, ebx
je 0x100048a0
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xd
push eax
call fcn.10002b60
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
test eax, eax
je 0x10004644
mov eax, dword [eax]
jmp 0x10004646
xor eax, eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x78]
push eax
push dword [ebp - 0x30]
call dword [ebp - 0x58]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x100046b5
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
dec eax
jne 0x100046ae
test ecx, ecx
je 0x100046ae
mov eax, dword [ecx]
test eax, eax
je 0x10004689
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x54]
mov dword [ecx], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x100046a3
push eax
call fcn.1000a603
mov ecx, dword [ebp - 0x54]
add esp, 4
mov dword [ecx + 4], 0
push 0xc
push ecx
call fcn.1000ab4f
add esp, 8
mov dword [ebp - 0x64], 0
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x100046f5
mov eax, dword [ebx]
test eax, eax
je 0x100046d3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x100046ea
push eax
call fcn.1000a603
add esp, 4
mov dword [ebx + 4], 0
push 0xc
push ebx
call fcn.1000ab4f
add esp, 8
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x10004747
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x10004740
test ebx, ebx
je 0x10004740
mov eax, dword [ebx]
test eax, eax
je 0x1000471e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x10004735
push eax
call fcn.1000a603
add esp, 4
mov dword [ebx + 4], 0
push 0xc
push ebx
call fcn.1000ab4f
add esp, 8
mov dword [ebp - 0x68], 0
mov ebx, dword [ebp - 0x60]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x1000478a
mov eax, dword [ebx]
test eax, eax
je 0x10004768
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x1000477f
push eax
call fcn.1000a603
add esp, 4
mov dword [ebx + 4], 0
push 0xc
push ebx
call fcn.1000ab4f
add esp, 8
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x100047ca
mov eax, dword [esi]
test eax, eax
je 0x100047a8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100047bf
push eax
call fcn.1000a603
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1000ab4f
add esp, 8
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x1000480e
mov eax, dword [edi]
test eax, eax
je 0x100047ec
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x10004803
push eax
call fcn.1000a603
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1000ab4f
add esp, 8
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x10004854
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000484a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100048b4
push ecx
push edx
call fcn.1000ab4f
add esp, 8
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x100043e0
jmp 0x10004864
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000a5f0
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.1000d5f0
push 0x8007000e
call fcn.1000d5f0
call fcn.10016b2b
int3