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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140043040]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [r14 + 0xa]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._Device_Scanner__Retrieving_mices_VID_and_PID...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003400
lea rdx, [0x140003850]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [r14 + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140006487
lea rdx, str.Failed_to_initialize_COM
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003400
lea rdx, [0x140003850]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002e2b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140006519
lea rdx, str.Failed_to_initialize_COM_security
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003400
lea rdx, [0x140003850]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [0x140044010]
test rcx, rcx
je 0x1400064f5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140044010], r14
mov rcx, qword [0x140044020]
test rcx, rcx
je 0x14000650e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140044020], r14
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x14000645a
lea rax, [0x140044020]
mov qword [rsp + 0x20], rax
lea r9, [0x140031ce8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140031cf8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140006570
lea rdx, str.Failed_to_create_WbemLocator_instance
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003400
lea rdx, [0x140003850]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
call fcn.140006350
jmp 0x14000645a
mov rax, qword [0x140044020]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.14002e3f8
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x1400065ba
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140006b9e
jmp 0x1400065bd
mov rbx, r14
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x140006ba9
lea rax, [0x140044010]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [0x140044020]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14000663d
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000661e
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140006630
call fcn.14002e2d0
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.14002e2d0
test edi, edi
jns 0x14000664d
lea rdx, str.Failed_to_connect_to_WMI_service
jmp 0x14000654a
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [0x140044010]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x14000668e
lea rdx, str.Failed_to_set_proxy_blanket
jmp 0x14000654a
mov qword [rbp - 0x29], r14
mov rax, qword [0x140044010]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.14002e3f8
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x1400066d5
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_PnPEntity_WHERE_Caption_LIKE__Mouse_
call fcn.14002df80
mov qword [rbx], rax
jmp 0x1400066d8
mov rbx, r14
mov qword [rbp - 0x31], rbx
test rbx, rbx
je 0x140006ba9
mov rdi, qword [rbx]
mov ecx, 0x18
call fcn.14002e3f8
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14000671a
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
lea rcx, [0x140031e40]
call fcn.14002df80
mov qword [rbx], rax
jmp 0x14000671d
mov rbx, r14
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x140006bb4
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 0x30
mov r8, rdi
mov rdx, qword [rbx]
mov rcx, qword [0x140044010]
call rsi
mov ebx, eax
lea rcx, [rbp - 0x39]
call fcn.140002090
nop
lea rcx, [rbp - 0x31]
call fcn.140002090
test ebx, ebx
js 0x14000645a
mov qword [rbp - 0x39], r14
mov dword [rbp - 0x31], r14d
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140006b72
lea r12, str.VID_
lea r15, str.PID_
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x31]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x39]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
cmp dword [rbp - 0x31], 0
je 0x140006b6e
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x21]
xor r8d, r8d
lea rdx, str.DeviceID
call qword [rax + 0x20]
test eax, eax
js 0x140006b40
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r14
mov rdx, qword [rbp - 0x19]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140006804
lea rcx, [rbp + 0x17]
call fcn.140003b50
nop
lea r9, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
seta sil
mov rbx, qword [rbp + 0x17]
cmova r9, rbx
mov r11, qword [rbp + 0x27]
cmp r11, 4
jb 0x1400068b2
lea r10, [r11 - 3]
lea r10, [r9 + r10*2]
mov rdi, r9
nop dword [rax]
nop word [rax + rax]
mov rax, r10
sub rax, rdi
sar rax, 1
mov rcx, r14
je 0x14000687a
cmp word [rdi], 0x56
je 0x140006877
cmp rax, 1
je 0x14000687a
dec rax
add rdi, 2
cmp word [rdi], 0x56
jne 0x140006864
mov rcx, rdi
mov rdi, rcx
test rcx, rcx
je 0x1400068b2
mov edx, 4
mov rcx, r12
mov r8, rdi
sub r8, r12
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400068ac
add rcx, 2
sub rdx, 1
jne 0x140006890
sub rdi, r9
sar rdi, 1
jmp 0x1400068b9
add rdi, 2
jmp 0x140006850
mov rdi, 0xffffffffffffffff
lea r9, [rbp + 0x17]
test sil, sil
cmovne r9, rbx
cmp r11, 4
jb 0x140006942
lea r10, [r11 - 3]
lea r10, [r9 + r10*2]
mov rbx, r9
nop word [rax + rax]
mov rax, r10
sub rax, rbx
sar rax, 1
mov rcx, r14
je 0x14000690a
cmp word [rbx], 0x50
je 0x140006907
cmp rax, 1
je 0x14000690a
dec rax
add rbx, 2
cmp word [rbx], 0x50
jne 0x1400068f4
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x140006942
mov edx, 4
mov rcx, r15
mov r8, rbx
sub r8, r15
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000693c
add rcx, 2
sub rdx, 1
jne 0x140006920
sub rbx, r9
sar rbx, 1
jmp 0x140006949
add rbx, 2
jmp 0x1400068e0
mov rbx, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
je 0x140006af9
cmp rbx, 0xffffffffffffffff
je 0x140006af9
lea rdx, str.___VID_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003670
mov rsi, rax
add rdi, 4
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
mov rcx, qword [rbp + 0x27]
cmp rcx, rdi
jb 0x140006b98
sub rcx, rdi
mov r8d, 4
cmp rcx, r8
cmovb r8, rcx
lea rax, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rax, qword [rbp + 0x17]
lea rdx, [rax + rdi*2]
lea rcx, [rbp - 9]
call fcn.140003b50
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
mov r8, qword [rbp + 7]
mov rcx, rsi
call fcn.140004290
lea rdx, [0x140003850]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x140006a2a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006a25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b59
call fcn.14002e2d0
lea rdx, str.___PID_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003670
mov rdi, rax
add rbx, 4
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
mov rcx, qword [rbp + 0x27]
cmp rcx, rbx
jb 0x140006bbf
sub rcx, rbx
mov r8d, 4
cmp rcx, r8
cmovb r8, rcx
lea rax, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rax, qword [rbp + 0x17]
lea rdx, [rax + rbx*2]
lea rcx, [rbp - 9]
call fcn.140003b50
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rdx, qword [rbp - 9]
mov r8, qword [rbp + 7]
mov rcx, rdi
call fcn.140004290
lea rdx, [0x140003850]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x140006af3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006aee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b60
call fcn.14002e2d0
inc dword [0x140044018]
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x140006b40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b67
call fcn.14002e2d0
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
jne 0x140006790
jmp 0x140006b72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp dword [0x140044018], 2
jl 0x140006566
lea rdx, str.____Multiple_mice_are_plugged_in_this_computer._This_is_bannable.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
jmp 0x140006551
call fcn.140003270
nop
mov ecx, 0x8007000e
call fcn.14002df70
nop
mov ecx, 0x8007000e
call fcn.14002df70
nop
mov ecx, 0x8007000e
call fcn.14002df70
nop
call fcn.140003270
int3