Function at 0x41d730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x44
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x468]
push 0
push eax
mov dword [ebp - 0x408], 0
call fcn.0049d330
push 0x400
lea eax, [ebp - 0x404]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x424], xmm0
call fcn.0049d330
lea eax, [ebp - 0x408]
push eax
push str.explorer.exe
push dword [ebp + 8]
call fcn.0041e1c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x24
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
jne 0x41d84a
call ebx
push eax
push dword [ebp + 8]
push str.Get___d__Session_Token_Fail:_d__r_n
call fcn.00427f40
add esp, 0xc
push dword [ebp + 0xc]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x414], eax
cmp eax, 0xffffffff
je 0x41d811
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x414]
call edi
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x41d87a
call ebx
mov esi, eax
push esi
push dword [ebp + 0xc]
push str.Get_Process___d__Token_Fail_:__d__r_n
call fcn.00427f40
push esi
push str.Create_Session_Process_Fail_:__d
push dword [ebp - 0x40c]
call fcn.004178d0
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x41d87a
push str.Get_Session_Token_Fail
push dword [ebp - 0x40c]
call fcn.004178d0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x468], 0x44
mov dword [ebp - 0x460], str.winsta0default
jb 0x41d896
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004a4c93
add esp, 0xc
mov dword [ebp - 0x410], 0
lea eax, [ebp - 0x410]
push 0
push dword [ebp - 0x408]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push 0
push dword [ebp - 0x410]
lea eax, [ebp - 0x404]
push 0x420
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x41da32
call ebx
mov esi, eax
push esi
push dword [ebp + 8]
push str.Create___d__Session_Process_Fail:_d__r_n
call fcn.00427f40
add esp, 0xc
cmp esi, 0x2e4
jne 0x41da32
push dword [ebp - 0x408]
call edi
mov dword [ebp - 0x414], 1
mov dword [ebp - 0x40c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x40c]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
setne cl
test eax, eax
je 0x41d986
lea eax, [ebp - 0x408]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
setne cl
test cl, cl
je 0x41d9b7
mov esi, dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
lea eax, [ebp + 8]
push 4
push eax
push 0xc
push dword [ebp - 0x408]
call esi
test eax, eax
je 0x41d9b7
push 4
lea eax, [ebp - 0x414]
push eax
push 0x1a
push dword [ebp - 0x408]
call esi
push dword [ebp - 0x40c]
call edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push 0
push dword [ebp - 0x410]
lea eax, [ebp - 0x404]
push 0x420
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x41da32
call ebx
push eax
push dword [ebp + 8]
push str.Create___d__Session_Process_Fail:_d__r_n
call fcn.00427f40
add esp, 0xc
push dword [ebp - 0x408]
call edi
push dword [ebp - 0x410]
call sub.USERENV.dll_DestroyEnvironmentBlock
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x410]
call sub.USERENV.dll_DestroyEnvironmentBlock
push 0xbb8
push dword [ebp - 0x424]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push eax
push dword [ebp - 0x41c]
push str.WaitForInputIdle_Process___d__Return:_d__r_n
call fcn.00427f40
add esp, 0xc
push dword [ebp - 0x420]
call edi
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x408]
call edi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a04a
mov esp, ebp
pop ebp
ret