Function at 0x4017b0
Capabilities:
Create thread
Delete file
Enumerate processes
Extract resource via kernel32 functions
Get common file path
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4044f0
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xa
push 0x1b39
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401820
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_find_resource.
call fcn.00402cb0
mov ecx, eax
call fcn.00402ed0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov eax, 1
jmp 0x401b99
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40184b
mov edx, str.Failed_to_load_resource.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00402cb0
mov edx, 0x405300
mov ecx, eax
call fcn.00402cb0
jmp 0x40180a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40187c
mov edx, str.Failed_to_get_temp_path.
jmp 0x401832
lea eax, [ebp - 0x114]
push eax
push 0
push 0x40533c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4018a2
mov edx, str.Failed_to_get_temp_file_name.
jmp 0x401832
push 0xb0
lea eax, [ebp - 0x4f4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x4f4]
call fcn.00402770
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4f4]
mov eax, dword [ebp - 0x4f4]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
test al, al
je 0x40190f
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_temp_file_for_writing.
call fcn.00402cb0
mov edx, 0x405300
mov ecx, eax
call fcn.00402cb0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
push 0
push esi
push edi
lea ecx, [ebp - 0x4f4]
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__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x4f0]
call fcn.00402b50
test eax, eax
jne 0x401946
push eax
mov eax, dword [ebp - 0x4f4]
lea ecx, [ebp - 0x4f4]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019dc
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4019d5
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea ecx, [ebp - 0x420]
mov eax, str.mbii.x86.exe
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4019b6
test dx, dx
je 0x4019b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4019b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x401990
xor eax, eax
jmp 0x4019bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4019cf
lea eax, [ebp - 0x444]
push eax
push esi
call edi
test eax, eax
jne 0x401980
jmp 0x4019d5
mov ebx, dword [ebp - 0x43c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401a1d
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_target_process.
call fcn.00402cb0
mov edx, 0x405300
mov ecx, eax
call fcn.00402cb0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
jmp 0x401b21
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a26
sub ecx, edx
push 4
push 0x1000
lea ebx, [ecx + 1]
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x401a76
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_allocate_memory_in_target_process.
call fcn.00402cb0
mov edx, 0x405300
mov ecx, eax
call fcn.00402cb0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
jmp 0x401b1a
push 0
push ebx
lea eax, [ebp - 0x114]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401ab6
mov edx, str.Failed_to_write_DLL_path_to_target_process_memory.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00402cb0
mov edx, 0x405300
mov ecx, eax
call fcn.00402cb0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
jmp 0x401b0b
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401ad8
mov edx, str.Failed_to_get_address_of_LoadLibraryA.
jmp 0x401a91
push 0
push 0
push edi
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x401b40
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_remote_thread_in_target_process.
call fcn.00402cb0
mov edx, 0x405300
mov ecx, eax
call fcn.00402cb0
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x4f4]
call fcn.00401bc0
mov eax, 1
jmp 0x401b99
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x16
push str.Successfully_injected.
call fcn.004030e0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
add esp, 8
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push esi
call ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x4f4]
call fcn.00401bc0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403527
mov esp, ebp
pop ebp
ret