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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x586f0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 0
lea ecx, [ebp - 0x40]
push ecx
lea edi, [esi + 0x10]
push edi
lea ebx, [esi + 0xc]
push ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40933b
cmp dword [0x58a204], eax
je 0x409327
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_CreatePipe:__d_n
call fcn.00401113
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
mov edx, dword [0x58a5d8]
push edx
push str..pipe_ncat__d
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00416f20
add esp, 0x10
cmp dword [0x58a208], 1
jle 0x40936f
lea ecx, [ebp - 0x24]
push ecx
push str.Creating_named_pipe___s__n
call fcn.00401113
add esp, 8
lea edx, [ebp - 0x40]
push edx
push 0x3e8
push 0x1000
push 0x1000
push 1
push 0
push 0x40000001
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4093dc
cmp dword [0x58a204], eax
je 0x4093b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_CreateNamedPipe:__d_n
call fcn.00401113
add esp, 8
mov ecx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [edi]
push edx
call esi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push 0
push 0x40000080
push 3
lea eax, [ebp - 0x40]
push eax
push 0
push 0x40000000
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40942b
mov edx, dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [edi]
push eax
call ebx
mov ecx, dword [esi + 0x14]
push ecx
call ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
inc dword [0x58a5d8]
push 0
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov eax, dword [esi + 0x14]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x44
lea ecx, [ebp - 0x88]
push 0
push ecx
call fcn.004bfd10
mov edx, dword [ebx]
mov eax, dword [esi + 0x18]
add esp, 0xc
push 0xfffffffffffffff4
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
or dword [ebp - 0x5c], 0x100
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x48], eax
xor eax, eax
lea edx, [ebp - 0x88]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409502
cmp dword [0x58a204], eax
je 0x4094d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_CreateProcess:__d_n
call fcn.00401113
add esp, 8
mov ecx, dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [edi]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
call ebx
mov ecx, dword [esi + 0x18]
push ecx
call ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004bf32e
mov esp, ebp
pop ebp
ret