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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x20a
push 0
push 0
dec ecx
jne 0x4a1940
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
mov eax, dword [ebp - 8]
call fcn.00404ef0
xor eax, eax
push ebp
push 0x4a1efa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a1f08
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a1997
mov ecx, 0x4a1f20
mov dl, 1
mov eax, dword [0x407d34]
call fcn.0040c75c
call fcn.004043f8
xor eax, eax
push ebp
push 0x4a1eb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a1f38
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a19d2
mov ecx, 0x4a1f50
mov dl, 1
mov eax, dword [0x407d34]
call fcn.0040c75c
call fcn.004043f8
push 0x4a1f6c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a19ff
mov ecx, 0x4a1f84
mov dl, 1
mov eax, dword [0x407d34]
call fcn.0040c75c
call fcn.004043f8
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x4e9ec0]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
test edi, edi
jne 0x4a1a34
mov ecx, 0x4a1fa4
mov dl, 1
mov eax, dword [0x407d34]
call fcn.0040c75c
call fcn.004043f8
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404ad8
mov ebx, edi
xor esi, esi
mov eax, dword [ebp - 0x20]
call fcn.00404d00
inc eax
push eax
lea eax, [ebp - 0x102c]
mov ecx, 0x4a1fc8
mov edx, dword [ebp - 0x20]
call fcn.00404d4c
mov eax, dword [ebp - 0x102c]
call fcn.00404f00
mov edx, eax
lea eax, [ebp - 0x1028]
pop ecx
call fcn.00407724
mov eax, dword [ebp - 0x20]
call fcn.00404d00
inc eax
add ebx, eax
mov eax, dword [ebp - 0x20]
call fcn.00404d00
inc eax
add esi, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 8]
call fcn.00404d00
inc eax
push eax
lea eax, [ebp - 0x1030]
mov ecx, 0x4a1fc8
mov edx, dword [ebp - 8]
call fcn.00404d4c
mov eax, dword [ebp - 0x1030]
call fcn.00404f00
mov edx, eax
lea eax, [ebp + esi - 0x1028]
pop ecx
call fcn.00407724
mov eax, dword [ebp - 8]
call fcn.00404d00
inc eax
add ebx, eax
mov eax, dword [ebp - 8]
call fcn.00404d00
inc eax
add esi, eax
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, 0x4a1fd4
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, 0x4a1fe4
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
mov eax, edi
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x1038]
mov eax, 8
call fcn.00408f88
mov ecx, dword [ebp - 0x1038]
lea eax, [ebp - 0x1034]
mov edx, 0x4a1ff4
call fcn.00404d4c
mov eax, dword [ebp - 0x1034]
lea ecx, [ebp - 0x1c]
mov edx, ebx
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x1040]
mov eax, 8
call fcn.00408f88
mov ecx, dword [ebp - 0x1040]
lea eax, [ebp - 0x103c]
mov edx, 0x4a2004
call fcn.00404d4c
mov eax, dword [ebp - 0x103c]
lea ecx, [ebp - 0x1c]
mov edx, ebx
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
cmp dword [ebp - 8], 0
je 0x4a1d83
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x1048]
mov eax, 8
call fcn.00408f88
mov ecx, dword [ebp - 0x1048]
lea eax, [ebp - 0x1044]
mov edx, 0x4a1ff4
call fcn.00404d4c
mov eax, dword [ebp - 0x1044]
lea ecx, [ebp - 0x1c]
mov edx, ebx
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, 0x4a2014
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x1050]
mov eax, 8
call fcn.00408f88
mov ecx, dword [ebp - 0x1050]
lea eax, [ebp - 0x104c]
mov edx, 0x4a2004
call fcn.00404d4c
mov eax, dword [ebp - 0x104c]
lea ecx, [ebp - 0x1c]
mov edx, ebx
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, 0x4a2028
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, 0x4a203c
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, 0x4a204c
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add ebx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, 0x4a205c
call fcn.004a82ac
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov ecx, eax
lea eax, [ebp + esi - 0x1028]
mov edx, dword [ebp - 0x1c]
call fcn.00407724
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
mov eax, dword [ebp - 0x1c]
call fcn.00405a94
add esi, eax
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1028]
mov edx, edi
mov eax, dword [0x4e9ec0]
call fcn.0047b578
test eax, eax
jne 0x4a1e66
mov ecx, 0x4a2068
mov dl, 1
mov eax, dword [0x407d34]
call fcn.0040c75c
call fcn.004043f8
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
mov eax, dword [0x4e9ec0]
push eax
call sub.kernel32.dll_CreateRemoteThread
test eax, eax
jne 0x4a1e9b
mov ecx, 0x4a2090
mov dl, 1
mov eax, dword [0x407d34]
call fcn.0040c75c
call fcn.004043f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1eb9
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret