Function at 0x546c34
Capabilities:
Connect pipe
Create pipe
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x547001
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x338]
test eax, eax
je 0x546c6d
push eax
call sub.user32.dll_SetForegroundWindow
jmp 0x546fde
mov esi, dword [0x569f1c]
mov esi, dword [esi]
mov ecx, dword [ebx + 0x318]
or edx, 0xffffffff
mov eax, dword [ebx + 0x310]
call dword [esi + 8]
mov eax, ebx
call fcn.00546814
mov esi, eax
mov edi, dword [0x569f1c]
mov edi, dword [edi]
xor ecx, ecx
mov edx, esi
mov eax, dword [ebx + 0x310]
call dword [edi + 8]
test esi, esi
je 0x546cec
mov eax, dword [ebx + 0x304]
push eax
lea edx, [ebp - 0x60]
mov eax, esi
call fcn.004f2058
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 0x547014
call fcn.00405138
mov eax, dword [ebp - 0x5c]
push eax
push 0
mov eax, dword [0x569f1c]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x308]
mov edx, 2
call fcn.004f501c
jmp 0x546fde
mov eax, dword [ebx + 0x328]
test eax, eax
je 0x546d26
push 0
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebx + 0x328]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x32c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebx + 0x328], eax
xor eax, eax
mov dword [ebx + 0x32c], eax
lea eax, [ebx + 0x328]
mov edx, 0x10
call fcn.00407fb8
lea eax, [ebp - 0x44]
mov edx, 0x44
call fcn.00407fb8
mov dword [ebp - 0x44], 0x44
mov word [ebp - 0x14], 1
mov dword [ebp - 0x18], 1
call sub.kernel32.dll_AllocConsole
test eax, eax
jne 0x546d74
mov ecx, 0xb5
mov edx, 0x54706c
mov eax, 0x5470d8
call fcn.0040468c
call sub.kernel32.dll_GetConsoleWindow
mov esi, eax
mov dword [ebx + 0x338], esi
test esi, esi
jne 0x546d99
mov ecx, 0xbc
mov edx, 0x54706c
mov eax, 0x5470d8
call fcn.0040468c
mov eax, ebx
call fcn.00453e2c
push eax
mov eax, dword [ebx + 0x338]
push eax
call sub.user32.dll_SetParent
lea eax, [ebx + 0x328]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x5470ec
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x546ded
mov ecx, 0xc3
mov edx, 0x54706c
mov eax, 0x5470d8
call fcn.0040468c
jmp 0x546fde
call sub.kernel32.dll_FreeConsole
test eax, eax
jne 0x546e0a
mov ecx, 0xc8
mov edx, 0x54706c
mov eax, 0x5470d8
call fcn.0040468c
push 0
push 0
push 0x1000
push 0x1000
push 0xff
push 0
push 0x40000003
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx + 0x330]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x547100
call fcn.0040a708
mov eax, dword [ebp - 0x64]
call fcn.00404bf0
push eax
call sub.kernel32.dll_CreateNamedPipeA
mov esi, eax
cmp esi, 0xffffffff
jne 0x546e6d
mov ecx, 0xcf
mov edx, 0x54706c
mov eax, 0x5470d8
call fcn.0040468c
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x58]
push eax
push esi
call sub.kernel32.dll_ConnectNamedPipe
test eax, eax
jne 0x546eb5
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x546eb5
mov ecx, 0xda
mov edx, 0x54706c
mov eax, 0x5470d8
call fcn.0040468c
push 0xbb8
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x546f25
mov ecx, 0xe7
mov edx, 0x54706c
mov eax, 0x5470d8
call fcn.0040468c
push 0
mov eax, dword [ebx + 0x328]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x328]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x32c]
push eax
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebx + 0x328], eax
xor eax, eax
mov dword [ebx + 0x32c], eax
jmp 0x546fde
mov eax, dword [ebx + 0x31c]
test eax, eax
je 0x546f34
call fcn.004038e0
mov cl, 1
mov dl, 1
mov eax, dword [0x546278]
call fcn.00420cdc
mov edi, eax
mov dword [ebx + 0x31c], edi
mov eax, dword [ebx + 0x300]
mov dword [edi + 0x30], eax
lea eax, [edi + 0x34]
mov edx, dword [ebx + 0x304]
call fcn.00404e98
mov eax, dword [ebx + 0x31c]
add eax, 0x38
mov edx, dword [ebx + 0x308]
call fcn.00404e98
mov eax, dword [ebx + 0x31c]
mov edx, dword [ebx + 0x30c]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ebx
mov edx, dword [ebx + 0x314]
mov dword [eax + 0x44], edx
mov edx, dword [ebx + 0x318]
mov dword [eax + 0x48], edx
mov edx, dword [ebx + 0x324]
mov dword [eax + 0x50], edx
mov edx, dword [ebx + 0x320]
mov dword [eax + 0x4c], edx
mov dword [eax + 0x54], esi
mov byte [eax + 0xf], 0
call fcn.00420ffc
xor edx, edx
mov eax, dword [ebx + 0x2f8]
call fcn.0045a4ec
xor edx, edx
mov eax, dword [ebx + 0x2f8]
call fcn.0045a4ec
xor edx, edx
mov eax, dword [ebx + 0x2f8]
call fcn.0045a4ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547008
lea eax, [ebp - 0x64]
call fcn.00404730
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00404e74
ret