Function at 0x44ba70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x5faea4]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
push 0
mov edi, ecx
push 2
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x44bae0
push 0x451e90
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CreateToolhelp32Snapshot_failed.
call fcn.00451a50
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_____]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00579fe8
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x128
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x44bb37
push 0x451e90
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Process32First_failed.
call fcn.00451a50
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 ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00579fe8
mov esp, ebp
pop ebp
ret
xor al, al
mov byte [esp + 0xf], al
nop dword [eax]
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x44bce1
nop dword [eax]
cmp byte [esp + 0x54], 0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jne 0x44bb70
xor eax, eax
jmp 0x44bb80
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44bb77
sub eax, edx
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
call fcn.0044f8d0
push esi
lea ecx, [esp + 0x1c]
call fcn.0044f7b0
mov ecx, dword [esp + 0x2c]
mov ebx, eax
cmp ecx, 0x10
jb 0x44bbe4
mov edx, dword [esp + 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x44bbdb
test dl, 0x1f
jne 0x44bd04
mov eax, dword [edx - 4]
cmp eax, edx
jae 0x44bd04
sub edx, eax
cmp edx, 4
jb 0x44bd04
cmp edx, 0x23
ja 0x44bd04
mov edx, eax
push edx
call fcn.0057a118
add esp, 4
test ebx, ebx
jne 0x44bcce
push dword [esp + 0x38]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x44bca4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x451e90
push ecx
test eax, eax
jne 0x44bc48
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.TerminateProcess_failed_for_process
call fcn.00451a50
mov edx, esi
mov ecx, eax
call fcn.00451c90
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 ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x44bcd4
push dword [esp + 0x40]
mov edx, str.Process
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00451a50
mov edx, esi
mov ecx, eax
call fcn.00451c90
mov edx, str.__PID:
mov ecx, eax
call fcn.00451a50
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___unsigned_long_int_]
mov edx, str.__terminated.
mov ecx, eax
call fcn.00451a50
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 ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x13], 1
call ebx
jmp 0x44bcd4
push 0x451e90
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.OpenProcess_failed_for_process
call fcn.00451a50
mov edx, esi
mov ecx, eax
call fcn.00451c90
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_____]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x18
cmp esi, edi
jne 0x44bb50
jmp 0x44bce7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x44bd0a
mov edi, dword [esp + 0x14]
jmp 0x44bb40
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
call ebx
mov ecx, dword [esp + 0x15c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00579fe8
mov esp, ebp
pop ebp
ret