Function at 0x402b82
Capabilities:
Connect pipe
Create pipe
Create process on windows
Read file on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x407028]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x8c
mov eax, 0x404727
call fcn.00404692
mov eax, dword [ebp + 0x80c]
xor edi, edi
push edi
push edi
mov ebx, 0x800
push ebx
push ebx
xor esi, esi
inc esi
push esi
push 6
push 0x40000003
push str..pipeBC939258_EBDE_4244_BC11_14FF65727402
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x402be2
xor al, al
jmp 0x402e96
call fcn.004035d9
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push str.DTProHlp.exe
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
push 0x38
lea eax, [ebp - 0x94]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x98], 0x3c
mov dword [ebp - 0x8c], str.open
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x94], 0x40
mov byte [ebp - 0xd], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402e63
cmp dword [ebp - 0x60], edi
je 0x402e63
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x50], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x58], eax
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
and dword [ebp - 0x1c], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x402cb9
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x402ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x402cd5
cmp eax, 0x3e5
jne 0x402e63
mov edi, esi
jmp 0x402ce6
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x402e63
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.MSVCR80.dll_memcpy_s]
and dword [ebp - 0x28], 0
add eax, 0x14
mov dword [ebp - 0x24], eax
push 0x14
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp]
push ebx
push eax
call esi
push 4
push dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
push ebx
push eax
call esi
mov esi, dword [ebp - 0x2c]
add esp, 0x20
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x48]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x402e5a
test edi, edi
je 0x402d50
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov esi, eax
test esi, esi
je 0x402e63
mov eax, dword [ebp - 0x1c]
sub eax, 0
je 0x402de3
dec eax
je 0x402d83
dec eax
jne 0x402e63
test esi, esi
je 0x402e63
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x402e63
mov dword [ebp - 0x1c], 1
jmp 0x402dea
test esi, esi
je 0x402e63
cmp dword [ebp - 0x14], 0
je 0x402e63
cmp dword [ebp - 0x28], 0
jne 0x402dca
cmp dword [ebp - 0x14], 4
jne 0x402e63
mov eax, dword [0x407474]
test eax, eax
je 0x402dbf
push 0
push dword [ebp]
push 0x407
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
jmp 0x402dea
cmp dword [ebp - 0x14], 1
jne 0x402e63
mov al, byte [ebp]
mov byte [ebp - 0xd], al
mov dword [ebp - 0x1c], 3
jmp 0x402dea
mov dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
dec eax
je 0x402e1e
dec eax
jne 0x402e57
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x402e42
cmp dword [ebp - 0x14], edi
jne 0x402e63
xor edi, edi
jmp 0x402d18
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x402e42
cmp dword [ebp - 0x14], 0
je 0x402e63
jmp 0x402e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x402e63
xor edi, edi
inc edi
jmp 0x402d18
dec eax
jne 0x402e63
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x402e7b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x60], 0
je 0x402e8a
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00403a4b
add ebp, 0x804
leave
ret