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

Disassembly:
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
lea eax, [esp + 0x34]
push 0xc
pop esi
push esi
push ebp
push eax
mov dword [esp + 0x20], ebp
mov ebx, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0042bcb0
push 0x44
mov dword [esp + 0x44], esi
lea eax, [esp + 0x60]
pop esi
push esi
xor edi, edi
mov dword [esp + 0x48], ebp
push ebp
inc edi
push eax
mov dword [esp + 0x54], edi
call fcn.0042bcb0
mov ecx, dword [esp + 0xf8]
add esp, 0x18
mov dword [esp + 0x7c], edi
mov edi, ecx
mov dword [esp + 0x50], esi
and edi, 2
je 0x41a46a
xor eax, eax
xor edx, edx
mov word [esp + 0x80], ax
inc edx
jmp 0x41a475
xor edx, edx
inc edx
mov word [esp + 0x80], dx
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
neg edi
sbb edi, edi
and edi, 0x10
add edi, 0x20
test cl, 0x40
je 0x41a4b7
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x41a4b7
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41a4b7
push 0x20
mov dword [esp + 0x80], 0x101
mov dword [esp + 0x8c], eax
pop edi
mov dword [esp + 0x1c], edx
jmp 0x41a506
mov eax, ecx
and eax, 0x14
cmp al, 0x14
jne 0x41a506
push ebp
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x41a4ff
mov eax, dword [esp + 0x14]
or dword [esp + 0x7c], 0x100
mov dword [esp + 0x88], eax
lea eax, [esp + 0x24]
push eax
call fcn.0041a3af
pop ecx
push 0x20
pop edi
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0xe0]
mov eax, ecx
and eax, 4
mov dword [esp + 0x30], eax
je 0x41a5a4
test cl, 8
je 0x41a560
push ebp
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
je 0x41a559
mov eax, dword [esp + 0x10]
or dword [esp + 0x7c], 0x100
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x20]
push eax
call fcn.0041a3af
pop ecx
and edi, 0xffffffef
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0xe0]
test cl, 0x20
je 0x41a5a4
push ebp
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
je 0x41a5a4
mov eax, dword [esp + 0x18]
or dword [esp + 0x7c], 0x100
mov dword [esp + 0x90], eax
lea eax, [esp + 0x28]
push eax
call fcn.0041a3af
pop ecx
and edi, 0xffffffef
mov dword [esp + 0x1c], 1
test dword [esp + 0x7c], 0x100
je 0x41a5f0
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp dword [esp + 0x88], ebx
jne 0x41a5c8
push 0xfffffffffffffff6
call esi
mov dword [esp + 0x88], eax
cmp dword [esp + 0x8c], ebx
jne 0x41a5dc
push 0xfffffffffffffff5
call esi
mov dword [esp + 0x8c], eax
cmp dword [esp + 0x90], ebx
jne 0x41a5f0
push 0xfffffffffffffff4
call esi
mov dword [esp + 0x90], eax
mov ebp, dword [esp + 0xd4]
mov eax, 0x4a6494
test ebp, ebp
jne 0x41a602
mov ebp, eax
cmp dword [esp + 0xd8], ebx
jne 0x41a612
mov dword [esp + 0xd8], eax
push ebp
call fcn.0042be2c
push dword [esp + 0xdc]
mov esi, eax
call fcn.0042be2c
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 8]
push eax
xor eax, eax
push eax
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp word [ebp], 0x22
mov esi, eax
mov dword [esp + 0x2c], esi
je 0x41a670
push 0x4a647c
push esi
call fcn.0042be0a
push ebp
push esi
call fcn.0042c48f
push 0x4a647c
push esi
call fcn.0042c48f
add esp, 0x18
jmp 0x41a679
push ebp
push esi
call fcn.0042be0a
pop ecx
pop ecx
mov eax, dword [esp + 0xd8]
xor edx, edx
cmp word [eax], dx
je 0x41a6a4
push 0x4a6480
push esi
call fcn.0042c48f
push dword [esp + 0xe0]
push esi
call fcn.0042c48f
add esp, 0x10
xor edx, edx
mov ecx, dword [esp + 0xdc]
test ecx, ecx
je 0x41a6bf
movzx eax, word [ecx]
neg eax
sbb eax, eax
and ecx, eax
mov dword [esp + 0xdc], ecx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
push ecx
push edx
push edi
push dword [esp + 0x30]
push edx
push edx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41a780
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
je 0x41a6f4
push dword [esp + 0x10]
call esi
cmp dword [esp + 0x14], ebx
je 0x41a700
push dword [esp + 0x14]
call esi
cmp dword [esp + 0x18], ebx
je 0x41a70c
push dword [esp + 0x18]
call esi
push dword [esp + 0x44]
call esi
test byte [esp + 0xe0], 1
je 0x41a728
push 0xffffffffffffffff
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x30], ebx
je 0x41a775
mov esi, 0x4e73e0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x20
push 0x4e73bc
call fcn.0042bc36
pop ecx
pop ecx
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x40]
mov dword [ebx], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
jmp 0x41a8f5
push dword [esp + 0x40]
call esi
jmp 0x41a90d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
je 0x41a792
push dword [esp + 0x10]
call edi
cmp dword [esp + 0x20], ebx
je 0x41a79e
push dword [esp + 0x20]
call edi
cmp dword [esp + 0x24], ebx
je 0x41a7aa
push dword [esp + 0x24]
call edi
cmp dword [esp + 0x14], ebx
je 0x41a7b6
push dword [esp + 0x14]
call edi
cmp dword [esp + 0x18], ebx
je 0x41a7c2
push dword [esp + 0x18]
call edi
cmp dword [esp + 0x28], ebx
je 0x41a7ce
push dword [esp + 0x28]
call edi
test byte [esp + 0xe0], 0x78
jne 0x41a910
cmp dword [esp + 0xdc], ebx
jne 0x41a828
push ebp
call fcn.0042be2c
pop ecx
lea esi, [eax*2 - 2]
add esi, ebp
jmp 0x41a800
cmp word [esi], 0x5c
je 0x41a806
sub esi, 2
cmp esi, ebp
ja 0x41a7f7
jmp 0x41a828
push ebp
push dword [esp + 0x30]
call fcn.0042be0a
mov eax, dword [esp + 0x34]
sub esi, ebp
pop ecx
sar esi, 1
pop ecx
xor ecx, ecx
mov dword [esp + 0xdc], eax
mov word [eax + esi*2 + 2], cx
push 0x3c
pop esi
xor eax, eax
push esi
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0042bcb0
movzx eax, word [esp + 0x8c]
add esp, 0xc
mov dword [esp + 0xb0], eax
xor eax, eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], 0x540
mov dword [esp + 0xa8], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41a910
test byte [esp + 0xe0], 1
je 0x41a8b7
push 0xffffffffffffffff
push dword [esp + 0xd0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x30], ebx
je 0x41a904
mov esi, 0x4e73e0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x20
push 0x4e73bc
call fcn.0042bc36
pop ecx
pop ecx
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xcc]
or dword [ebx + 4], 0xffffffff
mov dword [ebx], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0xe0]
mov dword [ebx + 0x14], eax
jmp 0x41a910
push dword [esp + 0xcc]
call edi
xor ebx, ebx
inc ebx
push dword [esp + 0x2c]
xor eax, eax
push eax
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc0
ret 0x14