Function at 0x520ce0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52697c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a4
push esi
mov dword [ebp - 0x2a0], ecx
cmp dword [ebp + 8], 0
jne 0x520d13
or eax, 0xffffffff
jmp 0x521092
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x274]
call fcn.00406b50
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 0x520d7c
mov dword [ebp - 0x28c], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.004070b0
mov eax, dword [ebp - 0x28c]
jmp 0x521092
mov dword [ebp - 0x23c], 0
push 0x228
push 0
lea ecx, [ebp - 0x238]
push ecx
call fcn.0049e730
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 0x520df1
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.004070b0
mov eax, dword [ebp - 0x290]
jmp 0x521092
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x26c]
call fcn.004e2d10
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x278]
je 0x520e2c
cmp dword [ebp - 0x234], 0
je 0x520e2c
cmp dword [ebp - 0x234], 4
jne 0x520e31
jmp 0x52101d
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 0x520e59
jmp 0x52101d
lea ecx, [ebp - 0x288]
call fcn.004070d0
mov byte [ebp - 4], 2
call fcn.004dba10
test eax, eax
je 0x520ec3
mov ecx, dword [ebp - 0x284]
push ecx
lea edx, [ebp - 0x294]
push edx
lea ecx, [ebp - 0x26c]
call fcn.004e2620
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00404380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x294]
call fcn.004070b0
jmp 0x520f13
mov edx, dword [ebp - 0x284]
push edx
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004e2520
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2b0]
push edx
lea ecx, [ebp - 0x288]
call fcn.00404380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x298]
call fcn.004070b0
lea ecx, [ebp - 0x288]
call fcn.0040b3b0
movzx eax, al
test eax, eax
je 0x520f50
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x284], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call fcn.004070b0
jmp 0x52101d
lea ecx, [ebp - 0x288]
call fcn.00406ac0
mov esi, eax
lea ecx, [ebp - 0x274]
call fcn.00406ac0
cmp esi, eax
jl 0x520ff7
lea ecx, [ebp - 0x274]
call fcn.00406ac0
push eax
lea ecx, [ebp - 0x288]
call fcn.00477060
push eax
lea ecx, [ebp - 0x274]
call fcn.00477060
push eax
call fcn.004a345a
add esp, 0xc
test eax, eax
jne 0x520ff7
push 0
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
jne 0x520fc5
mov eax, dword [ebp - 0x280]
add eax, 1
mov dword [ebp - 0x280], eax
jmp 0x520fe8
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004e1a70
add esp, 4
cmp eax, 1
jne 0x520fe8
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
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
call fcn.004070b0
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x270]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x520e0c
cmp dword [ebp - 0x270], 0xffffffff
je 0x52104e
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x52105f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x27c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x29c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.004e2800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.004070b0
mov eax, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8