Function at 0x47d27c
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4e5518]
push ebx
push esi
and eax, 6
mov ebx, ecx
push edi
mov dword [esp + 0x1c], eax
push 0
pop eax
sete al
mov dword [esp + 0x18], ebx
cmp dword [ebp + 8], 0x10
mov dword [esp + 0x14], eax
je 0x47d422
cmp dword [ebp + 8], 0x18
je 0x47d3a8
cmp dword [ebp + 8], 0x20
je 0x47d2ca
mov eax, 0xc8000a1
jmp 0x47d538
lea eax, [ebx + 0xe0]
mov dword [esp + 0x10], 1
mov dword [ebx + 0x1d0], eax
mov edi, ebx
lea eax, [ebx + 0x1c0]
mov esi, edx
push 8
mov dword [ebx + 0x1d4], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov ebx, dword [esp + 0x14]
push ebx
mov edx, edi
lea ecx, [edi - 4]
call fcn.0047d5f6
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
mov edx, dword [edi - 0x18]
ror ecx, 8
movzx eax, byte [eax + 0x4dab84]
xor ecx, eax
mov eax, dword [edi - 0x1c]
xor ecx, dword [edi - 0x20]
xor eax, ecx
mov dword [edi], ecx
xor edx, eax
mov dword [edi + 4], eax
mov eax, dword [edi - 0x14]
lea ecx, [edi + 0xc]
xor eax, edx
mov dword [edi + 8], edx
lea edx, [edi + 0x10]
mov dword [ecx], eax
push ebx
call fcn.0047d5f6
mov eax, dword [edi - 0x10]
xor dword [edx], eax
mov ecx, dword [edi - 0xc]
xor ecx, dword [edx]
mov edx, dword [edi - 8]
mov eax, dword [edi - 4]
xor edx, ecx
mov esi, dword [esp + 0x10]
xor eax, edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], eax
add edi, 0x20
inc esi
mov dword [esp + 0x10], esi
cmp esi, 6
jbe 0x47d2fa
push ebx
lea ecx, [edi - 4]
mov edx, edi
call fcn.0047d5f6
mov ecx, dword [edi]
movzx eax, byte [esi + 0x4dab84]
ror ecx, 8
xor ecx, eax
mov eax, dword [edi - 0x1c]
xor ecx, dword [edi - 0x20]
xor eax, ecx
mov dword [edi], ecx
mov ecx, dword [edi - 0x18]
xor ecx, eax
mov dword [edi + 4], eax
mov eax, dword [edi - 0x14]
xor eax, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
jmp 0x47d489
lea eax, [ebx + 0xc0]
mov edi, ebx
mov dword [ebx + 0x1d0], eax
mov esi, edx
lea eax, [ebx + 0x180]
push 6
mov dword [ebx + 0x1d4], eax
lea edx, [ebx + 0x18]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
xor ebx, ebx
inc ebx
push edi
lea ecx, [edx - 4]
call fcn.0047d5f6
mov ecx, dword [edx]
movzx eax, byte [ebx + 0x4dab84]
ror ecx, 8
xor ecx, eax
mov eax, dword [edx - 0x14]
xor ecx, dword [edx - 0x18]
xor eax, ecx
mov dword [edx], ecx
mov ecx, dword [edx - 0x10]
xor ecx, eax
mov dword [edx + 4], eax
mov eax, dword [edx - 0xc]
xor eax, ecx
mov dword [edx + 8], ecx
mov ecx, dword [edx - 8]
xor ecx, eax
mov dword [edx + 0xc], eax
mov eax, dword [edx - 4]
xor eax, ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
add edx, 0x18
inc ebx
cmp ebx, 8
jbe 0x47d3d3
jmp 0x47d489
lea eax, [ebx + 0xa0]
mov esi, edx
mov dword [ebx + 0x1d0], eax
lea edx, [ebx + 0x10]
mov edi, ebx
lea eax, [ebx + 0x140]
mov dword [ebx + 0x1d4], eax
mov ebx, dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
push ebx
lea ecx, [edx - 4]
call fcn.0047d5f6
mov ecx, dword [edx]
movzx eax, byte [edi + 0x4dab84]
ror ecx, 8
xor ecx, eax
mov eax, dword [edx - 0xc]
xor ecx, dword [edx - 0x10]
xor eax, ecx
mov dword [edx], ecx
mov ecx, dword [edx - 8]
xor ecx, eax
mov dword [edx + 4], eax
mov eax, dword [edx - 4]
xor eax, ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
add edx, 0x10
inc edi
cmp edi, 0xa
jbe 0x47d44c
cmp byte [ebp + 0xc], 0
mov ebx, dword [esp + 0x18]
je 0x47d536
mov eax, dword [ebx + 0x1d4]
mov esi, ebx
mov edi, eax
sub eax, 0x10
mov dword [esp + 0x14], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x10]
mov dword [esp + 0x10], esi
cmp esi, dword [ebx + 0x1d0]
jae 0x47d536
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x47d4d0
movups xmm0, xmmword [esi]
aesimc xmm0, xmm0
movups xmmword [eax], xmm0
jmp 0x47d520
push 4
lea edi, [esi + 1]
mov ebx, eax
pop esi
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 2]
mov edx, dword [eax*4 + 0x4db800]
movzx eax, byte [edi - 1]
xor edx, dword [ecx*4 + 0x4dbc00]
xor edx, dword [eax*4 + 0x4db000]
movzx eax, byte [edi]
lea edi, [edi + 4]
xor edx, dword [eax*4 + 0x4db400]
mov dword [ebx], edx
lea ebx, [ebx + 4]
sub esi, 1
jne 0x47d4d8
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add esi, 0x10
sub eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
cmp esi, dword [ebx + 0x1d0]
jb 0x47d4bf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8