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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rdi, rdx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140038cf0
movzx eax, byte [0x1400fd080]
cmp al, 6
ja 0x140038cd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, 6
lea rcx, str.getmanufacturername:_CoInitializeEx_Failed__d
call fcn.140034b80
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r12d, r12d
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
lea edx, [r12 - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov qword [rbp - 0x11], r12
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [0x1400d1730]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x1400d1740]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140038d77
movzx eax, byte [0x1400fd080]
cmp al, 6
ja 0x140038cd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea edx, [r12 + 6]
lea rcx, str.getmanufacturername:_CoCreateInstance_of_CLSID_WbemLocator_Failed__d
jmp 0x140038ccf
mov qword [rbp - 0x19], r12
mov rax, qword [rbp - 0x11]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.140089c64
mov rbx, rax
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x140038dc2
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400391a6
jmp 0x140038dc5
mov rbx, r12
mov qword [rbp + 0x1f], rbx
test rbx, rbx
je 0x1400391b1
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]
mov rax, rsi
call qword [case.0x14005f7f8.0]
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140038e46
mov rcx, qword [rbx]
test rcx, rcx
je 0x140038e27
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140038e39
call fcn.140089ca0
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140089ca0
test esi, esi
jns 0x140038e6d
movzx eax, byte [0x1400fd080]
cmp al, 6
ja 0x140038cd4
mov r8d, esi
mov edx, 6
lea rcx, str.getmanufacturername:_ConnectServer_Failed__u
jmp 0x140038ccf
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
lea edx, [r9 + 0xa]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140038ec3
movzx ecx, byte [0x1400fd080]
cmp cl, 6
ja 0x140038cd4
mov r8d, eax
mov edx, 6
lea rcx, str.getmanufacturername:_CoSetProxyBlanket_Failed__u
jmp 0x140038ccf
mov qword [rbp - 9], r12
mov rax, qword [rbp - 0x19]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.140089c64
mov rbx, rax
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x140038f07
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_ComputerSystem
call fcn.14008b300
mov qword [rbx], rax
jmp 0x140038f0a
mov rbx, r12
mov qword [rbp + 0x27], rbx
test rbx, rbx
je 0x1400391b1
mov r14, qword [rbx]
mov ecx, 0x18
call fcn.140089c64
mov rsi, rax
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x140038f4c
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, [0x1400cbdc4]
call fcn.14008b300
mov qword [rsi], rax
jmp 0x140038f4f
mov rsi, r12
mov qword [rbp + 0x2f], rsi
test rsi, rsi
je 0x14003919b
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov r8, r14
mov rdx, qword [rsi]
mov rcx, qword [rbp - 0x19]
mov rax, r15
call qword [case.0x14005f7f8.0]
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rsi + 0x10], ecx
cmp ecx, 1
jne 0x140038fc6
mov rcx, qword [rsi]
test rcx, rcx
je 0x140038fa6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], r12
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140038fb8
call fcn.140089ca0
mov qword [rsi + 8], r12
mov edx, 0x18
mov rcx, rsi
call fcn.140089ca0
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140039005
mov rcx, qword [rbx]
test rcx, rcx
je 0x140038fe6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140038ff8
call fcn.140089ca0
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140089ca0
test r14d, r14d
jns 0x14003902d
movzx eax, byte [0x1400fd080]
cmp al, 6
ja 0x140038cd4
mov r8d, r14d
mov edx, 6
lea rcx, str.getmanufacturername:ExecQuery_failed:___u
jmp 0x140038ccf
mov qword [rbp - 1], r12
mov dword [rbp + 0x77], r12d
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14003915d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x77]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 1]
mov edx, 0xffffffff
lea r8d, [rdx + 2]
mov rax, qword [rax + 0x20]
call qword [case.0x14005f7f8.0]
cmp dword [rbp + 0x77], 0
je 0x14003915d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rax
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
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, [0x1400cbdc8]
mov rax, qword [rax + 0x20]
call qword [case.0x14005f7f8.0]
test eax, eax
js 0x140039134
mov rdx, qword [rbp + 0xf]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400390d0
mov rcx, rdi
call fcn.140003c40
mov rsi, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400390fd
mov rsi, qword [rdi]
mov rcx, qword [rdi + 0x10]
mov rax, rsi
lea r14, [rax + rcx*2]
jmp 0x14003910a
mov rax, qword [rdi + 0x10]
lea r14, [rdi + rax*2]
mov rbx, rdi
jb 0x14003910d
mov rbx, qword [rdi]
cmp rbx, r14
je 0x14003912a
sub rsi, rbx
movzx ecx, word [rbx]
call fcn.140092e30
mov word [rsi + rbx], ax
add rbx, 2
cmp rbx, r14
jne 0x140039115
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005f7f8.0]
nop
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 9]
test rcx, rcx
jne 0x140039050
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005f7f8.0]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005f7f8.0]
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005f7f8.0]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x140038cd4
mov ecx, 0x8007000e
call fcn.14008b2f0
nop
mov ecx, 0x8007000e
call fcn.14008b2f0
nop
mov ecx, 0x8007000e
call fcn.14008b2f0
int3