Function at 0x401170
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4414b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x44b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x280], esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x284], edi
cmp edi, 0xffffffff
jne 0x4011f6
push 0x402740
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_creating_snapshot
call fcn.00402550
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x401631
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Looking_for_process:
mov dword [ebp - 0x278], 0x22c
call fcn.00402550
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x40121a
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00402bd0
add esp, 4
mov ecx, eax
push 0x402740
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401609
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x44]
call fcn.00402080
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
lea edi, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
xorps xmm0, xmm0
cmova edx, dword [ebp - 0x44]
cmova edi, dword [ebp - 0x44]
movups xmmword [ebp - 0x29c], xmm0
lea edx, [edx + eax*2]
cmp edi, edx
jne 0x4012c9
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0xf
mov byte [ebp - 0x29c], 0
jmp 0x4013d0
sub edx, edi
mov esi, 0xf
sar edx, 1
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x288], esi
cmp edx, 0x7fffffff
ja 0x401654
cmp edx, esi
jbe 0x40138d
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x40130e
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
jmp 0x401340
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x40132e
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x288], esi
jmp 0x401393
cmp eax, 0x1000
jb 0x401370
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40164f
push ecx
call fcn.00440264
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401603
mov edx, dword [ebp - 0x27c]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x29c], eax
mov dword [eax - 4], ecx
jmp 0x401393
push eax
call fcn.00440264
mov edx, dword [ebp - 0x27c]
add esp, 4
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x288], esi
jmp 0x401393
mov eax, dword [ebp - 0x29c]
cmp esi, 0xf
lea ecx, [ebp - 0x29c]
mov esi, edx
cmova ecx, eax
mov dword [ebp - 0x27c], ecx
test edx, edx
je 0x4013c0
nop dword [eax + eax]
mov al, byte [edi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edi, [edi + 2]
sub esi, 1
jne 0x4013b0
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x28c], edx
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x401404
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4013fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401603
push ecx
push edx
call fcn.004403a9
add esp, 8
movups xmm0, xmmword [ebp - 0x29c]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Found_process:
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x28c]
movq qword [ebp - 0x1c], xmm0
call fcn.00402550
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.00402bd0
add esp, 4
mov ecx, eax
push 0x402740
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x280]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x401461
mov ecx, dword [eax]
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push ecx
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401560
push dword [ebp - 0x270]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401534
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Terminating_process:
call fcn.00402550
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.00402bd0
add esp, 4
mov ecx, eax
push 0x402740
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x402740
test eax, eax
je 0x401504
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Process_terminated_successfully
call fcn.00402550
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_terminate_process._Error:
push eax
call fcn.00402550
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401560
push 0x402740
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_open_process._Error:
push eax
call fcn.00402550
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x40159a
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401590
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401603
push ecx
push edx
call fcn.004403a9
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 0xf
jbe 0x4015e5
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4015db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401603
push ecx
push edx
call fcn.004403a9
add esp, 8
mov edi, dword [ebp - 0x284]
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401250
jmp 0x40162a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x402740
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.No_processes_found
call fcn.00402550
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00440256
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004010c0
call fcn.00401160
int3