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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor edi, edi
mov byte [rsp + 0x30], dil
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x276
lea r9, str.NGUsageTracking::SystemAttributes::isLaptop
lea r8, [0x1405c6ef0]
mov rdx, qword [0x1405c6f18]
lea rcx, [rbp - 0x40]
call fcn.1400169f8
nop
mov sil, dil
lea edx, [rdi + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140038c32
mov dword [rsp + 0x20], eax
lea r9, str.Failed_to_initialize_COM_library_in_NGUsageTrackin::SystemAttributes._Error_code__0x_x
mov edx, 0x80
mov r8d, 0x27e
lea rcx, [rbp - 0x40]
call fcn.140016e24
jmp 0x140038f94
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140038c70
lea r9, str.Failed_to_initialize_security._Error_code__0x_x
mov r8d, 0x292
jmp 0x140038caf
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x1401d0130]
mov r14d, 1
mov r8d, r14d
xor edx, edx
lea rcx, [0x1401d0200]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140038cc6
lea r9, str.Failed_to_create_IWbemLocator_object._Error_code__0x_x
mov r8d, 0x2a3
mov edx, 0x80
mov dword [rsp + 0x20], eax
lea rcx, [rbp - 0x40]
call fcn.140016e24
jmp 0x140038e85
mov qword [rsp + 0x60], rdi
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0x50]
call fcn.140028664
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x140038cea
mov rdx, qword [rcx]
jmp 0x140038ced
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.1400286f8
lea rcx, [rbp - 0x40]
test ebx, ebx
jns 0x140038d4f
mov dword [rsp + 0x20], ebx
lea r9, str.Could_not_connect._Error_code__0x_x
mov edx, 0x80
mov r8d, 0x2bc
call fcn.140016e24
jmp 0x140038e7a
lea r9, str.Connected_to_ROOTCIMV2_WMI_namespace
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x2c2
call fcn.140016e24
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140038dbc
mov dword [rsp + 0x20], eax
lea r9, str.Could_not_set_proxy_blanket._Error_code__0x_x
mov edx, 0x80
mov r8d, 0x2d4
lea rcx, [rbp - 0x40]
call fcn.140016e24
jmp 0x140038e6f
mov qword [rsp + 0x58], rdi
lea rdx, str.SELECT__FROM_Win32_SystemEnclosure
lea rcx, [rsp + 0x70]
call fcn.1400285ec
mov rbx, rax
lea rdx, [0x14049b104]
lea rcx, [rsp + 0x50]
call fcn.1400285ec
nop
mov r8, qword [rbx]
test r8, r8
je 0x140038df4
mov r8, qword [r8]
jmp 0x140038df7
mov r8, rdi
mov rax, qword [rax]
test rax, rax
je 0x140038e04
mov rdx, qword [rax]
jmp 0x140038e07
mov rdx, rdi
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rdi
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.1400286f8
nop
lea rcx, [rsp + 0x70]
call fcn.1400286f8
test ebx, ebx
jns 0x140038e90
mov dword [rsp + 0x20], ebx
lea r9, str.Query_for_processes_failed._Error_code__0x_x
mov edx, 0x80
mov r8d, 0x2e9
lea rcx, [rbp - 0x40]
call fcn.140016e24
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140038f94
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x70], edi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140038f75
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
mov r8d, r14d
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rsp + 0x70], edi
je 0x140038f4d
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, str.ChassisTypes
call qword [rax + 0x20]
test eax, eax
js 0x140038f23
mov rax, qword [rbp - 0x78]
mov rcx, qword [rax + 0x10]
mov eax, dword [rcx]
add eax, 0xfffffff7
movzx esi, sil
cmp eax, 6
cmovbe esi, r14d
lea rcx, [rbp - 0x80]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rbp - 0x68]
call fcn.14000f964
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140038ea7
jmp 0x140038f52
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140038f6a
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140038f75
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dil, sil
lea rcx, [rbp - 0x40]
call fcn.140016b40
mov al, dil
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret