Function at 0x4668d0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x2668
call fcn.00488be0
mov eax, dword [0x605580]
xor eax, esp
mov dword [esp + 0x2664], eax
mov eax, dword [esp + 0x2670]
push ebx
push ebp
mov ebp, dword [esp + 0x2674]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.Kernel32.dll
mov dword [esp + 0x3c], eax
mov dword [ebp], 0
call esi
test eax, eax
je 0x466cd4
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x466cd4
call eax
mov dword [esp + 0x44], eax
cmp eax, 0xffffffff
je 0x466cd4
push str.Psapi.dll
call esi
push str.Advapi32.dll
mov edi, eax
call esi
push str.Wtsapi32.dll
mov ebx, eax
call esi
mov dword [esp + 0x2c], eax
test edi, edi
je 0x466cd4
test ebx, ebx
je 0x466cd4
test eax, eax
je 0x466cd4
push str.EnumProcesses
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleFileNameExA
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessImageFileNameA
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x2c], eax
call edi
push str.OpenProcessToken
push ebx
mov dword [esp + 0x28], eax
call edi
push str.GetTokenInformation
push ebx
mov dword [esp + 0x30], eax
call edi
mov dword [esp + 0x40], eax
test esi, esi
je 0x466cd4
cmp dword [esp + 0x24], 0
jne 0x4669d4
cmp dword [esp + 0x20], 0
je 0x466cd4
cmp dword [esp + 0x28], 0
je 0x466cd4
test eax, eax
je 0x466cd4
push 0x2000
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00492cb0
add esp, 0xc
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0x2000
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x466cd4
mov eax, dword [esp + 0x1c]
xor ebx, ebx
shr eax, 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], ebx
cmp eax, 0x800
jb 0x466a4e
mov dword [esp + 0x34], 0x800
jmp 0x466a56
test eax, eax
je 0x466ccb
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push 0x209
lea eax, [esp + 0x246c]
push 0
push eax
call fcn.00492cb0
push 0x105
lea eax, [esp + 0x2370]
push 0
push eax
call fcn.00492cb0
push 0x105
lea eax, [esp + 0x2274]
push 0
push eax
call fcn.00492cb0
push 0x105
lea eax, [esp + 0x2070]
push 0
push eax
call fcn.00492cb0
push 0x105
lea eax, [esp + 0x2184]
push 0
push eax
call fcn.00492cb0
add esp, 0x3c
push dword [esp + ebx*4 + 0x48]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x466af8
push dword [esp + ebx*4 + 0x48]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x466c81
mov eax, dword [esp + 0x20]
test eax, eax
je 0x466b14
push 0x208
lea ecx, [esp + 0x246c]
push ecx
push esi
call eax
test eax, eax
jne 0x466b3a
mov eax, dword [esp + 0x24]
test eax, eax
je 0x466c69
push 0x208
lea ecx, [esp + 0x246c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x466c69
push 0x104
lea eax, [esp + 0x2154]
push eax
push 0x104
lea eax, [esp + 0x2054]
push eax
push 0x104
lea eax, [esp + 0x226c]
push eax
push 0x104
lea eax, [esp + 0x237c]
push eax
lea eax, [esp + 0x2488]
push eax
call fcn.0049cfb6
lea eax, [esp + 0x206c]
push eax
push str.explorer
call fcn.0049ccb6
add esp, 0x2c
test eax, eax
jne 0x466c69
lea eax, [esp + 0x2150]
push eax
push 0x57c50c
call fcn.0049ccb6
add esp, 8
test eax, eax
jne 0x466c69
push ebp
push 0x2000e
push esi
call dword [esp + 0x34]
test eax, eax
je 0x466c69
mov eax, dword [ebp]
test eax, eax
je 0x466c69
lea ecx, [esp + 0x3c]
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0xc
push eax
call dword [esp + 0x54]
test eax, eax
je 0x466c69
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x14], eax
je 0x466cbe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQuerySessionInformationW
push dword [esp + 0x30]
call edi
push str.WTSFreeMemory
push dword [esp + 0x30]
mov ebx, eax
call edi
mov edi, eax
test ebx, ebx
je 0x466c5f
test edi, edi
je 0x466c5f
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0
push eax
push 8
push dword [esp + 0x20]
push 0
call ebx
test eax, eax
je 0x466c5f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x466c5f
cmp dword [esp + 0x30], 4
jne 0x466c5c
cmp dword [eax], 0
je 0x466c99
push eax
call edi
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp]
test eax, eax
je 0x466c7a
push eax
call edi
mov dword [ebp], 0
test esi, esi
je 0x466c81
push esi
call edi
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x34]
jb 0x466a60
cmp dword [ebp], 0
setne al
jmp 0x466cd6
push eax
call edi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
cmp dword [ebp], 0
setne al
jmp 0x466cd6
push esi
call edi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
cmp dword [ebp], 0
setne al
jmp 0x466cd6
xor al, al
mov ecx, dword [esp + 0x2674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004883ab
add esp, 0x2668
ret 8