Function at 0x4013f0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a498
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x48b5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00407ce0
lea ecx, [ebp + 0xc]
call fcn.00402540
push eax
lea ecx, [ebp + 8]
call fcn.00402540
push eax
push str.Entered_RunEntryPoint_ExePath:__s__ExtractPath:__s
lea eax, [ebp - 0x18]
push eax
call fcn.00407ec0
add esp, 0x10
lea ecx, [ebp + 0xc]
call fcn.00402540
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401840
mov byte [ebp - 4], 2
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], 0
push 0x46fb90
lea ecx, [ebp + 8]
call fcn.004017e0
test eax, eax
jne 0x40149c
mov byte [ebp - 0x1d], 0
jmp 0x4016c6
push 0x10
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0043ada0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.0043ada0
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea ecx, [ebp + 8]
call fcn.00402540
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00407ec0
add esp, 8
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 4
push 1
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00402540
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x401524
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process_creation_failure._Errorcode:__d
lea eax, [ebp - 0x18]
push eax
call fcn.00407ec0
add esp, 0xc
mov eax, dword [ebp - 0x34]
push eax
push 0
push 0x28
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x1c]
call fcn.00401a10
test eax, eax
je 0x401570
push 0x46fb38
lea ecx, [ebp - 0x1c]
call fcn.00401a10
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401920
push str.virtualapps.dll
lea ecx, [ebp - 0x1c]
call fcn.00401a10
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401920
mov dword [ebp - 0x94], 0x16
mov dword [ebp - 0x98], 4
push 4
push 0x1000
lea ecx, [ebp - 0x1c]
call fcn.00401a10
add eax, 1
push eax
push 0
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x8c], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 0x94]
push eax
push 0
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x90], eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.00401a10
push eax
lea ecx, [ebp - 0x1c]
call fcn.004019f0
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x368], 0x10001
lea eax, [ebp - 0x368]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x368], 0x10001
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x36c]
push ecx
lea edx, [ebp - 0x384]
push edx
call fcn.00401730
push 0
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x384]
push ecx
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x368]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0xffffffff
jne 0x4016c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process_resumption_failure:_Error_code:__d
lea eax, [ebp - 0x18]
push eax
call fcn.00407ec0
add esp, 0xc
push str.RunEnryPoint_exited
lea eax, [ebp - 0x18]
push eax
call fcn.00407ec0
add esp, 8
mov al, byte [ebp - 0x1d]
mov byte [ebp - 0x3c9], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004018c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov al, byte [ebp - 0x3c9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043acad
mov esp, ebp
pop ebp
ret 0xc