Function at 0x405a80
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cbeb
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x465780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x39c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3a0], eax
lea eax, [ebp - 0x24c]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x250], 0
movups xmmword [ebp - 0x264], xmm0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b00
sub ecx, edx
lea eax, [ebp - 0x24c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.004057b0
cmp dword [ebp - 0x250], 7
lea esi, [ebp - 0x264]
mov edi, dword [ebp - 0x254]
cmova esi, dword [ebp - 0x264]
mov dword [ebp - 4], 0
mov dword [ebp - 0x398], esi
test edi, edi
je 0x405c22
push 0x100
lea eax, [ebp - 0x394]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, 0x450778
mov edx, 0x100
movzx eax, word [ecx]
cmp ax, dx
jae 0x405bc1
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x394], 1
cmp ecx, 0x45077a
jne 0x405b71
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [esi + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x405bb2
cmp byte [ebp + eax - 0x394], 0
jne 0x405bbb
cmp ecx, esi
je 0x405c22
sub ecx, 2
jmp 0x405ba0
sub ecx, esi
sar ecx, 1
jmp 0x405c25
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [esi + ecx*2]
movzx edi, word [ecx]
mov eax, 0x5c
mov edx, 0x450778
lea esi, [eax - 0x5b]
cmp ax, di
je 0x405c12
cmp esi, 1
je 0x405bfa
movzx eax, word [edx + 2]
add edx, 2
dec esi
cmp ax, di
jne 0x405be4
test edx, edx
jne 0x405c12
cmp ecx, dword [ebp - 0x398]
je 0x405c07
sub ecx, 2
jmp 0x405bcf
mov edi, dword [ebp - 0x254]
or ecx, 0xffffffff
jmp 0x405c25
sub ecx, dword [ebp - 0x398]
mov edi, dword [ebp - 0x254]
sar ecx, 1
jmp 0x405c25
or ecx, 0xffffffff
cmp edi, ecx
mov dword [ebp - 0x284], 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x280], 0
cmovb ecx, edi
xorps xmm0, xmm0
cmp dword [ebp - 0x250], 7
push ecx
cmova eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x294]
push eax
movups xmmword [ebp - 0x294], xmm0
call fcn.004057b0
mov ecx, dword [ebp - 0x250]
cmp ecx, 7
jbe 0x405ca9
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405c9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fb4
push ecx
push edx
call fcn.00439b86
add esp, 8
movups xmm0, xmmword [ebp - 0x294]
mov eax, 0x7ffffffe
movups xmmword [ebp - 0x264], xmm0
movq xmm0, qword [ebp - 0x284]
movq qword [ebp - 0x254], xmm0
mov esi, dword [ebp - 0x254]
sub eax, esi
cmp eax, 8
jb 0x405faf
cmp dword [ebp - 0x250], 7
lea eax, [ebp - 0x264]
mov ecx, 7
mov dword [ebp - 0x26c], 0
cmova eax, dword [ebp - 0x264]
lea edi, [ebp - 0x27c]
mov dword [ebp - 0x3a8], eax
xorps xmm0, xmm0
lea eax, [esi + 8]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x3ac], eax
movups xmmword [ebp - 0x27c], xmm0
cmp eax, ecx
jbe 0x405d74
or eax, ecx
cmp eax, 0x7ffffffe
jbe 0x405d3d
mov eax, 0x7ffffffe
jmp 0x405d47
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004012a0
mov ecx, dword [ebp - 0x398]
mov edi, eax
add esp, 8
mov dword [ebp - 0x27c], edi
lea eax, [esi + 8]
add esi, esi
mov dword [ebp - 0x26c], eax
push esi
push dword [ebp - 0x3a8]
mov dword [ebp - 0x268], ecx
push edi
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [str.NTLEAS_]
mov eax, dword [ebp - 0x3ac]
add esp, 0xc
xor ecx, ecx
movups xmmword [edi + esi], xmm0
mov word [edi + eax*2], cx
mov edx, dword [str.ntleai.dll]
mov ecx, edx
mov byte [ebp - 4], 1
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405dc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x27c]
call fcn.00406150
cmp dword [ebp - 0x268], 7
lea eax, [ebp - 0x27c]
cmova eax, dword [ebp - 0x27c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x26c], 0
jne 0x405e11
mov esi, 0xffffd8ea
jmp 0x405ef9
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x39c]
lea edi, [ebp - 0x24a]
add esi, 0x14
push esi
lea edi, [edi + eax*2]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x39c]
push 0x40
push 0x1000
lea esi, [edi + eax]
mov eax, dword [ecx]
mov dword [esi + 1], eax
mov eax, dword [ecx + 4]
mov dword [esi + 5], eax
mov eax, dword [ecx + 8]
mov dword [esi + 9], eax
add esi, 0xd
mov eax, dword [ecx + 0xc]
mov dword [esi], eax
lea eax, [ebp - 0x24c]
sub esi, eax
mov eax, dword [ebp - 0x3a0]
add esi, 4
push esi
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x405e91
mov esi, 0xffffd8e9
jmp 0x405ef9
mov eax, dword [ebp - 0x39c]
push 0
push esi
mov esi, dword [ebp - 0x3a0]
mov eax, dword [eax + 0x3c]
mov dword [eax], edi
lea eax, [ebp - 0x24c]
push eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x3a4]
push eax
push 0
push edi
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, dword [ebp - 0x3a4]
mov edi, eax
push 2
call fcn.0043aee0
push esi
push edi
push str.remote_thread_handle_:_0x_p__threadid_:__u_n
push eax
call fcn.00406a20
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x268]
cmp ecx, 7
jbe 0x405f39
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405f2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fb4
push ecx
push edx
call fcn.00439b86
add esp, 8
mov ecx, dword [ebp - 0x250]
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
cmp ecx, 7
jbe 0x405f92
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405f88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fb4
push ecx
push edx
call fcn.00439b86
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439a2e
mov esp, ebp
pop ebp
ret
call fcn.00403610
call fcn.0043ad50
int3