Function at 0x1400246a0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140127840]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
mov qword [rbp - 0x21], rcx
mov dword [rbp - 0x31], 1
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rcx], xmm0
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r12b
mov dword [rbp - 0x31], 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x140024775
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.14001b3b0
lea rdx, [0x140023ea0]
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, [0x14001b860]
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 rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400e75a0
lea r11, [rsp + 0xc0]
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 [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 ebx, eax
test eax, eax
jns 0x1400247f3
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.14001b3b0
lea rdx, [0x140023ea0]
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, [0x14001b860]
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 0x14002474a
mov qword [rbp - 0x11], r12
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [0x1401044f0]
xor edx, edx
mov r8d, 1
lea rcx, [0x140104500]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x14002482b
lea rdx, str.Failed_to_create_IWbemLocator_object._Error_code__0x
jmp 0x1400247b1
mov qword [rbp - 0x19], r12
mov rax, qword [rbp - 0x11]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, Ordinal_27
call fcn.1400e76e0
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140024884
vpxor xmm0, xmm0, xmm0
xor eax, eax
vmovups 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 0x140024cff
jmp 0x140024887
mov rbx, r12
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x140024d15
lea rax, [rbp - 0x19]
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 - 0x11]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140024901
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400248e2
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400248f4
call fcn.1400e7a2c
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1400e7a2c
test edi, edi
jns 0x140024958
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::cerr]
call fcn.14001b3b0
lea rdx, [0x140023ea0]
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, edi
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, [0x14001b860]
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 - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x14002474a
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 - 0x19]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x1400249ea
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.14001b3b0
lea rdx, [0x140023ea0]
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, [0x14001b860]
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 - 0x19]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x14002474a
mov qword [rbp - 9], r12
mov rax, qword [rbp - 0x19]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, Ordinal_27
call fcn.1400e76e0
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140024a3c
vpxor xmm0, xmm0, xmm0
xor eax, eax
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_ComputerSystemProduct
call fcn.1400e88b0
mov qword [rbx], rax
jmp 0x140024a3f
mov rbx, r12
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x140024d15
mov r14, qword [rbx]
mov ecx, Ordinal_27
call fcn.1400e76e0
mov rdi, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x140024a8f
vpxor xmm0, xmm0, xmm0
xor eax, eax
vmovups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, [0x14010b59c]
call fcn.1400e88b0
mov qword [rdi], rax
jmp 0x140024a92
mov rdi, r12
mov qword [rbp - 0x29], rdi
test rdi, rdi
je 0x140024d20
lea rax, [rbp - 9]
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 - 0x19]
call r15
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140024b03
mov rcx, qword [rdi]
test rcx, rcx
je 0x140024ae3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140024af5
call fcn.1400e7a2c
mov qword [rdi + 8], r12
mov edx, Ordinal_27
mov rcx, rdi
call fcn.1400e7a2c
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140024b42
mov rcx, qword [rbx]
test rcx, rcx
je 0x140024b23
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140024b35
call fcn.1400e7a2c
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1400e7a2c
test r14d, r14d
jns 0x140024b72
lea rdx, str.Query_for_UUID_failed._Error_code__0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001b3b0
lea rdx, [0x140023ea0]
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
jmp 0x1400249b2
mov qword [rbp - 1], r12
mov dword [rbp + 0x1f], r12d
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140024ccb
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x1f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 1]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp + 0x1f], 0
je 0x140024ccb
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 7]
xor r8d, r8d
lea rdx, str.UUID
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rdi, qword [rbp + 0xf]
mov ecx, Ordinal_27
call fcn.1400e76e0
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
je 0x140024c29
vpxor xmm0, xmm0, xmm0
xor eax, eax
vmovups 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 0x140024c2c
test rdi, rdi
jne 0x140024d0a
jmp 0x140024c2c
mov rbx, r12
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x140024cf4
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140024c4e
mov rcx, qword [rbx]
call fcn.1400e8790
mov qword [rbx + 8], rax
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140024c55
mov rdx, rax
mov rcx, rsi
call fcn.14001b100
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140024caa
mov rcx, qword [rbx]
test rcx, rcx
je 0x140024c8b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140024c9d
call fcn.1400e7a2c
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1400e7a2c
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 9]
test rcx, rcx
jne 0x140024b90
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x14002474a
mov ecx, 0x8007000e
call fcn.1400e8780
nop
mov ecx, 0x8007000e
call fcn.1400e8780
nop
mov ecx, 0x8007000e
call fcn.1400e8780
nop
mov ecx, 0x8007000e
call fcn.1400e8780
nop
mov ecx, 0x8007000e
call fcn.1400e8780
int3