Function at 0x431e50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x20], eax
call fcn.004298f0
add esp, 4
push eax
push str.command.com
call fcn.00431080
mov ebx, dword [ebp + 0xc]
add esp, 8
test eax, eax
mov edi, 1
je 0x431eb2
push esi
call fcn.004298f0
add esp, 4
push eax
push str.4nt.exe
call fcn.00431080
add esp, 8
test eax, eax
jne 0x431ed5
test ebx, ebx
je 0x431ed5
mov eax, dword [ebx + 4]
test eax, eax
je 0x431ed5
push eax
push 0x444140
call fcn.00431080
add esp, 8
mov dword [0x4583d4], edi
test eax, eax
je 0x431edf
mov dword [0x4583d4], 0
push esi
call fcn.00433fe0
mov dword [ebp - 0x28], eax
add eax, 0xfffffffe
add esp, 4
cmp eax, 3
ja case.default.0x431ef7
jmp dword [eax*4 + 0x4324e0]
push str.shell
call fcn.00431630
mov esi, eax
add esp, 4
test esi, esi
jne 0x4324b1
push str._mksnt_csh.exe
jmp 0x43248f
mov eax, dword [0x44a754]
test eax, eax
jge 0x431f36
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
mov dword [0x44a754], eax
push str.COMSPEC
call fcn.00431630
mov esi, eax
add esp, 4
test esi, esi
jne 0x431f71
mov eax, dword [0x44a754]
test eax, eax
je 0x431f59
mov esi, str.command.com
jmp 0x431f71
push str.ComSpec
call fcn.00431630
mov esi, eax
add esp, 4
test esi, esi
jne 0x431f71
mov esi, str.cmd.exe
push ebx
push 0x444140
push esi
call fcn.00432880
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x431f91
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44a754]
test eax, eax
je 0x431fa5
mov dword [0x4583d4], edi
jmp 0x431fa5
mov dword [ebp + 8], ebx
push esi
call fcn.0042e680
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4323f0
cmp byte [eax], 0
je 0x431fce
cmp byte [eax], 0x2f
jne 0x431fc6
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x431fbe
push 0x14
call fcn.00428230
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4323f0
mov eax, dword [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
call fcn.004324f0
mov esi, dword [ebp + 8]
mov edi, eax
mov ecx, esi
add esp, 8
inc edi
mov dword [ebp - 0x18], ebx
cmp dword [ecx], 0
je 0x43202b
mov edx, dword [esi]
push edx
push 0
call fcn.004324f0
mov ecx, dword [ebp + 8]
add esp, 8
inc eax
cmp esi, ecx
je 0x432019
add edi, eax
mov edx, dword [ebp - 0x18]
add esi, 4
add ebx, eax
inc edx
mov eax, dword [esi]
mov dword [ebp - 0x18], edx
test eax, eax
jne 0x432002
inc edi
push edi
call fcn.00428230
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x4323f0
lea esi, [ebx + 0x14]
push 0
push esi
push 0
lea eax, [ebp - 0x38]
push 0x8000004
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x4323eb
push esi
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x4323eb
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp + 8]
lea ebx, [ecx + 0x10]
mov ecx, dword [ebp - 8]
mov edi, ecx
mov esi, eax
mov dword [ebx], edx
mov edx, dword [eax]
add ebx, 4
test edx, edx
je 0x4320f3
jmp 0x4320b7
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x4320bf
mov byte [edi], 0x20
inc edi
mov eax, dword [esi]
push eax
push edi
call fcn.004324f0
mov ecx, dword [esi]
add esp, 8
add edi, eax
push ecx
push ebx
call fcn.004296d0
mov edx, dword [esi]
add esp, 8
push edx
call fcn.00429700
add esi, 4
lea ebx, [ebx + eax + 1]
add esp, 4
cmp dword [esi], 0
jne 0x4320b4
mov ecx, dword [ebp - 8]
mov byte [edi], 0
sub edi, ecx
inc edi
cmp edi, 0x7ff8
jle 0x432108
mov byte [ecx + 0x7ff8], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.004325a0
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x4323c9
push 0x44
push ebx
push 0x44fca0
call fcn.00429210
add esp, 0xc
push 0x4424b8
push str.conout_
call fcn.0042e7c0
add esp, 8
cmp eax, ebx
je 0x432158
push eax
call fcn.004294f0
add esp, 4
jmp 0x432180
push 0x44252c
push str.conin_
call fcn.0042e7c0
add esp, 8
cmp eax, ebx
je 0x432179
push eax
call fcn.004294f0
add esp, 4
jmp 0x432180
mov dword [ebp - 0x20], 1
cmp dword [0x44f9ac], ebx
jne 0x4321d0
call fcn.00434770
mov eax, dword [0x4586d8]
mov dword [0x44fccc], 0x100
mov edx, dword [eax]
mov dword [0x44fcd8], edx
mov ecx, dword [eax + 4]
mov dword [0x44fcdc], ecx
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
mov dword [0x44fce0], edx
cmp eax, ebx
je 0x432287
mov dword [0x44fce4], 8
jmp 0x432287
cmp dword [0x44f9bc], ebx
jne 0x43227d
mov eax, dword [0x4586d8]
mov dword [0x44fccc], 0x101
mov word [0x44fcd0], bx
or edi, 0xffffffff
cmp dword [eax], edi
jne 0x432216
push ebx
push str._nul
mov dword [eax], ebx
call fcn.0042ec00
mov eax, dword [ebp - 4]
add esp, 8
or al, 1
mov dword [ebp - 4], eax
mov eax, dword [0x4586d8]
mov ecx, dword [eax]
mov dword [0x44fcd8], ecx
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x432244
push 1
push str._nul
mov dword [eax + 4], ebx
call fcn.0042ec00
mov eax, dword [ebp - 4]
add esp, 8
or al, 2
mov dword [ebp - 4], eax
mov eax, dword [0x4586d8]
mov edx, dword [eax + 4]
mov dword [0x44fcdc], edx
mov ecx, dword [eax + 8]
cmp ecx, edi
jne 0x432273
push 1
push str._nul
mov dword [eax + 8], ebx
call fcn.0042ec00
mov eax, dword [ebp - 4]
add esp, 8
or al, 4
mov dword [ebp - 4], eax
mov eax, dword [0x4586d8]
mov eax, dword [eax + 8]
mov dword [0x44fce0], eax
jmp 0x432287
mov dword [0x44fce4], 0x10
mov ecx, dword [ebp - 8]
mov dword [0x44fca0], 0x44
mov eax, ecx
cmp byte [ecx], 0x20
je 0x4322b2
mov dl, byte [eax]
test dl, dl
je 0x4322b2
cmp dl, 0x2f
jne 0x4322a9
mov byte [eax], 0x5c
mov dl, byte [eax + 1]
inc eax
cmp dl, 0x20
jne 0x43229b
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1c]
mov edx, dword [0x44a738]
push edi
push 0x44fca0
cmp edx, 0xffffffff
push ebx
push esi
je 0x4322e1
mov esi, dword [0x44fce4]
push esi
push 1
push ebx
push ebx
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
jmp 0x4322f4
mov edx, dword [0x44fce4]
push edx
push 1
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x432360
call fcn.00434290
cmp dword [0x4586cc], 0xea
jne 0x43238f
mov esi, dword [ebp - 0x14]
xor ebx, ebx
cmp byte [esi], 0
je 0x43232a
push esi
call fcn.00429700
add esp, 4
inc eax
add esi, eax
add ebx, eax
cmp byte [esi], 0
jne 0x432317
test ebx, 0x7ff
jne 0x43238f
push str._bug_x
push esi
call fcn.004296d0
add esp, 8
push esi
call fcn.00429700
mov ecx, dword [ebp - 8]
lea esi, [esi + eax + 1]
mov eax, dword [ebp - 0xc]
add esp, 4
mov byte [esi], 0
mov esi, dword [ebp - 0x14]
xor ebx, ebx
jmp 0x4322b8
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], ebx
mov dword [eax], ecx
mov ecx, dword [edi]
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
mov edx, dword [0x44fc98]
mov dword [eax + 0x10], edx
mov dword [0x44fc98], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4323cc
test al, 1
je 0x4323a6
mov ecx, dword [0x4586d8]
mov dword [ecx], 0xffffffff
test al, 2
je 0x4323b7
mov edx, dword [0x4586d8]
mov dword [edx + 4], 0xffffffff
test al, 4
je 0x4323cc
mov eax, dword [0x4586d8]
mov dword [eax + 8], 0xffffffff
jmp 0x4323cc
mov edi, dword [ebp - 0x1c]
mov esi, dword [0x4586cc]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4586cc], esi
jmp 0x4323f0
call fcn.00434290
mov eax, dword [ebp - 0x10]
mov esi, dword [0x4586cc]
xor ebx, ebx
cmp eax, ebx
je 0x432408
push eax
call fcn.004283d0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x43241b
push eax
call fcn.004283d0
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x43242b
push eax
call fcn.004283d0
add esp, 4
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x43243b
push eax
call fcn.004283d0
add esp, 4
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x43244b
push eax
call fcn.004283d0
add esp, 4
cmp esi, 0xb
mov dword [0x4586cc], esi
je 0x43245e
cmp esi, 0xc1
jne 0x4324d5
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4324d5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], 2
push str.SHELL
call fcn.00431630
mov esi, eax
add esp, 4
test esi, esi
jne 0x4324b1
push str._mksnt_sh.exe
call fcn.004290b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4324b1
mov dword [0x4586cc], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x442afc
push esi
call fcn.00432880
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x431fa5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret