Function at 0x411a70
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x449654]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0x89
mov byte [ebp - 0x17], 0x44
mov byte [ebp - 0x16], 0x24
mov byte [ebp - 0x15], 4
mov byte [ebp - 0x14], 0x89
mov byte [ebp - 0x13], 0x5c
mov byte [ebp - 0x12], 0x24
mov byte [ebp - 0x11], 8
mov byte [ebp - 0x10], 0xe9
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0x90
mov byte [ebp - 0xa], 0x90
mov byte [ebp - 9], 0x90
push 0x40
push 0x3000
push 0x10
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411e5d
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x411e3c
cmp dword [ebp - 0x20], 0xffffffff
je 0x411e3c
mov eax, dword [ebp - 4]
add eax, 0xd
mov ecx, 0x411940
sub ecx, eax
mov dword [ebp - 0xf], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0xc], ecx
mov dword [ebp - 0x28], 0
push 0x28
call fcn.0041d973
add esp, 4
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x411b6a
mov ecx, dword [ebp - 0x320]
call fcn.004118d0
mov dword [ebp - 0x328], eax
jmp 0x411b74
mov dword [ebp - 0x328], 0
mov edx, dword [ebp - 0x328]
mov dword [ebp - 0x31c], edx
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x18]
and edx, 4
je 0x411bc2
mov dword [ebp - 0x38], 1
jmp 0x411bcb
mov eax, dword [ebp - 0x34]
or eax, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
and ecx, 0x40000000
jne 0x411be2
mov edx, dword [ebp - 0x34]
or edx, 0x40000000
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x38], 0
je 0x411bf9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x1c], 0
mov dword [ebp - 0x24], 0
push 0x43e77c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.004115b0
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x411c53
push 0x43e790
push 0x43e7a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x411c7a
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x411e0c
cmp dword [ebp - 0x1c], 0xffffffff
je 0x411e0c
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x310], 0
push 0x2c8
push 0
lea edx, [ebp - 0x30c]
push edx
call fcn.0041e9c0
add esp, 0xc
mov dword [ebp - 0x310], 0x10001
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x411cdd
mov dword [ebp - 0x3c], 1
jmp 0x411d43
mov edx, dword [ebp - 4]
mov dword [ebp - 0x258], edx
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x411d04
mov dword [ebp - 0x3c], 1
jmp 0x411d43
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jg 0x411d0b
cmp dword [ebp - 0x40], 0
jge 0x411d2d
mov dword [ebp - 0x3c], 1
jmp 0x411d43
cmp dword [ebp + 0x1c], 0
je 0x411d3b
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
xor edx, edx
jne 0x411c95
cmp dword [ebp - 0x3c], 0
je 0x411d68
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
jmp 0x411dd3
mov dword [ebp - 0x318], 0
xor edx, edx
mov dword [ebp - 0x314], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x314], ecx
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x318]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x1c], 0
jne 0x411dc5
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x318], eax
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x38], 0
je 0x411e0c
cmp dword [ebp - 0x1c], 0
je 0x411dfb
cmp dword [ebp - 0x1c], 0xffffffff
je 0x411dfb
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x411e0c
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x324], ecx
mov edx, dword [ebp - 0x324]
push edx
call fcn.0041cb10
add esp, 4
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041cb1b
mov esp, ebp
pop ebp
ret 0x18