Function at 0x5204c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5240b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push esi
mov dword [ebp - 0x298], ecx
cmp dword [ebp + 8], 0
jne 0x5204f3
or eax, 0xffffffff
jmp 0x5207c9
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x274]
call fcn.0040a960
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
jne 0x52055c
mov dword [ebp - 0x28c], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.0040c650
mov eax, dword [ebp - 0x28c]
jmp 0x5207c9
mov dword [ebp - 0x23c], 0
push 0x228
push 0
lea ecx, [ebp - 0x238]
push ecx
call fcn.004b3d60
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x270]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x5205d1
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x290], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.0040c650
mov eax, dword [ebp - 0x290]
jmp 0x5207c9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x26c]
call fcn.0050c430
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x278]
je 0x52060c
cmp dword [ebp - 0x234], 0
je 0x52060c
cmp dword [ebp - 0x234], 4
jne 0x520611
jmp 0x520754
mov eax, dword [ebp - 0x234]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0
jne 0x520639
jmp 0x520754
mov ecx, dword [ebp - 0x284]
push ecx
lea edx, [ebp - 0x288]
push edx
lea ecx, [ebp - 0x26c]
call fcn.0050b460
lea ecx, [ebp - 0x288]
call fcn.004084c0
movzx eax, al
test eax, eax
je 0x52068b
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x288]
call fcn.0040c650
jmp 0x520754
lea ecx, [ebp - 0x288]
call fcn.0040c690
mov esi, eax
lea ecx, [ebp - 0x274]
call fcn.0040c690
cmp esi, eax
jl 0x520732
lea ecx, [ebp - 0x274]
call fcn.0040c690
push eax
lea ecx, [ebp - 0x288]
call fcn.00423af0
push eax
lea ecx, [ebp - 0x274]
call fcn.00423af0
push eax
call fcn.004b513d
add esp, 0xc
test eax, eax
jne 0x520732
push 0
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
jne 0x520700
mov eax, dword [ebp - 0x280]
add eax, 1
mov dword [ebp - 0x280], eax
jmp 0x520723
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0050aa10
add esp, 4
cmp eax, 1
jne 0x520723
mov edx, dword [ebp - 0x280]
add edx, 1
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x27c]
add eax, 1
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x288]
call fcn.0040c650
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x270]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5205ec
cmp dword [ebp - 0x270], 0xffffffff
je 0x520785
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x520796
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x27c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x294], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.0050b740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.0040c650
mov eax, dword [ebp - 0x294]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8