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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
xor edi, edi
lea r15, [0x1415574a0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], dil
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140041b91
xorps xmm0, xmm0
movups xmmword [0x1415574a0], xmm0
mov qword [0x1415574b0], rdi
mov qword [0x1415574b8], rdi
mov ecx, 0x30
call fcn.140074d60
mov qword [0x1415574a0], rax
mov qword [0x1415574b0], 0x20
mov qword [0x1415574b8], 0x2f
movups xmm0, xmmword [str.Failed_to_initialize_COM_library]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400c2168]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], dil
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x140041b7e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041b79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004205e
call fcn.140074fdc
mov rax, r15
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
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
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140041c3e
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1415574a0], xmm0
mov qword [0x1415574b0], rdi
mov qword [0x1415574b8], rdi
mov ecx, 0x20
call fcn.140074d60
mov rdx, rax
mov qword [0x1415574a0], rax
mov qword [0x1415574b0], 0x1d
mov ebx, 0x1f
mov qword [0x1415574b8], rbx
movups xmm0, xmmword [str.Failed_to_initialize_security]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400c2190]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x1400c2198]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x1400c219c]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], 0
jmp 0x140041b43
mov qword [rbp + 0x7f], rdi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x140078b50]
xor edx, edx
mov r8d, 1
lea rcx, [0x140078b60]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140041cd7
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1415574a0], xmm0
mov qword [0x1415574b0], rdi
mov qword [0x1415574b8], rdi
mov ecx, 0x30
call fcn.140074d60
mov qword [0x1415574a0], rax
mov qword [0x1415574b0], 0x24
mov qword [0x1415574b8], 0x2f
movups xmm0, xmmword [str.Failed_to_create_IWbemLocator_object]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400c21b0]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1400c21c0]
mov dword [rax + 0x20], ecx
mov byte [rax + 0x24], 0
jmp 0x140041b43
mov qword [rbp + 0x77], rdi
mov rax, qword [rbp + 0x7f]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.140074d60
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140041d22
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x1400422a5
jmp 0x140041d25
mov rbx, rdi
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x1400422b6
lea rax, [rbp + 0x77]
mov qword [rsp + 0x40], rax
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
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x7f]
call rsi
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140041d9e
mov rcx, qword [rbx]
test rcx, rcx
je 0x140041d7f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140041d91
call fcn.140074fdc
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.140074fdc
test esi, esi
jns 0x140041e1a
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1415574a0], xmm0
mov qword [0x1415574b0], rdi
mov qword [0x1415574b8], rdi
mov ecx, 0x30
call fcn.140074d60
mov qword [0x1415574a0], rax
mov qword [0x1415574b0], 0x22
mov qword [0x1415574b8], 0x2f
movups xmm0, xmmword [str.Could_not_connect_to_WMI_namespace]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400c21d8]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1400c21e8]
mov word [rax + 0x20], cx
mov byte [rax + 0x22], 0
jmp 0x140041b43
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
mov edx, 0xa
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140041ee2
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1415574a0], xmm0
mov qword [0x1415574b0], rdi
mov qword [0x1415574b8], rdi
mov ecx, 0x20
call fcn.140074d60
mov rdx, rax
mov qword [0x1415574a0], rax
mov qword [0x1415574b0], 0x1b
mov ebx, 0x1f
mov qword [0x1415574b8], rbx
movups xmm0, xmmword [str.Could_not_set_proxy_blanket]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400c2200]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1400c2208]
mov word [rax + 0x18], cx
movzx eax, byte [0x1400c220a]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], 0
jmp 0x140041b43
mov qword [rbp - 0x19], rdi
mov rax, qword [rbp + 0x77]
mov rcx, qword [rax]
mov r14, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.140074d60
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140041f26
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, str.SELECT_SerialNumber_FROM_Win32_Processor
call fcn.140075ce0
mov qword [rbx], rax
jmp 0x140041f29
mov rbx, rdi
mov qword [rbp - 1], rbx
test rbx, rbx
je 0x1400422b6
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.140074d60
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x140041f6b
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, [0x1400c20f0]
call fcn.140075ce0
mov qword [rbx], rax
jmp 0x140041f6e
mov rbx, rdi
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x14004229a
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 0x30
mov r8, rsi
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x77]
call r14
mov ebx, eax
lea rcx, [rbp + 0x6f]
call fcn.14003da70
nop
lea rcx, [rbp - 1]
call fcn.14003da70
test ebx, ebx
jns 0x140042065
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1415574a0], xmm0
mov qword [0x1415574b0], rdi
mov qword [0x1415574b8], rdi
mov ecx, 0x20
call fcn.140074d60
mov qword [0x1415574a0], rax
mov qword [0x1415574b0], 0x10
mov ebx, 0x1f
mov qword [0x1415574b8], rbx
movups xmm0, xmmword [str.WMI_query_failed]
movups xmmword [rax], xmm0
mov byte [rax + 0x10], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x140041b7e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041b79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, rbx
jbe 0x140041b79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rbp - 0x11], rdi
mov dword [rbp + 0x67], edi
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140042117
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x11]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp + 0x67], 0
je 0x140042117
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 7]
xor r8d, r8d
lea rdx, str.SerialNumber
call qword [rax + 0x20]
cmp word [rbp + 7], 8
jne 0x1400420f6
mov rcx, qword [rbp + 0xf]
call fcn.140075bc0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400420e0
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140073a40
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x140042080
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp qword [rbp - 0x29], 0
jne 0x14004227f
mov rsi, qword [rbp - 0x21]
cmp rsi, 0x1b
jb 0x140042183
lea rbx, [rbp - 0x39]
cmp rsi, 0xf
cmova rbx, qword [rbp - 0x39]
mov qword [rbp - 0x29], 0x1b
mov r8d, 0x1b
lea rdx, str.Serial_number_not_available
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1b], 0
jmp 0x14004227f
mov rcx, rsi
shr rcx, 1
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x1400421cb
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140074d60
test rax, rax
je 0x14004226f
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140042204
lea rax, [rsi + rcx]
mov ebx, 0x1f
cmp rax, rbx
cmova rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
je 0x140042204
cmp rcx, 0x1000
jb 0x1400421fc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400422b0
jmp 0x1400421ac
call fcn.140074d60
mov rdi, rax
mov qword [rbp - 0x29], 0x1b
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [str.Serial_number_not_available]
movups xmmword [rdi], xmm0
movsd xmm0, qword [0x1400c2260]
movsd qword [rdi + 0x10], xmm0
movzx ecx, word [0x1400c2268]
mov word [rdi + 0x18], cx
movzx eax, byte [0x1400c226a]
mov byte [rdi + 0x1a], al
mov byte [rdi + 0x1b], 0
cmp rsi, 0xf
jbe 0x14004227b
lea rdx, [rsi + 1]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042276
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042276
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140074fdc
mov qword [rbp - 0x39], rdi
movups xmm0, xmmword [rbp - 0x39]
movaps xmmword [0x1415574a0], xmm0
movups xmm1, xmmword [rbp - 0x29]
movaps xmmword [0x1415574b0], xmm1
jmp 0x140041b7e
mov ecx, 0x8007000e
call fcn.140075bb0
nop
mov ecx, 0x8007000e
call fcn.140075bb0
nop
call fcn.140002b50
int3
mov ecx, 0x8007000e
call fcn.140075bb0
int3