Function at 0x402f00
Capabilities:
Create process on windows
Create process suspended
Link many functions at runtime
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x40f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x260]
push edi
mov edi, dword [ebp + 8]
push 0x44
push 0
push eax
mov dword [ebp - 0x1e0], edi
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x88], 0x500
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x260], 0x44
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x403465
push str.CreateRestrictedToken
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1ec], eax
test eax, eax
je 0x403465
lea eax, [ebp - 0x1f0]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x40f200]
push str._s:_could_not_open_process_token:_error_code__lu_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x8c]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x208], xmm0
call esi
test eax, eax
je 0x40344e
lea eax, [ebp - 0x200]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x223
push 0x20
push 2
lea eax, [ebp - 0x8c]
push eax
call esi
test eax, eax
je 0x40344e
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 2
push 1
push dword [ebp - 0x1f0]
call dword [ebp - 0x1ec]
push dword [ebp - 0x200]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edi, eax
call esi
push dword [ebp - 0x208]
call esi
push dword [ebp - 0x1f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x4030b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x40f200]
push str._s:_could_not_create_restricted_token:_error_code__lu_n
jmp 0x402fb6
push dword [ebp - 0x1e8]
call fcn.004056d0
mov ebx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x260]
add esp, 4
push ebx
push eax
push 0
push 0
push 4
push 1
push 0
push 0
push dword [ebp - 0x1e0]
push 0
push dword [ebp - 0x1e8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push str.KERNEL32.DLL
mov dword [ebp - 0x1f4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403351
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsProcessInJob
push edi
call esi
push str.CreateJobObjectA
push edi
mov dword [ebp - 0x1dc], eax
call esi
push str.SetInformationJobObject
push edi
mov dword [ebp - 0x1e4], eax
call esi
push str.AssignProcessToJobObject
push edi
mov dword [ebp - 0x1e0], eax
call esi
push str.QueryInformationJobObject
push edi
mov dword [ebp - 0x1ec], eax
call esi
mov ecx, eax
mov eax, dword [ebp - 0x1dc]
test eax, eax
je 0x403351
mov esi, dword [ebp - 0x1e4]
test esi, esi
je 0x403351
cmp dword [ebp - 0x1e0], 0
je 0x403351
cmp dword [ebp - 0x1ec], 0
je 0x403351
test ecx, ecx
je 0x403351
lea ecx, [ebp - 0x1f8]
push ecx
push 0
push dword [ebx]
call eax
test eax, eax
je 0x40341b
cmp dword [ebp - 0x1f8], 0
jne 0x40341b
push dword [ebx + 8]
lea eax, [ebp - 0x84]
push str.PostgreSQL__lu
push eax
call fcn.004074b0
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push 0
call esi
mov esi, eax
mov dword [ebp - 0x1dc], esi
test esi, esi
je 0x40341b
push 0x30
lea eax, [ebp - 0x1d8]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x1e4], 0
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x20c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c8], 0x420
movdqu xmmword [ebp - 0x21c], xmm0
push 0x30
push eax
push 2
push esi
mov dword [ebp - 0x1b4], 0x20
call dword [ebp - 0x1e0]
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x1e4], 0xde
je 0x403309
xor eax, eax
mov dword [ebp - 0x1a8], 0x11c
push 0xfe
push eax
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
call sub.MSVCR120.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a4], 6
xor ecx, ecx
mov dword [ebp - 0x1a0], 1
push eax
mov word [ebp - 0x94], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov esi, dword [ebp - 0x1dc]
test eax, eax
jne 0x403309
or dword [ebp - 0x1e4], 1
push 4
lea eax, [ebp - 0x1e4]
push eax
push 4
push esi
call dword [ebp - 0x1e0]
mov eax, dword [ebp - 0x1e8]
push 0x14
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x21c]
push eax
push 5
push esi
mov dword [ebp - 0x21c], 5
call dword [ebp - 0x1e0]
push dword [ebx]
push esi
call dword [ebp - 0x1ec]
jmp 0x40341b
xor eax, eax
mov dword [ebp - 0x1a8], 0x11c
push 0xfe
push eax
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0
call sub.MSVCR120.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a4], 5
xor ecx, ecx
mov dword [ebp - 0x1a0], 1
push eax
mov word [ebp - 0x94], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x40341b
push dword [0x40f200]
push str._s:_WARNING:_could_not_locate_all_job_object_functions_in_system_API_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
push dword [ebp - 0x1e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1f4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x40f200]
push str._s:_could_not_allocate_SIDs:_error_code__lu_n
jmp 0x402fb6
push dword [0x40f200]
push str._s:_WARNING:_cannot_create_restricted_tokens_on_this_platform_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call fcn.00401020
add esp, 8
test ebx, ebx
je 0x40348c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409cf2
mov esp, ebp
pop ebp
ret