Function at 0x140010520
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rsi, rcx
mov qword [rbp - 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x58], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1400106fa
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
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov qword [rbp - 0x70], r12
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x1400169f8]
xor edx, edx
mov r8d, 1
lea rcx, [0x140016a08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400106f4
mov qword [rbp - 0x78], r12
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.140012e40
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14001062b
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.ROOTSecurityCenter2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140010bea
jmp 0x14001062e
mov rbx, r12
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140010c00
lea rax, [rbp - 0x78]
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 - 0x70]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x1400106a9
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001068a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001069c
call fcn.140012f4c
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140012f4c
test edi, edi
js 0x1400106ea
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
mov edx, 0xa
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x14001074b
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
mov r8d, 4
lea rdx, str.fail
mov rcx, rsi
call fcn.140003120
mov rax, rsi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140012e20
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword [rbp - 0x68], r12
mov rax, qword [rbp - 0x78]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.140012e40
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14001079c
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__FROM_AntiVirusProduct
call fcn.140012100
mov qword [rbx], rax
jmp 0x14001079f
mov rbx, r12
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140010c00
mov r14, qword [rbx]
mov ecx, 0x18
call fcn.140012e40
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400107ef
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, [0x140016cdc]
call fcn.140012100
mov qword [rdi], rax
jmp 0x1400107f2
mov rdi, r12
mov qword [rsp + 0x60], rdi
test rdi, rdi
je 0x140010c0b
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov r8, r14
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x78]
call r15
nop
mov eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140010862
mov rcx, qword [rdi]
test rcx, rcx
je 0x140010842
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140010854
call fcn.140012f4c
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.140012f4c
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x1400108a1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140010882
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140010894
call fcn.140012f4c
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140012f4c
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x40], r12d
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140016f68]
mov qword [rbp - 0x30], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x58], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
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 - 0x30]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x30], r14
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
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 - 0x28], rax
mov qword [rbp + 0x40], r12
mov dword [rbp + 0x48], 4
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140010a99
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x60]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp - 0x40], 0
je 0x140010a8a
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x58]
xor r8d, r8d
lea rdx, str.displayName
call qword [rax + 0x20]
test eax, eax
js 0x140010a62
mov rdi, qword [rbp - 0x50]
mov ecx, 0x18
call fcn.140012e40
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400109e0
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
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x1400109e3
test rdi, rdi
jne 0x140010bf5
jmp 0x1400109e3
mov rbx, r12
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140010bdf
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140010a06
mov rcx, qword [rbx]
call fcn.140011fe0
mov qword [rbx + 8], rax
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140002e80
lea rdx, [0x14000d1d0]
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]
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140010a62
mov rcx, qword [rbx]
test rcx, rcx
je 0x140010a43
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140010a55
call fcn.140012f4c
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140012f4c
lea rcx, [rbp - 0x58]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140010a7b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
jne 0x140010940
jmp 0x140010a99
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140010a99
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140010aa8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140010ab7
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x1400175c0]
movdqu xmmword [rsp + 0x78], xmm1
mov byte [rsp + 0x68], 0
mov dword [rsp + 0x58], 0xa
movups xmmword [rbp - 0x58], xmm0
mov ecx, dword [rbp + 0x48]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140010b11
mov rax, qword [rbp + 0x18]
mov r8, qword [rax]
test r8, r8
je 0x140010b11
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x40]
cmovb r8, qword [rbp + 0x40]
sub r8, rdx
jmp 0x140010b40
test cl, 4
jne 0x140010b38
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax]
test rcx, rcx
je 0x140010b38
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140010b40
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x140010b50
lea rcx, [rsp + 0x68]
call fcn.140002b20
nop
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.14000fb30
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140010b9e
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010b98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010b98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012f4c
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r14
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.1400079f0
lea rcx, [rbp - 0x20]
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 + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14001071d
mov ecx, 0x8007000e
call fcn.140011fd0
nop
mov ecx, 0x8007000e
call fcn.140011fd0
nop
mov ecx, 0x8007000e
call fcn.140011fd0
nop
mov ecx, 0x8007000e
call fcn.140011fd0
nop
mov ecx, 0x8007000e
call fcn.140011fd0
int3