Function at 0x498ba0
Capabilities:
Enumerate processes
Get token privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x4bf070]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 2
push 0x4b7eac
mov ecx, edi
mov dword [esp + 0x148], esi
mov ebx, edx
call fcn.0040be40
cmp byte [ebp + 0xc], 0
mov ecx, edi
push 2
je 0x498c6c
push 0x4b7eb0
call fcn.0040be40
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x498c51
cmp dword [esp + 0x14], 0
je 0x498c51
push 3
push 0x4b7eb4
mov ecx, edi
call fcn.0040be40
lea eax, [esp + 0x140]
mov dword [esp + 0x140], 0
push eax
push 4
push ebx
push 0x13
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebx], 0
je 0x498c54
push str.qath
mov ecx, edi
call fcn.0040bee0
cmp dword [ebx], 0
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0041553e
mov esp, ebp
pop ebp
ret
push 0x4b7ec0
call fcn.0040be40
push 0
push 2
mov byte [esp + 0x1b], 0
mov dword [esp + 0x14c], 4
mov dword [esp + 0x150], 0
mov dword [esp + 0x20], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x498dff
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x498df9
nop dword [eax + eax]
lea eax, [esp + 0x3c]
mov ecx, str.explorer.exe
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x498d00
test dl, dl
je 0x498cfc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x498d00
add ecx, 2
add eax, 2
test dl, dl
jne 0x498ce0
xor eax, eax
jmp 0x498d05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x498dc5
push 3
push 0x4b7ed4
mov ecx, edi
call fcn.0040be40
push dword [esp + 0x20]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x498dbf
push 4
push str.quep
mov ecx, edi
call fcn.0040be40
push ebx
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x498da1
push 5
push str.quept
mov ecx, edi
call fcn.0040be40
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x148]
lea eax, [esp + 0x150]
push eax
push 0xc
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x498da1
push str.quepti
mov ecx, edi
call fcn.0040bee0
mov eax, dword [esp + 0x140]
cmp eax, dword [esp + 0x148]
je 0x498ddf
mov eax, dword [ebx]
test eax, eax
je 0x498db4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x498dc5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x498cd0
jmp 0x498df9
push str.queptis
mov ecx, edi
call fcn.0040bee0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x17], 1
call esi
push dword [esp + 0x14]
call esi
mov ecx, dword [esp + 0x14c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041553e
mov esp, ebp
pop ebp
ret