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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x140050c8c
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::cerr]
call fcn.140083ee0
lea rdx, [0x14004d480]
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, ebx
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, [0x1400840c0]
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]
xor al, al
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov r12d, 3
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edi, 0xffffffff
mov edx, edi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
test eax, eax
jns 0x140050d12
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::cerr]
call fcn.140083ee0
lea rdx, [0x14004d480]
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, ebx
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, [0x1400840c0]
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]
jmp 0x140050c78
mov qword [rbp + 0x7f], r15
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x140210618]
xor edx, edx
mov r8d, 1
lea rcx, [0x140210628]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x140050d4a
lea rdx, str.Failed_to_create_IWbemLocator_object._Error_code__0x
jmp 0x140050cd0
mov qword [rbp + 0x77], r15
mov rax, qword [rbp + 0x7f]
mov rcx, qword [rax]
mov r14, qword [rcx + 0x18]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140050d95
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.ROOTDEFAULT
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14005136b
jmp 0x140050d98
mov rbx, r15
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x1400513a2
lea rax, [rbp + 0x77]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x7f]
call r14
mov r14d, eax
lock xadd dword [rbx + 0x10], edi
cmp edi, 1
jne 0x140050e0f
mov rcx, qword [rbx]
test rcx, rcx
je 0x140050df0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140050e02
call fcn.1401da694
mov qword [rbx + 8], r15
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1401da694
test r14d, r14d
jns 0x140050e68
lea rdx, str.Could_not_connect_to_WMI._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140083ee0
lea rdx, [0x14004d480]
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, [0x1400840c0]
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]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140050c78
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x140050ef4
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::cerr]
call fcn.140083ee0
lea rdx, [0x14004d480]
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, ebx
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, [0x1400840c0]
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]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140050c78
mov qword [rbp - 0x41], r15
mov rax, qword [rbp + 0x77]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x30]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140050f3f
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.SystemRestore
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140051376
jmp 0x140050f42
mov rbx, r15
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x1400513a2
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x77]
call rdi
mov ebx, eax
lea rcx, [rbp + 0x6f]
call fcn.14004d4a0
test ebx, ebx
jns 0x140050f87
lea rdx, str.Failed_to_get_SystemRestore_class._Error_code__0x
jmp 0x140050e9e
mov qword [rbp - 0x39], r15
mov rax, qword [rbp - 0x41]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x98]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140050fd5
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.CreateRestorePoint
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140051381
jmp 0x140050fd8
mov rbx, r15
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x1400513a2
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x41]
call rdi
mov ebx, eax
lea rcx, [rbp + 0x6f]
call fcn.14004d4a0
test ebx, ebx
jns 0x140051056
lea rdx, str.Failed_to_get_CreateRestorePoint_method._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140083ee0
lea rdx, [0x14004d480]
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, ebx
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, [0x1400840c0]
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]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140050ed5
mov qword [rbp - 0x49], r15
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
lea r8, [rbp - 0x49]
xor edx, edx
call qword [rax + 0x78]
mov ebx, eax
test eax, eax
jns 0x1400510c7
lea rdx, str.Failed_to_spawn_instance._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140083ee0
lea rdx, [0x14004d480]
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, ebx
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, [0x1400840c0]
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]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140050ed5
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 8
mov word [rbp - 0x21], ax
cmp qword [rsi + 0x18], 7
jbe 0x1400510e4
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 0x19], rax
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x21]
xor r8d, r8d
lea rdx, str.Description
call qword [rax + Ordinal_41]
mov ebx, eax
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jns 0x14005117f
lea rdx, str.Failed_to_set_Description_property._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140083ee0
lea rdx, [0x14004d480]
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, ebx
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, [0x1400840c0]
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]
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140050ed5
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov word [rbp - 9], r12w
mov dword [rbp - 1], r15d
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, str.RestorePointType
call qword [rax + Ordinal_41]
mov ebx, eax
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jns 0x1400511cb
lea rdx, str.Failed_to_set_RestorePointType_property._Error_code__0x
jmp 0x140051125
lea rcx, [rbp + 0xf]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov word [rbp + 0xf], r12w
mov dword [rbp + 0x17], 0x64
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r15d
lea r9, [rbp + 0xf]
xor r8d, r8d
lea rdx, str.EventType
call qword [rax + Ordinal_41]
mov ebx, eax
lea rcx, [rbp + 0xf]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jns 0x14005121a
lea rdx, str.Failed_to_set_EventType_property._Error_code__0x
jmp 0x140051125
mov qword [rbp - 0x31], r15
mov rax, qword [rbp + 0x77]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0xc0]
mov r14, qword [rbp - 0x49]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x14005126c
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.CreateRestorePoint
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14005138c
jmp 0x14005126f
mov rbx, r15
mov qword [rbp - 0x29], rbx
test rbx, rbx
je 0x1400513a2
mov rdi, qword [rbx]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x1400512bb
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.SystemRestore
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140051397
jmp 0x1400512be
mov rbx, r15
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x140051360
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rdi
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x77]
call rsi
mov ebx, eax
lea rcx, [rbp + 0x6f]
call fcn.14004d4a0
nop
lea rcx, [rbp - 0x29]
call fcn.14004d4a0
test ebx, ebx
jns 0x140051317
lea rdx, str.Failed_to_execute_CreateRestorePoint_method._Error_code__0x
jmp 0x140051125
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
jmp 0x140050c7a
mov ecx, 0x8007000e
call fcn.1401db600
nop
mov ecx, 0x8007000e
call fcn.1401db600
nop
mov ecx, 0x8007000e
call fcn.1401db600
nop
mov ecx, 0x8007000e
call fcn.1401db600
nop
mov ecx, 0x8007000e
call fcn.1401db600
nop
mov ecx, 0x8007000e
call fcn.1401db600
nop
mov ecx, 0x8007000e
call fcn.1401db600
int3