Function at 0x4059d0
Capabilities:
Enumerate processes
Print debug messages
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x45e18c
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x16c]
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405bc8
push ebp
lea ecx, [esp + 0x20]
call fcn.00402eb0
lea edi, [esp + 0x1c]
mov dword [esp + 0x164], ebx
call fcn.004021b0
lea ecx, [esp + 0x2c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
or edi, 0xffffffff
test eax, eax
je 0x405b74
lea ecx, [ecx]
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402eb0
mov byte [esp + 0x164], 1
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x405aac
push esi
lea ecx, [esp + 0x1c]
call fcn.00402cd0
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.0042d8ec
push eax
call fcn.00402760
add esp, 0xc
cmp esi, ebx
jl 0x405d2c
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x405d2c
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
mov byte [esi + ecx], bl
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x405bf4
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0042da2a
add esp, 8
cmp eax, ebx
je 0x405bfe
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0042e005
add esp, 8
cmp eax, ebx
jl 0x405d2c
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x405d2c
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
mov byte [eax + ecx], bl
mov byte [esp + 0x164], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405b5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405a70
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0042e005
add esp, 8
cmp eax, ebx
jl 0x405d2c
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx - 8]
jg 0x405d2c
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x1c]
mov byte [eax + ecx], bl
mov dword [esp + 0x164], edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x405bc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0042d298
add esp, 0x154
ret 4
push 0x80004005
call fcn.00402d50
mov eax, dword [esp + 0x34]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
lea ecx, [esp + 0x28]
call fcn.00402eb0
push eax
lea ecx, [esp + 0x2c]
push str.kill______:
push ecx
mov byte [esp + 0x170], 2
call fcn.004023e0
push str._process_succeed._r_n
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x17c], 3
call fcn.00402300
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x164], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ca9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x164], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x164], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x164], edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x405d25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x405bca
push 0x80070057
call fcn.00402d50
int3