Function at 0x4054c0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x23c
mov eax, dword [0x456fc0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x248], eax
xor eax, eax
mov byte [esp + 0x144], 0
mov ecx, 0x40
lea edi, [esp + 0x145]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x250]
push eax
push 0x445f7c
lea ecx, [esp + 0x14c]
push 0x104
push ecx
call fcn.00429f6c
mov ebx, dword [0x455690]
mov eax, 0x709ad4e5
imul ebx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0xc2c05bdf
imul dword [0x45569c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
sub edi, ecx
mov ecx, dword [0x455694]
mov esi, dword [0x4556a8]
mov ebp, dword [0x45568c]
imul esi, esi, 0x12b
mov eax, 0xe070381d
imul ebp, ebp, 0x217
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4556a4]
mov eax, 0x42776e9b
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebp, esi
add ebp, edi
mov edi, dword [0x4556a0]
add ecx, ebp
imul edi, edi, 0x217
mov ebp, eax
mov eax, 0x3949660b
imul dword [0x45569c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ebx
imul edx, edx, 0xb8
sub eax, ebp
sub eax, edx
sub eax, edi
add eax, ecx
mov dword [str._r_____r____], ecx
mov ecx, dword [0x455688]
add esp, 0x10
add ecx, eax
mov dword [0x455688], ecx
mov ecx, dword [0x45568c]
mov dword [esp + 0x10], 0
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xe070381d
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add ecx, edx
add eax, ecx
mov ecx, dword [0x455694]
sub eax, esi
sub eax, ecx
push 0
lea ecx, [eax + edi + 0x1d3]
push 2
mov dword [0x45568c], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ecx, dword [0x4556a4]
mov ebp, eax
mov edi, dword [0x45569c]
mov eax, 0x709ad4e5
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, dword [0x455688]
mov esi, eax
mov eax, 0xc2c05bdf
imul edi
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ebx
imul edx, edx, 0x14f
mov eax, edi
imul eax, eax, 0x92
sub ecx, esi
mov esi, dword [0x45568c]
add ecx, edx
add ecx, eax
mov eax, 0xe070381d
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
mov dword [0x4556a4], ecx
jne 0x40570a
mov esi, dword [0x4556a0]
mov eax, 0xbd889165
imul esi, esi, 0x217
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x3949660b
imul edi
sub ecx, esi
mov esi, dword [str._r_____r____]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add ecx, edx
add eax, ecx
mov ecx, dword [0x455690]
imul ecx, ecx, 0xb8
sub eax, ecx
add eax, esi
add ebx, eax
push str.CreateToolhelp32Snapshot__of_processes_
mov dword [0x455688], ebx
call fcn.00429f06
add esp, 4
jmp 0x405d11
mov esi, dword [0x4556a8]
imul ebx, ebx, 0x1ed
mov ecx, dword [0x455690]
imul esi, esi, 0x246
mov eax, 0x709ad4e5
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x8c55841d
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
add esi, ebx
mov ebx, dword [0x4556a0]
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
lea edx, [esp + 0x1c]
sub esi, ebx
push edx
sub esi, 0xb8
push ebp
mov dword [0x455690], esi
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4057d5
mov esi, dword [0x455698]
mov eax, dword [0x45568c]
imul esi, esi, 0x1ed
mov ecx, dword [0x45569c]
imul eax, eax, 0x217
add esi, eax
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x92
sub esi, ecx
add esi, dword [0x4556a4]
lea eax, [edx + esi - 0xb8]
push ebp
mov dword [0x455694], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405d11
mov ecx, dword [0x4556a8]
mov eax, 0x3d3fa421
imul ecx
imul ecx, ecx, 0xb8
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455698]
mov esi, eax
mov eax, 0x6d978b8f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a0]
imul edx, edx, 0x14f
mov edi, eax
sub edi, esi
add edi, edx
sub edi, ecx
mov ecx, dword [0x455694]
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov dword [0x455698], edi
mov eax, 0x709ad4e5
imul ecx
imul ecx, ecx, 0xb8
sar edx, 8
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [0x45568c]
mov eax, edx
imul eax, eax, 0x23c
add esi, eax
mov eax, dword [0x455690]
imul eax, eax, 0x217
add esi, eax
mov eax, 0x42776e9b
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x44]
push edx
mov dword [0x45569c], esi
call fcn.00433c8e
add esp, 8
test eax, eax
je 0x405a61
mov ecx, dword [0x45568c]
mov eax, 0x8c55841d
imul ecx
add edx, ecx
mov ecx, dword [str._r_____r____]
sar edx, 8
imul ecx, ecx, 0x1d3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455698]
imul edx, edx, 0x59
sub ecx, eax
mov eax, dword [esp + 0x24]
push eax
push 0
add ecx, edx
push 0x1f0fff
mov dword [0x4556a0], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [0x455690]
mov ebx, dword [0x45569c]
mov esi, eax
mov eax, 0x709ad4e5
imul edi
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0xc2c05bdf
imul ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a8]
mov ebp, eax
imul edx, edx, 0x12b
sub ebp, ecx
mov ecx, dword [0x45568c]
imul ecx, ecx, 0x217
add ebp, ecx
mov ecx, dword [0x455694]
add ebp, edx
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ebp, edx
add ecx, ebp
test esi, esi
mov dword [str._r_____r____], ecx
jne 0x40597d
push 0x445f48
call fcn.00429f06
add esp, 4
jmp 0x405a43
mov edx, dword [0x4556a4]
imul edi, edi, 0xb8
mov ebp, dword [0x4556a0]
mov eax, 0xbd889165
imul ebp, ebp, 0x217
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ebp
mov ebp, eax
mov eax, 0x3949660b
imul ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, edi
mov edi, dword [0x455688]
add eax, ecx
add edi, eax
push esi
mov dword [0x455688], edi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
test eax, eax
jne 0x4059e7
push 0x445f34
call fcn.00429f06
add esp, 4
mov ecx, dword [0x455694]
mov eax, 0x709ad4e5
imul ecx
imul ecx, ecx, 0xb8
sar edx, 8
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [0x45568c]
mov eax, edx
imul eax, eax, 0x23c
add edi, eax
mov eax, dword [0x455690]
imul eax, eax, 0x217
add edi, eax
mov eax, 0x42776e9b
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
push esi
mov dword [0x45569c], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x405ad0
mov ecx, dword [0x455694]
jmp 0x405840
mov esi, dword [0x4556a8]
mov ecx, dword [0x455698]
mov eax, 0x3d3fa421
imul esi
imul esi, esi, 0xb8
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x6d978b8f
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4556a0]
imul edx, edx, 0x14f
sub ecx, edi
add ecx, edx
mov edi, dword [esp + 0x24]
sub ecx, esi
mov esi, dword [0x455694]
mov eax, 0xe070381d
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov dword [0x455698], ecx
jmp 0x405ada
mov ecx, dword [0x455698]
mov edi, dword [esp + 0x10]
mov esi, dword [0x45568c]
imul ecx, ecx, 0x59
mov eax, 0x8c55841d
imul esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add edx, esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x1d3
sub edx, eax
add edx, ecx
push ebp
mov dword [0x4556a0], edx
call ebx
mov esi, dword [0x4556a0]
mov eax, dword [0x4556a8]
imul esi, esi, 0x217
mov ecx, dword [0x45568c]
imul eax, eax, 0x12b
sub esi, eax
mov eax, 0xc3a13de7
imul ecx
add edx, ecx
mov ecx, dword [0x455690]
sar edx, 8
add esi, edx
mov ebp, edx
mov eax, 0xe070381d
imul ecx
add edx, ecx
shr ebp, 0x1f
sar edx, 7
add ebp, esi
mov esi, dword [0x455694]
mov ecx, edx
shr ecx, 0x1f
add ebp, edx
add ecx, ebp
sub ecx, esi
add ecx, 0x1d3
test edi, edi
mov dword [0x45568c], ecx
je 0x405cac
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [0x45569c]
mov ebp, dword [0x4556a8]
mov ecx, dword [0x455688]
imul ebp, ebp, 0x246
mov esi, eax
imul ecx, ecx, 0x1ed
mov eax, 0x709ad4e5
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
add ebp, ecx
mov ecx, dword [0x455690]
mov eax, 0x8c55841d
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4556a0]
sub ebp, eax
sub ebp, edx
sub ebp, 0xb8
test esi, esi
mov dword [0x455690], ebp
je 0x405d11
mov ecx, dword [0x455698]
mov edx, dword [0x45568c]
imul ecx, ecx, 0x1ed
imul edx, edx, 0x217
add ecx, edx
mov eax, 0xc3a13de7
imul edi
add edx, edi
mov edi, dword [0x4556a4]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x92
sub ecx, eax
add ecx, edi
push 0
lea eax, [edx + ecx - 0xb8]
push esi
mov dword [0x455694], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x45568c]
mov eax, 0x8c55841d
imul ecx
mov eax, dword [0x455698]
add edx, ecx
imul eax, eax, 0x59
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x1d3
sub edx, ecx
add edx, eax
push esi
mov dword [0x4556a0], edx
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x238]
call fcn.004291fd
add esp, 0x23c
ret
mov edx, dword [0x4556a4]
mov esi, dword [0x45569c]
mov eax, 0x709ad4e5
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xc2c05bdf
imul esi
imul esi, esi, 0x92
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x455688]
imul edx, edx, 0x14f
mov ebx, eax
sub ebx, edi
add ebx, edx
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add ebx, esi
add eax, edx
sub ebx, eax
mov dword [0x4556a4], ebx
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.004291fd
add esp, 0x23c
ret