Function at 0x4012d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 8
mov eax, dword [0x420fd8]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
xor ebp, ebp
push 0x1000
push 0x1000
push ebp
push eax
mov dword [esp + 0x20], 0
call edi
mov esi, eax
test esi, esi
jne 0x401312
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VAE___failed__gle___d_n
jmp 0x401502
mov ecx, dword [0x420fd8]
push 4
push 0x1000
push 0xfd0
push 0
push ecx
call edi
test eax, eax
mov dword [0x420fd4], eax
jne 0x401343
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VAE___failed__gle___d_n
jmp 0x401502
push eax
call fcn.004010b0
mov edx, dword [0x420fd8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 4
push 0
push 0x1000
push 0x415b48
push esi
push edx
call edi
test eax, eax
jne 0x40137d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WPM___failed__gle___d_n
jmp 0x401502
mov eax, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x413b8c], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
mov dword [0x413b90], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_Sleep]
push str.kernel32.dll
mov dword [0x413b98], edx
mov dword [0x413b9c], eax
mov dword [0x413ba0], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x4013d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LL___failed__gle___d_n
jmp 0x401502
push str.GetConsoleWindow
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x413b94], eax
jne 0x4013fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GPA___failed__gle___d_n
jmp 0x401502
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x420fd4]
mov eax, dword [0x420fd8]
push 0
push 0xfd0
push 0x413b88
lea edx, [esi + 0x800]
push ecx
push eax
mov dword [0x413ba8], edx
mov dword [0x413b88], 0
mov dword [0x413ba4], eax
mov dword [0x414b54], 0
call edi
test eax, eax
jne 0x401459
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WPM___failed__gle___d_n
jmp 0x401502
mov edx, dword [0x420fd4]
push edx
push esi
push str.p_08x_c_08x_b
call fcn.00406221
push 0x412850
call fcn.00406252
mov ecx, dword [0x420fd4]
mov edx, dword [0x420fd8]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push esi
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4014ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CRT___failed__gle___d_n
jmp 0x401502
mov eax, dword [0x414b54]
test eax, eax
jne 0x4014ed
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [0x420fd4]
mov ecx, dword [0x420fd8]
push 0
push 0xfd0
push 0x413b88
push eax
push ecx
call edi
test eax, eax
je 0x4014f6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x414b54]
test eax, eax
je 0x4014bd
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RPM___failed__gle___d_n
call fcn.00406221
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x40152f
mov eax, dword [0x420fd8]
push 0x8000
push 0
push esi
push eax
call edi
mov eax, dword [0x420fd4]
test eax, eax
je 0x401549
mov ecx, dword [0x420fd8]
push 0x8000
push 0
push eax
push ecx
call edi
test ebp, ebp
je 0x401554
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 8
ret