Function at 0x40fad1
Capabilities:
Connect to wmi namespace via wbemlocator
Query or enumerate registry value
Reference wmi statements

Disassembly:
mov eax, 0x420751
call fcn.0041fac0
sub esp, 0x270
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x40fb0e
cmp eax, 0x80010119
jne 0x40fd4a
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
push eax
push 0x421ec4
push 1
push ebx
push 0x421f94
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40fd39
mov dword [ebp - 0x2c], ebx
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.ROOTCIMV2
call edi
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
push edx
push ebx
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x14], ebx
jl 0x40fd29
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x40fd29
mov eax, str.SerialNumber
mov dword [ebp - 0x64], str.SELECT__FROM_Win32_BIOS
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], str.SELECT__FROM_Win32_Processor
mov dword [ebp - 0x58], str.ProcessorId
mov dword [ebp - 0x54], str.SELECT__FROM_Win32_BaseBoard
mov dword [ebp - 0x4c], str.SELECT__FROM_Win32_PhysicalMedia
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x10]
push dword [eax - 4]
call edi
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
push 0x42895c
mov byte [ebp - 4], 4
call fcn.0041070b
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
push edx
push ebx
mov ecx, dword [eax]
push 0x30
push dword [ebp - 0x1c]
mov byte [ebp - 4], 5
push dword [ebp - 0x20]
push eax
call dword [ecx + 0x50]
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
call esi
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], ebx
jl 0x40fd0b
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x18], ebx
je 0x40fcfa
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [eax + 0x10]
cmp eax, ebx
jl 0x40fcfa
cmp dword [ebp - 0x28], ebx
je 0x40fcfa
cmp dword [ebp - 0x30], ebx
je 0x40fcfa
mov word [ebp - 0x44], bx
mov eax, dword [ebp - 0x10]
push dword [eax]
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
push ebx
lea edx, [ebp - 0x44]
push ebx
mov ecx, dword [eax]
push edx
push ebx
mov byte [ebp - 4], 8
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
call esi
cmp dword [ebp - 0x20], ebx
jl 0x40fca9
cmp word [ebp - 0x44], 8
jne 0x40fca9
cmp dword [ebp - 0x3c], ebx
jne 0x40fcbc
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40fc2d
push dword [ebp - 0x3c]
lea eax, [ebp - 0x74]
push eax
call fcn.004033f7
pop ecx
pop ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [ebp - 4], 9
push dword [ecx]
mov ecx, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x40fd0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40fd1c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add dword [ebp - 0x10], 8
dec dword [ebp - 0x24]
jne 0x40fbd0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40fd39
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40fd4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
cmp dword [esi + 8], ebx
jne 0x40fe1e
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x27a]
mov word [ebp - 0x27c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 1
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x30]
push eax
push str.Default_User_ID
push str.Identities
push SysReAllocString
mov dword [ebp - 0x24], 0x206
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40fdcb
cmp word [ebp - 0x27c], bx
je 0x40fdcb
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp dword [esi + 8], ebx
jne 0x40fe1e
mov esi, 0x421e10
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x40fe1e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jl 0x40fe1e
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret