Function at 0x40e430
Capabilities:
Acquire debug privileges
Find taskbar

Disassembly:
sub rsp, 0x508
mov rax, qword [0x0042d620]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x58], 0
cmp dword [0x00431f80], 0
je 0x40e470
jmp 0x40e832
lea rcx, str.Wtsapi32.dll
call fcn.00415800
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x40e4a2
lea rdx, str.WTSEnumerateProcessesA
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0042eac8], rax
cmp qword [0x0042eac8], 0
je 0x40e4b9
mov dword [rsp + 0x4e8], 1
jmp 0x40e4c4
mov dword [rsp + 0x4e8], 0
mov eax, dword [rsp + 0x4e8]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x40e4f9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [0x0042eac8]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x40e574
mov dword [rsp + 0x40], 0
jmp 0x40e515
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x40], eax
jae 0x40e56f
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
lea rdx, str.explorer.exe
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 8]
call fcn.00416c00
test eax, eax
jne 0x40e56d
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax + 0x10], 0
je 0x40e56d
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x58], rax
jmp 0x40e50a
jmp 0x40e784
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x90], 0
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x40e5af
jmp 0x40e832
mov dword [rsp + 0x64], 0
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x64], 0
jne 0x40e5d6
jmp 0x40e832
mov qword [rsp + 0x68], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40e613
mov r8d, 1
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rsp + 0x68]
call fcn.00405a20
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov ecx, 0x20400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x40e73a
mov dword [rsp + 0x78], 0x400
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x78]
mov rcx, rax
call fcn.00416f30
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x70], 1
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x90]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetUserObjectSecurity]
test eax, eax
jne 0x40e72c
mov rcx, qword [rsp + 0x58]
call fcn.00416ef0
cmp dword [rsp + 0x74], 0x400
jae 0x40e6bb
mov dword [rsp + 0x4ec], 0x400
jmp 0x40e6c6
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x4ec], eax
mov eax, dword [rsp + 0x4ec]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov rcx, rax
call fcn.00416f30
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x90]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetUserObjectSecurity]
test eax, eax
jne 0x40e72c
mov rcx, qword [rsp + 0x90]
call fcn.00416ef0
mov qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0
je 0x40e761
xor r8d, r8d
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rsp + 0x68]
call fcn.00405a20
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x90], 0
je 0x40e784
lea r8, [rsp + 0x7c]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
cmp qword [rsp + 0x58], 0
je 0x40e832
mov dword [rsp + 0x98], 0x104
lea rax, [rsp + 0x98]
mov qword [rsp + 0x4d8], rax
mov dword [rsp + 0x4e4], 0x104
lea rax, [rsp + 0x4e4]
mov qword [rsp + 0x4d0], rax
lea rax, [rsp + 0x4e0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x4d0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x4d8]
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x40e832
cmp dword [rsp + 0x4e0], 1
jne 0x40e832
mov r8d, 0x103
lea rdx, [rsp + 0xb0]
lea rcx, [0x00431840]
call fcn.00415400
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.00416330
add rsp, 0x508
ret