Function at 0x57181c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x571825
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov byte [ebp - 0xd], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040712c
mov eax, dword [ebp - 8]
call fcn.0040712c
mov eax, dword [ebp + 8]
call fcn.0040712c
xor eax, eax
push ebp
push 0x571b5f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 4]
mov edx, 0x571b7c
call fcn.00407c78
mov eax, dword [ebp - 0x78]
call fcn.00566378
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x571af7
lea eax, [ebp - 0x20]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x571aae
call sub.Kernel32.dll_WTSGetActiveConsoleSessionId
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x1c]
push 4
push esi
push 0xc
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_SetTokenInformation
test eax, eax
je 0x571a77
mov ebx, 0x30
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.userenv.dll_CreateEnvironmentBlock
test eax, eax
je 0x571902
or ebx, 0x400
jmp 0x571907
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.00404cdc
mov dword [ebp - 0x64], 0x44
mov eax, 0x571bb8
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x34], 5
mov dword [ebp - 0x38], 1
cmp dword [ebp + 8], 0
jne 0x571945
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041f15c
jmp 0x571950
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
call fcn.00407470
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407a2c
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407a2c
push eax
mov eax, dword [ebp - 4]
call fcn.00407a2c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x57199f
mov eax, 0x571be4
call fcn.00566378
jmp 0x5719d2
mov eax, 0x571c24
call fcn.00566378
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x80]
call fcn.0041e4b0
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x571c68
call fcn.00407c78
mov eax, dword [ebp - 0x7c]
call fcn.00566378
mov eax, dword [ebp - 0x74]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x88]
call fcn.0041e4b0
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 0x571cac
call fcn.00407c78
mov eax, dword [ebp - 0x84]
call fcn.00566378
mov eax, dword [ebp - 0x6c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x90]
call fcn.0041e4b0
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov edx, 0x571cf8
call fcn.00407c78
mov eax, dword [ebp - 0x8c]
call fcn.00566378
test byte [ebp - 0xd], bl
je 0x571a61
jmp 0x571a4f
mov eax, dword [0x59a19c]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x571a61
push 0x64
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x571a3f
cmp dword [ebp - 0x18], 0
je 0x571ae3
mov eax, dword [ebp - 0x18]
push eax
call sub.userenv.dll_DestroyEnvironmentBlock
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x571ae3
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x98]
call fcn.0041e4b0
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x571d48
call fcn.00407c78
mov eax, dword [ebp - 0x94]
call fcn.00566378
jmp 0x571ae3
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xa0]
call fcn.0041e4b0
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov edx, 0x571d8c
call fcn.00407c78
mov eax, dword [ebp - 0x9c]
call fcn.00566378
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x571b2c
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xa8]
call fcn.0041e4b0
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
mov edx, 0x571dc8
call fcn.00407c78
mov eax, dword [ebp - 0xa4]
call fcn.00566378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x571b66
lea eax, [ebp - 0xa8]
mov edx, 0xd
call fcn.004070a8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004070a8
lea eax, [ebp + 8]
call fcn.00407048
ret