Function at 0x4810a0
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x5f88c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x438], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0xffffffff
jne 0x4810fa
push 0x46f8e0
push 0x5a68f4
push 0x604370
call fcn.0046e8d0
add esp, 8
mov ecx, eax
call fcn.004700d0
xor al, al
jmp 0x48136c
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48135d
mov edx, dword [ebp - 0x430]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x481342
mov dword [ebp - 0x440], 0x400
xor ecx, ecx
mov eax, dword [ebp - 0x440]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054b2d5
add esp, 4
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x450], 0
lea ecx, [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x440]
shl edx, 2
push edx
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x444]
push ecx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x481264
mov dword [ebp - 0x44c], 0
jmp 0x4811c8
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x454]
shr eax, 2
cmp dword [ebp - 0x44c], eax
jae 0x48125f
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x444]
push edx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x48125a
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00567994
add esp, 8
test eax, eax
jne 0x48125a
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x481239
push 0
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x48125a
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x48136c
jmp 0x4811b9
jmp 0x4812f1
mov eax, dword [ebp - 0x440]
shl eax, 2
cmp dword [ebp - 0x454], eax
jae 0x4812f1
cmp dword [ebp - 0x43c], 0
je 0x4812e2
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x45c]
push edx
call fcn.0054b2de
add esp, 4
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp - 0x440]
shl eax, 1
mov dword [ebp - 0x440], eax
xor ecx, ecx
mov eax, dword [ebp - 0x440]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054b2d5
add esp, 4
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x450]
add ecx, 1
mov dword [ebp - 0x450], ecx
cmp dword [ebp - 0x450], 0
je 0x481307
cmp dword [ebp - 0x450], 4
jl 0x481181
cmp dword [ebp - 0x43c], 0
je 0x481335
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.0054b2de
add esp, 4
mov dword [ebp - 0x43c], 0
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x448]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x481115
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054b289
mov esp, ebp
pop ebp
ret