Function at 0x406dec
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1644
call fcn.005b9360
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push esi
mov dword [esp + 0x2c], ebx
call fcn.005b3330
mov edi, eax
lea eax, [edi - 1]
pop ecx
cmp eax, 0x102
ja 0x40721a
cmp edi, ebx
jle 0x406e4e
mov dword [esp + 0x14], esi
lea eax, [esp + 0x160]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
lea esi, [esp + ebx + 0x160]
movsx eax, byte [eax + esi]
push eax
call fcn.005b5a7a
inc ebx
cmp ebx, edi
pop ecx
mov byte [esi], al
jl 0x406e31
lea eax, [esp + 0x268]
push eax
mov byte [esp + edi + 0x164], 0
mov dword [esp + 0x26c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406e7d
mov eax, 0x25e
jmp 0x40721f
cmp dword [esp + 0x278], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x406eab
cmp dword [esp + 0x278], 1
je 0x407017
mov eax, 0x25f
jmp 0x40721f
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406ec8
mov eax, 0x25d
jmp 0x40721f
push str.EnumProcesses
push eax
call esi
push str.EnumProcessModules
push dword [esp + 0x18]
mov edi, eax
call esi
push str.GetModuleBaseNameA
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x20], eax
test edi, edi
je 0x407036
cmp dword [esp + 0x1c], 0
je 0x407036
test eax, eax
je 0x407036
lea eax, [esp + 0x2c]
push eax
push 0x3e8
lea eax, [esp + 0x6b8]
push eax
call edi
test eax, eax
jne 0x406f2d
mov esi, 0x2bd
jmp 0x40703b
mov eax, dword [esp + 0x2c]
and dword [esp + 0x10], 0
shr eax, 2
mov dword [esp + 0x24], eax
test eax, eax
jbe 0x407009
lea edi, [esp + 0x380]
call fcn.00421440
mov edi, dword [esp + 0x10]
lea edi, [esp + edi*4 + 0x6b0]
push dword [edi]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x18], eax
test eax, eax
je 0x406fa1
lea ecx, [esp + 0x2c]
push ecx
push 4
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [esp + 0x2c]
test eax, eax
je 0x406fa1
push 0x104
lea eax, [esp + 0x384]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x24]
call dword [esp + 0x30]
push dword [esp + 0x18]
call ebx
lea eax, [esp + 0x160]
push eax
lea eax, [esp + 0x384]
push eax
call fcn.005b5d0b
pop ecx
push eax
call fcn.005b5ab0
pop ecx
pop ecx
test eax, eax
jne 0x406ff7
push dword [edi]
inc eax
push 0
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4071f8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
test eax, eax
je 0x4071e3
call ebx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x24]
jb 0x406f45
cmp dword [esp + 0x278], 1
jne 0x4071be
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x40704c
mov eax, 0x2be
jmp 0x40721f
mov esi, 0x2bc
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40721f
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32First
push edi
mov dword [esp + 0x24], eax
call esi
push str.Process32Next
push edi
mov dword [esp + 0x20], eax
call esi
push str.Module32First
push edi
mov dword [esp + 0x28], eax
call esi
push str.Module32Next
push edi
mov dword [esp + 0x2c], eax
call esi
xor esi, esi
mov dword [esp + 0x30], eax
cmp dword [esp + 0x20], esi
je 0x407202
cmp dword [esp + 0x18], esi
je 0x407202
cmp eax, esi
je 0x407202
cmp dword [esp + 0x24], esi
je 0x407202
cmp dword [esp + 0x1c], esi
je 0x407202
push esi
push 2
call dword [esp + 0x24]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4070d4
mov esi, 0x2c0
jmp 0x40703b
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x40], 0x128
call dword [esp + 0x20]
jmp 0x4071b0
push dword [esp + 0x40]
push 8
call dword [esp + 0x24]
mov edi, eax
cmp edi, 0xffffffff
je 0x4071cf
lea eax, [esp + 0x488]
push eax
push edi
mov dword [esp + 0x490], 0x224
call dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x407198
lea eax, [esp + 0x160]
push eax
lea eax, [esp + 0x4ac]
push eax
call fcn.005b5ab0
pop ecx
pop ecx
test eax, eax
jne 0x407176
push dword [esp + 0x40]
inc eax
push esi
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4071ef
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
test eax, eax
je 0x4071da
call ebx
push dword [esp + 0x10]
call ebx
push esi
call ebx
xor esi, esi
jmp 0x407192
lea eax, [esp + 0x488]
push eax
push edi
mov dword [esp + 0x490], 0x224
call dword [esp + 0x38]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], esi
jne 0x407123
push edi
call ebx
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x40], 0x22c
call dword [esp + 0x28]
test eax, eax
jne 0x4070ee
push dword [esp + 0x10]
call ebx
cmp dword [esp + 0x28], 0
jne 0x40720c
mov esi, 0x25b
jmp 0x40703b
push dword [esp + 0x10]
call ebx
jmp 0x4070ca
call ebx
push dword [esp + 0x10]
call ebx
push esi
call ebx
mov esi, 0x25a
jmp 0x40703b
push edi
call ebx
push dword [esp + 0x10]
call ebx
mov esi, 0x25c
jmp 0x40703b
mov esi, 0x2bf
jmp 0x40703b
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40721f
mov eax, 0x278
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret