Function at 0x520d20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5269bc
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 0x520d53
or eax, 0xffffffff
jmp 0x5210d2
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 0x520dbc
mov dword [ebp - 0x28c], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.004070b0
mov eax, dword [ebp - 0x28c]
jmp 0x5210d2
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 0x520e31
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 0x5210d2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x26c]
call fcn.004e2d50
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x234]
cmp edx, dword [ebp - 0x278]
je 0x520e6c
cmp dword [ebp - 0x234], 0
je 0x520e6c
cmp dword [ebp - 0x234], 4
jne 0x520e71
jmp 0x52105d
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 0x520e99
jmp 0x52105d
lea ecx, [ebp - 0x288]
call fcn.004070d0
mov byte [ebp - 4], 2
call fcn.004dba50
test eax, eax
je 0x520f03
mov ecx, dword [ebp - 0x284]
push ecx
lea edx, [ebp - 0x294]
push edx
lea ecx, [ebp - 0x26c]
call fcn.004e2660
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 0x520f53
mov edx, dword [ebp - 0x284]
push edx
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004e2560
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 0x520f90
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 0x52105d
lea ecx, [ebp - 0x288]
call fcn.00406ac0
mov esi, eax
lea ecx, [ebp - 0x274]
call fcn.00406ac0
cmp esi, eax
jl 0x521037
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 0x521037
push 0
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
jne 0x521005
mov eax, dword [ebp - 0x280]
add eax, 1
mov dword [ebp - 0x280], eax
jmp 0x521028
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004e1ab0
add esp, 4
cmp eax, 1
jne 0x521028
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 0x520e4c
cmp dword [ebp - 0x270], 0xffffffff
je 0x52108e
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x52109f
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.004e2840
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