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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x1800671c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
sub eax, dword [0x18006b518]
cmp qword [0x18006b530], 0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x180059308]
je 0x18000b1a8
xorps xmm0, xmm0
comisd xmm0, xmm1
ja 0x18000b1a8
comisd xmm1, xmmword [0x180059320]
ja 0x18000b1a8
cmp byte [0x18006b511], 0
jne 0x18000b1a8
mov qword [rsp + 0x100], r15
lea rdx, [0x180056cb0]
xor r15d, r15d
mov ecx, r15d
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x18000ab6a
cmp rcx, 4
jne 0x18000ab50
xor eax, eax
jmp 0x18000adbd
xor edx, edx
mov qword [rsp + 0x128], rbx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x130], rsi
lea r9, [0x180056158]
mov qword [rbp - 0x80], r15
lea rcx, [0x180056168]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x18000ac06
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_create_IWbemLocator_object.
call fcn.180016590
mov rcx, rax
lea rdx, str._Err_code__0x
call fcn.180016590
mov rcx, rax
lea rdx, [0x180001e10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x180016750]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, 0xffffffffffffffff
jmp 0x18000adad
mov ecx, 0x18
mov qword [rsp + 0x138], r14
mov qword [rsp + 0x78], r15
call fcn.18004f0f4
mov rbx, rax
test rax, rax
je 0x18000b1b2
mov qword [rax], r15
lea rcx, str.ROOTCIMV2
mov qword [rax + 0x10], 1
mov qword [rax + 8], r15
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18000b1b2
mov rcx, qword [rbp - 0x80]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov rax, qword [rcx]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [rax + 0x18]
mov rsi, 0xffffffffffffffff
mov r14d, eax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x18000acc8
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000aca9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000acbb
call fcn.18004f0c0
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.18004f0c0
test r14d, r14d
jns 0x18000ad11
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Could_not_connect._Error_code__0x
call fcn.180016590
mov rcx, rax
lea rdx, [0x180001e10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x180016750]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x18000ad93
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov dword [rsp + 0x38], r15d
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x18000addb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Could_not_set_proxy_blanket._Error_code__0x
call fcn.180016590
mov rcx, rax
lea rdx, [0x180001e10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x180016750]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r14, qword [rsp + 0x138]
mov eax, esi
mov rsi, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x128]
mov r15, qword [rsp + 0x100]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18004f0a0
add rsp, 0x108
pop rdi
pop rbp
ret
xorps xmm0, xmm0
mov qword [rsp + 0x68], r15
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x70], r15
mov r8, rsi
inc r8
cmp byte [rdi + r8], r15b
jne 0x18000adf0
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180017290
mov rcx, qword [rsp + 0x68]
xorps xmm0, xmm0
inc rcx
mov qword [rbp - 0x48], r15
movups xmmword [rbp - 0x58], xmm0
mov eax, 2
mov qword [rbp - 0x40], 7
mul rcx
mov word [rbp - 0x58], r15w
cmovo rax, rsi
mov rcx, rax
call fcn.18004f4bc
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x58]
mov r9d, esi
mov r14, rax
mov word [rax + rcx*2], r15w
mov ecx, dword [rsp + 0x68]
cmp qword [rsp + 0x70], 0xf
mov dword [rsp + 0x28], ecx
cmova r8, qword [rsp + 0x58]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rsi
inc rdx
cmp word [r14 + rdx*2], r15w
jne 0x18000ae75
mov rax, qword [rbp - 0x40]
cmp rdx, rax
ja 0x18000aeb2
lea rbx, [rdx + rdx]
mov qword [rbp - 0x48], rdx
cmp rax, 7
lea rdi, [rbp - 0x58]
mov r8, rbx
mov rdx, r14
cmova rdi, qword [rbp - 0x58]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r15w
jmp 0x18000aebe
mov r9, r14
lea rcx, [rbp - 0x58]
call fcn.180018290
mov rcx, r14
call fcn.18004f0c0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x18000af06
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000af01
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000af01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004f0c0
cmp qword [rbp - 0x40], 7
lea rcx, [rbp - 0x58]
cmova rcx, qword [rbp - 0x58]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_Process_WHERE__Name__firefox.exe_OR_Name__chrome.exe__AND_CommandLine_LIKE__
mov rbx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea r8, [rbp - 0x68]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
lea rcx, [0x180056e30]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rbp - 0x68]
lea r8, [rbp - 0x68]
mov rdx, rax
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
mov ecx, 0x18
mov qword [rbp - 0x70], r15
call fcn.18004f0f4
mov rbx, rax
test rax, rax
je 0x18000b1b2
mov qword [rax], r15
lea rcx, [0x180056e38]
mov qword [rax + 0x10], 1
mov qword [rax + 8], r15
call fcn.18004ed70
mov qword [rbx], rax
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x78]
mov r9d, 0x30
mov r8, qword [rbp - 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, rax
mov qword [rsp + 0x20], r15
mov r10, qword [rcx]
call qword [r10 + 0xa0]
mov edi, eax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x18000aff8
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000afd9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000afeb
call fcn.18004f0c0
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.18004f0c0
test edi, edi
jns 0x18000b069
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Query_for_operating_system_name_failed.
call fcn.180016590
mov rcx, rax
lea rdx, str._Error_code__0x
call fcn.180016590
mov rcx, rax
lea rdx, [0x180001e10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x180016750]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x18000b15c
mov rcx, qword [rbp - 0x70]
mov ebx, r15d
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x60], r15d
test rcx, rcx
je 0x18000b13b
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x78]
mov edx, esi
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp - 0x60], r15d
je 0x18000b13b
lea rcx, [rbp - 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x78]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x28], r15
lea rdx, str.CommandLine
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x78]
lea r9, [rbp - 0x38]
mov qword [rsp + 0x28], r15
lea rdx, str.ProcessId
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov ebx, dword [rbp - 0x30]
test rcx, rcx
jne 0x18000b090
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov esi, ebx
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x18000ada3
mov rcx, qword [rbp - 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000b19e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000b19e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004f0c0
jmp 0x18000ada3
mov eax, 0xfffffff7
jmp 0x18000adc5
mov ecx, 0x8007000e
call fcn.18004ed60
int3