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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x140071030]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rdi, rcx
mov qword [rbp - 0x30], rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 0xf
mov byte [rbp + 0x18], r12b
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140003cc3
lea rdx, str.Failed_to_initialize_COM_library
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400024b0
lea rdx, [0x1400068c0]
mov rcx, rax
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]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
xor r8d, r8d
lea rdx, [0x14005e001]
mov rcx, rdi
call fcn.140002680
nop
mov rax, rdi
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140059f80
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140003d07
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_initialize_security
jmp 0x140003c53
mov qword [rbp - 0x40], r12
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x14005dc48]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14005dc58]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140003d44
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_create_IWbemLocator_object
jmp 0x140003c53
mov qword [rbp - 0x48], r12
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.140059fa0
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140003d9c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14000459f
jmp 0x140003d9f
mov rbx, r12
mov qword [rbp - 0x58], rbx
test rbx, rbx
je 0x1400045aa
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x40]
call rsi
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140003e19
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003dfa
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003e0c
call fcn.140059fe4
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140059fe4
test esi, esi
jns 0x140003e39
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_connect_to_WMI_namespace
jmp 0x140003c53
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140003e91
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_set_proxy_blanket
jmp 0x140003c53
mov qword [rbp - 0x38], r12
mov rax, qword [rbp - 0x48]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.140059fa0
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140003ee2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
lea rcx, str.SELECT_LastBootUpTime_FROM_Win32_OperatingSystem_WHERE_Primarytrue
call fcn.140059c50
mov qword [rbx], rax
jmp 0x140003ee5
mov rbx, r12
mov qword [rbp - 0x50], rbx
test rbx, rbx
je 0x1400045aa
mov r14, qword [rbx]
mov ecx, 0x18
call fcn.140059fa0
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140003f34
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], r12
mov dword [rsi + 0x10], 1
lea rcx, [0x14005e128]
call fcn.140059c50
mov qword [rsi], rax
jmp 0x140003f37
mov rsi, r12
mov qword [rbp - 0x80], rsi
test rsi, rsi
je 0x1400045b5
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov r8, r14
mov rdx, qword [rsi]
mov rcx, qword [rbp - 0x48]
call r15
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rsi + 0x10], ecx
cmp ecx, 1
jne 0x140003fa8
mov rcx, qword [rsi]
test rcx, rcx
je 0x140003f88
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], r12
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140003f9a
call fcn.140059fe4
mov qword [rsi + 8], r12
mov edx, 0x18
mov rcx, rsi
call fcn.140059fe4
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140003fe7
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003fc8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003fda
call fcn.140059fe4
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140059fe4
test r14d, r14d
jns 0x140004012
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_execute_WMI_query
jmp 0x140003c53
mov qword [rbp - 0x30], r12
mov dword [rbp - 0x10], r12d
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140004565
lea r15, [0x140000000]
lea r13, vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea r14, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rsi, str._H:_M:_S
mov ebx, dword [rsp + 0x50]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x30]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
cmp dword [rbp - 0x10], 0
je 0x140004561
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x28]
xor r8d, r8d
lea rdx, str.LastBootUpTime
call qword [rax + 0x20]
test eax, eax
js 0x140004534
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], r12
mov rdx, qword [rbp - 0x20]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400040c0
lea rcx, [rbp - 8]
call fcn.140006e60
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov rax, qword [rbp + 8]
cmp rax, 8
jb 0x140004599
add rax, 0xfffffffffffffff8
mov r8d, 6
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
add rdx, 0x10
lea rcx, [rsp + 0x60]
call fcn.140006e60
or ebx, 0x20
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x140004165
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004160
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000454c
call fcn.140059fe4
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 8], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp + 8], xmm0
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x150]
call sub.VCRUNTIME140.dll_memset
lea rax, [r15 + 0x5e268]
mov qword [rbp + 0x150], rax
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
or ebx, 2
mov dword [rsp + 0x50], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x150]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x150], r13
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x14c], edx
lea rax, [rbp + 0x160]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x160]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x160], rax
lea rdx, [rbp - 8]
movups xmm1, xmmword [rsp + 0x70]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 8
cmovae rdx, qword [rsp + 0x60]
mov r9d, 2
movq r8, xmm1
lea rcx, [rbp + 0x160]
call fcn.140006610
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x38], xmm0
movups xmmword [rbp + 0x48], xmm0
mov dword [rbp + 0x58], eax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x60], rax
lea rax, str._H_M_S
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
nop
add rax, 2
cmp word [rax], 0
jne 0x140004280
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x150]
call fcn.140006900
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [r15 + 0x5e308]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0xe8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or ebx, 4
mov dword [rsp + 0x50], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], r14
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x68], rax
mov qword [rbp + 0xd0], r12
mov dword [rbp + 0xd8], 4
lea rax, [rbp + 0x38]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov rax, rsi
inc rax
cmp byte [rax], 0
jne 0x140004341
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.140006bb0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
or ebx, 0x10
mov dword [rsp + 0x50], ebx
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov ecx, dword [rbp + 0xd8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400043c2
mov rax, qword [rbp + 0xa8]
mov r8, qword [rax]
test r8, r8
je 0x1400043c2
mov rax, qword [rbp + 0x88]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xd0]
cmovb r8, qword [rbp + 0xd0]
sub r8, rdx
jmp 0x1400043fc
test cl, 4
jne 0x1400043f2
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400043f2
mov rax, qword [rbp + 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xb8]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x1400043fc
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x14000440a
lea rcx, [rbp - 0x78]
call fcn.140006760
and ebx, 0xffffffef
or ebx, 8
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x14000444b
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004446
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004553
call fcn.140059fe4
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp + 0x18], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rbp + 0x28], xmm1
lea rcx, [rbp - 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], r14
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x68]
call fcn.140006280
lea rcx, [rbp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x150], r13
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x14c], edx
lea rcx, [rbp + 0x160]
call fcn.140005c00
lea rcx, [rbp + 0x168]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x140004534
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000452f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000455a
call fcn.140059fe4
mov rcx, qword [rbp - 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140004565
jmp 0x140004050
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]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [rdi + 0x10], xmm1
jmp 0x140003c90
call fcn.140003040
nop
mov ecx, 0x8007000e
call fcn.140059c40
nop
mov ecx, 0x8007000e
call fcn.140059c40
nop
mov ecx, 0x8007000e
call fcn.140059c40
int3