Function at 0x466850
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
mov esi, dword [ebp + 0x28]
push 0xd
push esi
call fcn.004030e0
add esp, 8
cmp eax, 5
je 0x466871
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push esi
call fcn.0040fbb0
push esi
mov ebx, eax
call fcn.00463dc0
push ebx
push str.Starting_local_proxy_command:__s
call fcn.0040df30
mov edi, dword [ebp + 0x24]
mov esi, eax
push 0
push esi
push 0
mov ecx, dword [edi]
push 0
push 2
push edi
mov ecx, dword [ecx]
call ecx
push esi
call fcn.0040e5c0
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x24]
add esp, 0x34
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
push 0
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x4668ff
push edi
push str.Unable_to_create_pipes_for_proxy_command
call fcn.00409d40
push ebx
mov esi, eax
call fcn.0040e5c0
add esp, 0xc
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x466942
push edi
push str.Unable_to_create_pipes_for_proxy_command
call fcn.00409d40
push ebx
mov edi, eax
call fcn.0040e5c0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
test byte [0x4fb630], 2
je 0x466a29
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x18]
call esi
push 0
push 1
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x466983
push 0
push 1
push eax
call esi
xor eax, eax
mov dword [ebp - 0x78], 0x44
mov word [ebp - 0x46], ax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x74], 0
push eax
push 0
push 0
push 0x8000020
push 1
push 0
push 0
push ebx
push 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x4c], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push ebx
call fcn.0040e5c0
add esp, 4
push dword [ebp - 0xc]
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x466a0e
push eax
call esi
push 0
push edi
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.004623c0
add esp, 0x14
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0x46695d
push edi
push str.Unable_to_create_pipes_for_proxy_command
call fcn.00409d40
push ebx
mov edi, eax
call fcn.0040e5c0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret