Function at 0x180003400
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 [0x18010e080]
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 0x1800034e3
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.1800021b0
lea rdx, [0x180005880]
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, [0x1800e2cb1]
mov rcx, rsi
call fcn.180002380
nop
mov rax, rsi
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1800cd370
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 0x180003527
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_initialize_security
jmp 0x180003473
mov qword [rbp - 0x48], r12
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x1800e29b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1800e29c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x180003564
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdx, str.Failed_to_create_IWbemLocator_object
jmp 0x180003473
mov qword [rbp - 0x50], r12
mov rax, qword [rbp - 0x48]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, Ordinal_27
call fcn.1800cd390
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1800035bc
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 0x180003ddd
jmp 0x1800035bf
mov rbx, r12
mov qword [rbp - 0x60], rbx
test rbx, rbx
je 0x180003de8
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 0x180003639
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000361a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000362c
call fcn.1800cd3cc
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1800cd3cc
test edi, edi
jns 0x180003659
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 0x180003473
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 0x1800036b1
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 0x180003473
mov qword [rbp - 0x40], r12
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, Ordinal_27
call fcn.1800cd390
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180003702
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.1800ce690
mov qword [rbx], rax
jmp 0x180003705
mov rbx, r12
mov qword [rbp - 0x58], rbx
test rbx, rbx
je 0x180003de8
mov r14, qword [rbx]
mov ecx, Ordinal_27
call fcn.1800cd390
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180003754
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, [0x1800e2dd8]
call fcn.1800ce690
mov qword [rdi], rax
jmp 0x180003757
mov rdi, r12
mov qword [rbp - 0x68], rdi
test rdi, rdi
je 0x180003df3
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 0x1800037c8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800037a8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1800037ba
call fcn.1800cd3cc
mov qword [rdi + 8], r12
mov edx, Ordinal_27
mov rcx, rdi
call fcn.1800cd3cc
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x180003807
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800037e8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800037fa
call fcn.1800cd3cc
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1800cd3cc
test r14d, r14d
jns 0x180003832
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 0x180003473
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x18], r12d
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180003da3
lea r13, [0x180000000]
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 0x180003d9f
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 0x180003d71
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 0x1800038e0
lea rcx, [rbp - 0x10]
call fcn.180005e40
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 0x180003dd7
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.180005e40
or edi, 0x20
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x180003985
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003980
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003d8a
call fcn.1800cd3cc
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 + 0xe2ea0]
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.1800056c0
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 0x180003aa0
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x150]
call fcn.1800058c0
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [r13 + 0xe2ec0]
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 0x180003b60
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x60]
call fcn.180005b70
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 0x180003bde
mov rbx, qword [rbp + 0xa8]
mov rbx, qword [rbx]
test rbx, rbx
je 0x180003bde
mov rax, qword [rbp + 0x88]
mov r9, qword [rax]
cmp rbx, qword [rbp + 0xd0]
cmovb rbx, qword [rbp + 0xd0]
jmp 0x180003c09
test cl, 4
jne 0x180003c3e
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x180003c3e
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 0x180003c3e
lea rcx, [rsp + 0x60]
cmp rbx, 0xf
ja 0x180003c36
mov qword [rsp + 0x70], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x60], 0
jmp 0x180003c3e
mov rdx, rbx
call fcn.180005f80
and edi, 0xffffffef
or edi, 8
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x180003c7f
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003c7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003d91
call fcn.1800cd3cc
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.180004cb0
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.1800053a0
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 0x180003d71
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003d6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003d98
call fcn.1800cd3cc
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 0x180003870
jmp 0x180003da3
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 0x1800034b0
call fcn.1800026a0
nop
mov ecx, 0x8007000e
call fcn.1800ce680
nop
mov ecx, 0x8007000e
call fcn.1800ce680
nop
mov ecx, 0x8007000e
call fcn.1800ce680
int3