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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
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 - 0x28], 0xffffffff
call fcn.0040d7a0
add esp, 4
push eax
push str.command.com
call fcn.00407610
mov ebx, dword [ebp + 0xc]
add esp, 8
test eax, eax
mov edi, 1
je 0x40954f
push esi
call fcn.0040d7a0
add esp, 4
push eax
push str.4nt.exe
call fcn.00407610
add esp, 8
test eax, eax
jne 0x409572
test ebx, ebx
je 0x409572
mov eax, dword [ebx + 4]
test eax, eax
je 0x409572
push eax
push 0x4148bc
call fcn.00407610
add esp, 8
mov dword [0x41a830], edi
test eax, eax
je 0x40957c
mov dword [0x41a830], 0
push esi
call fcn.0040d7c0
mov dword [ebp - 0x24], eax
add eax, 0xfffffffe
add esp, 4
cmp eax, 3
ja case.default.0x409594
jmp dword [eax*4 + 0x409b20]
push str.shell
call fcn.00404d30
mov esi, eax
add esp, 4
test esi, esi
jne 0x409af1
push str._mksnt_csh.exe
jmp 0x409acf
mov eax, dword [0x41487c]
test eax, eax
jge 0x4095d3
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
mov dword [0x41487c], eax
push str.COMSPEC
call fcn.00404d30
mov esi, eax
add esp, 4
test esi, esi
jne 0x40960e
mov eax, dword [0x41487c]
test eax, eax
je 0x4095f6
mov esi, str.command.com
jmp 0x40960e
push str.ComSpec
call fcn.00404d30
mov esi, eax
add esp, 4
test esi, esi
jne 0x40960e
mov esi, str.cmd.exe
push ebx
push 0x4148bc
push esi
call fcn.00409ec0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x40962e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41487c]
test eax, eax
je 0x409642
mov dword [0x41a830], edi
jmp 0x409642
mov dword [ebp + 8], ebx
push esi
call fcn.004087d0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x409a30
cmp byte [eax], 0
je 0x40966b
cmp byte [eax], 0x2f
jne 0x409663
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40965b
push 0x14
call fcn.00403f50
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x409a30
mov eax, dword [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
call fcn.00409b30
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 0x4096c8
mov edx, dword [esi]
push edx
push 0
call fcn.00409b30
mov ecx, dword [ebp + 8]
add esp, 8
inc eax
cmp esi, ecx
je 0x4096b6
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 0x40969f
inc edi
push edi
call fcn.00403f50
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x409a30
lea esi, [ebx + 0x14]
push 0
push esi
push 0
lea eax, [ebp - 0x34]
push 0x8000004
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x409a2b
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 0x409a2b
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 0x409790
jmp 0x409754
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x40975c
mov byte [edi], 0x20
inc edi
mov eax, dword [esi]
push eax
push edi
call fcn.00409b30
mov ecx, dword [esi]
add esp, 8
add edi, eax
push ecx
push ebx
call fcn.004075e0
mov edx, dword [esi]
add esp, 8
push edx
call fcn.004084e0
add esi, 4
lea ebx, [ebx + eax + 1]
add esp, 4
cmp dword [esi], 0
jne 0x409751
mov ecx, dword [ebp - 8]
mov byte [edi], 0
sub edi, ecx
inc edi
cmp edi, 0x7ff8
jle 0x4097a5
mov byte [ecx + 0x7ff8], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.00409be0
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x409a09
push 0x44
push ebx
push 0x41a4b8
call fcn.0040bc50
mov eax, dword [0x417298]
add esp, 0xc
cmp eax, ebx
jne 0x409810
call fcn.0040b1e0
mov eax, dword [0x41a92c]
mov dword [0x41a4e4], 0x100
mov edx, dword [eax]
mov dword [0x41a4f0], edx
mov ecx, dword [eax + 4]
mov dword [0x41a4f4], ecx
mov edx, dword [eax + 8]
mov dword [0x41a4f8], edx
jmp 0x4098c7
cmp dword [0x4172a8], ebx
jne 0x4098bd
mov eax, dword [0x41a92c]
mov dword [0x41a4e4], 0x101
mov word [0x41a4e8], bx
or edi, 0xffffffff
cmp dword [eax], edi
jne 0x409856
push ebx
push str._nul
mov dword [eax], ebx
call fcn.0040c2f0
mov eax, dword [ebp - 4]
add esp, 8
or al, 1
mov dword [ebp - 4], eax
mov eax, dword [0x41a92c]
mov ecx, dword [eax]
mov dword [0x41a4f0], ecx
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x409884
push 1
push str._nul
mov dword [eax + 4], ebx
call fcn.0040c2f0
mov eax, dword [ebp - 4]
add esp, 8
or al, 2
mov dword [ebp - 4], eax
mov eax, dword [0x41a92c]
mov edx, dword [eax + 4]
mov dword [0x41a4f4], edx
mov ecx, dword [eax + 8]
cmp ecx, edi
jne 0x4098b3
push 1
push str._nul
mov dword [eax + 8], ebx
call fcn.0040c2f0
mov eax, dword [ebp - 4]
add esp, 8
or al, 4
mov dword [ebp - 4], eax
mov eax, dword [0x41a92c]
mov eax, dword [eax + 8]
mov dword [0x41a4f8], eax
jmp 0x4098c7
mov dword [0x41a4fc], 0x10
mov ecx, dword [ebp - 8]
mov dword [0x41a4b8], 0x44
mov eax, ecx
cmp byte [ecx], 0x20
je 0x4098f2
mov dl, byte [eax]
test dl, dl
je 0x4098f2
cmp dl, 0x2f
jne 0x4098e9
mov byte [eax], 0x5c
mov dl, byte [eax + 1]
inc eax
cmp dl, 0x20
jne 0x4098db
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1c]
mov edx, dword [0x414860]
push edi
push 0x41a4b8
cmp edx, 0xffffffff
push ebx
push esi
je 0x409921
mov esi, dword [0x41a4fc]
push esi
push 1
push ebx
push ebx
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
jmp 0x409934
mov edx, dword [0x41a4fc]
push edx
push 1
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x4099a0
call fcn.0040bb80
cmp dword [0x41a920], 0xea
jne 0x4099cf
mov esi, dword [ebp - 0x14]
xor ebx, ebx
cmp byte [esi], 0
je 0x40996a
push esi
call fcn.004084e0
add esp, 4
inc eax
add esi, eax
add ebx, eax
cmp byte [esi], 0
jne 0x409957
test ebx, 0x7ff
jne 0x4099cf
push str._bug_x
push esi
call fcn.004075e0
add esp, 8
push esi
call fcn.004084e0
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 0x4098f8
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 - 0x28], 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 [0x41a4b0]
mov dword [eax + 0x10], edx
mov dword [0x41a4b0], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x409a0c
test al, 1
je 0x4099e6
mov ecx, dword [0x41a92c]
mov dword [ecx], 0xffffffff
test al, 2
je 0x4099f7
mov edx, dword [0x41a92c]
mov dword [edx + 4], 0xffffffff
test al, 4
je 0x409a0c
mov eax, dword [0x41a92c]
mov dword [eax + 8], 0xffffffff
jmp 0x409a0c
mov edi, dword [ebp - 0x1c]
mov esi, dword [0x41a920]
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41a920], esi
jmp 0x409a30
call fcn.0040bb80
mov eax, dword [ebp - 0x10]
mov esi, dword [0x41a920]
xor ebx, ebx
cmp eax, ebx
je 0x409a48
push eax
call fcn.00404080
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x409a5b
push eax
call fcn.00404080
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x409a6b
push eax
call fcn.00404080
add esp, 4
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x409a7b
push eax
call fcn.00404080
add esp, 4
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x409a8b
push eax
call fcn.00404080
add esp, 4
cmp esi, 0xb
mov dword [0x41a920], esi
je 0x409a9e
cmp esi, 0xc1
jne 0x409b15
cmp dword [ebp - 0x24], 0xffffffff
jne 0x409b15
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], 2
push str.SHELL
call fcn.00404d30
mov esi, eax
add esp, 4
test esi, esi
jne 0x409af1
push str._mksnt_sh.exe
call fcn.00408390
mov esi, eax
add esp, 4
test esi, esi
jne 0x409af1
mov dword [0x41a920], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x414880
push esi
call fcn.00409ec0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x409642
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret