Function at 0x4b1c71
Capabilities:
Check for protected handle exception
Create pipe
Create process on windows
Create process suspended
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x11d]
push ebx
sub esp, 0x1dc
mov dword [esp + 8], 0x105
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
test eax, eax
jne 0x4b1cb0
mov dword [esp + 4], str.ERROR:_could_get_path_to_myself
jmp 0x4b1e65
lea eax, [ebp - 0x180]
mov dword [ebp - 0x180], 0xc
mov dword [esp + 8], eax
lea eax, [ebp - 0x1a0]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x17c], 0
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
jne 0x4b1d0d
mov dword [esp + 4], str.ERROR:_CreatePipe_failed
jmp 0x4b1e65
mov eax, dword [ebp - 0x1a0]
mov dword [esp + 8], 0
lea ebx, [ebp - 0x164]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x12c], eax
mov dword [esp], 0xfffffff5
call edx
lea ecx, [ebp - 0x128]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], esi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
call edi
mov edx, dword [ebp - 0x1ac]
sub esp, 0x1c
mov dword [esp], 0xfffffff4
call edx
push edx
lea edx, [ebp - 0x124]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], esi
mov esi, str.winbox__
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
call edi
lea eax, [ebp - 0x174]
lea edi, [ebp - 0x189]
mov ecx, 9
rep movsb byte es:[edi], byte [esi]
sub esp, 0x1c
or dword [ebp - 0x138], 0x100
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x189]
mov dword [esp + 4], eax
lea eax, [ebp - 0x11d]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
jne 0x4b1e80
mov dword [esp + 4], str.ERROR:_could_not_start_process
mov dword [esp], 0x569500
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
xor eax, eax
jmp 0x4b2007
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x194]
lea edi, [ebp - 0x198]
mov dword [esp], eax
call fcn.005070c0
mov eax, dword [ebp - 0x190]
sub eax, dword [ebp - 0x194]
mov dword [ebp - 0x198], 0
push edx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x19c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 4
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x4b1f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.write_len_failed
mov dword [esp], 0x569500
mov ebx, eax
call fcn.004c8bb5
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004c8d08
mov dword [esp], eax
call fcn.004c8fa3
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x190]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1a0]
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x4b1f7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.write_msg_failed
mov dword [esp], 0x569500
mov ebx, eax
call fcn.004c8bb5
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004c8d08
mov dword [esp], eax
call fcn.004c8fa3
mov eax, dword [ebp - 0x190]
sub eax, dword [ebp - 0x194]
cmp dword [ebp - 0x198], eax
jae 0x4b1fea
mov dword [esp + 4], str.partial_write
mov dword [esp], 0x569500
call fcn.004c8bb5
mov edx, dword [ebp - 0x198]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004c8c02
mov dword [esp + 4], str.__size
mov dword [esp], eax
call fcn.004c8bb5
mov edx, eax
mov eax, dword [ebp - 0x190]
sub eax, dword [ebp - 0x194]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004c8c02
mov dword [esp], eax
call fcn.004c8fa3
mov eax, dword [ebp - 0x1a0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x194]
push eax
call fcn.004c7456
mov al, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret