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

Disassembly:
sub esp, 0x238
mov eax, dword [0x45f540]
mov edx, dword [esp + 0x23c]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x244], eax
xor eax, eax
mov byte [esp + 0x140], 0
mov ecx, 0x40
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x44e064
stosb byte es:[edi], al
lea eax, [esp + 0x148]
push 0x104
push eax
call fcn.0043111c
mov ebx, dword [0x45dbd4]
mov eax, 0xa33a575b
imul ebx
add edx, ebx
sar edx, 9
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x4a4dc96f
imul ebx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebp, ecx
mov ecx, dword [0x45dbcc]
mov eax, 0x4a4dc96f
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ebp
mov edx, ecx
imul edx, edx, 0x365
add eax, edx
mov ebp, eax
mov eax, 0xc152500d
imul ecx
add edx, ecx
mov ecx, dword [0x45dbdc]
mov edi, dword [0x45dbe8]
imul ecx, ecx, 0x221
sar edx, 9
imul edi, edi, 0x338
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbc8]
sub ebp, eax
mov eax, dword [0x45dbe0]
add ebp, esi
add ecx, ebp
lea ebp, [eax + edx]
mov eax, 0x96d4b1f
imul ebp, ebp, 0x92
imul dword [0x45dbd0]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
mov ebp, dword [0x45dbe4]
mov dword [esp + 0x24], eax
add ecx, edi
mov eax, 0xf07fc3e1
add esp, 0x10
imul dword [0x45dbe4]
mov dword [str._r_____r____], ecx
add edx, ebp
mov ebp, dword [esp + 0x14]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x57d990d1
imul dword [0x45dbd0]
sar edx, 7
add ebp, edx
mov eax, edx
shr eax, 0x1f
add eax, ebp
mov ebp, dword [0x45dbd0]
mov dword [esp + 0x14], eax
mov eax, 0xe070381d
imul dword [0x45dbd0]
add edx, ebp
mov ebp, dword [esp + 0x14]
sar edx, 7
add ebp, edx
mov eax, edx
shr eax, 0x1f
add eax, ebp
mov ebp, dword [0x45dbe0]
mov dword [0x45dbc8], eax
imul ebp, ebp, 0x365
mov eax, 0xf07fc3e1
imul ebx
add edx, ebx
sar edx, 9
add ebp, edx
mov ebx, edx
mov eax, 0x5e6ea9af
imul dword [0x45dbcc]
mov eax, dword [0x45dbe4]
imul eax, eax, 0x92
shr ebx, 0x1f
add ebx, ebp
sar edx, 7
mov ebp, edx
shr ebp, 0x1f
add ebx, edx
add ebp, ebx
add ebp, eax
sub ebp, edi
sub ebp, ecx
push 0
lea ecx, [esi + ebp + 0x2f4]
push 2
mov dword [esp + 0x1c], 0
mov dword [0x45dbcc], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, dword [0x45dbd4]
mov edi, dword [0x45dbc8]
mov ecx, dword [0x45dbe4]
mov ebx, eax
lea ebp, [edi + edx]
mov eax, 0x4a4dc96f
imul ebp, ebp, 0x15b
imul ecx
mov ecx, dword [0x45dbd8]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0xa33a575b
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0xc152500d
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
mov esi, dword [str._r_____r____]
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0x323
sub ebp, eax
add ebp, edx
mov eax, 0xad602b59
imul esi
add edx, esi
sar edx, 9
mov esi, edx
shr esi, 0x1f
add ebp, edx
add esi, ebp
cmp ebx, 0xffffffff
mov dword [0x45dbe4], esi
jne 0x406826
mov eax, dword [0x45dbe0]
mov ecx, dword [0x45dbd0]
add edi, eax
mov eax, 0x96d4b1f
imul edi, edi, 0x92
imul ecx
sar edx, 5
mov ebx, edx
add edi, edx
mov eax, 0xf07fc3e1
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
shr ebx, 0x1f
add ebx, edi
sub ebx, eax
mov eax, 0x57d990d1
imul ecx
sar edx, 7
mov esi, edx
add ebx, edx
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
shr esi, 0x1f
mov ecx, edx
add esi, ebx
shr ecx, 0x1f
add esi, edx
add ecx, esi
push str.CreateToolhelp32Snapshot__of_processes_
mov dword [0x45dbc8], ecx
call fcn.004310b6
add esp, 4
jmp 0x407031
mov edx, dword [0x45dbdc]
imul edi, edi, 0x221
mov eax, 0x4a4dc96f
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
mov ebp, ecx
imul edx, edx, 0x338
imul ebp, ebp, 0x372
sub ebp, eax
add ebp, edx
mov edx, dword [0x45dbd0]
mov eax, 0xad602b59
imul edx
add edx, dword [0x45dbd0]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ebp, edi
add ebp, edx
add ecx, ebp
lea edx, [esp + 0x18]
sub ecx, esi
push edx
sub ecx, 0x92
push ebx
mov dword [0x45dbd0], ecx
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x406929
mov esi, dword [0x45dbdc]
mov ecx, dword [str._r_____r____]
mov eax, dword [0x45dbd8]
lea edi, [eax + ecx]
imul ecx, ecx, 0x323
imul edi, edi, 0x221
mov edx, esi
imul edx, edx, 0x365
add edi, edx
mov eax, 0xa33a575b
imul esi
add edx, esi
sar edx, 9
mov ebp, edx
add edi, edx
mov eax, 0x5e6ea9af
imul esi
sar edx, 7
shr ebp, 0x1f
mov eax, edx
add ebp, edi
shr eax, 0x1f
add ebp, ecx
mov ecx, dword [0x45dbe0]
add eax, edx
sub ebp, eax
lea edx, [ecx + ebp - 0x92]
push ebx
mov dword [0x45dbd4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407031
mov esi, dword [0x45dbe8]
mov ecx, dword [0x45dbc8]
mov eax, 0x96d4b1f
imul ecx, ecx, 0x323
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x13e22cbd
imul esi
imul esi, esi, 0x92
sar edx, 6
add ecx, edx
mov edi, edx
shr edi, 0x1f
add edi, ecx
mov ecx, dword [0x45dbd4]
mov eax, 0xa33a575b
imul ecx
add edx, ecx
mov ecx, dword [0x45dbe0]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x5e6ea9af
imul ecx
sar edx, 7
add edi, edx
mov eax, edx
mov edx, ecx
imul edx, edx, 0x15b
shr eax, 0x1f
add eax, edi
add eax, edx
sub eax, esi
mov dword [0x45dbd8], eax
lea esp, [esp]
mov esi, dword [0x45dbcc]
imul ecx, ecx, 0x175
mov eax, dword [0x45dbd0]
mov edi, dword [0x45dbe4]
lea ebp, [eax + esi]
mov eax, 0x4a4dc96f
imul ebp, ebp, 0x2a6
imul edi
sar edx, 8
mov eax, edx
add ebp, edx
shr eax, 0x1f
add eax, ebp
mov ebp, eax
mov eax, 0xa33a575b
imul edi
add edx, edi
sar edx, 9
mov edi, edx
add ebp, edx
mov eax, 0xf07fc3e1
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr edi, 0x1f
shr eax, 0x1f
add eax, edx
add edi, ebp
sub edi, eax
add edi, ecx
mov ecx, dword [0x45dbdc]
imul ecx, ecx, 0x92
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x40]
add edi, ecx
push eax
mov dword [0x45dbdc], edi
call fcn.0043aeee
add esp, 8
test eax, eax
je 0x406c98
mov ecx, dword [0x45dbe8]
mov edx, dword [0x45dbd0]
mov eax, dword [0x45dbd4]
mov esi, dword [0x45dbcc]
imul eax, eax, 0x338
lea edi, [edx + ecx]
imul edi, edi, 0x2f4
sub edi, eax
mov eax, 0xad602b59
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0xc152500d
imul ecx
mov eax, dword [0x45dbdc]
add edx, ecx
imul eax, eax, 0x92
sar edx, 9
mov ecx, edx
add edi, edx
mov edx, dword [0x45dbd8]
imul edx, edx, 0x175
shr ecx, 0x1f
add ecx, edi
add ecx, edx
sub ecx, eax
mov dword [0x45dbe0], ecx
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [0x45dbd4]
mov esi, eax
mov ecx, dword [0x45dbcc]
mov eax, 0x4a4dc96f
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, 0x4a4dc96f
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x365
sub eax, ebp
add eax, edx
mov edx, dword [0x45dbe8]
imul edx, edx, 0x338
add eax, edx
mov ebp, eax
mov eax, 0xa33a575b
imul edi
add edx, edi
sar edx, 9
add ebp, edx
mov edi, edx
mov eax, 0xc152500d
imul ecx
add edx, ecx
mov ecx, dword [0x45dbdc]
sar edx, 9
imul ecx, ecx, 0x221
shr edi, 0x1f
mov eax, edx
shr eax, 0x1f
add edi, ebp
add eax, edx
sub edi, eax
add edi, ecx
mov dword [str._r_____r____], edi
test esi, esi
jne 0x406b69
push 0x44e030
call fcn.004310b6
add esp, 4
jmp 0x406c7a
mov edx, dword [0x45dbc8]
mov eax, dword [0x45dbe0]
mov ecx, dword [0x45dbd0]
lea edi, [eax + edx]
mov eax, 0x96d4b1f
imul edi, edi, 0x92
imul ecx
sar edx, 5
add edi, edx
mov ebp, edx
shr ebp, 0x1f
add ebp, edi
mov edi, dword [0x45dbe4]
mov eax, 0xf07fc3e1
imul edi
add edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x57d990d1
imul ecx
sar edx, 7
mov edi, edx
add ebp, edx
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
shr edi, 0x1f
mov ecx, edx
add edi, ebp
shr ecx, 0x1f
add edi, edx
add ecx, edi
push esi
mov dword [0x45dbc8], ecx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
test eax, eax
jne 0x406bf7
push 0x44e01c
call fcn.004310b6
add esp, 4
mov ecx, dword [0x45dbcc]
mov edi, dword [0x45dbe4]
mov edx, dword [0x45dbd0]
lea ebp, [edx + ecx]
mov eax, 0x4a4dc96f
imul ebp, ebp, 0x2a6
imul edi
sar edx, 8
mov eax, edx
add ebp, edx
shr eax, 0x1f
add eax, ebp
mov ebp, eax
mov eax, 0xa33a575b
imul edi
add edx, edi
sar edx, 9
mov edi, edx
add ebp, edx
mov eax, 0xf07fc3e1
imul ecx
add edx, ecx
mov ecx, dword [0x45dbe0]
sar edx, 9
imul ecx, ecx, 0x175
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbdc]
shr edi, 0x1f
imul edx, edx, 0x92
add edi, ebp
sub edi, eax
add edi, ecx
add edi, edx
push esi
mov dword [0x45dbdc], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x406d2a
mov ecx, dword [0x45dbe0]
jmp 0x4069b0
mov esi, dword [0x45dbe8]
mov edi, dword [0x45dbc8]
mov eax, 0x96d4b1f
imul edi, edi, 0x323
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x13e22cbd
imul esi
sar edx, 6
sub edi, ecx
mov eax, edx
shr eax, 0x1f
add edi, edx
add eax, edi
mov edi, dword [0x45dbd4]
mov ecx, eax
mov ebp, dword [0x45dbe0]
mov eax, 0xa33a575b
imul edi
add edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x5e6ea9af
imul ebp
imul ebp, ebp, 0x15b
mov eax, ecx
sar edx, 7
add eax, edx
mov ecx, edx
mov edx, esi
imul edx, edx, 0x92
shr ecx, 0x1f
add ecx, eax
mov eax, dword [esp + 0x20]
add ecx, ebp
sub ecx, edx
mov dword [0x45dbd8], ecx
mov dword [esp + 0x14], eax
jmp 0x406d3c
mov edi, dword [0x45dbd4]
mov esi, dword [0x45dbe8]
mov ecx, dword [0x45dbd8]
mov edx, dword [0x45dbd0]
imul edi, edi, 0x338
imul ecx, ecx, 0x175
lea ebp, [edx + esi]
imul ebp, ebp, 0x2f4
sub ebp, edi
mov edi, dword [0x45dbcc]
mov eax, 0xad602b59
imul edi
add edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0xc152500d
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
add eax, ecx
mov ecx, dword [0x45dbdc]
imul ecx, ecx, 0x92
sub eax, ecx
push ebx
mov dword [0x45dbe0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x45dbe0]
mov edx, dword [0x45dbe8]
imul esi, esi, 0x365
mov ecx, dword [0x45dbd4]
imul edx, edx, 0x338
sub esi, edx
mov eax, 0xa33a575b
imul ecx
add edx, ecx
sar edx, 9
add esi, edx
mov edi, edx
mov eax, 0xf07fc3e1
imul ecx
add edx, ecx
sar edx, 9
shr edi, 0x1f
add edi, esi
add edi, edx
mov esi, edx
mov edx, dword [0x45dbcc]
mov eax, 0x5e6ea9af
imul edx
shr esi, 0x1f
sar edx, 7
add esi, edi
add esi, edx
mov eax, edx
mov edx, dword [0x45dbe4]
shr eax, 0x1f
add eax, esi
mov esi, edx
imul esi, esi, 0x92
add eax, esi
mov esi, dword [str._r_____r____]
sub eax, esi
add eax, 0x2f4
mov dword [0x45dbcc], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406fbc
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [0x45dbdc]
mov edi, eax
mov ebx, dword [0x45dbd8]
mov esi, dword [0x45dbd0]
mov eax, 0x4a4dc96f
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
imul edx, edx, 0x338
mov ebp, ebx
imul ebp, ebp, 0x372
sub ebp, eax
add ebp, edx
mov eax, 0xad602b59
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbc8]
imul edx, edx, 0x221
mov esi, dword [0x45dbe4]
sub ebp, eax
add ebp, edx
mov eax, 0xe070381d
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, esi
sub eax, 0x92
test edi, edi
mov dword [0x45dbd0], eax
je 0x407031
mov esi, dword [str._r_____r____]
add ebx, esi
imul esi, esi, 0x323
mov edx, ecx
imul ebx, ebx, 0x221
imul edx, edx, 0x365
add ebx, edx
mov eax, 0xa33a575b
imul ecx
add edx, ecx
sar edx, 9
mov ebp, edx
add ebx, edx
mov eax, 0x5e6ea9af
imul ecx
mov ecx, dword [0x45dbe0]
sar edx, 7
shr ebp, 0x1f
mov eax, edx
add ebp, ebx
shr eax, 0x1f
add eax, edx
add ebp, esi
sub ebp, eax
push 0
lea edx, [ecx + ebp - 0x92]
push edi
mov dword [0x45dbd4], edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x45dbe8]
mov eax, dword [0x45dbd0]
mov edx, dword [0x45dbd4]
mov esi, dword [0x45dbcc]
imul edx, edx, 0x338
lea ebx, [eax + ecx]
imul ebx, ebx, 0x2f4
sub ebx, edx
mov eax, 0xad602b59
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0xc152500d
imul ecx
mov eax, dword [0x45dbdc]
add edx, ecx
imul eax, eax, 0x92
sar edx, 9
mov ecx, edx
add ebx, edx
mov edx, dword [0x45dbd8]
imul edx, edx, 0x175
shr ecx, 0x1f
add ecx, ebx
add ecx, edx
sub ecx, eax
push edi
mov dword [0x45dbe0], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x407033
mov eax, dword [0x45dbc8]
lea edi, [eax + ecx]
mov eax, 0x4a4dc96f
imul edi, edi, 0x15b
imul edx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub edi, ecx
mov ecx, dword [0x45dbd8]
mov eax, 0xa33a575b
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0xc152500d
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, esi
imul edx, edx, 0x323
sub edi, ecx
add edi, edx
mov eax, 0xad602b59
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edi, edx
add eax, edi
mov dword [0x45dbe4], eax
xor eax, eax
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004303dd
add esp, 0x238
ret