Function at 0x1400041a0
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 [0x1400eb0c0]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rsi, rcx
mov qword [rbp - 0x38], rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x10], r12b
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140004283
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.140002740
lea rdx, [0x140006b00]
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 [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
xor r8d, r8d
lea rdx, [0x1400d0939]
mov rcx, rsi
call fcn.140002910
nop
mov rax, rsi
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400bcc60
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 0x1400042c7
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_initialize_security
jmp 0x140004213
mov qword [rbp - 0x48], r12
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x1400d05e8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400d05f8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140004304
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_create_IWbemLocator_object
jmp 0x140004213
mov qword [rbp - 0x50], r12
mov rax, qword [rbp - 0x48]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, Ordinal_26
call fcn.1400bcc80
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000435c
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 0x140004b7d
jmp 0x14000435f
mov rbx, r12
mov qword [rbp - 0x60], rbx
test rbx, rbx
je 0x140004b88
lea rax, [rbp - 0x50]
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 - 0x48]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x1400043d9
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400043ba
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400043cc
call fcn.1400bccc4
mov qword [rbx + 8], r12
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1400bccc4
test edi, edi
jns 0x1400043f9
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_connect_to_WMI_namespace
jmp 0x140004213
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 - 0x50]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140004451
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_set_proxy_blanket
jmp 0x140004213
mov qword [rbp - 0x40], r12
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, Ordinal_26
call fcn.1400bcc80
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400044a2
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.1400bc930
mov qword [rbx], rax
jmp 0x1400044a5
mov rbx, r12
mov qword [rbp - 0x58], rbx
test rbx, rbx
je 0x140004b88
mov r14, qword [rbx]
mov ecx, Ordinal_26
call fcn.1400bcc80
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400044f4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, [0x1400d0a58]
call fcn.1400bc930
mov qword [rdi], rax
jmp 0x1400044f7
mov rdi, r12
mov qword [rbp - 0x68], rdi
test rdi, rdi
je 0x140004b93
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, Ordinal_50
mov r8, r14
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x50]
call r15
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140004568
mov rcx, qword [rdi]
test rcx, rcx
je 0x140004548
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000455a
call fcn.1400bccc4
mov qword [rdi + 8], r12
mov edx, Ordinal_26
mov rcx, rdi
call fcn.1400bccc4
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400045a7
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004588
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000459a
call fcn.1400bccc4
mov qword [rbx + 8], r12
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1400bccc4
test r14d, r14d
jns 0x1400045d2
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_execute_WMI_query
jmp 0x140004213
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x18], r12d
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140004b43
lea r13, [0x140000000]
lea rbx, vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea r15, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea r14, str._H:_M:_S
mov edi, dword [rsp + 0x50]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x38]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp - 0x18], 0
je 0x140004b3f
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, str.LastBootUpTime
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
test eax, eax
js 0x140004b11
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
mov qword [rbp + 8], r12
mov rdx, qword [rbp - 0x28]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004680
lea rcx, [rbp - 0x10]
call fcn.1400070a0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov rax, qword [rbp]
cmp rax, 8
jb 0x140004b77
add rax, 0xfffffffffffffff8
mov r8d, 6
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
add rdx, 0x10
lea rcx, [rsp + 0x60]
call fcn.1400070a0
or edi, 0x20
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x140004725
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004720
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b2a
call fcn.1400bccc4
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp], xmm0
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x150]
call sub.VCRUNTIME140.dll_memset
lea rax, [r13 + 0xd0b98]
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 edi, 2
mov dword [rsp + 0x50], edi
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], rbx
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 - 0x68], 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 - 0x10]
movups xmm1, xmmword [rsp + 0x70]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 7
cmova rdx, qword [rsp + 0x60]
mov r9d, 2
movq r8, xmm1
lea rcx, [rbp + 0x160]
call fcn.140006940
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
mov dword [rbp + 0x50], eax
lea rax, [rbp + 0x30]
mov qword [rbp - 0x80], rax
lea rax, str._H_M_S
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140004840
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x150]
call fcn.140006b40
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [r13 + 0xd0bb8]
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 edi, 4
mov dword [rsp + 0x50], edi
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], r15
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 + 0x30]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r14
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rax], 0
jne 0x140004900
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x60]
call fcn.140006df0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
or edi, 0x10
mov dword [rsp + 0x50], edi
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
mov ecx, dword [rbp + 0xd8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14000497e
mov rbx, qword [rbp + 0xa8]
mov rbx, qword [rbx]
test rbx, rbx
je 0x14000497e
mov rax, qword [rbp + 0x88]
mov r9, qword [rax]
cmp rbx, qword [rbp + 0xd0]
cmovb rbx, qword [rbp + 0xd0]
jmp 0x1400049a9
test cl, 4
jne 0x1400049de
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400049de
mov rax, qword [rbp + 0x80]
mov r9, qword [rax]
mov rax, qword [rbp + 0xb8]
movsxd rbx, dword [rax]
add rbx, rcx
mov rax, r9
sub rbx, r9
test rax, rax
je 0x1400049de
lea rcx, [rsp + 0x60]
cmp rbx, 0xf
ja 0x1400049d6
mov qword [rsp + 0x70], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x60], 0
jmp 0x1400049de
mov rdx, rbx
call fcn.1400071e0
and edi, 0xffffffef
or edi, 8
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140004a1f
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b31
call fcn.1400bccc4
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp + 0x20], xmm1
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], r15
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.140006520
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]
lea rbx, vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x150], rbx
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.140005eb0
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 + 8]
cmp rdx, 7
jbe 0x140004b11
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b38
call fcn.1400bccc4
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x140004610
jmp 0x140004b43
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 - 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp + 0x20]
movups xmmword [rsi + 0x10], xmm1
jmp 0x140004250
call fcn.1400032d0
nop
mov ecx, 0x8007000e
call fcn.1400bc920
nop
mov ecx, 0x8007000e
call fcn.1400bc920
nop
mov ecx, 0x8007000e
call fcn.1400bc920
int3