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

Disassembly:
push 0xffffffffffffffff
push 0x46c18c
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x4860f0]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4860f0]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov eax, dword [esp + 0x470]
mov eax, dword [eax + 0x328]
sub eax, 0x10
call fcn.00403a70
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov ecx, 0x470750
mov dword [esp + 0x46c], ebx
call fcn.00401990
push ebx
push 2
mov byte [esp + 0x470], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
or edi, 0xffffffff
mov dword [esp + 0x24], ebp
cmp ebp, edi
jne 0x407d59
mov byte [esp + 0x468], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x468], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x407d52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407fae
lea ecx, [esp + 0x28]
push ecx
push ebp
mov dword [esp + 0x30], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x407dc4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x468], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x468], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x407d52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407fae
xor esi, esi
jmp 0x407dd0
mov ecx, dword [esi*4 + 0x472920]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004585fe
add esp, 8
test eax, eax
je 0x407df4
inc esi
cmp esi, 4
jb 0x407dd0
jmp 0x407f3d
mov eax, dword [esp + 0x30]
push eax
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x407f3d
push 0x104
lea ecx, [esp + 0x258]
push ecx
push ebx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov ebx, 0x4729c8
call fcn.00405cd0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x474], 2
mov ebx, dword [esi*4 + 0x472920]
push ecx
call fcn.00405cd0
add esp, 0x10
mov byte [esp + 0x468], 3
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x407eb2
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x407ea5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x407ea5
call fcn.00403a70
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x407e98
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x24]
jmp 0x407eb2
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004018b0
mov byte [esp + 0x468], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407eda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x468], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x254]
push ecx
push edx
call fcn.0040d160
add esp, 8
test al, al
je 0x407f34
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x407fd8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea eax, [esp + 0x28]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407dc4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x468], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x468], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004567fb
add esp, 0x458
ret 4
mov byte [esp + 0x468], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408000
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x468], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x407d46