Function at 0x407270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1644
call fcn.0050b430
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
call fcn.00504d00
mov edi, eax
lea eax, [edi - 1]
pop ecx
cmp eax, 0x102
ja 0x407349
cmp edi, ebx
jle 0x406fb7
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.0050762a
inc ebx
cmp ebx, edi
pop ecx
mov byte [esi], al
jl 0x406f9b
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 0x406fe4
mov eax, 0x25e
jmp 0x40734e
cmp dword [ebp - 0x360], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x407010
cmp dword [ebp - 0x360], 1
je 0x40715f
mov eax, 0x25f
jmp 0x40734e
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40702c
mov eax, 0x25d
jmp 0x40734e
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 0x40717d
cmp dword [ebp - 0x10], 0
je 0x40717d
test eax, eax
je 0x40717d
lea eax, [ebp - 0x20]
push eax
push 0x3e8
lea eax, [ebp - 0x1640]
push eax
call edi
test eax, eax
jne 0x40708a
mov esi, 0x2bd
jmp 0x407182
mov eax, dword [ebp - 0x20]
and dword [ebp - 4], 0
shr eax, 2
mov dword [ebp - 0x18], eax
test eax, eax
jbe 0x407152
lea edi, [ebp - 0x478]
call fcn.0041f390
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 0x4070f1
lea ecx, [ebp - 0x20]
push ecx
push 4
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x4070f1
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.005078bb
pop ecx
push eax
call fcn.00507660
pop ecx
pop ecx
test eax, eax
jne 0x407143
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 0x407328
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
test eax, eax
je 0x407314
call ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jb 0x40709f
cmp dword [ebp - 0x360], 1
jne 0x4072f2
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x407192
mov eax, 0x2be
jmp 0x40734e
mov esi, 0x2bc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40734e
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 0x407332
cmp dword [ebp - 0xc], esi
je 0x407332
cmp eax, esi
je 0x407332
cmp dword [ebp - 0x18], esi
je 0x407332
cmp dword [ebp - 0x10], esi
je 0x407332
push esi
push 2
call dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40720f
mov esi, 0x2c0
jmp 0x407182
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x150], 0x128
call dword [ebp - 0xc]
jmp 0x4072e5
push dword [ebp - 0x148]
push 8
call dword [ebp - 0x10]
mov edi, eax
cmp edi, 0xffffffff
je 0x407302
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 0x4072cb
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x680]
push eax
call fcn.00507660
pop ecx
pop ecx
test eax, eax
jne 0x4072ae
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 0x407320
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
test eax, eax
je 0x40730c
call ebx
push dword [ebp - 4]
call ebx
push esi
call ebx
xor esi, esi
jmp 0x4072c6
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 0x40725d
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 0x40722b
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0x1c], 0
jne 0x40733c
mov esi, 0x25b
jmp 0x407182
push dword [ebp - 4]
call ebx
jmp 0x407205
call ebx
push dword [ebp - 4]
call ebx
push esi
call ebx
mov esi, 0x25a
jmp 0x407182
push edi
call ebx
push dword [ebp - 4]
call ebx
mov esi, 0x25c
jmp 0x407182
mov esi, 0x2bf
jmp 0x407182
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40734e
mov eax, 0x278
pop edi
pop esi
pop ebx
leave
ret