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

Disassembly:
push 0xffffffffffffffff
push 0x462892
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x47f534]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f534]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004031a0
mov dword [esp + 0x274], 0
lea edi, [esp + 0x18]
call fcn.0040f550
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
call fcn.00403720
mov byte [esp + 0x274], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, 8
mov ebx, 2
jle 0x416125
push 6
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.004067a0
mov byte [esp + 0x274], bl
push 0x46d304
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004024c0
add esp, 0xc
mov byte [esp + 0x274], 3
push eax
lea ecx, [esp + 0x2c]
call fcn.004037b0
mov byte [esp + 0x274], bl
lea ecx, [esp + 0x20]
call fcn.00403830
mov byte [esp + 0x274], 1
lea ecx, [esp + 0x1c]
call fcn.00403830
mov ecx, dword [esp + 0x28]
push 0
push ebx
mov dword [esp + 0x38], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
jne 0x416168
mov byte [esp + 0x274], 0
lea ecx, [esp + 0x28]
call fcn.00403830
mov dword [esp + 0x274], esi
lea ecx, [esp + 0x18]
call fcn.00403830
xor eax, eax
jmp 0x416333
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x3c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4162d5
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x104
lea eax, [esp + 0x160]
push 0
push eax
call fcn.0044c470
push 0x103
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x170]
push edx
call fcn.0044b5f0
lea eax, [esp + 0x174]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4161d0
sub eax, edx
mov edi, eax
xor esi, esi
test edi, edi
jle 0x41620f
jmp 0x4161f0
movsx eax, byte [esp + esi + 0x15c]
push eax
call fcn.0044b59a
mov byte [esp + esi + 0x160], al
add esi, 1
add esp, 4
cmp esi, edi
jl 0x4161f0
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x160]
push edx
call fcn.00449350
add esp, 8
test eax, eax
jne 0x416241
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x160]
push ecx
call fcn.00449350
add esp, 8
test eax, eax
je 0x4162ba
mov edx, dword [esp + 0x3c]
push edx
xor edi, edi
push edi
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x24], edi
lea ebx, [ebx]
push 1
push esi
call ebp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x24]
push eax
push esi
call ebx
cmp dword [esp + 0x24], 0x103
jne 0x41628a
add edi, 1
cmp edi, 5
jl 0x416260
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0x103
jne 0x4162ad
mov dword [esp + 0x1c], 0
jmp 0x4162ba
xor edx, edx
cmp dword [esp + 0x1c], edx
setne dl
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x416197
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x274], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416304
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x274], 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 0x41632f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00448f05
add esp, 0x264
ret