Function at 0x4228ea
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push 0x70
mov eax, 0x683a8f
call fcn.0056e23b
mov esi, ecx
mov dword [ebp - 0x58], esi
lea eax, [esi + 4]
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], eax
call fcn.005627e7
cmp dword [esi + 0x30], ebx
je 0x422991
lea edi, [esi + 0x2c]
mov eax, dword [edi]
mov esi, dword [eax]
mov dword [ebp - 0x4c], esi
cmp esi, eax
je 0x422982
push dword [esi + 0x10]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x42296d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x422957
push esi
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.00423069
mov esi, dword [eax]
mov dword [ebp - 0x4c], esi
jmp 0x422962
lea ecx, [ebp - 0x4c]
call fcn.005702a2
mov esi, dword [ebp - 0x4c]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42297e
push esi
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
call fcn.00423069
mov esi, dword [eax]
mov dword [ebp - 0x4c], esi
cmp esi, dword [edi]
jne 0x422920
mov eax, dword [ebp - 0x58]
push 1
cmp dword [eax + 0x30], ebx
pop eax
cmove ebx, eax
mov dword [ebp - 0x54], ebx
mov ecx, dword [ebp - 0x50]
call fcn.005627f7
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
inc eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x64]
push 0x1000
call fcn.0041f109
push 0x8000
lea ecx, [ebp - 0x70]
call fcn.0054570b
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x74]
mov esi, dword [ebp - 0x70]
sub eax, esi
push ecx
and eax, 0xfffffffc
push eax
push esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x422ae4
mov edi, dword [ebp - 0x74]
and dword [ebp - 0x50], 0
shr edi, 2
test edi, edi
je 0x422ae4
mov ebx, dword [ebp - 0x50]
push dword [esi + ebx*4]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x422ad5
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
and dword [ebp - 0x50], 0
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x422ace
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x64]
sar eax, 1
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x4c]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x422ace
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004173bc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push dword [ebp - 0x64]
call fcn.00565361
add esp, 0x14
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push eax
call fcn.0041dfd7
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
mov eax, dword [edx]
push ecx
push 0
mov ecx, edx
call dword [eax + 0x20]
test eax, eax
je 0x422ab4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0041786a
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x2c]
call fcn.0041786a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x70]
inc ebx
cmp ebx, edi
jb 0x422a01
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0041f0e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0058226f
mov eax, ebx
call fcn.0056e1e5
ret