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

Disassembly:
jmp 0x14002fb20
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14004b048]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x140054108]
call fcn.1400140c2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002fba9
lea rdx, str.Failed_to_initialize_COM_library._Error_code_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400131b8
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x140013096]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 eax, 1
jmp 0x14002ffdf
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002fc2e
lea rdx, str.Failed_to_initialize_security._Error_code_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400131b8
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x140013096]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 eax, 1
jmp 0x14002ffdf
mov qword [rbp + 0x28], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9, [0x140043458]
mov r8d, 1
xor edx, edx
lea rcx, [0x140043590]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002fca3
lea rdx, str.Failed_to_create_IWbemLocator_object._Error_code_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400131b8
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x140013096]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 eax, 1
jmp 0x14002ffdf
mov qword [rbp + 0x48], 0
lea rdx, str.rootCIMV2
lea rcx, [rbp + 0x168]
call fcn.140013f50
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x200], rax
mov rcx, qword [rbp + 0x200]
call fcn.14001409f
mov rcx, qword [rbp + 0x28]
mov rcx, qword [rcx]
mov qword [rbp + 0x208], rcx
lea rdx, [rbp + 0x48]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x208]
call qword [rax + 0x18]
mov dword [rbp + 4], eax
lea rcx, [rbp + 0x168]
call fcn.140013e6f
cmp dword [rbp + 4], 0
jge 0x14002fd92
lea rdx, str.Could_not_connect._Error_code_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400131b8
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x140013096]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x28]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x14002ffdf
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002fe2c
lea rdx, str.Could_not_set_proxy_blanket._Error_code_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400131b8
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x140013096]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x48]
call qword [rax + 0x10]
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x28]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x14002ffdf
mov ecx, 0x10
call fcn.1400130a5
mov qword [rbp + 0x1a8], rax
cmp qword [rbp + 0x1a8], 0
je 0x14002fe5c
mov rcx, qword [rbp + 0x1a8]
call fcn.14001390b
mov qword [rbp + 0x1f8], rax
jmp 0x14002fe67
mov qword [rbp + 0x1f8], 0
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x68]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, str.SELECT__FROM___InstanceCreationEvent_WITHIN_1_WHERE_TargetInstance_ISA_Win32_Process
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp + 0x88], rax
mov rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x1c8]
call fcn.140013f50
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x200], rax
mov rcx, qword [rbp + 0x200]
call fcn.14001409f
mov qword [rbp + 0x208], rax
lea rdx, [0x1400423d4]
lea rcx, [rbp + 0x1e8]
call fcn.1400139b5
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x218], rax
mov rcx, qword [rbp + 0x218]
call fcn.14001409f
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx]
mov qword [rbp + 0x220], rcx
mov rdx, qword [rbp + 0x68]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9d, 0x80
mov rdx, qword [rbp + 0x208]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x220]
call qword [rax + 0xb8]
mov dword [rbp + 4], eax
lea rcx, [rbp + 0x1e8]
call fcn.140013e6f
nop
lea rcx, [rbp + 0x1c8]
call fcn.140013e6f
cmp dword [rbp + 4], 0
jge 0x14002ffdd
lea rdx, str.ExecNotificationQueryAsync_failed_with_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400131b8
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x140013096]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x48]
call qword [rax + 0x10]
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x28]
call qword [rax + 0x10]
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x68]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x14002ffdf
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140013dfc
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.140013820
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret