Function at 0x4108a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5778c8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x629f58]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
sub esp, 0x18
movups xmm0, xmmword [ebp + 8]
mov eax, esp
push str.UserShellExecuteEx:__s
movups xmmword [eax], xmm0
movq xmm0, qword [ebp + 0x18]
movq qword [eax + 0x10], xmm0
call fcn.004048f0
movups xmm0, xmmword [ebp + 0x20]
add esp, 4
mov eax, esp
push str.UserShellExecuteEx:__s
movups xmmword [eax], xmm0
movq xmm0, qword [ebp + 0x30]
movq qword [eax + 0x10], xmm0
call fcn.004048f0
push str.______________________________________WTSQueryUserToken__________________________________
call fcn.00404700
add esp, 0x20
mov dword [ebp - 0x40], 0
lea eax, [ebp + 8]
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.00403e40
mov byte [ebp - 4], 2
xor ecx, ecx
mov edi, dword [ebp - 0x18]
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x30], ecx
call fcn.004114c7
mov esi, eax
mov dword [ebp - 0x3c], eax
add esp, 4
test esi, esi
je 0x41097a
push dword [ebp - 0x30]
push 0
push esi
call fcn.00551350
add esp, 0xc
jmp 0x41097f
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], esi
lea eax, [edi*2 + 2]
mov byte [ebp - 4], 3
push eax
push 0
push esi
call fcn.00551350
add esp, 0xc
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, esi
cmovae ecx, dword [ebp - 0x28]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4109b0
mov eax, dword [ebp + 0x30]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x30], ecx
call fcn.004114c7
mov edi, eax
mov dword [ebp - 0x44], eax
add esp, 4
test edi, edi
je 0x4109f9
push dword [ebp - 0x30]
push 0
push edi
call fcn.00551350
add esp, 0xc
jmp 0x4109fe
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x30]
lea eax, [eax*2 + 2]
push eax
push 0
push edi
call fcn.00551350
add esp, 0xc
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
mov edx, edi
cmovae ecx, dword [ebp + 0x20]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x410a30
push str.ShellExecuteManage::UserShellExecute
call fcn.004048f0
push esi
push str.Session0ShellExecute_CreateProcessAsUser_cmd_line:_s
call fcn.00404560
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
push esi
push str.WTSGetActiveConsoleSessionId_:__d
call fcn.00404700
add esp, 8
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410ba0
call esi
push eax
push str.WTSQueryUserToken_getlasterror_:__d
call fcn.00404700
add esp, 8
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
xor edi, edi
cmp dword [ebp - 0x38], edi
jbe 0x410b3c
xor esi, esi
mov eax, dword [ebp - 0x34]
push dword [esi + eax + 8]
push dword [esi + eax]
push dword [esi + eax + 4]
push str.WTSQueryUserToken_pWinStationName:_s__sessionid:__d__State_:_d
call fcn.00404700
mov eax, dword [ebp - 0x34]
add esp, 0x10
cmp dword [esi + eax + 8], 0
jne 0x410b05
lea ecx, [ebp - 0x2c]
push ecx
push dword [esi + eax]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x410b63
push str.WTSQueryUserToken_errror_1
call fcn.00404700
add esp, 4
mov eax, dword [ebp - 0x34]
cmp dword [esi + eax + 8], 1
jne 0x410b2d
lea ecx, [ebp - 0x2c]
push ecx
push dword [esi + eax]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x410b80
push str.WTSQueryUserToken_errror_2
call fcn.00404700
add esp, 4
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0x38]
jb 0x410ac2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push dword [ebp - 0x34]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test edi, edi
jne 0x410b9d
push dword [ebp - 0x38]
push str.WTSQueryUserToken__is_FALSE_dont_popup_windows._Romote_User_count__d
call fcn.00404700
mov esi, dword [ebp - 0x3c]
add esp, 8
jmp 0x410c51
mov edi, 1
push str.WTSQueryUserToken_success_1
mov dword [ebp - 0x40], edi
call fcn.00404700
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
jmp 0x410b3e
mov edi, 1
push str.WTSQueryUserToken_success_2
mov dword [ebp - 0x40], edi
call fcn.00404700
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
jmp 0x410b3e
mov edi, dword [ebp - 0x44]
push 0x44
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00551350
add esp, 0xc
mov dword [ebp - 0xa0], 0x44
mov eax, 5
mov dword [ebp - 0x74], 1
mov word [ebp - 0x70], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x2c]
movups xmmword [ebp - 0x5c], xmm0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x410c06
call esi
push eax
push str.CreateEnvironmentBlock_Failed__d
call fcn.00404700
mov esi, dword [ebp - 0x3c]
add esp, 8
mov edi, dword [ebp - 0x40]
jmp 0x410c51
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
push dword [ebp - 0x30]
push 0x430
push 0
push 0
push 0
push edi
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x410c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser_Failed__d
call fcn.00404700
mov edi, dword [ebp - 0x40]
add esp, 8
jmp 0x410c51
mov edi, 1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x410c64
cmp eax, 0xffffffff
je 0x410c64
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x410c74
push eax
call fcn.004114c2
add esp, 4
test esi, esi
je 0x410c81
push esi
call fcn.004114c2
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x410cbb
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410cb1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d5a
push ecx
push edx
call fcn.0054b294
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x410cf1
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410ce7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d5f
push edx
push ecx
call fcn.0054b294
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x410d3b
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410d31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d64
push edx
push ecx
call fcn.0054b294
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054b283
mov esp, ebp
pop ebp
ret 0x30
call fcn.00555009
call fcn.00555009
call fcn.00555009
int3