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

Disassembly:
push 0xffffffffffffffff
push 0x421887
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x484], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.0040cf30
mov eax, dword [esp + 0x494]
mov bl, 2
mov byte [esp + 0x484], bl
lea esi, [eax - 1]
cmp esi, 0xffffffff
jne 0x4145c9
push 1
lea ecx, [esp + 0x1c]
call fcn.0040cf30
push 1
lea ecx, [esp + 0x490]
call fcn.0040cf30
push 1
lea ecx, [esp + 0x4a0]
call fcn.0040cf30
xor eax, eax
jmp 0x414859
cmp eax, esi
ja 0x4145d2
call fcn.004175ff
lea ecx, [esp + 0x48c]
call fcn.0040cd80
mov ecx, dword [esp + 0x490]
cmp word [ecx + esi*2], 0x5c
je 0x414655
lea edx, [esp + 0x48c]
push 0x4274f0
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00410f20
lea ecx, [esp + 0x4a8]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0x49c], 3
call fcn.00410df0
add esp, 0x18
mov ecx, dword [0x422604]
mov byte [esp + 0x484], 4
push ecx
push ebp
push eax
lea ecx, [esp + 0x24]
call fcn.0040c980
push 1
lea ecx, [esp + 0x3c]
call fcn.0040cf30
mov byte [esp + 0x484], bl
push 1
lea ecx, [esp + 0x2c]
jmp 0x414699
lea edx, [esp + 0x49c]
lea eax, [esp + 0x48c]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00410df0
add esp, 0xc
mov edx, dword [0x422604]
lea ecx, [esp + 0x18]
push edx
push ebp
push eax
mov byte [esp + 0x490], 5
call fcn.0040c980
mov byte [esp + 0x484], bl
push 1
lea ecx, [esp + 0x2c]
call fcn.0040cf30
push edi
push ebp
push 0xf
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0xffffffff
call fcn.00414890
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0x22c
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x490], 6
call sub.KERNEL32.dll_Process32FirstW
cmp eax, ebp
je 0x4147d1
mov ecx, dword [esp + 0x54]
cmp ecx, ebp
jne 0x41471a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
cmp eax, ebp
je 0x414716
cmp dword [esp + 0x54], ebp
jne 0x414716
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004148e0
mov ecx, dword [esp + 0x54]
cmp eax, ebp
je 0x4147d1
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x41472e
mov ecx, dword [esp + 0x54]
cmp ecx, dword [esp + 0x18]
je 0x4147a2
push ecx
push ebp
push 0x411
call ebx
mov esi, eax
cmp esi, ebp
je 0x4147a2
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27a]
mov word [esp + 0x278], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x278]
push 0x104
push edx
push ebp
push esi
stosw word es:[edi], ax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x41477e
mov eax, 0x422470
lea ecx, [esp + 0x278]
push ecx
push eax
call fcn.00417f5c
add esp, 8
test eax, eax
jne 0x41479b
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
cmp eax, ebp
je 0x4147d1
cmp dword [esp + 0x54], ebp
jne 0x4147c9
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004148e0
cmp eax, ebp
jne 0x41472a
mov eax, dword [esp + 0x10]
pop edi
cmp eax, 0xffffffff
je 0x4147e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea ecx, [esp + 0x1c]
call fcn.0040cf30
mov ecx, dword [esp + 0x490]
cmp ecx, ebp
je 0x414816
mov al, byte [ecx - 1]
test al, al
je 0x41480a
cmp al, 0xff
je 0x41480a
dec al
mov byte [ecx - 1], al
jmp 0x414816
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov ecx, dword [esp + 0x4a0]
mov dword [esp + 0x490], ebp
cmp ecx, ebp
mov dword [esp + 0x494], ebp
mov dword [esp + 0x498], ebp
je 0x414854
mov al, byte [ecx - 1]
test al, al
je 0x414848
cmp al, 0xff
je 0x414848
dec al
mov byte [ecx - 1], al
jmp 0x414854
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x47c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x47c
ret