Function at 0x42ef60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x5b0008]
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 0x42eff6
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 0x42f02a
push 0x59b490
push eax
call ebx
mov dword [ebp - 0x150], eax
jmp 0x42f02c
xor eax, eax
mov byte [ebp - 4], 1
test edi, edi
je 0x42f0b3
test eax, eax
je 0x42f0b3
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x13c]
push eax
push 1
push 0
push 0
call edi
test eax, eax
je 0x42f0b3
mov eax, dword [ebp - 0x13c]
xor ebx, ebx
cmp dword [ebp - 0x140], ebx
jbe 0x42f0aa
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
push str.winlogon.exe
push dword [edi + eax + 8]
call fcn.0052c8bc
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x13c]
jne 0x42f096
mov ecx, dword [ebp - 0x154]
cmp ecx, dword [edi + eax]
je 0x42f0a4
inc ebx
add edi, 0x10
cmp ebx, dword [ebp - 0x140]
jb 0x42f070
jmp 0x42f0aa
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 0x42f0ca
push eax
call edi
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x42f0de
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x42f161
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x42f161
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x42f11e
push edi
call ebx
xor esi, esi
jmp 0x42f161
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x114]
push str.winlogon.exe
push eax
call fcn.0052c8bc
add esp, 8
test eax, eax
cmove esi, dword [ebp - 0x130]
cmp byte [0x5b2e27], 0
jne 0x42f158
lea eax, [ebp - 0x138]
push eax
push edi
call ebx
test eax, eax
jne 0x42f124
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 0x42f1cf
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 0x42f1d1
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.00519459
mov esp, ebp
pop ebp
ret