Function at 0x408360
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ecx, esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0x408940
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
add eax, 4
mov dword [ebp - 0x38], eax
mov eax, dword [0x410570]
mov edx, dword [0x41057c]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + edx*4]
mov ecx, dword [ecx + 4]
cmp eax, ecx
jle 0x408407
lea eax, [0x410570]
mov dword [esp], eax
call fcn.00409650
cmp dword [0x410570], 0xffffffff
jne 0x408407
mov ecx, dword [ebp - 0x38]
call fcn.00408e40
mov edx, eax
mov eax, 0x1c
mov ecx, 0x1e
cmp edx, 0x1e
cmove eax, ecx
mov dword [0x41056c], eax
lea eax, [0x410570]
mov dword [esp], eax
call fcn.004096e0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp], 0x1fffff
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4084a8
mov dword [ebp - 0x10], 0
mov ecx, dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], str.____Failed_to_open_handle_to_process__error__
call fcn.004023e0
mov dword [ebp - 0x40], eax
jmp 0x40845c
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ecx, dword [ebp - 0x40]
mov edx, eax
mov eax, esp
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCP140D.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_]
call eax
sub esp, 4
mov dword [ebp - 0x44], eax
jmp 0x40847e
mov ecx, dword [ebp - 0x44]
mov eax, esp
mov dword [eax], 0x4027f0
mov eax, dword [sym.imp.MSVCP140D.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_____]
call eax
sub esp, 4
jmp 0x408498
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x28], 1
jmp 0x40871e
mov eax, dword [0x41056c]
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x3000
mov dword [esp + 0x10], 4
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x14
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x408558
mov dword [ebp - 0x10], 0
mov ecx, dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], str.____Failed_to_alloc_memory__error__
call fcn.004023e0
mov dword [ebp - 0x48], eax
jmp 0x40850c
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ecx, dword [ebp - 0x48]
mov edx, eax
mov eax, esp
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCP140D.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_]
call eax
sub esp, 4
mov dword [ebp - 0x4c], eax
jmp 0x40852e
mov ecx, dword [ebp - 0x4c]
mov eax, esp
mov dword [eax], 0x4027f0
mov eax, dword [sym.imp.MSVCP140D.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_____]
call eax
sub esp, 4
jmp 0x408548
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x28], 1
jmp 0x40871e
mov ecx, dword [ebp - 0x38]
mov eax, dword [0x41056c]
mov dword [ebp - 0x50], eax
call fcn.004044c0
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
xor edi, edi
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
sub esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x408613
mov dword [ebp - 0x10], 0
mov ecx, dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], str.____Failed_to_write_memory__error__
call fcn.004023e0
mov dword [ebp - 0x54], eax
jmp 0x4085c7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ecx, dword [ebp - 0x54]
mov edx, eax
mov eax, esp
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCP140D.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_]
call eax
sub esp, 4
mov dword [ebp - 0x58], eax
jmp 0x4085e9
mov ecx, dword [ebp - 0x58]
mov eax, esp
mov dword [eax], 0x4027f0
mov eax, dword [sym.imp.MSVCP140D.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_____]
call eax
sub esp, 4
jmp 0x408603
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x28], 1
jmp 0x40871e
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
sub esp, 0x1c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4086d3
mov dword [ebp - 0x10], 0
mov ecx, dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], str.____Failed_to_create_remote_thread__error__
call fcn.004023e0
mov dword [ebp - 0x5c], eax
jmp 0x408687
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ecx, dword [ebp - 0x5c]
mov edx, eax
mov eax, esp
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCP140D.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_]
call eax
sub esp, 4
mov dword [ebp - 0x60], eax
jmp 0x4086a9
mov ecx, dword [ebp - 0x60]
mov eax, esp
mov dword [eax], 0x4027f0
mov eax, dword [sym.imp.MSVCP140D.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_____]
call eax
sub esp, 4
jmp 0x4086c3
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x28], 1
jmp 0x40871e
mov dword [ebp - 0x10], 0
mov ecx, dword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], str.Injected___1488___n
call fcn.004023e0
jmp 0x4086f5
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x38]
call fcn.00401a00
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
and al, 1
movzx eax, al
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret