Function at 0x4050c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562c9e
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5cd480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.004053b0
test eax, eax
jne 0x405106
jmp 0x405377
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0xffffffff
jne 0x405124
jmp 0x405377
mov dword [ebp - 0x254], 0x22c
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40514f
mov byte [ebp - 0x255], 1
jmp 0x405156
mov byte [ebp - 0x255], 0
mov dl, byte [ebp - 0x255]
mov byte [ebp - 0x257], dl
movzx eax, byte [ebp - 0x257]
test eax, eax
je 0x40536f
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.004055e0
mov dword [ebp - 4], 0
push 0
push 0x5c05cc
lea ecx, [ebp - 0x25c]
call fcn.00405520
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
je 0x405209
lea ecx, [ebp - 0x25c]
call fcn.00405660
sub eax, dword [ebp - 0x26c]
sub eax, 1
push eax
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x25c]
call fcn.00405440
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.004055a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.004055c0
lea ecx, [ebp - 0x25c]
call fcn.004054d0
push eax
lea ecx, [ebp - 0x25c]
call fcn.004055a0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x270], edx
mov ecx, dword [ebp - 0x270]
call fcn.00405400
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x270]
call fcn.004053e0
mov dword [ebp - 0x280], eax
jmp 0x40525c
mov eax, dword [ebp - 0x268]
add eax, 0x18
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
cmp ecx, dword [ebp - 0x280]
je 0x405324
mov edx, dword [ebp - 0x268]
push edx
lea ecx, [ebp - 0x28]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00405680
push eax
lea ecx, [ebp - 0x264]
call fcn.004055e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.004054d0
push eax
lea ecx, [ebp - 0x264]
call fcn.004055a0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00405410
add esp, 8
movzx edx, al
test edx, edx
je 0x405304
push 0
mov eax, dword [ebp - 0x24c]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.004055c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401530
jmp 0x405324
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.004055c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401530
jmp 0x40524d
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x405345
mov byte [ebp - 0x256], 1
jmp 0x40534c
mov byte [ebp - 0x256], 0
mov al, byte [ebp - 0x256]
mov byte [ebp - 0x257], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.004055c0
jmp 0x405162
xor ecx, ecx
jne 0x4050f5
cmp dword [ebp - 0x260], 0xffffffff
je 0x405397
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x260], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00535cb4
mov esp, ebp
pop ebp
ret