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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aea1b
mov eax, dword fs:[0]
push eax
mov eax, 0x280c
call fcn.00583050
mov eax, dword [0x625e6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27d4], 0x2710
mov dword [ebp - 0x27b0], str.wmic_BaseBoard_get_SerialNumber
push str.SerialNumber
lea ecx, [ebp - 0x2754]
call fcn.00406960
mov dword [ebp - 4], 0
mov dword [ebp - 0x2770], 0
mov dword [ebp - 0x278c], 0
mov dword [ebp - 0x2780], 0
push 0x2711
push 0
lea eax, [ebp - 0x2724]
push eax
call fcn.00586690
add esp, 0xc
lea ecx, [ebp - 0x273c]
call fcn.004069f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x27b8], 0
mov dword [ebp - 0x2784], 0
xor ecx, ecx
mov dword [ebp - 0x279c], ecx
mov dword [ebp - 0x2798], ecx
mov dword [ebp - 0x2794], ecx
mov dword [ebp - 0x2790], ecx
push 0x44
push 0
lea edx, [ebp - 0x2818]
push edx
call fcn.00586690
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x27a8], eax
mov dword [ebp - 0x27a4], eax
mov dword [ebp - 0x27a0], eax
mov dword [ebp - 0x279c], 0
mov dword [ebp - 0x2798], 0
mov dword [ebp - 0x2818], 0x44
mov dword [ebp - 0x27a8], 0xc
mov dword [ebp - 0x27a4], 0
mov dword [ebp - 0x27a0], 1
push 0
lea ecx, [ebp - 0x27a8]
push ecx
lea edx, [ebp - 0x2780]
push edx
lea eax, [ebp - 0x278c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x2770], eax
cmp dword [ebp - 0x2770], 0
jne 0x405ca0
mov dword [ebp - 0x27ac], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x273c]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2754]
call fcn.00406900
mov eax, dword [ebp - 0x27ac]
jmp 0x406004
lea ecx, [ebp - 0x2818]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x2780]
mov dword [ebp - 0x27d8], edx
mov eax, dword [ebp - 0x2780]
mov dword [ebp - 0x27dc], eax
xor ecx, ecx
mov word [ebp - 0x27e8], cx
mov dword [ebp - 0x27ec], 0x101
lea edx, [ebp - 0x279c]
push edx
lea eax, [ebp - 0x2818]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
mov ecx, dword [ebp - 0x27b0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x2770], eax
cmp dword [ebp - 0x2770], 0
jne 0x405d46
mov dword [ebp - 0x27b4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x273c]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2754]
call fcn.00406900
mov eax, dword [ebp - 0x27b4]
jmp 0x406004
push 0x1f4
mov edx, dword [ebp - 0x279c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp - 0x27b8]
push eax
push 0x2710
lea ecx, [ebp - 0x2724]
push ecx
mov edx, dword [ebp - 0x278c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2770], eax
cmp dword [ebp - 0x2770], 0
jne 0x405dbf
mov dword [ebp - 0x27bc], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x273c]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2754]
call fcn.00406900
mov eax, dword [ebp - 0x27bc]
jmp 0x406004
mov dword [ebp - 0x2770], 0
lea eax, [ebp - 0x2724]
push eax
lea ecx, [ebp - 0x273c]
call fcn.004068e0
push 0
lea ecx, [ebp - 0x2754]
push ecx
lea ecx, [ebp - 0x273c]
call fcn.00406860
mov dword [ebp - 0x2784], eax
cmp dword [ebp - 0x2784], 0
jge 0x405e36
mov dword [ebp - 0x27c0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x273c]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2754]
call fcn.00406900
mov eax, dword [ebp - 0x27c0]
jmp 0x406004
push 0xffffffffffffffff
lea ecx, [ebp - 0x2754]
call fcn.004068a0
add eax, dword [ebp - 0x2784]
push eax
lea edx, [ebp - 0x276c]
push edx
lea ecx, [ebp - 0x273c]
call fcn.00406810
mov dword [ebp - 0x27c4], eax
mov eax, dword [ebp - 0x27c4]
push eax
lea ecx, [ebp - 0x273c]
call fcn.00406920
lea ecx, [ebp - 0x276c]
call fcn.00406900
push 0x2711
push 0
lea ecx, [ebp - 0x2724]
push ecx
call fcn.00586690
add esp, 0xc
lea ecx, [ebp - 0x273c]
call fcn.004068c0
push eax
lea edx, [ebp - 0x2724]
push edx
call fcn.00407e20
add esp, 8
mov dword [ebp - 0x2788], 0
mov dword [ebp - 0x2778], 0
jmp 0x405ed5
mov eax, dword [ebp - 0x2778]
add eax, 1
mov dword [ebp - 0x2778], eax
lea ecx, [ebp - 0x2724]
mov dword [ebp - 0x277c], ecx
mov edx, dword [ebp - 0x277c]
add edx, 1
mov dword [ebp - 0x27c8], edx
mov eax, dword [ebp - 0x277c]
mov cl, byte [eax]
mov byte [ebp - 0x2771], cl
add dword [ebp - 0x277c], 1
cmp byte [ebp - 0x2771], 0
jne 0x405ef0
mov edx, dword [ebp - 0x277c]
sub edx, dword [ebp - 0x27c8]
mov dword [ebp - 0x27cc], edx
mov eax, dword [ebp - 0x2778]
cmp eax, dword [ebp - 0x27cc]
jae 0x405f93
mov ecx, dword [ebp - 0x2778]
movsx edx, byte [ebp + ecx - 0x2724]
cmp edx, 0x20
je 0x405f8e
mov eax, dword [ebp - 0x2778]
movsx ecx, byte [ebp + eax - 0x2724]
cmp ecx, 0xa
je 0x405f8e
mov edx, dword [ebp - 0x2778]
movsx eax, byte [ebp + edx - 0x2724]
cmp eax, 0xd
je 0x405f8e
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x2788]
mov edx, dword [ebp - 0x2778]
mov al, byte [ebp + edx - 0x2724]
mov byte [ecx], al
mov ecx, dword [ebp - 0x2788]
add ecx, 1
mov dword [ebp - 0x2788], ecx
jmp 0x405ec6
mov dword [ebp - 0x2770], 1
mov edx, dword [ebp - 0x2780]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x278c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x279c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2798]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2770]
mov dword [ebp - 0x27d0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x273c]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2754]
call fcn.00406900
mov eax, dword [ebp - 0x27d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00582196
mov esp, ebp
pop ebp
ret