Function at 0x649930
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create reverse shell
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
call fcn.004105cc
xor eax, eax
push ebp
push 0x649c9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x64972c]
call fcn.00409618
mov esi, eax
lea eax, [ebp - 0x10]
mov edx, esi
test edx, edx
je 0x64997a
sub edx, 0xfffffff8
call fcn.00410570
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp byte [eax + 4], 0
je 0x6499c4
push 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x6499c4
push ebp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.006497e0
pop ecx
mov ebx, eax
jmp 0x649c77
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0
jne 0x649a33
push 0
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4bc05c]
call fcn.004bc6bc
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x78], edi
mov edx, esi
test edx, edx
je 0x6499f2
sub edx, 0xfffffff0
mov eax, edi
call fcn.004bc830
mov eax, dword [ebp - 0x18]
add eax, 0x18
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x1c
push eax
push 0
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0x68]
mov dl, 1
mov eax, dword [0x4bc05c]
call fcn.004bc6bc
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x7c], edi
mov edx, esi
test edx, edx
je 0x649a2c
sub edx, 0xfffffff4
mov eax, edi
call fcn.004bc830
push 0
push 0x68ebfc
mov eax, dword [ebp - 0x18]
add eax, 0x18
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x14
push eax
call sub.kernel32.dll_CreatePipe
push 0
push 0x68ebfc
mov eax, dword [ebp - 0x18]
add eax, 0x20
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x1c
push eax
call sub.kernel32.dll_CreatePipe
push 0
push 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
push eax
call sub.kernel32.dll_SetHandleInformation
push 0
push 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_SetHandleInformation
mov eax, dword [ebp - 0x18]
add eax, 0x24
xor ecx, ecx
mov edx, 0x44
call fcn.00408458
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x24], 0x44
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x50], 0x101
mov eax, dword [ebp - 0x18]
mov word [eax + 0x54], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x64], edx
mov eax, dword [ebp - 0x18]
add eax, 0x68
xor ecx, ecx
mov edx, 0x10
call fcn.00408458
mov eax, dword [ebp - 0x18]
add eax, 0x68
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x24
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
call fcn.0040bfcc
push eax
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
push 0x649cc0
mov eax, dword [ebp - 0x18]
push dword [eax + 8]
push 0x649cd0
mov eax, dword [ebp - 0x18]
push dword [eax + 0xc]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040c2b8
mov eax, dword [ebp - 0x1c]
call fcn.0040bfcc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x649c4b
mov eax, dword [ebp - 0x18]
add eax, 0x6c
call fcn.0061a53c
mov eax, dword [ebp - 0x18]
add eax, 0x14
call fcn.0061a53c
mov eax, dword [ebp - 0x18]
add eax, 0x20
call fcn.0061a53c
mov eax, dword [ebp - 0x18]
cmp byte [eax + 4], 0
je 0x649b9b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x7c]
call fcn.004bcc9c
push ebp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.006497e0
pop ecx
mov ebx, eax
jmp 0x649c77
lea eax, [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
call fcn.004bc778
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
call fcn.004bcc9c
xor eax, eax
push ebp
push 0x649c3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 4]
call fcn.0061a4c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x649c42
mov eax, dword [ebp - 0x18]
add eax, 0x18
call fcn.0061a53c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
call fcn.004bccb8
mov eax, dword [ebp - 0x18]
add eax, 0x1c
call fcn.0061a53c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x18]
add eax, 0x68
call fcn.0061a53c
pop eax
jmp eax
mov eax, dword [ebp - 0x18]
add eax, 0x14
call fcn.0061a53c
mov eax, dword [ebp - 0x18]
add eax, 0x18
call fcn.0061a53c
mov eax, dword [ebp - 0x18]
add eax, 0x1c
call fcn.0061a53c
mov eax, dword [ebp - 0x18]
add eax, 0x20
call fcn.0061a53c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x649ca6
lea eax, [ebp - 0x1c]
call fcn.0040b324
lea eax, [ebp - 0x10]
call fcn.00410558
lea eax, [ebp + 8]
call fcn.00410558
pop eax
jmp eax