Function at 0x467908
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.00405508
xor eax, eax
push ebp
push 0x467bb4
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 0x467a03
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
dec esi
test esi, esi
jl 0x467a03
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.004052f8
mov eax, dword [ebp - 0x10b4]
mov edx, 0x467bd0
call fcn.004054b0
je 0x4679f9
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x4679f9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x4679f9
mov edi, dword [ebx + 4]
jmp 0x467a03
add ebx, 0x10
dec esi
jne 0x467973
test edi, edi
je 0x467b93
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wtsapi32.dll_WTSQueryUserToken
test eax, eax
je 0x467b93
mov esi, 0x30
lea eax, [ebp - 0x9c]
mov edx, 0x44
call fcn.0046736c
mov dword [ebp - 0x9c], 0x44
mov eax, 0x467be0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x58]
mov edx, 0x10
call fcn.0046736c
push edi
push 0
push 0x2000000
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x467b93
lea eax, [ebp - 0x20]
push eax
push 0x201eb
push ebx
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x467b93
lea eax, [ebp - 0x28]
push eax
push 0x467bf0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x467b93
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 0x467b93
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 0x467b93
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 0x467b93
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 0x467b3d
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.00405518
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 0x467bbb
lea eax, [ebp - 0x10b4]
call fcn.00405088
lea eax, [ebp - 4]
call fcn.00405088
ret