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

Disassembly:
push 0xffffffffffffffff
push 0x4198f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], eax
push ecx
push eax
mov dword [esp + 0x40], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4128d4
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [esp + 0x170]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x412740
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [ecx + ebp], bl
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x170], ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x412843
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4127b5
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov byte [esp + 0x168], 1
call dword [sym.imp.MSVCRT.dll__getpid]
cmp eax, dword [esp + 0x40]
jne 0x4127de
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41282c
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x412861
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x168], bl
cmp ecx, ebx
je 0x412820
mov al, byte [ecx - 1]
cmp al, bl
je 0x412816
cmp al, 0xff
je 0x412816
dec al
mov byte [ecx - 1], al
jmp 0x412820
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41275e
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x4128d4
mov al, byte [ecx - 1]
cmp al, bl
je 0x4128ca
cmp al, 0xff
je 0x4128ca
dec al
mov byte [ecx - 1], al
jmp 0x4128d4
mov edx, dword [esp + 0x40]
push edx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4128a4
mov al, byte [ecx - 1]
cmp al, bl
je 0x41289a
cmp al, 0xff
je 0x41289a
dec al
mov byte [ecx - 1], al
jmp 0x4128a4
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x4128d4
mov al, byte [ecx - 1]
cmp al, bl
je 0x4128ca
cmp al, 0xff
je 0x4128ca
dec al
mov byte [ecx - 1], al
jmp 0x4128d4
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 4