Function at 0x4059a0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x45ead9
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4739a8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebp
push esi
push edi
mov eax, dword [0x4739a8]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
cmp dword [eax - 0xc], 0
mov dword [esp + 0x15c], 0
je 0x405c2c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [esp + 0x20], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x28]
mov ebp, eax
push ecx
push ebp
mov dword [esp + 0x30], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, eax
call fcn.0042c542
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405a3a
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x46177f
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 1
call fcn.00401770
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 2
call fcn.00402cb0
lea ecx, [esp + 0x14]
call fcn.00402950
test edi, edi
je 0x405bd2
lea ebx, [ebx]
lea edx, [esp + 0x28]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405aa6
sub eax, edx
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call fcn.00401550
mov esi, dword [esp + 0x10]
push 0x5c
push esi
call fcn.00449c80
add esp, 8
test eax, eax
je 0x405b39
sub eax, esi
js 0x405b39
push 0x5c
push esi
call fcn.00449c80
add esp, 8
test eax, eax
jne 0x405ae9
or eax, 0xffffffff
jmp 0x405aeb
sub eax, esi
dec eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.004029b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 3
call fcn.00402cb0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405b35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x405b5b
push edi
lea ecx, [esp + 0x14]
call fcn.00401330
mov esi, dword [esp + 0x10]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.00449eda
push eax
call fcn.00401c40
add esp, 0xc
test edi, edi
jl 0x405c91
cmp edi, dword [esi - 8]
jg 0x405c91
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov ecx, dword [esp + 0x14]
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405bb0
test dl, dl
je 0x405bac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405bb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405b90
xor eax, eax
jmp 0x405bb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405bc7
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x18]
jne 0x405c78
cmp dword [esp + 0x1c], 0
jne 0x405a90
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x15c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x164]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x15c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004492d4
add esp, 0x150
ret 4
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x405bd2
push 0x80070057
call fcn.00401020
int3