Function at 0x401110
Capabilities:
Enumerate process modules
Enumerate processes

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
sub esp, 0x678
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
lea eax, [ebp - 0x244]
mov dword [ebp - 0x674], ecx
push 0
push eax
mov dword [ebp - 0x10], 0x404204
mov esi, 0xd
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401181
push eax
jmp 0x401297
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401296
nop word [eax + eax]
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011b0
sub ecx, edx
sar ecx, 1
cmp esi, ecx
jne 0x401280
test esi, esi
je 0x4011ed
xor edx, edx
nop dword [eax]
mov cx, word [edx + 0x404204]
cmp cx, word [ebp + edx - 0x224]
jne 0x40127b
add edx, 2
sub esi, 1
jne 0x4011d0
mov eax, dword [ebp - 0x240]
push eax
push 0
push 0x1fffff
mov dword [ebp - 0x678], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [ebp - 0x674]
mov edx, str.___Attaching_to_assault_cube...
mov byte [eax + 8], 1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401850
push 0x401a70
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 esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0x404204
nop dword [eax + eax]
push 0x424
lea eax, [ebp - 0x66c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x670], 0x428
push dword [ebp - 0x678]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4012b2
push eax
jmp 0x401327
mov esi, 0xd
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4011a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f63
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x670]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x401326
lea ecx, [ebp - 0x650]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4012d0
sub ecx, edx
mov eax, 0xd
sar ecx, 1
cmp eax, ecx
jne 0x40136b
mov esi, eax
xor eax, eax
mov dx, word [eax + 0x404204]
cmp dx, word [ebp + eax - 0x650]
jne 0x40136b
add eax, 2
sub esi, 1
jne 0x4012f0
mov ecx, dword [ebp - 0x674]
mov eax, dword [ebp - 0x65c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x658]
mov dword [ecx + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov edi, dword [ebp - 0x674]
cmp dword [edi], 0
jbe 0x401240
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.___Attaching_result:_Success
call fcn.00401850
push 0x401a70
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 al, byte [edi + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401f63
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x670]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x4012c4
jmp 0x401320