Function at 0x416b40
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4f08a6
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x542c54]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
add ecx, 0x544
xor ebx, ebx
mov dword [esp + 0x24], ecx
cmp dword [ecx], ebx
je 0x416d68
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push ebx
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x416c4f
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x3c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x416c4f
mov ebp, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ebx, [ebx]
lea ecx, [esp + 0x58]
push str.explorer.exe
push ecx
call fcn.004ceae2
add esp, 8
test eax, eax
jne 0x416c10
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
je 0x416c10
cmp dword [esp + 0x20], edi
je 0x416c56
lea ecx, [esp + 0x34]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x416be0
mov eax, dword [esp + 0x24]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x416c4f
lea edx, [esp + 0x14]
push edx
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x416c5c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x416d6d
mov eax, dword [esp + 0x3c]
jmp 0x416c23
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 1
push ecx
call ebp
mov edx, dword [esp + 0x18]
push edx
call fcn.004cd70c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push 1
push edx
call ebp
test eax, eax
jne 0x416cb9
push esi
call fcn.004cd871
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call esi
push edi
call esi
xor eax, eax
jmp 0x416d6d
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push edx
call sub.ADVAPI32.dll_ConvertSidToStringSidA
push esi
call fcn.004cd871
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00403830
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x16c], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x2c]
call fcn.00425470
lea ecx, [esp + 0x2c]
mov byte [esp + 0x168], 1
call fcn.00425480
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
neg eax
sbb eax, eax
push ecx
and eax, 0xffffff00
add eax, 0x20219
push eax
push ebx
push edx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [esp + 0x168], bl
lea ecx, [esp + 0x2c]
test eax, eax
jne 0x416d5a
call fcn.00425790
lea ecx, [esp + 0x28]
call fcn.00402da0
xor eax, eax
jmp 0x416d6d
call fcn.00425790
lea ecx, [esp + 0x28]
call fcn.00402da0
mov eax, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004cb553
add esp, 0x158
ret