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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xc4
push ebx
push esi
push edi
xor ebx, ebx
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x24]
push ebx
inc edi
push eax
mov dword [ebp + 0x60], 0x20
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x30], 0xc
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], edi
call sub.MSVCRT.dll_memset
mov cl, byte [ebp + 0x78]
add esp, 0xc
test cl, 2
mov dword [ebp - 0x24], esi
mov dword [ebp + 8], edi
je 0x403b76
mov word [ebp + 0xc], bx
mov dword [ebp + 0x60], 0x28
jmp 0x403b7a
mov word [ebp + 0xc], di
test cl, 0x40
mov esi, 0x100
je 0x403ba1
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x403ba1
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x403ba1
mov dword [ebp + 8], 0x101
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x4c], edi
jmp 0x403bda
test cl, 4
je 0x403bde
test cl, 0x10
je 0x403bde
push ebx
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x58]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x403bde
mov eax, dword [ebp + 0x58]
or dword [ebp + 8], esi
lea edi, [ebp + 0x50]
mov dword [ebp + 0x14], eax
call fcn.00403ad4
mov dword [ebp + 0x4c], 1
and dword [ebp + 0x60], 0xfffffff7
mov eax, dword [ebp + 0x78]
and eax, 4
mov dword [ebp + 0x3c], eax
je 0x403c5b
test byte [ebp + 0x78], 8
je 0x403c22
push ebx
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x403c22
mov eax, dword [ebp + 0x5c]
or dword [ebp + 8], esi
lea edi, [ebp + 0x44]
mov dword [ebp + 0x18], eax
call fcn.00403ad4
and dword [ebp + 0x60], 0xfffffff7
mov dword [ebp + 0x4c], 1
test byte [ebp + 0x78], 0x20
je 0x403c5b
push ebx
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x403c5b
mov eax, dword [ebp + 0x54]
or dword [ebp + 8], esi
lea edi, [ebp + 0x48]
mov dword [ebp + 0x1c], eax
call fcn.00403ad4
and dword [ebp + 0x60], 0xfffffff7
mov dword [ebp + 0x4c], 1
test dword [ebp + 8], esi
je 0x403c8a
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_GetStdHandle]
jne 0x403c72
push 0xfffffffffffffff6
call esi
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x18], ebx
jne 0x403c7e
push 0xfffffffffffffff5
call esi
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x1c], ebx
jne 0x403c8a
push 0xfffffffffffffff4
call esi
mov dword [ebp + 0x1c], eax
mov edi, dword [ebp + 0x6c]
cmp edi, ebx
jne 0x403c96
mov edi, section..rdata
cmp dword [ebp + 0x70], ebx
jne 0x403ca2
mov dword [ebp + 0x70], section..rdata
push edi
call sub.MSVCRT.dll_strlen
push dword [ebp + 0x70]
mov esi, eax
call sub.MSVCRT.dll_strlen
pop ecx
pop ecx
lea eax, [esi + eax + 4]
push eax
push ebx
push dword [0x40b1c8]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
cmp byte [edi], 0x22
mov dword [ebp + 0x7c], eax
je 0x403cf1
mov esi, 0x409044
push esi
push eax
call sub.MSVCRT.dll_strcpy
push edi
push dword [ebp + 0x7c]
call sub.MSVCRT.dll_strcat
push esi
push dword [ebp + 0x7c]
call sub.MSVCRT.dll_strcat
add esp, 0x18
jmp 0x403cfa
push edi
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov esi, dword [ebp + 0x70]
cmp byte [esi], bl
je 0x403d1a
push 0x409040
push dword [ebp + 0x7c]
call sub.MSVCRT.dll_strcat
push esi
push dword [ebp + 0x7c]
call sub.MSVCRT.dll_strcat
add esp, 0x10
mov eax, dword [ebp + 0x74]
cmp eax, ebx
je 0x403d28
cmp byte [eax], bl
jne 0x403d28
mov dword [ebp + 0x74], ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x74]
push ebx
push dword [ebp + 0x60]
push dword [ebp + 0x4c]
push ebx
push ebx
push dword [ebp + 0x7c]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x403ddc
cmp dword [ebp + 0x5c], ebx
je 0x403d5e
push dword [ebp + 0x5c]
call esi
cmp dword [ebp + 0x58], ebx
je 0x403d68
push dword [ebp + 0x58]
call esi
cmp dword [ebp + 0x54], ebx
je 0x403d72
push dword [ebp + 0x54]
call esi
push dword [ebp + 0x24]
call esi
test byte [ebp + 0x78], 1
je 0x403d88
push 0xffffffffffffffff
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x3c], ebx
je 0x403dd2
mov edi, 0x40b498
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x28
push 0x40b2a0
call fcn.00406d0a
pop ecx
pop ecx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp + 0x20]
mov dword [esi], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x44]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x48]
mov dword [esi + 0x10], eax
jmp 0x403eec
push dword [ebp + 0x20]
call esi
jmp 0x403efa
cmp dword [ebp + 0x5c], ebx
je 0x403de6
push dword [ebp + 0x5c]
call esi
cmp dword [ebp + 0x44], ebx
je 0x403df0
push dword [ebp + 0x44]
call esi
cmp dword [ebp + 0x50], ebx
je 0x403dfa
push dword [ebp + 0x50]
call esi
cmp dword [ebp + 0x58], ebx
je 0x403e04
push dword [ebp + 0x58]
call esi
cmp dword [ebp + 0x54], ebx
je 0x403e0e
push dword [ebp + 0x54]
call esi
cmp dword [ebp + 0x48], ebx
je 0x403e18
push dword [ebp + 0x48]
call esi
test byte [ebp + 0x78], 0x78
jne 0x403f01
cmp dword [ebp + 0x74], ebx
jne 0x403e5b
push edi
call sub.MSVCRT.dll_strlen
lea esi, [eax + edi - 1]
cmp esi, edi
pop ecx
jbe 0x403e5b
cmp byte [esi], 0x5c
je 0x403e40
dec esi
cmp esi, edi
ja 0x403e36
cmp esi, edi
jbe 0x403e5b
push edi
push dword [ebp + 0x7c]
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp + 0x7c]
pop ecx
sub esi, edi
pop ecx
mov byte [esi + eax + 1], bl
mov dword [ebp + 0x74], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x60]
push ebx
push eax
call sub.MSVCRT.dll_memset
movzx eax, word [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x4c], eax
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0x40
mov dword [ebp - 0x54], 0x409000
mov dword [ebp - 0x50], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x403f01
test byte [ebp + 0x78], 1
je 0x403eb2
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x3c], ebx
je 0x403ef1
mov edi, 0x40b498
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x28
push 0x40b2a0
call fcn.00406d0a
pop ecx
pop ecx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0x28]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp + 0x40], esi
jmp 0x403f01
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + 0x40], 1
push dword [ebp + 0x7c]
push ebx
push dword [0x40b1c8]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [ebp + 0x40]
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14