Function at 0x401180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x10], 0x128
push esi
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4011fc
push 0x401d20
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_create_snapshot._Error_code:
push eax
call fcn.00401b00
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_____]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00401f74
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4012a6
lea esi, [esp + 0x34]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401217
sub esi, ecx
mov edx, edi
cmp dword [edi + 0x14], 0x10
jb 0x40122a
mov edx, dword [edi]
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x401290
lea esi, [esp + 0x34]
sub ecx, 4
jb 0x401251
nop word [eax + eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x401256
add edx, 4
add esi, 4
sub ecx, 4
jae 0x401240
cmp ecx, 0xfffffffc
je 0x40128a
mov al, byte [edx]
cmp al, byte [esi]
jne 0x401283
cmp ecx, 0xfffffffd
je 0x40128a
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x401283
cmp ecx, 0xfffffffe
je 0x40128a
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x401283
cmp ecx, 0xffffffff
je 0x40128a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40128a
sbb eax, eax
or eax, 1
jmp 0x40128c
xor eax, eax
test eax, eax
je 0x4012f4
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401210
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4012dd
push 0x401d20
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_code:
push eax
call fcn.00401b00
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 ecx, dword [esp + 0x13c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401f74
mov esp, ebp
pop ebp
ret
push dword [esp + 0x18]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
jmp 0x4012a6