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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x1400f8100]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
xor r12d, r12d
mov dword [rbp - 0x71], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
xor r8d, r8d
lea rdx, [0x1400e4add]
lea rcx, [rbp + 7]
call fcn.140011e70
nop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140005d39
mov r8d, 0x20
lea rdx, str.Failed_to_initialize_COM_library
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x10], r12
mov rcx, rbx
call fcn.140011e70
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140005d0e
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006384
call fcn.1400289a0
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140028980
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
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
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140005d84
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r8d, 0x1d
lea rdx, str.Failed_to_initialize_security
jmp 0x140005cbc
mov qword [rbp - 0x39], r12
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [0x1400c61e0]
xor edx, edx
mov r8d, 1
lea rcx, [0x1400c61f0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140005dc9
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r8d, 0x24
lea rdx, str.Failed_to_create_IWbemLocator_object
jmp 0x140005cbc
mov qword [rbp - 0x41], r12
mov rax, qword [rbp - 0x39]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.1400289a8
mov rdi, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x140005e20
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
je 0x140006373
jmp 0x140005e23
mov rdi, r12
mov qword [rbp - 0x79], rdi
test rdi, rdi
je 0x14000638a
lea rax, [rbp - 0x41]
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 [rdi]
mov rcx, qword [rbp - 0x39]
call rsi
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140005e9d
mov rcx, qword [rdi]
test rcx, rcx
je 0x140005e7e
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140005e90
call fcn.1400289a0
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.1400289a0
test esi, esi
jns 0x140005ec3
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r8d, 0x18
lea rdx, str.Could_not_connect_to_WMI
jmp 0x140005cbc
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
mov edx, 0xa
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140005f22
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r8d, 0x1b
lea rdx, str.Could_not_set_proxy_blanket
jmp 0x140005cbc
mov qword [rbp - 0x31], r12
mov rax, qword [rbp - 0x41]
mov rcx, qword [rax]
mov r15, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.1400289a8
mov rdi, rax
mov qword [rbp - 0x79], rax
test rax, rax
je 0x140005f72
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, str.SELECT_SerialNumber_FROM_Win32_BaseBoard
call fcn.140025900
mov qword [rdi], rax
jmp 0x140005f75
mov rdi, r12
mov qword [rbp - 0x79], rdi
test rdi, rdi
je 0x14000638a
mov r14, qword [rdi]
mov ecx, 0x18
call fcn.1400289a8
mov rsi, rax
mov qword [rbp - 0x69], rax
test rax, rax
je 0x140005fc3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], r12
mov dword [rsi + 0x10], 1
lea rcx, [0x1400e50c8]
call fcn.140025900
mov qword [rsi], rax
jmp 0x140005fc6
mov rsi, r12
mov qword [rbp - 0x69], rsi
test rsi, rsi
je 0x140006395
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0x30
mov r8, r14
mov rdx, qword [rsi]
mov rcx, qword [rbp - 0x41]
call r15
mov r14d, eax
mov ecx, 0xffffffff
lock xadd dword [rsi + 0x10], ecx
cmp ecx, 1
jne 0x140006037
mov rcx, qword [rsi]
test rcx, rcx
je 0x140006017
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], r12
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140006029
call fcn.1400289a0
mov qword [rsi + 8], r12
mov edx, 0x18
mov rcx, rsi
call fcn.1400289a0
nop
mov eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
cmp eax, 1
jne 0x140006076
mov rcx, qword [rdi]
test rcx, rcx
je 0x140006057
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140006069
call fcn.1400289a0
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.1400289a0
test r14d, r14d
jns 0x1400060a7
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r8d, 0x2a
lea rdx, str.Query_for_motherboard_serial_number_failed
jmp 0x140005cbc
mov qword [rbp - 0x29], r12
mov dword [rbp - 1], r12d
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14000614d
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp - 1]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x29]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp - 1], 0
je 0x14000614d
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x21]
xor r8d, r8d
lea rdx, str.SerialNumber
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x19]
call fcn.1400257e0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140006116
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.1400102f0
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
jne 0x1400060c0
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rsi, qword [rbp + 0x17]
xorps xmm0, xmm0
test rsi, rsi
jne 0x1400061ad
movups xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.Serial_number_not_found
lea rcx, [rbp - 0x61]
call fcn.140011e70
lea rax, [rbp - 0x61]
mov edi, 2
jmp 0x14000628b
movups xmmword [rbp - 0x21], xmm0
lea r14, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova r14, qword [rbp + 7]
movabs rdi, 0x7fffffffffffffff
cmp rsi, rdi
ja 0x1400063a0
cmp rsi, 0xf
ja 0x1400061f1
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x21], xmm0
jmp 0x140006282
mov rax, rsi
or rax, 0xf
cmp rax, rdi
jbe 0x14000622d
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400289a8
mov rcx, rax
test rax, rax
je 0x14000636d
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140006267
mov rdi, rax
mov ecx, socket
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x14000624a
mov rax, r12
jmp 0x140006267
cmp rcx, 0x1000
jb 0x140006262
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000637e
jmp 0x14000620b
call fcn.1400289a8
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rdi
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call fcn.1400bfb00
lea rax, [rbp - 0x21]
mov edi, 4
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or edi, 1
test dil, 4
je 0x1400062f0
and edi, 0xfffffffb
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x1400062f0
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400062ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400063a6
call fcn.1400289a0
nop
test dil, 2
je 0x14000632e
mov rdx, qword [rbp - 0x49]
cmp rdx, 0xf
jbe 0x14000632e
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006328
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000636d
call fcn.1400289a0
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140005d0e
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006384
jmp 0x140005d09
call fcn.140038268
nop
mov ecx, 0x8007000e
call fcn.1400257d0
nop
call fcn.140001600
nop
call fcn.140038268
nop
mov ecx, 0x8007000e
call fcn.1400257d0
nop
mov ecx, 0x8007000e
call fcn.1400257d0
nop
call fcn.1400016a0
nop
call fcn.140038268
int3