Function at 0x41c920
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 [0x454654]
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 0x41cd0d
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 0x41ccec
cmp dword [ebp - 0x20], 0xffffffff
je 0x41ccec
mov eax, dword [ebp - 4]
add eax, 0xd
mov ecx, 0x41c7f0
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.0042842c
add esp, 4
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x41ca1a
mov ecx, dword [ebp - 0x320]
call fcn.0041c780
mov dword [ebp - 0x328], eax
jmp 0x41ca24
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 0x41ca72
mov dword [ebp - 0x38], 1
jmp 0x41ca7b
mov eax, dword [ebp - 0x34]
or eax, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
and ecx, 0x40000000
jne 0x41ca92
mov edx, dword [ebp - 0x34]
or edx, 0x40000000
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x38], 0
je 0x41caa9
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 0x44974c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0041c460
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41cb03
push 0x449760
push 0x449774
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 0x41cb2a
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 0x41ccbc
cmp dword [ebp - 0x1c], 0xffffffff
je 0x41ccbc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x310], 0
push 0x2c8
push 0
lea edx, [ebp - 0x30c]
push edx
call fcn.00429470
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 0x41cb8d
mov dword [ebp - 0x3c], 1
jmp 0x41cbf3
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 0x41cbb4
mov dword [ebp - 0x3c], 1
jmp 0x41cbf3
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 0x41cbbb
cmp dword [ebp - 0x40], 0
jge 0x41cbdd
mov dword [ebp - 0x3c], 1
jmp 0x41cbf3
cmp dword [ebp + 0x1c], 0
je 0x41cbeb
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
xor edx, edx
jne 0x41cb45
cmp dword [ebp - 0x3c], 0
je 0x41cc18
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 0x41cc83
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 0x41cc75
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 0x41ccbc
cmp dword [ebp - 0x1c], 0
je 0x41ccab
cmp dword [ebp - 0x1c], 0xffffffff
je 0x41ccab
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 0x41ccbc
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.00427613
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.0042761e
mov esp, ebp
pop ebp
ret 0x18