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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + 2]
add ecx, ecx
add eax, eax
mov ebx, dword [esi + ecx*8 + 0x28]
mov edx, dword [esi + eax*8]
mov eax, dword [ebp + 0xc]
xor edx, dword [eax]
xor ebx, dword [eax + 8]
mov dword [ebp + 0xc], edx
mov edx, dword [esi + ecx*8 + 0x24]
xor edx, dword [eax + 4]
mov ecx, dword [esi + ecx*8 + 0x2c]
xor ecx, dword [eax + 0xc]
mov eax, ecx
mov dword [ebp - 8], ecx
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 4], edx
mov ecx, dword [ecx*4 + 0x65e838]
xor ecx, dword [eax*4 + 0x65ec38]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x65f038]
mov eax, dword [ebp + 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x65e438]
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
mov ecx, ebx
shr ecx, 0x18
mov edx, dword [eax*4 + 0x65ec38]
mov eax, dword [ebp + 0xc]
xor edx, dword [ecx*4 + 0x65f038]
shr eax, 8
movzx eax, al
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [eax*4 + 0x65e838]
mov eax, dword [ebp - 4]
movzx eax, al
xor edx, dword [eax*4 + 0x65e438]
mov dword [edi + 4], edx
mov edx, dword [ebp - 4]
mov eax, edx
mov ecx, dword [ecx*4 + 0x65f038]
shr eax, 8
movzx eax, al
shr edx, 0x10
xor ecx, dword [eax*4 + 0x65e838]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x65ec38]
movzx eax, bl
shr ebx, 8
xor ecx, dword [eax*4 + 0x65e438]
mov dword [edi + 8], ecx
movzx ecx, bl
mov ebx, esi
movzx eax, dl
mov ecx, dword [ecx*4 + 0x65e838]
xor ecx, dword [eax*4 + 0x65ec38]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x65f038]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x65e438]
mov dword [edi + 0xc], ecx
mov eax, dword [ebx + 0x1c]
dec eax
mov dword [ebp + 0xc], eax
cmp eax, 1
jle 0x4e097c
mov edx, dword [edi + 4]
add ebx, 0x24
mov esi, dword [edi + 8]
shl eax, 4
add ebx, eax
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx - 4]
xor eax, dword [edi]
mov ebx, dword [ebx]
mov dword [ebp + 0xc], eax
xor ebx, edx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor edx, esi
xor eax, ecx
mov dword [ebp - 8], eax
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x65e838]
xor ecx, dword [eax*4 + 0x65ec38]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x65f038]
mov eax, dword [ebp + 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x65e438]
mov eax, dword [ebp - 8]
shr eax, 0x10
mov dword [edi], ecx
mov ecx, edx
movzx eax, al
shr ecx, 0x18
mov eax, dword [eax*4 + 0x65ec38]
xor eax, dword [ecx*4 + 0x65f038]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x65e838]
movzx eax, bl
xor ecx, dword [eax*4 + 0x65e438]
mov eax, ebx
mov dword [edi + 4], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
shr eax, 8
movzx eax, al
shr ecx, 0x18
shr ebx, 0x10
mov esi, dword [ecx*4 + 0x65f038]
xor esi, dword [eax*4 + 0x65e838]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movzx eax, al
xor esi, dword [eax*4 + 0x65ec38]
movzx eax, dl
shr edx, 8
movzx ecx, dl
mov edx, dword [ebp - 4]
xor esi, dword [eax*4 + 0x65e438]
movzx eax, bl
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], esi
sub ebx, 0x10
mov ecx, dword [ecx*4 + 0x65e838]
xor ecx, dword [eax*4 + 0x65ec38]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
mov dword [ebp + 0x10], ebx
xor ecx, dword [eax*4 + 0x65f038]
mov eax, dword [ebp - 8]
movzx eax, al
xor ecx, dword [eax*4 + 0x65e438]
sub dword [ebp - 0xc], 1
mov dword [edi + 0xc], ecx
jne 0x4e0861
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x30]
xor eax, dword [edi]
mov ebx, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov ecx, dword [ecx + 0x3c]
xor ecx, dword [edi + 0xc]
xor ebx, dword [edi + 4]
xor edx, dword [edi + 8]
movzx eax, al
mov esi, dword [ebp + 0xc]
movzx eax, byte [eax + 0x660ff8]
mov byte [edi], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 3], al
movzx eax, bl
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 4], al
mov eax, esi
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 7], al
movzx eax, dl
shr edx, 8
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 8], al
mov eax, ebx
shr eax, 8
movzx eax, al
shr ebx, 0x10
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 9], al
mov eax, esi
shr eax, 0x10
movzx eax, al
shr esi, 0x18
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 0xb], al
movzx eax, cl
mov ecx, dword [ebp + 8]
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 0xc], al
movzx eax, dl
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 0xd], al
movzx eax, bl
movzx eax, byte [eax + 0x660ff8]
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x660ff8]
mov byte [edi + 0xf], al
mov eax, dword [ecx + 0x20]
xor dword [edi], eax
mov eax, dword [ecx + 0x24]
xor dword [edi + 4], eax
mov eax, dword [ecx + 0x28]
xor dword [edi + 8], eax
mov eax, dword [ecx + 0x2c]
xor dword [edi + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret