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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400016df
cmp byte [0x14002fd10], 0
je 0x140001771
mov edx, eax
lea rcx, str.Failed_to_initialize_COM_library._Error_code__0x_X_n
call fcn.140001030
jmp 0x140001771
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140001727
cmp byte [0x14002fd10], r15b
je 0x14000176b
lea rcx, str.Failed_to_initialize_security._Error_code__0x_X_n
jmp 0x140001764
mov qword [rbp - 1], r15
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [0x140020508]
xor edx, edx
mov r8d, 1
lea rcx, [0x140020518]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14000179c
cmp byte [0x14002fd10], r15b
je 0x14000176b
lea rcx, str.Failed_to_create_IWbemLocator_object._Error_code__0x_X_n
mov edx, eax
call fcn.140001030
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140003e30
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rbp - 9], r15
mov ecx, 0x18
call fcn.1400040f8
mov rbx, rax
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400017e8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140001b88
jmp 0x1400017eb
mov rbx, r15
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x140001b93
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
lea rdx, [rbp - 9]
mov qword [rsp + 0x40], rdx
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]
call qword [rax + 0x18]
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140001869
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000184a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000185c
call fcn.140003e50
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140003e50
test edi, edi
jns 0x140001893
cmp byte [0x14002fd10], 0
je 0x140001884
mov edx, edi
lea rcx, str.Could_not_connect._Error_code__0x_X_n
call fcn.140001030
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000176b
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [rbp - 9]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400018f6
cmp byte [0x14002fd10], 0
je 0x1400018dd
mov edx, eax
lea rcx, str.Could_not_set_proxy_blanket._Error_code__0x_X_n
call fcn.140001030
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000176b
mov qword [rbp + 7], r15
mov ecx, 0x18
call fcn.1400040f8
mov rbx, rax
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140001938
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], 1
lea rcx, str.SELECT_SerialNumber_FROM_Win32_BIOS
call fcn.140003a00
mov qword [rbx], rax
jmp 0x14000193b
mov rbx, r15
mov qword [rbp - 0x19], rbx
test rbx, rbx
je 0x140001b93
mov ecx, 0x18
call fcn.1400040f8
mov rdi, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140001986
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r15
mov dword [rdi + 0x10], 1
lea rcx, [0x140029144]
call fcn.140003a00
mov qword [rdi], rax
jmp 0x140001989
mov rdi, r15
mov qword [rbp - 0x11], rdi
test rdi, rdi
je 0x140001b7d
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
lea rdx, [rbp + 7]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r15
mov r9d, 0x30
mov r8, qword [rbx]
mov rdx, qword [rdi]
call qword [rax + 0xa0]
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400019ff
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400019df
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400019f1
call fcn.140003e50
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140003e50
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140001a3e
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001a1f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001a31
call fcn.140003e50
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140003e50
test esi, esi
jns 0x140001a72
cmp byte [0x14002fd10], 0
je 0x140001a59
mov edx, esi
lea rcx, str.Query_for_BIOS_serial_number_failed._Error_code__0x_X_n
call fcn.140001030
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000176b
mov qword [rbp + 0xf], r15
mov dword [rbp + 0x2f], r15d
mov ebx, r15d
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140001b52
nop word [rax + rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x2f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0xf]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp + 0x2f], 0
je 0x140001b52
lea rcx, [rbp + 0x17]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x17]
xor r8d, r8d
lea rdx, str.SerialNumber
call qword [rax + 0x20]
test eax, eax
js 0x140001b3b
mov r9, 0xffffffffffffffff
mov r8, qword [rbp + 0x1f]
mov edx, 0x800
mov rcx, r14
call fcn.140010378
mov edx, 0x20
mov rcx, r14
call fcn.140005ba0
test rax, rax
jne 0x140001b19
mov ebx, 1
jmp 0x140001b31
cmp byte [0x14002fd10], 0
je 0x140001b2e
lea rcx, str.Serial_number_contains_spaces_and_is_invalid._n
call fcn.140001030
mov ebx, r15d
lea rcx, [rbp + 0x17]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 7]
test rcx, rcx
jne 0x140001a90
mov rcx, qword [rbp - 9]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 1]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp + 7]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x140001773
mov ecx, 0x8007000e
call fcn.1400039f0
nop
mov ecx, 0x8007000e
call fcn.1400039f0
nop
mov ecx, 0x8007000e
call fcn.1400039f0
int3