Function at 0x4107b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420ad8
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Kernel32.dll
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call esi
push str.wtsapi32.dll
mov dword [esp + 0x20], eax
call esi
xor ebx, ebx
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
push 0xc
push str.explorer.exe
lea ecx, [esp + 0xd4]
mov dword [esp + 0x100], ebx
call fcn.00401c30
lea esp, [esp]
cmp dword [esp + 0xe4], 0x10
mov ecx, dword [esp + 0xd0]
jae 0x410878
lea ecx, [esp + 0xd0]
call fcn.00410e40
cmp eax, 1
je 0x41089c
push str.waiting_for_login_user.
call fcn.004124a0
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410860
push str.Exit_login_user.
call fcn.004124a0
mov eax, dword [esp + 0x20]
add esp, 4
cmp esi, ebx
je 0x410de7
cmp eax, ebx
je 0x41091f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push eax
call esi
mov edx, dword [esp + 0x14]
push str.WTSQueryUserToken
push edx
mov dword [esp + 0x18], eax
call esi
mov edi, eax
mov eax, dword [esp + 0x14]
push str.WTSEnumerateSessionsA
push eax
call esi
mov ecx, dword [esp + 0x14]
push str.WTSFreeMemory
push ecx
mov dword [esp + 0x20], eax
call esi
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], ebx
je 0x41090d
cmp dword [esp + 0x10], ebx
je 0x41090d
cmp edi, ebx
je 0x41090d
cmp eax, ebx
jne 0x41091f
push str.GetProcAddress_pointer_is_NULL
call fcn.00412560
add esp, 4
jmp 0x410df2
push str.it_run_only_XP_or_Vista_and_DCSMGR_call_process.
call fcn.004124a0
add esp, 4
call dword [esp + 0x10]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410945
push eax
push str.dwSessionid___d
call fcn.00412560
add esp, 8
push esi
push str.dwSessionid___d
call fcn.004124a0
push str.pfnWTSQueryUserToken_______________1
mov dword [esp + 0x38], ebx
call fcn.004124a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pfnWTSQueryUserToken______________0
call fcn.004124a0
add esp, 4
push edi
push str.pfnWTSQueryUserToken_____d
call fcn.004124a0
add esp, 8
lea eax, [esp + 0x2c]
push eax
push esi
call edi
push str.pfnWTSQueryUserToken__
mov esi, eax
call fcn.004124a0
add esp, 4
cmp esi, ebx
jne 0x410a6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQueryUserToken_error_GetLastError___d.
call fcn.00412560
add esp, 8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
push 1
push ebx
push ebx
mov dword [esp + 0x24], ebx
call dword [esp + 0x2c]
cmp eax, ebx
jne 0x410a02
push str.WTSEnumerateSessions_failed.
call fcn.00412560
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
lea ecx, [esp + 0xcc]
call fcn.00401570
jmp 0x410e0c
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x10], ebx
jbe 0x410a63
xor esi, esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + eax]
lea edx, [esp + 0x2c]
push edx
push ecx
call edi
cmp eax, 1
jne 0x410a3d
mov edx, dword [esp + 0x30]
mov eax, dword [esi + edx]
push eax
push str.find_out_the_token_dwSessionid___d
call fcn.004124a0
jmp 0x410a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQueryUserToken_error_GetLastError___d.
call fcn.00412560
mov eax, dword [esp + 0x20]
inc eax
add esp, 8
add esi, 0xc
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x10]
jb 0x410a15
mov ecx, dword [esp + 0x30]
push ecx
call dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
push 1
push 1
push ebx
push 0x2000000
push eax
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.DuplicateTokenEx__
call fcn.004124a0
mov ecx, dword [esp + 0x2c]
add esp, 4
push ebx
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0x30
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x410ac2
mov dword [esp + 0x20], 0x430
jmp 0x410ad3
push str.CreateEnvironmentBlock___Fail...
mov dword [esp + 0x28], ebx
call fcn.004124a0
add esp, 4
push str.CreateEnvironmentBlock__
call fcn.004124a0
add esp, 4
push ebx
push 0x423d93
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.00401c30
mov edi, dword [esp + 0x34]
mov eax, edi
mov byte [esp + 0xf8], 1
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410b20
sub eax, esi
push eax
push edi
lea ecx, [esp + 0x9c]
call fcn.00401c30
xor eax, eax
push 0x44
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.004183e0
add esp, 0xc
push str.Call_CreateProcessAsUser___start...
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x58], str.winsta0default
call fcn.004124a0
add esp, 4
push ebx
push 0x423d93
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
call fcn.00401c30
mov edi, dword [esp + 0x38]
mov eax, edi
mov byte [esp + 0xf8], 2
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410bb2
sub eax, esi
push eax
push edi
lea eax, [esp + 0xb8]
call fcn.00401740
push ebx
lea ecx, [esp + 0xb4]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x9c]
call fcn.00401b40
mov eax, dword [esp + 0x98]
mov edi, 0x10
cmp dword [esp + 0xac], edi
jae 0x410bfd
lea eax, [esp + 0x98]
push eax
push str.Call_CreateProcessAsUser___and_cmmd_is__s
call fcn.004124a0
mov eax, dword [esp + 0xa0]
add esp, 8
cmp dword [esp + 0xac], edi
jae 0x410c22
lea eax, [esp + 0x98]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push edx
mov edx, dword [esp + 0x38]
push ecx
push ebx
push ebx
push ebx
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x410cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:_CreateProcessAsUser_error..._d
call fcn.00412620
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esp, 8
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [esp + 0xc8], edi
jb 0x410c9b
mov eax, dword [esp + 0xb4]
push eax
call fcn.0041288e
add esp, 4
mov esi, 0xf
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
cmp dword [esp + 0xac], edi
jb 0x410cce
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0041288e
add esp, 4
cmp dword [esp + 0xe4], edi
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jmp 0x410dfa
push str.Call_CreateProcessAsUser___sucess_start...
call fcn.004124a0
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], edi
jae 0x410d32
lea eax, [esp + 0x98]
push 0x4240c0
push eax
push str.Run__s_and__s_wait__SUC...
call fcn.004124a0
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esp, 0xc
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push str.runProcessAsUser_leave
call fcn.004124a0
add esp, 4
cmp dword [esp + 0xc8], edi
jb 0x410d7f
mov edx, dword [esp + 0xb4]
push edx
call fcn.0041288e
add esp, 4
mov esi, 0xf
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
cmp dword [esp + 0xac], edi
jb 0x410db2
mov eax, dword [esp + 0x98]
push eax
call fcn.0041288e
add esp, 4
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esp + 0xe4], edi
jb 0x410de0
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0041288e
add esp, 4
mov eax, 1
jmp 0x410e0e
cmp eax, ebx
je 0x410df2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0xe4], 0x10
jb 0x410e0c
mov edx, dword [esp + 0xd0]
push edx
call fcn.0041288e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00412899
mov esp, ebp
pop ebp
ret