Function at 0x42fb90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5661fb
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x148], ecx
xor edi, edi
mov dword [ebp - 0x144], 0
push str.wtsapi32
mov dword [ebp - 0x158], eax
or esi, 0xffffffff
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x160], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x15c], eax
test eax, eax
je 0x42fc26
push str.WTSEnumerateProcessesA
push eax
call ebx
mov edi, eax
mov dword [ebp - 0x160], edi
xor eax, eax
mov dword [ebp - 4], 0
push str.wtsapi32
mov dword [ebp - 0x150], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x42fc5a
push 0x5c2b20
push eax
call ebx
mov dword [ebp - 0x150], eax
jmp 0x42fc5c
xor eax, eax
mov byte [ebp - 4], 1
test edi, edi
je 0x42fce3
test eax, eax
je 0x42fce3
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x13c]
push eax
push 1
push 0
push 0
call edi
test eax, eax
je 0x42fce3
mov eax, dword [ebp - 0x13c]
xor ebx, ebx
cmp dword [ebp - 0x140], ebx
jbe 0x42fcda
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
push str.winlogon.exe
push dword [edi + eax + 8]
call fcn.0053a44c
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x13c]
jne 0x42fcc6
mov ecx, dword [ebp - 0x154]
cmp ecx, dword [edi + eax]
je 0x42fcd4
inc ebx
add edi, 0x10
cmp ebx, dword [ebp - 0x140]
jb 0x42fca0
jmp 0x42fcda
add ebx, ebx
mov esi, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 0x150]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14c]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x42fcfa
push eax
call edi
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x42fd0e
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x42fd91
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x42fd91
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x42fd4e
push edi
call ebx
xor esi, esi
jmp 0x42fd91
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x114]
push str.winlogon.exe
push eax
call fcn.0053a44c
add esp, 8
test eax, eax
cmove esi, dword [ebp - 0x130]
cmp byte [0x5d9287], 0
jne 0x42fd88
lea eax, [ebp - 0x138]
push eax
push edi
call ebx
test eax, eax
jne 0x42fd54
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42fdff
lea eax, [ebp - 0x144]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x148]
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
lea eax, [ebp - 0x158]
push 4
push eax
mov eax, dword [ebp - 0x148]
push 0xc
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x144]
call ebx
push edi
call ebx
mov eax, esi
jmp 0x42fe01
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret