Function at 0x4688c0
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffff4c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10b4], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405584
xor eax, eax
push ebp
push 0x468b6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call sub.kernel32.dll_WTSGetActiveConsoleSessionId
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push 0
call sub.wtsapi32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x4689bb
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
dec esi
test esi, esi
jl 0x4689bb
inc esi
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.advapi32.dll_ConvertSidToStringSidA
mov dword [ebp - 0x40], 0x800
mov dword [ebp - 0x44], 0x800
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x10ae]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x8ad]
push eax
mov eax, dword [ebx + 0xc]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidA
lea eax, [ebp - 0x10b4]
lea edx, [ebp - 0x10ae]
mov ecx, 0x801
call fcn.00405374
mov eax, dword [ebp - 0x10b4]
mov edx, 0x468b88
call fcn.0040552c
je 0x4689b1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x4689b1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x4689b1
mov edi, dword [ebx + 4]
jmp 0x4689bb
add ebx, 0x10
dec esi
jne 0x46892b
test edi, edi
je 0x468b4b
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wtsapi32.dll_WTSQueryUserToken
test eax, eax
je 0x468b4b
mov esi, 0x30
lea eax, [ebp - 0x9c]
mov edx, 0x44
call fcn.0046832c
mov dword [ebp - 0x9c], 0x44
mov eax, 0x468b98
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x58]
mov edx, 0x10
call fcn.0046832c
push edi
push 0
push 0x2000000
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x468b4b
lea eax, [ebp - 0x20]
push eax
push 0x201eb
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x468b4b
lea eax, [ebp - 0x28]
push eax
push 0x468ba8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x468b4b
mov dword [ebp - 0xac], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], 2
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x468b4b
push 4
lea eax, [ebp - 0xc]
push eax
push 0xc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_SetTokenInformation
test eax, eax
je 0x468b4b
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x10
lea eax, [ebp - 0xac]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0x468b4b
xor eax, eax
mov dword [ebp - 0x2c], eax
push 1
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.userenv.dll_CreateEnvironmentBlock
test al, al
je 0x468af5
or esi, 0x400
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x9c]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
push esi
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405594
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push ebx
call sub.kernel32.dll_CloseHandle_2
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_2
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_2
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468b73
lea eax, [ebp - 0x10b4]
call fcn.00405104
lea eax, [ebp - 4]
call fcn.00405104
ret