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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44643d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x467040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test cl, cl
jne 0x409646
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str._Device_Scanner__Retrieving_mices_VID_and_PID..._n
call fcn.00408320
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x409681
mov edx, eax
mov ecx, str.COM_Initialization
lfence
call fcn.00409440
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444aa0
mov esp, ebp
pop ebp
ret
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]
test eax, eax
jns 0x4096b1
nop dword [eax]
cmp eax, 0x80010119
je 0x4096b1
mov ecx, str.COM_Security_Initialization
jmp 0x4097de
push 0x468950
push 0x44c008
push 1
push 0
push 0x44c018
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4096d8
mov ecx, str.WbemLocator_Creation
jmp 0x4097de
mov eax, dword [0x468950]
push 0xc
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
call fcn.00444ab3
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x409722
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 0x409d57
nop
jmp 0x409724
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x44], esi
test esi, esi
je 0x409d57
push 0x468948
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 1
mov ecx, edi
push dword [esi]
push dword [0x468950]
call dword [0x44b694]
nop
call edi
mov edi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4097ae
mov ecx, dword [esi]
test ecx, ecx
je 0x40978c
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4097a3
push eax
call fcn.00444aae
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00444ae8
add esp, 8
test edi, edi
jns 0x4097bb
mov edx, edi
mov ecx, str.WMI_Connection
jmp 0x4097e0
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [0x468948]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x409845
mov ecx, str.Proxy_Blanket_Configuration
mov edx, eax
lfence
call fcn.00409440
mov ecx, dword [0x468948]
test ecx, ecx
je 0x409812
mov eax, dword ds:[ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x44b694]
call esi
mov dword [0x468948], 0
mov ecx, dword [0x468950]
test ecx, ecx
je 0x409836
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x44b694]
call esi
mov dword [0x468950], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
nop dword [eax]
jmp 0x409665
mov eax, dword [0x468948]
mov dword ds:[ebp - 0x4c], 0
push 0xc
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x48], eax
call fcn.00444ab3
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x409894
push str.SELECT__FROM_Win32_PnPEntity_WHERE_Caption_LIKE__Mouse_
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.00444890
mov dword [esi], eax
jmp 0x409896
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], esi
test esi, esi
je 0x409d57
mov dword [ebp - 4], 3
mov eax, dword [esi]
push 0xc
mov dword [ebp - 0x44], eax
call fcn.00444ab3
mov edi, eax
add esp, 4
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x4098e9
push 0x44c470
mov dword ds:[edi + 4], 0
mov dword [edi + 8], 1
call fcn.00444890
mov dword [edi], eax
jmp 0x4098eb
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], edi
test edi, edi
je 0x409d65
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x30
mov byte [ebp - 4], 5
push dword [ebp - 0x44]
push dword [edi]
push dword [0x468948]
call dword [0x44b694]
call dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x409965
mov ecx, dword [edi]
test ecx, ecx
je 0x409940
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x409957
push eax
call fcn.00444aae
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00444ae8
add esp, 8
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x4099ae
mov eax, dword [esi]
test eax, eax
je 0x40998c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4099a3
push eax
call fcn.00444aae
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00444ae8
add esp, 8
cmp dword [ebp - 0x44], 0
jl 0x409665
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
test ecx, ecx
je 0x409d15
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
push 1
push 0xffffffffffffffff
push ecx
mov ecx, esi
call dword [0x44b694]
call esi
cmp dword [ebp - 0x44], 0
je 0x409d12
lea eax, ds:[ebp - 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x50]
push 0
push 0
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x64]
push eax
push 0
push str.DeviceID
push ecx
mov ecx, esi
call dword [0x44b694]
call esi
test eax, eax
js 0x409cec
mov edx, dword [ebp - 0x5c]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409a50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004063e0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
mov edx, dword [ebp - 0x30]
cmova ecx, dword [ebp - 0x40]
push 4
push str.VID_
push 0
call fcn.00408a00
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
mov esi, eax
cmova ecx, dword [ebp - 0x40]
push 4
push str.PID_
push 0
call fcn.00408a00
add esp, 0x18
mov edi, eax
cmp esi, 0xffffffff
je 0x409c91
nop dword [eax + eax]
cmp edi, 0xffffffff
je 0x409c91
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.___VID_:
call fcn.00406160
mov edx, dword [ebp - 0x30]
add esi, 4
mov dword [ebp - 0x48], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp edx, esi
jb 0x409d6f
sub edx, esi
lea eax, [ebp - 0x40]
mov ecx, 4
cmp edx, ecx
lfence
cmovb ecx, edx
cmp dword [ebp - 0x2c], 7
push ecx
cmova eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
lea eax, [eax + esi*2]
push eax
call fcn.004063e0
mov ecx, dword ds:[ebp - 0x48]
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x14], 7
push dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
call fcn.00408f60
add esp, 4
mov ecx, eax
push 0x408660
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov byte ds:[ebp - 4], 6
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x409b97
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409b8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409d0c
push ecx
push edx
call fcn.00444ae8
add esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
xor eax, eax
mov edx, str.___PID_:
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00406160
mov edx, dword ds:[ebp - 0x30]
lea esi, [edi + 4]
mov dword [ebp - 0x48], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp edx, esi
jb 0x409d6f
sub edx, esi
lea eax, [ebp - 0x40]
mov ecx, 4
cmp edx, ecx
lfence
cmovb ecx, edx
cmp dword [ebp - 0x2c], 7
push ecx
cmova eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
lea eax, [eax + esi*2]
push eax
call fcn.004063e0
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x14], 7
push dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
call fcn.00408f60
add esp, 4
mov ecx, eax
push 0x408660
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x409c77
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409c6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409d0c
push ecx
push edx
call fcn.00444ae8
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
inc dword [0x46894c]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x409cd8
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409cce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409d0c
push ecx
push edx
call fcn.00444ae8
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x44b694]
call esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jne 0x4099d1
jmp 0x409d15
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0x4c]
mov eax, dword ds:[ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x44b694]
call esi
cmp dword [0x46894c], 2
jl 0x4097e8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Check_in_the_Windows_configuation___Bluetooth__Devices_if_more_than_two_mices_are_plugged._If_so__ban_the_user.
call fcn.00408320
push 0x408660
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x4097e8
push 0x8007000e
call fcn.00444870
push 0x8007000e
call fcn.00444870
call fcn.00408250
int3