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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140072080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor r12d, r12d
mov qword [rbp - 0x29], r12
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9, [0x140061798]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x1400617a8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rax, qword [rbp - 0x29]
test rax, rax
jne 0x14000141b
lea rdx, str.Failed_to_create_WMI_locator_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001ab0
lea eax, [r12 - 1]
jmp 0x1400018e8
mov qword [rbp - 0x31], r12
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x40], rcx
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, rax
mov rcx, qword [rbp - 0x29]
call rbx
mov rcx, qword [rbp - 0x31]
test rcx, rcx
jne 0x14000148f
lea rdx, str.Failed_to_connect_to_WMI_service_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001ab0
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0xffffffff
jmp 0x1400018e8
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]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov qword [rbp - 0x39], r12
mov rax, qword [rbp - 0x31]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0xa0]
lea rcx, str.SELECT__FROM_Win32_BIOS
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
lea rcx, [0x140061908]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, [rbp - 0x39]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r12
mov r9d, 0x20
mov r8, rbx
mov rdx, rax
mov rcx, qword [rbp - 0x31]
call rdi
mov rcx, qword [rbp - 0x39]
test rcx, rcx
jne 0x140001542
lea rdx, str.Failed_to_execute_WMI_query_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001ab0
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 0xffffffff
jmp 0x1400018e8
mov edi, 0xffffffff
mov esi, edi
mov qword [rbp - 0x21], r12
mov dword [rbp - 1], r12d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp - 1]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x21]
mov r8d, 1
mov edx, edi
call qword [rax + 0x20]
cmp dword [rbp - 1], r12d
je 0x1400018c2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rax
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x19]
xor r8d, r8d
lea rdx, str.Manufacturer
call qword [rax + 0x20]
test eax, eax
jns 0x1400015da
lea rcx, [rbp - 0x19]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
jne 0x140001560
jmp 0x1400018c6
mov rsi, qword [rbp - 0x11]
mov ecx, 0x18
call fcn.140041e78
mov rbx, rax
mov qword [rbp + 0x27], rax
test rax, rax
je 0x140001627
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x14000162a
test rsi, rsi
jne 0x140001920
jmp 0x14000162a
mov rbx, r12
mov qword [rbp + 0x27], rbx
test rbx, rbx
je 0x140001915
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14000164c
mov rcx, qword [rbx]
call fcn.140041ba0
mov qword [rbx + 8], rax
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.140001990
nop
mov r14, qword [rbp + 0x17]
lea r9, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova r9, qword [rbp + 7]
mov rax, qword [0x140072100]
cmp r14, rax
ja 0x1400016a6
lea rsi, [0x1400720e8]
cmp rax, 0xf
cmova rsi, qword [0x1400720e8]
mov qword [0x1400720f8], r14
mov r8, r14
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + r14], 0
jmp 0x1400016b5
mov rdx, r14
lea rcx, [0x1400720e8]
call fcn.140001c80
lea r14, [rbp + 7]
mov r8, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0xf
cmova r14, r8
lea rcx, [rbp + 7]
cmova rcx, r8
mov r15, qword [rbp + 0x17]
add r15, rcx
lea rsi, [rbp + 7]
cmp r9, 0xf
cmova rsi, r8
cmp rsi, r15
je 0x14000170d
sub r14, rsi
nop dword [rax]
movzx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [r14 + rsi], al
inc rsi
cmp rsi, r15
jne 0x1400016f0
mov r9, qword [rbp + 0x1f]
mov r8, qword [rbp + 7]
lea rdx, [rbp + 7]
cmp r9, 0xf
cmova rdx, r8
xor r9d, r9d
lea r8, str.manufacturerr
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea r13, [rbp + 7]
mov r14, qword [rbp + 7]
mov r15, qword [rbp + 0x1f]
cmp r15, 0xf
cmova r13, r14
mov rax, qword [rbp + 0x17]
cmp rax, 0xa
jb 0x1400017ac
lea r12, [rax + r13]
lea r8, [r12 - 9]
sub r8, r13
mov edx, 0x6d
mov rcx, r13
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x1400017a9
nop word [rax + rax]
mov r8d, 0xa
lea rdx, str.megatrends
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400017ed
inc rsi
lea r8, [r12 - 9]
sub r8, rsi
mov edx, 0x6d
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
jne 0x140001770
xor r12d, r12d
mov esi, r12d
cmp r15, 0xf
jbe 0x140001878
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001870
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001870
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rsi, r13
cmp rsi, 0xffffffffffffffff
je 0x1400017a9
mov esi, 1
cmp r15, 0xf
jbe 0x14000182e
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140001826
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017e6
mov rcx, r14
call fcn.140041e70
xor r14d, r14d
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], r14b
lock xadd dword [rbx + 0x10], edi
cmp edi, 1
jne 0x1400018c2
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000185c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400018b5
call fcn.140041e70
mov qword [rbx + 8], r14
jmp 0x1400018b5
mov rcx, r14
call fcn.140041e70
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
lock xadd dword [rbx + 0x10], edi
cmp edi, 1
jne 0x1400018c2
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400018a3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400018b5
call fcn.140041e70
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140041e70
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x31]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140041e50
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140041b90
nop
mov ecx, 0x8007000e
call fcn.140041b90
int3