Function at 0x401e70
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject dll
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x428760]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push ecx
mov edx, str.Got_target:
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
push eax
call fcn.00405400
add esp, 4
mov edx, str.Injecting...
mov ecx, 0x429af8
call fcn.00405150
mov eax, method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4
mov dword [ebp - 0x20], 0
push str.LoadLibraryA
sub eax, 0x401cd0
push str.kernel32
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x401f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.Failed_getting_address_of_LoadLibraryA._Error_code:
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
mov edx, 0x424c30
mov ecx, eax
call fcn.00405150
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004076e0
mov esp, ebp
pop ebp
ret
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f40
sub ecx, edx
push 4
push 0x3000
lea eax, [ecx + 1]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x401f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x424c70
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
mov edx, 0x424c6c
jmp 0x401f19
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f90
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401fed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x424cb4
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
mov edx, 0x424cb0
mov ecx, eax
call fcn.00405150
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x401f20
xor ebx, ebx
cmp byte [ebp + 8], bl
je 0x4021b7
mov eax, dword [ebp - 0x14]
push 0x40
push 0x3000
inc eax
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x40203a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.Failed_allocating_memory_in_the_target_process._Error_code:
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
mov edx, 0x424ce8
jmp 0x401fd2
lea eax, [ebp - 0x1c]
push eax
push 0x40
push dword [ebp - 0x14]
push 0x401cd0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov eax, 0x401cd0
push 0
push dword [ebp - 0x14]
push 0x401cd0
push ebx
mov dword [eax + 1], esi
push edi
mov dword [eax + 6], ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4020c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.Failed_writing_to_the_target_process._Error_code:
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
mov edx, 0x424d2c
mov ecx, eax
call fcn.00405150
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
push 0x8000
push 0
push ebx
push edi
call esi
jmp 0x401f20
push 0
push 0
push 0
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4022c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x40218b
mov edx, 0x424d78
mov ecx, 0x429af8
call fcn.00405150
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x424d64
push 0x424dc0
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
jne 0x402144
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push ecx
mov edx, 0x424dcc
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
mov edx, 0x424dc8
jmp 0x402098
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push edi
call eax
cmp dword [ebp - 0x20], 0
jne 0x4022c0
push eax
push ecx
mov edx, 0x424e0c
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402890
mov edx, 0x424e08
jmp 0x402098
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push ecx
mov edx, 0x424e38
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
mov edx, 0x424e34
jmp 0x402098
push 0
push 0
push esi
push dword [ebp - 0xc]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4022c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x402294
mov edx, str.CreateRemoteThread_failed_with_error_8._Trying_an_alternate_function._n
mov ecx, 0x429af8
call fcn.00405150
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RtlCreateUserThread
push str.ntdll
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
jne 0x40224f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push ecx
mov edx, str.Failed_getting_address_of_alternate_function._Error_code:
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
push eax
call fcn.00405400
add esp, 4
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x401f20
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0xc]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push edi
call eax
cmp dword [ebp - 0x20], ebx
jne 0x4022c0
push eax
push ecx
mov edx, str.Alternate_function_failed._Error_code:
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402890
mov edx, 0x424f18
jmp 0x401fd2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push ecx
mov edx, str.Unable_to_create_a_thread_in_the_target_process._Error_code:
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
mov edx, 0x424f44
jmp 0x401fd2
mov edx, str.Waiting_on_remote_thread...
mov ecx, 0x429af8
call fcn.00405150
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
push 0x8000
push 0
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402c80
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
cmp byte [ebp + 8], 0
je 0x402372
mov eax, dword [ebp - 0x24]
cmp eax, 0x10000
jae 0x40236b
push eax
push ecx
mov edx, str.DLL_Injection_failed._Error_code:
mov ecx, 0x429af8
call fcn.00405150
add esp, 4
mov ecx, eax
call fcn.00402a30
push eax
call fcn.00405400
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004076e0
mov esp, ebp
pop ebp
ret
mov edx, 0x424fcc
jmp 0x4023a8
cmp dword [ebp - 0x24], 0
jne 0x4023a3
mov edx, str.DLL_Injection_failed.
mov ecx, 0x429af8
call fcn.00405150
push eax
call fcn.00405400
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004076e0
mov esp, ebp
pop ebp
ret
mov edx, str.Injected._n
mov ecx, 0x429af8
call fcn.00405150
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004076e0
mov esp, ebp
pop ebp
ret