Function at 0x140052120
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, [0x1417190a8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x39], dil
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140052211
xorps xmm0, xmm0
movups xmmword [0x1417190a8], xmm0
mov qword [0x1417190b8], rdi
mov qword [0x1417190c0], rdi
mov ecx, Ordinal_50
call fcn.1401da418
mov qword [0x1417190a8], rax
mov qword [0x1417190b8], 0x20
mov qword [0x1417190c0], 0x2f
movups xmm0, xmmword [str.Failed_to_initialize_COM_library]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140259e00]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], dil
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x1400521fe
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400521f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400526de
call fcn.1401da694
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 0x1400522be
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190a8], xmm0
mov qword [0x1417190b8], rdi
mov qword [0x1417190c0], rdi
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401da418
mov rdx, rax
mov qword [0x1417190a8], rax
mov qword [0x1417190b8], 0x1d
mov ebx, Ordinal_32
mov qword [0x1417190c0], rbx
movups xmm0, xmmword [str.Failed_to_initialize_security]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140259e28]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x140259e30]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x140259e34]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], 0
jmp 0x1400521c3
mov qword [rbp + 0x7f], rdi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x140210618]
xor edx, edx
mov r8d, 1
lea rcx, [0x140210628]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140052357
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190a8], xmm0
mov qword [0x1417190b8], rdi
mov qword [0x1417190c0], rdi
mov ecx, Ordinal_50
call fcn.1401da418
mov qword [0x1417190a8], rax
mov qword [0x1417190b8], 0x24
mov qword [0x1417190c0], 0x2f
movups xmm0, xmmword [str.Failed_to_create_IWbemLocator_object]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140259e48]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x140259e58]
mov dword [rax + 0x20], ecx
mov byte [rax + 0x24], 0
jmp 0x1400521c3
mov qword [rbp + 0x77], rdi
mov rax, qword [rbp + 0x7f]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x1400523a2
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 0x140052925
jmp 0x1400523a5
mov rbx, rdi
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x140052936
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 0x14005241e
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400523ff
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140052411
call fcn.1401da694
mov qword [rbx + 8], rdi
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1401da694
test esi, esi
jns 0x14005249a
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190a8], xmm0
mov qword [0x1417190b8], rdi
mov qword [0x1417190c0], rdi
mov ecx, Ordinal_50
call fcn.1401da418
mov qword [0x1417190a8], rax
mov qword [0x1417190b8], 0x22
mov qword [0x1417190c0], 0x2f
movups xmm0, xmmword [str.Could_not_connect_to_WMI_namespace]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140259e70]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x140259e80]
mov word [rax + 0x20], cx
mov byte [rax + 0x22], 0
jmp 0x1400521c3
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 0x140052562
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190a8], xmm0
mov qword [0x1417190b8], rdi
mov qword [0x1417190c0], rdi
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401da418
mov rdx, rax
mov qword [0x1417190a8], rax
mov qword [0x1417190b8], 0x1b
mov ebx, Ordinal_32
mov qword [0x1417190c0], rbx
movups xmm0, xmmword [str.Could_not_set_proxy_blanket]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140259e98]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x140259ea0]
mov word [rax + 0x18], cx
movzx eax, byte [reloc.WS2_32.dll_WSACleanup]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], 0
jmp 0x1400521c3
mov qword [rbp - 0x19], rdi
mov rax, qword [rbp + 0x77]
mov rcx, qword [rax]
mov r14, qword [rcx + 0xa0]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x1400525a6
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, str.SELECT_SerialNumber_FROM_Win32_Processor
call fcn.1401db730
mov qword [rbx], rax
jmp 0x1400525a9
mov rbx, rdi
mov qword [rbp - 1], rbx
test rbx, rbx
je 0x140052936
mov rsi, qword [rbx]
mov ecx, Ordinal_26
call fcn.1401da418
mov rbx, rax
mov qword [rbp + 0x6f], rax
test rax, rax
je 0x1400525eb
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, [0x140259d88]
call fcn.1401db730
mov qword [rbx], rax
jmp 0x1400525ee
mov rbx, rdi
mov qword [rbp + 0x6f], rbx
test rbx, rbx
je 0x14005291a
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, Ordinal_50
mov r8, rsi
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x77]
call r14
mov ebx, eax
lea rcx, [rbp + 0x6f]
call fcn.14004d4a0
nop
lea rcx, [rbp - 1]
call fcn.14004d4a0
test ebx, ebx
jns 0x1400526e5
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [0x1417190a8], xmm0
mov qword [0x1417190b8], rdi
mov qword [0x1417190c0], rdi
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401da418
mov qword [0x1417190a8], rax
mov qword [0x1417190b8], 0x10
mov ebx, Ordinal_32
mov qword [0x1417190c0], 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 0x1400521fe
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400521f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, rbx
jbe 0x1400521f9
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 0x140052797
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 + reloc.WLDAP32.dll_Ordinal_32]
cmp dword [rbp + 0x67], 0
je 0x140052797
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 + reloc.WLDAP32.dll_Ordinal_32]
cmp word [rbp + 7], 8
jne 0x140052776
mov rcx, qword [rbp + 0xf]
call fcn.1401db610
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140052760
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1400839d0
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x140052700
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp qword [rbp - 0x29], 0
jne 0x1400528ff
mov rsi, qword [rbp - 0x21]
cmp rsi, 0x1b
jb 0x140052803
lea rbx, [rbp - 0x39]
cmp rsi, 0xf
cmova rbx, qword [rbp - 0x39]
mov qword [rbp - 0x29], reloc.WLDAP32.dll_Ordinal_27
mov r8d, reloc.WLDAP32.dll_Ordinal_27
lea rdx, str.Serial_number_not_available
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1b], 0
jmp 0x1400528ff
mov rcx, rsi
shr rcx, 1
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rsi, rax
jbe 0x14005284b
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1401da418
test rax, rax
je 0x1400528ef
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140052884
lea rax, [rsi + rcx]
mov ebx, Ordinal_32
cmp rax, rbx
cmova rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
je 0x140052884
cmp rcx, 0x1000
jb 0x14005287c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140052930
jmp 0x14005282c
call fcn.1401da418
mov rdi, rax
mov qword [rbp - 0x29], reloc.WLDAP32.dll_Ordinal_27
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [str.Serial_number_not_available]
movups xmmword [rdi], xmm0
movsd xmm0, qword [0x140259ef8]
movsd qword [rdi + 0x10], xmm0
movzx ecx, word [0x140259f00]
mov word [rdi + 0x18], cx
movzx eax, byte [0x140259f02]
mov byte [rdi + 0x1a], al
mov byte [rdi + 0x1b], 0
cmp rsi, 0xf
jbe 0x1400528fb
lea rdx, [rsi + 1]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400528f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400528f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401da694
mov qword [rbp - 0x39], rdi
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [0x1417190a8], xmm0
movups xmm1, xmmword [rbp - 0x29]
movups xmmword [0x1417190b8], xmm1
jmp 0x1400521fe
mov ecx, 0x8007000e
call fcn.1401db600
nop
mov ecx, 0x8007000e
call fcn.1401db600
nop
call fcn.140011d60
int3
mov ecx, 0x8007000e
call fcn.1401db600
int3