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

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400012ad
mov edx, eax
lea rcx, str.Failed_to_initialize_COM_library._Error_code:_0x_X_n
call fcn.140001060
jmp 0x140001554
mov qword [rsp + 0xb0], rbx
xor r9d, r9d
xor ebx, ebx
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov edx, 0xffffffff
mov dword [rsp + 0x38], ebx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x1400012fb
mov edx, eax
lea rcx, str.Failed_to_initialize_security._Error_code:_0x_X_n
call fcn.140001060
jmp 0x140001546
lea rax, [rbp + 0xf]
mov qword [rbp + 0xf], rbx
lea r9, [0x1400043a0]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x1400043b0]
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14000133b
mov edx, eax
lea rcx, str.Failed_to_create_IWbemLocator_object._Error_code:_0x_X_n
call fcn.140001060
jmp 0x140001546
mov rcx, qword [rbp + 0xf]
lea rdx, [rbp + 7]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
lea rdx, str.ROOTCIMV2
mov qword [rbp + 7], rbx
xor r8d, r8d
mov rax, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [rax + 0x18]
test eax, eax
jns 0x140001389
mov edx, eax
lea rcx, str.Could_not_connect_to_WMI_namespace._Error_code:_0x_X_n
call fcn.140001060
jmp 0x14000153c
mov rcx, qword [rbp + 7]
xor r9d, r9d
mov dword [rsp + 0x38], ebx
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov edx, 0xa
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400013ce
mov edx, eax
lea rcx, str.Could_not_set_proxy_blanket._Error_code:_0x_X_n
call fcn.140001060
jmp 0x140001532
mov rcx, qword [rbp + 7]
lea rdx, [rbp + 0x17]
mov qword [rsp + 0x28], rdx
lea r8, str.SELECT_SerialNumber_FROM_Win32_BIOS
mov qword [rbp + 0x17], rbx
lea rdx, [0x140004568]
mov r9d, 0x30
mov qword [rsp + 0x20], rbx
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
jns 0x140001418
mov edx, eax
lea rcx, str.Query_for_BIOS_serial_number_failed._Error_code:_0x_X_n
call fcn.140001060
jmp 0x140001532
mov rcx, qword [rbp + 0x17]
mov qword [rbp + 0x1f], rbx
mov dword [rbp + 0x3f], ebx
test rcx, rcx
je 0x14000152c
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x3f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x1f]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp + 0x3f], ebx
je 0x140001528
mov rcx, qword [rbp + 0x1f]
lea r9, [rbp + 0x27]
mov qword [rsp + 0x28], rbx
lea rdx, str.SerialNumber
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jns 0x140001495
mov rcx, qword [rbp + 0x1f]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x17]
test rcx, rcx
jne 0x140001430
jmp 0x14000152c
mov ecx, 0x40
mov qword [rsp + 0xc8], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [rbp + 0x2f]
lea rdx, [0x1400045c4]
mov rcx, rax
mov r14, rax
call fcn.1400010c0
movzx eax, byte [r14]
test al, al
je 0x14000151b
mov qword [rsp + 0xb8], rsi
mov rsi, r14
mov qword [rsp + 0xc0], rdi
mov rdi, r14
nop dword [rax]
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
je 0x1400014f7
movzx eax, byte [rdi]
inc ebx
mov byte [rsi], al
inc rsi
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400014e0
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb8]
cmp ebx, 4
jle 0x14000151b
mov byte [r14 + 4], al
mov rax, r14
mov r14, qword [rsp + 0xc8]
jmp 0x14000154c
mov rcx, qword [rbp + 0x17]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0xf]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140002080
add rsp, 0xa0
pop rbp
ret