Function at 0x10003c90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x38]
mov dword [esp + 0x34], 0x44
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x84]
xor ebp, ebp
xor edi, edi
cmp eax, 0xffffffff
mov esi, 1
jne 0x10003d28
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
push ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x10003d28
mov ebx, dword [esp + 0x10]
xor eax, eax
cmp ebx, ebp
mov ebp, dword [esp + 0x18]
jbe 0x10003d20
lea ecx, [ebp + 8]
mov edx, dword [ecx]
test edx, edx
je 0x10003d12
cmp edx, esi
jne 0x10003d08
mov edx, dword [ecx - 8]
mov dword [esp + 0x84], edx
inc eax
add ecx, 0xc
cmp eax, ebx
jb 0x10003cf4
jmp 0x10003d20
lea eax, [eax + eax*2]
mov ecx, dword [ebp + eax*4]
mov dword [esp + 0x84], ecx
push ebp
call sub.WTSAPI32.dll_WTSFreeMemory
xor ebp, ebp
mov eax, dword [esp + 0x84]
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov dword [esp + 0x3c], str.WinSta0Default
mov word [esp + 0x64], si
mov dword [esp + 0x60], esi
mov dword [esp + 0x14], ebp
dec edx
and edx, eax
lea eax, [esp + 0x14]
push eax
push 0xf01ff
mov dword [esp + 0x8c], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10003f70
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push esi
push esi
push ebp
push 0x2000000
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x10003dac
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x88]
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
add esi, 0x220
push esi
push ebp
push 0xc30
push ebp
push ebp
push ebp
push ebx
push ebp
mov dword [esp + 0x40], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push ecx
call ebp
test eax, eax
jne 0x10003f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x10003ea9
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x1e
mov dword [esp + 0x18], eax
jle 0x10003e68
mov eax, dword [esp + 0x84]
test eax, eax
je 0x10003ea9
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x88]
push edx
push 0xc
push eax
mov dword [esp + 0x94], 0
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x10003f13
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x21c]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10003f13
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret 0xc
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push ecx
push esi
push 0
push 0xc30
push 0
push 0
push 0
push ebx
push edx
push eax
call ebp
mov edi, eax
test edi, edi
jne 0x10003f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10003f58
mov eax, dword [esp + 0x84]
test eax, eax
je 0x10003f58
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x88]
push ecx
push 0xc
push edx
mov dword [esp + 0x94], edi
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x10003f58
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
push 0
push 0xc30
push 0
push 0
push 0
push ebx
push 0
push edx
call ebp
test eax, eax
je 0x10003df0
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov edi, 1
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
jmp 0x10003f5e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10003f69
push eax
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0xc