Function at 0x431380
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cca78
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 0x4313f1
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 0x4315b9
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 0x4315b9
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.004923f0
add esp, 0xc
mov dword [ebp - 0x2d0], 0x22c
cmp edi, 0xffffffff
je 0x4315b9
lea eax, [ebp - 0x2d0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4315b9
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 0x431533
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 0x431523
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 0x431523
lea ecx, [ebp - 0x50]
mov eax, dword [ecx]
lea edx, [ebp - 0x88]
cmp eax, dword [edx]
jne 0x431523
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x431523
lea eax, [ebp - 0x9c]
push eax
push 2
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x43154b
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x431530
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 0x4314a0
jmp 0x43155b
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x431558
push eax
call ebx
push esi
call ebx
mov esi, dword [ebp - 0x9c]
test esi, esi
jne 0x43157d
lea ecx, [ebp - 0x2dc]
call fcn.00425ab0
push 0x4fb31c
lea eax, [ebp - 0x2dc]
jmp 0x4315cb
test edi, edi
je 0x431584
push edi
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43158e
push eax
call ebx
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x43159b
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.0047900d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2e0]
call fcn.004312e0
push 0x4fb334
mov eax, ecx
push eax
call fcn.0049187f
int3