Function at 0x406c9f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1644
call fcn.005bc5e0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
call fcn.005b5460
mov edi, eax
lea eax, [edi - 1]
pop ecx
cmp eax, 0x102
ja 0x406d78
cmp edi, ebx
jle 0x4069e6
mov dword [ebp - 8], esi
lea eax, [ebp - 0x258]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea esi, [ebp + ebx - 0x258]
movsx eax, byte [eax + esi]
push eax
call fcn.005b7c9a
inc ebx
cmp ebx, edi
pop ecx
mov byte [esi], al
jl 0x4069ca
lea eax, [ebp - 0x370]
push eax
mov byte [ebp + edi - 0x258], 0
mov dword [ebp - 0x370], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406a13
mov eax, 0x25e
jmp 0x406d7d
cmp dword [ebp - 0x360], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x406a3f
cmp dword [ebp - 0x360], 1
je 0x406b8e
mov eax, 0x25f
jmp 0x406d7d
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x406a5b
mov eax, 0x25d
jmp 0x406d7d
push str.EnumProcesses
push eax
call esi
push str.EnumProcessModules
push dword [ebp - 8]
mov edi, eax
call esi
push str.GetModuleBaseNameA
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call esi
mov dword [ebp - 0x14], eax
test edi, edi
je 0x406bac
cmp dword [ebp - 0x10], 0
je 0x406bac
test eax, eax
je 0x406bac
lea eax, [ebp - 0x20]
push eax
push 0x3e8
lea eax, [ebp - 0x1640]
push eax
call edi
test eax, eax
jne 0x406ab9
mov esi, 0x2bd
jmp 0x406bb1
mov eax, dword [ebp - 0x20]
and dword [ebp - 4], 0
shr eax, 2
mov dword [ebp - 0x18], eax
test eax, eax
jbe 0x406b81
lea edi, [ebp - 0x478]
call fcn.00421500
mov edi, dword [ebp - 4]
lea edi, [ebp + edi*4 - 0x1640]
push dword [edi]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x406b20
lea ecx, [ebp - 0x20]
push ecx
push 4
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x406b20
push 0x104
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0xc]
call dword [ebp - 0x14]
push dword [ebp - 0xc]
call ebx
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.005b7f2b
pop ecx
push eax
call fcn.005b7cd0
pop ecx
pop ecx
test eax, eax
jne 0x406b72
push dword [edi]
inc eax
push 0
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x406d57
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
test eax, eax
je 0x406d43
call ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jb 0x406ace
cmp dword [ebp - 0x360], 1
jne 0x406d21
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x406bc1
mov eax, 0x2be
jmp 0x406d7d
mov esi, 0x2bc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x406d7d
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32First
push edi
mov dword [ebp - 0x10], eax
call esi
push str.Process32Next
push edi
mov dword [ebp - 0xc], eax
call esi
push str.Module32First
push edi
mov dword [ebp - 0x14], eax
call esi
push str.Module32Next
push edi
mov dword [ebp - 0x18], eax
call esi
xor esi, esi
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], esi
je 0x406d61
cmp dword [ebp - 0xc], esi
je 0x406d61
cmp eax, esi
je 0x406d61
cmp dword [ebp - 0x18], esi
je 0x406d61
cmp dword [ebp - 0x10], esi
je 0x406d61
push esi
push 2
call dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x406c3e
mov esi, 0x2c0
jmp 0x406bb1
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x150], 0x128
call dword [ebp - 0xc]
jmp 0x406d14
push dword [ebp - 0x148]
push 8
call dword [ebp - 0x10]
mov edi, eax
cmp edi, 0xffffffff
je 0x406d31
lea eax, [ebp - 0x6a0]
push eax
push edi
mov dword [ebp - 0x6a0], 0x224
call dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x406cfa
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x680]
push eax
call fcn.005b7cd0
pop ecx
pop ecx
test eax, eax
jne 0x406cdd
push dword [ebp - 0x148]
inc eax
push esi
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406d4f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
test eax, eax
je 0x406d3b
call ebx
push dword [ebp - 4]
call ebx
push esi
call ebx
xor esi, esi
jmp 0x406cf5
lea eax, [ebp - 0x6a0]
push eax
push edi
mov dword [ebp - 0x6a0], 0x224
call dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], esi
jne 0x406c8c
push edi
call ebx
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x150], 0x22c
call dword [ebp - 0x14]
test eax, eax
jne 0x406c5a
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0x1c], 0
jne 0x406d6b
mov esi, 0x25b
jmp 0x406bb1
push dword [ebp - 4]
call ebx
jmp 0x406c34
call ebx
push dword [ebp - 4]
call ebx
push esi
call ebx
mov esi, 0x25a
jmp 0x406bb1
push edi
call ebx
push dword [ebp - 4]
call ebx
mov esi, 0x25c
jmp 0x406bb1
mov esi, 0x2bf
jmp 0x406bb1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x406d7d
mov eax, 0x278
pop edi
pop esi
pop ebx
leave
ret