Function at 0x47c018
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 [0x4c0548]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [0x4c05fc]
push ebx
push esi
and eax, 6
mov ebx, ecx
push edi
mov dword [esp + 0x18], eax
push 0
pop eax
sete al
mov dword [esp + 0x14], ebx
cmp dword [ebp + 8], 0x10
mov dword [esp + 0x10], eax
je 0x47c1c9
cmp dword [ebp + 8], 0x18
je 0x47c14f
cmp dword [ebp + 8], 0x20
je 0x47c071
mov eax, 0x9600001
jmp 0x47c2df
lea eax, [ebx + 0xe0]
mov dword [esp + 0xc], 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 + 0x10]
push ebx
mov edx, edi
lea ecx, [edi - 4]
call fcn.0047c3aa
mov eax, dword [esp + 0xc]
mov ecx, dword [edi]
mov edx, dword [edi - 0x18]
ror ecx, 8
movzx eax, byte [eax + 0x4b7b84]
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.0047c3aa
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 + 0xc]
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 + 0xc], esi
cmp esi, 6
jbe 0x47c0a1
push ebx
lea ecx, [edi - 4]
mov edx, edi
call fcn.0047c3aa
mov ecx, dword [edi]
movzx eax, byte [esi + 0x4b7b84]
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 0x47c230
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 + 0x10]
xor ebx, ebx
inc ebx
push edi
lea ecx, [edx - 4]
call fcn.0047c3aa
mov ecx, dword [edx]
movzx eax, byte [ebx + 0x4b7b84]
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 0x47c17a
jmp 0x47c230
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 + 0x10]
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.0047c3aa
mov ecx, dword [edx]
movzx eax, byte [edi + 0x4b7b84]
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 0x47c1f3
cmp byte [ebp + 0xc], 0
mov ebx, dword [esp + 0x14]
je 0x47c2dd
mov eax, dword [ebx + 0x1d4]
mov esi, ebx
mov edi, eax
sub eax, 0x10
mov dword [esp + 0x10], 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 + 0xc], esi
cmp esi, dword [ebx + 0x1d0]
jae 0x47c2dd
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x47c277
movups xmm0, xmmword [esi]
aesimc xmm0, xmm0
movups xmmword [eax], xmm0
jmp 0x47c2c7
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 + 0x4b8800]
movzx eax, byte [edi - 1]
xor edx, dword [ecx*4 + 0x4b8c00]
xor edx, dword [eax*4 + 0x4b8000]
movzx eax, byte [edi]
lea edi, [edi + 4]
xor edx, dword [eax*4 + 0x4b8400]
mov dword [ebx], edx
lea ebx, [ebx + 4]
sub esi, 1
jne 0x47c27f
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
add esi, 0x10
sub eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
cmp esi, dword [ebx + 0x1d0]
jb 0x47c266
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004055b8
mov esp, ebp
pop ebp
ret 8