Function at 0x431410
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x4fd0b8]
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
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], 0
push eax
push 0x1a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x431481
lea eax, [ebp - 0x94]
push eax
push 2
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ecx
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x13
push eax
call ebx
test eax, eax
je 0x431649
lea eax, [ebp - 0x18]
push eax
push 0x38
lea eax, [ebp - 0x90]
push eax
push 0xa
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x431649
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x20], edi
push 0x228
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00492530
add esp, 0xc
mov dword [ebp - 0x2d0], 0x22c
cmp edi, 0xffffffff
je 0x431649
lea eax, [ebp - 0x2d0]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x431649
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop dword [eax]
push dword [ebp - 0x2c8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x4315c3
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0x1a
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4315b3
lea eax, [ebp - 0x18]
push eax
push 0x38
lea eax, [ebp - 0x58]
push eax
push 0xa
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4315b3
lea ecx, [ebp - 0x50]
mov eax, dword [ecx]
lea edx, [ebp - 0x88]
cmp eax, dword [edx]
jne 0x4315b3
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x4315b3
lea eax, [ebp - 0x9c]
push eax
push 2
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x4315db
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x4315c0
push eax
call ebx
push esi
call ebx
lea eax, [ebp - 0x2d0]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x431530
jmp 0x4315eb
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x4315e8
push eax
call ebx
push esi
call ebx
mov esi, dword [ebp - 0x9c]
test esi, esi
jne 0x43160d
lea ecx, [ebp - 0x2dc]
call fcn.00425b00
push 0x4fb31c
lea eax, [ebp - 0x2dc]
jmp 0x43165b
test edi, edi
je 0x431614
push edi
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43161e
push eax
call ebx
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x43162b
push eax
call ebx
mov eax, esi
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.0047913d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2e0]
call fcn.00431370
push 0x4fb334
mov eax, ecx
push eax
call fcn.004919bf
int3