Function at 0x1402f6ad0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Execute command
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x2790]
mov eax, 0x2890
call fcn.1402f3dd0
sub rsp, rax
mov rax, qword [0x140367bb8]
xor rax, rsp
mov qword [rbp + 0x2780], rax
movaps xmm0, xmmword [str.wmic_BaseBoard_get_SerialNumber]
mov rsi, rcx
movaps xmm1, xmmword [0x140311430]
lea rcx, [rbp + 0x60]
mov eax, dword [0x1403113b0]
xor ebx, ebx
movaps xmmword [rbp + 0x20], xmm0
mov r8d, 0x2711
movaps xmm0, xmmword [0x140311440]
movaps xmmword [rbp + 0x40], xmm0
movsd xmm0, qword [str.SerialNumber]
movaps xmmword [rbp + 0x30], xmm1
movaps xmm1, xmmword [0x140311450]
mov dword [rbp + 0x10], eax
movzx eax, byte [0x1403113b4]
movsxd rdi, edx
xor edx, edx
movsd qword [rbp + 8], xmm0
movaps xmmword [rbp + 0x50], xmm1
mov byte [rbp + 0x14], al
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [rbp], ebx
xor eax, eax
mov qword [rsp + 0x70], rbx
xor r9d, r9d
mov dword [rbp - 0xc], eax
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], 0x18
lea rdx, [rsp + 0x50]
mov qword [rbp - 0x78], 1
lea rcx, [rsp + 0x58]
mov dword [rbp - 0x70], 0x68
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp - 0x80], rbx
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1402f6bf8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1402f6d77
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [rsp + 0x50]
lea rdx, [rbp + 0x20]
mov qword [rbp - 0x10], rax
xor r9d, r9d
mov qword [rbp - 0x18], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov word [rbp - 0x30], bx
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rbp - 0x70]
mov dword [rbp - 0x34], 0x101
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1402f6c8c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1402f6d77
mov rcx, qword [rsp + 0x60]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea r9, [rbp]
mov r8d, 0x2710
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402f6c59
lea rcx, [0x140311370]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
lea rax, [rbp + 8]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x1402f6cd5
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1402f6c59
lea rdx, [0x1403113a0]
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_strstr
mov r8, rax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r8 + rax], bl
jne 0x1402f6d10
test rax, rax
je 0x1402f6d72
mov r11, rdi
mov r9, rbx
movabs rdi, 0x100002400
mov r10, r8
cmp r9, r11
jge 0x1402f6d72
movsx rcx, byte [r10]
cmp cl, 0x20
ja 0x1402f6d45
bt rdi, rcx
jb 0x1402f6d4c
mov byte [rsi + r9], cl
inc r9
inc ebx
mov rcx, 0xffffffffffffffff
inc r10
nop dword [rax + rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x1402f6d60
movsxd rdx, ebx
cmp rdx, rcx
jb 0x1402f6d31
mov eax, 1
mov rcx, qword [rbp + 0x2780]
xor rcx, rsp
call fcn.1402fa650
lea r11, [rsp + 0x2890]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret