Function at 0x10009a10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x480
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x47c], eax
mov eax, dword [esp + 0x484]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push ebx
push str._WinSessionThread_CreateProcess_begin_dwSessionID___d_
push 0x80
mov esi, edx
mov dword [esp + 0x28], eax
call fcn.10001d40
xor edi, edi
add esp, 0xc
cmp dword [esi + 0x20c], edi
je 0x10009c7a
push ebx
lea ecx, [esi + 4]
push ecx
call fcn.10009ca0
push eax
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, edi
je 0x10009c64
mov eax, dword [esi + 0x214]
lea edx, [esp + 0x10]
push edx
push 0xf01ff
push ebp
mov dword [esp + 0x1c], edi
call eax
test eax, eax
je 0x10009c45
cmp dword [esp + 0x10], edi
je 0x10009c45
push str.WinSessionThread_CreateProcess_SetTokenInformation_return_value:1
push 0x40
call fcn.10001d40
add esp, 8
push 0x10024394
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10009c07
push 0x44
lea ecx, [esp + 0x34]
push edi
push ecx
mov dword [esp + 0x20], edi
call fcn.10012ec0
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
push str.CreateEnvironmentBlock
push ebx
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x40], str.WinSta0Default
call ebp
push str.DestroyEnvironmentBlock
push ebx
mov esi, eax
call ebp
push str.WinSessionThread_CreateProcess_SetTokenInformation_return_value:4
push 0x40
mov ebp, eax
call fcn.10001d40
add esp, 8
test esi, esi
je 0x10009beb
test ebp, ebp
je 0x10009beb
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x82]
push eax
mov word [esp + 0x84], dx
call fcn.10012ec0
mov ecx, dword [esp + 0x28]
add esp, 0xc
push 0x208
push ecx
lea edx, [esp + 0x80]
push 0x208
push edx
call fcn.1000c384
mov eax, dword [esp + 0x20]
add esp, 0x10
push edi
push eax
lea ecx, [esp + 0x1c]
push ecx
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push edi
push ecx
push 0x400
push edi
push edi
push edi
lea edx, [esp + 0x98]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push str._WinSessionThread_CreateProcess_pid___d__CreateProcessAsUser__err___d__
push 0x80
call fcn.10001d40
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
call ebp
test edi, edi
je 0x10009bfa
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x18]
jmp 0x10009c16
push str._WinSessionThread_CreateProcess_LoadLibrary__GetProcAddress_err__
push 1
call fcn.10001d40
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x18]
jmp 0x10009c16
push str._WinSessionThread_CreateProcess_LoadLibrary__Userenv_err__
push 1
call fcn.10001d40
add esp, 8
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push ebp
mov dword [esp + 0x14], 0
call esi
push edi
push str._WinSessionThread_CreateProcess_ret___d_end___
push 0x80
call fcn.10001d40
add esp, 0xc
mov eax, edi
jmp 0x10009c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinSessionThread_CreateProcess_OpenProcessToken_err_d__
push 1
call fcn.10001d40
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._WinSessionThread_CreateProcess_OpenProcess_err_d__
push 1
call fcn.10001d40
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a328
add esp, 0x480
ret 4