Function at 0x408bc4
Capabilities:
Acquire debug privileges
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x422bf4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], edi
jne 0x408dd4
push str.Wtsapi32.dll
call fcn.0040c877
cmp eax, edi
pop ecx
je 0x408c04
push str.WTSEnumerateProcessesA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x420b94], eax
mov ecx, dword [0x420b94]
xor eax, eax
cmp ecx, edi
setne al
cmp eax, edi
je 0x408c67
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push edi
push edi
call ecx
cmp eax, edi
je 0x408c67
xor ebx, ebx
cmp dword [ebp - 0x20], edi
jbe 0x408d7d
xor esi, esi
mov eax, dword [ebp - 0x24]
push str.explorer.exe
push dword [esi + eax + 8]
call fcn.004139a0
pop ecx
test eax, eax
pop ecx
jne 0x408c59
mov eax, dword [ebp - 0x24]
mov eax, dword [esi + eax + 0xc]
cmp eax, edi
je 0x408c59
mov dword [ebp - 0xc], eax
inc ebx
add esi, 0x10
cmp ebx, dword [ebp - 0x20]
jb 0x408c34
jmp 0x408d7d
push edi
push str.Shell_TrayWnd
mov dword [ebp - 0x1c], edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x408dd4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x18], edi
je 0x408dd4
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408cc3
push 1
push str.SeDebugPrivilege
push dword [ebp - 8]
call fcn.004037e2
add esp, 0xc
push dword [ebp - 0x18]
push edi
push 0x20400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x408d4b
mov esi, 0x400
mov dword [ebp - 0x14], edi
push esi
call fcn.00413c32
mov ebx, eax
pop ecx
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.USER32.dll_GetUserObjectSecurity]
push eax
push esi
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408d40
push dword [ebp - 0xc]
call fcn.00413bc9
cmp dword [ebp - 0x14], esi
pop ecx
jb 0x408d1b
mov esi, dword [ebp - 0x14]
push esi
call fcn.00413c32
mov ebx, eax
pop ecx
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408d40
push ebx
call fcn.00413bc9
pop ecx
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp - 8], edi
je 0x408d6a
push edi
push str.SeDebugPrivilege
push dword [ebp - 8]
call fcn.004037e2
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x408d7d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
cmp dword [ebp - 0xc], edi
je 0x408dd4
mov eax, 0x104
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x408dd4
cmp dword [ebp - 4], 1
jne 0x408dd4
lea eax, [ebp - 0x22c]
push 0x103
push eax
push 0x424300
call fcn.0040c67c
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret