Function at 0x411ae0
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 0x411ecd
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 0x411eac
cmp dword [ebp - 0x20], 0xffffffff
je 0x411eac
mov eax, dword [ebp - 4]
add eax, 0xd
mov ecx, 0x4119b0
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.0041d9e6
add esp, 4
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x411bda
mov ecx, dword [ebp - 0x320]
call fcn.00411940
mov dword [ebp - 0x328], eax
jmp 0x411be4
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 0x411c32
mov dword [ebp - 0x38], 1
jmp 0x411c3b
mov eax, dword [ebp - 0x34]
or eax, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
and ecx, 0x40000000
jne 0x411c52
mov edx, dword [ebp - 0x34]
or edx, 0x40000000
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x38], 0
je 0x411c69
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 0x43e72c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00411620
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x411cc3
push 0x43e740
push 0x43e754
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 0x411cea
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 0x411e7c
cmp dword [ebp - 0x1c], 0xffffffff
je 0x411e7c
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x310], 0
push 0x2c8
push 0
lea edx, [ebp - 0x30c]
push edx
call fcn.0041ea30
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 0x411d4d
mov dword [ebp - 0x3c], 1
jmp 0x411db3
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 0x411d74
mov dword [ebp - 0x3c], 1
jmp 0x411db3
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 0x411d7b
cmp dword [ebp - 0x40], 0
jge 0x411d9d
mov dword [ebp - 0x3c], 1
jmp 0x411db3
cmp dword [ebp + 0x1c], 0
je 0x411dab
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
xor edx, edx
jne 0x411d05
cmp dword [ebp - 0x3c], 0
je 0x411dd8
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 0x411e43
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 0x411e35
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 0x411e7c
cmp dword [ebp - 0x1c], 0
je 0x411e6b
cmp dword [ebp - 0x1c], 0xffffffff
je 0x411e6b
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 0x411e7c
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.0041cb83
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.0041cb8e
mov esp, ebp
pop ebp
ret 0x18