Function at 0x47cd70
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x18
mov edx, dword [ecx + 0x1c]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
lea eax, [edx + 2]
push esi
mov ebp, dword [ebx]
mov esi, dword [ebx + 4]
shl edx, 4
push edi
mov dword [esp + 0x10], ecx
shl eax, 4
lea edi, [edx + ecx]
mov eax, dword [eax + ecx]
mov edx, dword [edi + 0x24]
xor eax, ebp
mov ebp, dword [ebx + 8]
xor edx, esi
mov esi, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
xor esi, ebp
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov ebx, dword [esp + 0x1b]
xor edi, ebp
mov dword [esp + 0x20], edi
and ebx, 0xff
mov ebp, dword [esp + 0x1e]
mov dword [esp + 0x14], eax
mov ebx, dword [ebx*4 + 0x4a1cf4]
and ebp, 0xff
and eax, 0xff
and edx, 0xff
xor ebx, dword [ebp*4 + 0x4a18f4]
mov ebp, dword [esp + 0x21]
and ebp, 0xff
and esi, 0xff
xor ebx, dword [ebp*4 + 0x4a14f4]
mov ebp, dword [eax*4 + 0x4a10f4]
mov eax, dword [esp + 0x30]
xor ebx, ebp
mov ebp, dword [esp + 0x22]
mov dword [eax], ebx
mov ebx, dword [esp + 0x1f]
and ebx, 0xff
and ebp, 0xff
mov ebx, dword [ebx*4 + 0x4a1cf4]
xor ebx, dword [ebp*4 + 0x4a18f4]
mov ebp, dword [esp + 0x15]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x4a14f4]
mov ebp, dword [edx*4 + 0x4a10f4]
mov edx, dword [esp + 0x23]
xor ebx, ebp
and edx, 0xff
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x16]
mov edx, dword [edx*4 + 0x4a1cf4]
and ebx, 0xff
mov ebp, dword [ebx*4 + 0x4a18f4]
mov ebx, dword [esp + 0x19]
and ebx, 0xff
xor edx, ebp
mov ebp, dword [ebx*4 + 0x4a14f4]
mov ebx, dword [esi*4 + 0x4a10f4]
mov esi, dword [esp + 0x1a]
xor edx, ebp
xor edx, ebx
and esi, 0xff
mov dword [eax + 8], edx
mov edx, dword [esp + 0x17]
mov ebx, dword [esi*4 + 0x4a18f4]
mov esi, dword [esp + 0x1d]
and edx, 0xff
and esi, 0xff
mov edx, dword [edx*4 + 0x4a1cf4]
xor edx, ebx
mov ebx, dword [esi*4 + 0x4a14f4]
xor edx, ebx
and edi, 0xff
xor edx, dword [edi*4 + 0x4a10f4]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x1c]
dec edx
cmp edx, 1
jle 0x47d063
mov esi, edx
shl esi, 4
dec edx
lea ecx, [esi + ecx + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov edx, dword [ecx - 4]
mov esi, dword [eax]
mov edi, dword [ecx + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [ecx]
xor edx, esi
mov esi, dword [eax + 4]
xor edi, ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [eax + 0xc]
xor esi, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
xor ebx, ecx
mov ecx, dword [esp + 0x1b]
mov dword [esp + 0x20], ebx
mov ebp, dword [esp + 0x1e]
and ecx, 0xff
and ebp, 0xff
mov dword [esp + 0x14], edx
mov ecx, dword [ecx*4 + 0x4a1cf4]
and edx, 0xff
xor ecx, dword [ebp*4 + 0x4a18f4]
mov ebp, dword [esp + 0x21]
and ebp, 0xff
and esi, 0xff
and edi, 0xff
and ebx, 0xff
xor ecx, dword [ebp*4 + 0x4a14f4]
mov ebp, dword [edx*4 + 0x4a10f4]
mov edx, dword [esp + 0x1f]
xor ecx, ebp
and edx, 0xff
mov dword [eax], ecx
mov ecx, dword [esp + 0x22]
mov edx, dword [edx*4 + 0x4a1cf4]
and ecx, 0xff
mov ebp, dword [ecx*4 + 0x4a18f4]
mov ecx, dword [esp + 0x15]
and ecx, 0xff
xor edx, ebp
mov ebp, dword [ecx*4 + 0x4a14f4]
mov ecx, dword [esp + 0x16]
xor edx, ebp
mov ebp, dword [esi*4 + 0x4a10f4]
xor edx, ebp
and ecx, 0xff
mov dword [eax + 4], edx
mov edx, dword [esp + 0x23]
mov esi, dword [ecx*4 + 0x4a18f4]
mov ecx, dword [esp + 0x19]
and edx, 0xff
mov ebp, dword [edi*4 + 0x4a10f4]
and ecx, 0xff
mov edx, dword [edx*4 + 0x4a1cf4]
xor edx, esi
mov esi, dword [ecx*4 + 0x4a14f4]
mov ecx, dword [esp + 0x1a]
xor edx, esi
xor edx, ebp
and ecx, 0xff
mov dword [eax + 8], edx
mov edx, dword [esp + 0x17]
mov ebp, dword [ecx*4 + 0x4a18f4]
mov ecx, dword [esp + 0x1d]
mov edi, dword [ebx*4 + 0x4a10f4]
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0x4a1cf4]
mov esi, dword [ecx*4 + 0x4a14f4]
mov ecx, dword [esp + 0x2c]
xor edx, ebp
sub ecx, 0x10
xor edx, esi
mov dword [esp + 0x2c], ecx
xor edx, edi
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x30]
dec edx
mov dword [esp + 0x30], edx
jne 0x47cef8
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x30]
mov ebp, dword [eax]
mov edi, dword [ecx + 0x34]
mov ebx, dword [eax + 4]
mov edx, dword [eax + 8]
xor esi, ebp
mov ebp, dword [ecx + 0x38]
xor edi, ebx
mov ebx, dword [eax + 0xc]
xor ebp, edx
mov edx, dword [ecx + 0x3c]
mov dword [esp + 0x14], esi
xor edx, ebx
and esi, 0xff
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebp
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x21]
and esi, 0xff
mov byte [eax], bl
mov dword [esp + 0x18], edi
and edi, 0xff
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x1e]
and esi, 0xff
mov byte [eax + 1], bl
and ebp, 0xff
and edx, 0xff
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x1b]
and esi, 0xff
mov byte [eax + 2], bl
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x15]
mov byte [eax + 3], bl
mov bl, byte [edi + 0x4a20f4]
and esi, 0xff
mov byte [eax + 4], bl
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x22]
and esi, 0xff
mov byte [eax + 5], bl
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x1f]
and esi, 0xff
mov byte [eax + 6], bl
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x19]
mov byte [eax + 7], bl
mov bl, byte [ebp + 0x4a20f4]
and esi, 0xff
mov byte [eax + 8], bl
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x16]
and esi, 0xff
mov byte [eax + 9], bl
mov bl, byte [esi + 0x4a20f4]
mov esi, dword [esp + 0x23]
and esi, 0xff
mov byte [eax + 0xa], bl
mov bl, byte [esi + 0x4a20f4]
mov byte [eax + 0xb], bl
mov dl, byte [edx + 0x4a20f4]
mov byte [eax + 0xc], dl
mov edx, dword [esp + 0x1d]
and edx, 0xff
mov ebx, dword [eax]
mov dl, byte [edx + 0x4a20f4]
mov byte [eax + 0xd], dl
mov edx, dword [esp + 0x1a]
and edx, 0xff
mov dl, byte [edx + 0x4a20f4]
mov byte [eax + 0xe], dl
mov edx, dword [esp + 0x17]
and edx, 0xff
mov dl, byte [edx + 0x4a20f4]
mov byte [eax + 0xf], dl
mov edx, dword [ecx + 0x20]
xor ebx, edx
mov dword [eax], ebx
mov edx, dword [ecx + 0x24]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
xor edi, edx
mov dword [eax + 4], edi
mov edx, dword [ecx + 0x28]
xor esi, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 0x2c]
pop edi
xor edx, ecx
pop esi
pop ebp
mov dword [eax + 0xc], edx
pop ebx
add esp, 0x18
ret 8