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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp + 7], rcx
mov qword [rbp - 0x41], rdx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x1400043b5
lea rdx, str.Failed_to_initialize_COM_library._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a20
mov rcx, rax
lea rdx, [0x140004230]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002350]
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 rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140004387
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140004382
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400049f5
mov rcx, r8
call fcn.140004f8c
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400048ad
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
jmp 0x1400048a9
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov r14d, eax
test eax, eax
jns 0x140004481
lea rdx, str.Failed_to_initialize_security._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a20
lea rdx, [0x140004230]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, r14d
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___long_int____ptr64]
lea rdx, [0x140002350]
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]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000446d
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x140004468
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400049f5
mov rcx, r8
call fcn.140004f8c
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
jmp 0x140004397
mov qword [rbp - 0x21], rbx
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r9, [0x140007510]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140007520]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r14d, eax
test eax, eax
jns 0x1400044d1
lea rdx, str.Failed_to_create_IWbemLocator_object.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a20
mov rcx, rax
lea rdx, str._Err_code__0x
jmp 0x1400043fb
mov qword [rbp - 0x29], rbx
mov ecx, 0x18
call fcn.140004c30
mov r14, rax
mov qword [rbp - 9], rax
test rax, rax
je 0x14000451f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rax
mov qword [r14 + 8], rbx
mov dword [r14 + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [r14], rax
test rax, rax
je 0x140004a07
jmp 0x140004522
mov r14, rbx
mov qword [rbp - 9], r14
test r14, r14
je 0x140004a12
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14]
call qword [rax + 0x18]
mov r15d, eax
mov ecx, 0xffffffff
lock xadd dword [r14 + 0x10], ecx
cmp ecx, 1
jne 0x1400045a1
mov rcx, qword [r14]
test rcx, rcx
je 0x140004582
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14], rbx
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140004594
call fcn.140004f8c
mov qword [r14 + 8], rbx
mov edx, 0x18
mov rcx, r14
call fcn.140004f8c
test r15d, r15d
jns 0x1400045f4
lea rdx, str.Could_not_connect._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a20
mov rcx, rax
lea rdx, [0x140004230]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, r15d
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002350]
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]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000442c
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov r14d, eax
test eax, eax
jns 0x140004680
lea rdx, str.Could_not_set_proxy_blanket._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a20
mov rcx, rax
lea rdx, [0x140004230]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, r14d
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002350]
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]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000442c
mov qword [rbp - 0x19], rbx
mov r15, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140004691
mov r15, qword [rdi]
mov ecx, 0x18
call fcn.140004c30
mov r14, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x1400046cd
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rax
mov qword [r14 + 8], rbx
mov dword [r14 + 0x10], 1
mov rcx, r15
call fcn.140005970
mov qword [r14], rax
jmp 0x1400046d0
mov r14, rbx
mov qword [rbp - 0x39], r14
test r14, r14
je 0x140004a12
mov ecx, 0x18
call fcn.140004c30
mov r15, rax
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14000471d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rax
mov qword [r15 + 8], rbx
mov dword [r15 + 0x10], 1
lea rcx, [0x140007810]
call fcn.140005970
mov qword [r15], rax
jmp 0x140004720
mov r15, rbx
mov qword [rbp - 0x31], r15
test r15, r15
je 0x1400049fc
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov r9d, 0x30
mov r8, qword [r14]
mov rdx, qword [r15]
call qword [rax + 0xa0]
mov r12d, eax
mov ecx, 0xffffffff
lock xadd dword [r15 + 0x10], ecx
cmp ecx, 1
jne 0x140004798
mov rcx, qword [r15]
test rcx, rcx
je 0x140004778
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r15], rbx
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x14000478a
call fcn.140004f8c
mov qword [r15 + 8], rbx
mov edx, 0x18
mov rcx, r15
call fcn.140004f8c
nop
mov eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
cmp eax, 1
jne 0x1400047d8
mov rcx, qword [r14]
test rcx, rcx
je 0x1400047b9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14], rbx
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400047cb
call fcn.140004f8c
mov qword [r14 + 8], rbx
mov edx, 0x18
mov rcx, r14
call fcn.140004f8c
test r12d, r12d
jns 0x1400048da
lea rdx, str.WMI_query_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a20
mov rcx, rax
lea rdx, str._Error_code__0x
call fcn.140004a20
mov rcx, rax
lea rdx, [0x140004230]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, r12d
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002350]
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]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140004884
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000487f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400049f5
mov rcx, r8
call fcn.140004f8c
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400048ad
mov r8, qword [rcx]
cmp rcx, rsi
setne dl
call qword [r8 + 0x20]
mov qword [rsi + 0x38], rbx
mov eax, 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140004c10
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov qword [rbp - 0x11], rbx
mov dword [rbp + 0xf], ebx
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140004964
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x11]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
call qword [rax + 0x20]
cmp dword [rbp + 0xf], 0
je 0x140004964
lea rcx, [rbp + 0x17]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
lea rax, [rbp + 0x17]
mov qword [rbp - 1], rax
mov rax, qword [rbp - 0x11]
mov qword [rbp - 9], rax
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400049ee
mov rax, qword [rcx]
lea r8, [rbp - 1]
lea rdx, [rbp - 9]
call qword [rax + 0x10]
lea rcx, [rbp + 0x17]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x1400048f0
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400049bf
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400049ba
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400049f5
mov rcx, r8
call fcn.140004f8c
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400049e7
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], rbx
xor eax, eax
jmp 0x1400048b2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 0x8007000e
call fcn.140005960
nop
mov ecx, 0x8007000e
call fcn.140005960
nop
mov ecx, 0x8007000e
call fcn.140005960
int3