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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x54]
mov ecx, ebx
add ebx, 6
shl ebx, 4
shl ecx, 4
mov edx, dword [ecx + esi + 0x5c]
xor edx, dword [ebp + 4]
lea edi, [ecx + esi]
mov ecx, dword [edi + 0x58]
mov edi, dword [edi + 0x64]
xor ecx, dword [ebp]
mov ebp, dword [ebx + esi]
mov ebx, dword [esp + 0x2c]
xor edi, dword [ebx + 0xc]
xor ebp, dword [ebx + 8]
mov ebx, edi
shr ebx, 8
mov dword [esp + 0x24], edi
movzx edi, bl
mov edi, dword [edi*4 + 0x5e0728]
mov eax, dword [esp + 0x30]
mov ebx, ebp
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5e0b28]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5e0f28]
movzx ebx, cl
xor edi, dword [ebx*4 + 0x5e0328]
mov ebx, dword [esp + 0x24]
mov dword [eax], edi
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x5e0b28]
mov ebx, ebp
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5e0f28]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5e0728]
movzx ebx, dl
xor edi, dword [ebx*4 + 0x5e0328]
mov ebx, edx
mov dword [eax + 4], edi
mov edi, dword [esp + 0x24]
shr edi, 0x18
mov edi, dword [edi*4 + 0x5e0f28]
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5e0728]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x5e0b28]
mov ebx, ebp
mov dword [esp + 0x20], ebp
movzx ebp, bl
xor edi, dword [ebp*4 + 0x5e0328]
shr ebx, 8
mov dword [eax + 8], edi
shr edx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x5e0728]
movzx edx, dl
xor edi, dword [edx*4 + 0x5e0b28]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x5e0f28]
movzx ecx, byte [esp + 0x24]
xor edi, dword [ecx*4 + 0x5e0328]
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0x54]
sub ecx, 1
cmp ecx, 1
jle 0x4adc38
mov edx, ecx
shl edx, 4
add ecx, 0xffffffff
lea edi, [edx + esi + 0x5c]
mov dword [esp + 0x14], ecx
mov ebp, dword [edi + 4]
xor ebp, dword [eax + 8]
mov edx, dword [edi - 4]
xor edx, dword [eax]
mov ecx, dword [eax + 4]
xor ecx, dword [edi]
mov dword [esp + 0x20], ebp
mov ebp, dword [edi + 8]
xor ebp, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov ebx, ebp
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x5e0728]
mov dword [esp + 0x24], ebp
shr eax, 0x10
movzx ebp, al
xor ebx, dword [ebp*4 + 0x5e0b28]
mov eax, dword [esp + 0x10]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5e0f28]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x5e0328]
mov ebp, dword [esp + 0x20]
mov dword [eax], ebx
mov ebx, dword [esp + 0x24]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x5e0b28]
mov dword [esp + 0x10], edx
shr edx, 8
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x5e0f28]
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x5e0728]
movzx ebp, cl
xor ebx, dword [ebp*4 + 0x5e0328]
mov edx, ecx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x24]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x5e0f28]
shr edx, 8
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x5e0728]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
shr edx, 0x10
movzx ebp, dl
xor ebx, dword [ebp*4 + 0x5e0b28]
movzx ebp, byte [esp + 0x20]
xor ebx, dword [ebp*4 + 0x5e0328]
mov edx, dword [esp + 0x10]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x20]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x5e0728]
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x5e0b28]
shr edx, 0x18
xor ebx, dword [edx*4 + 0x5e0f28]
movzx edx, byte [esp + 0x24]
xor ebx, dword [edx*4 + 0x5e0328]
sub edi, 0x10
sub dword [esp + 0x14], 1
mov dword [eax + 0xc], ebx
jne 0x4adb13
mov edi, dword [esi + 0x70]
xor edi, dword [eax + 8]
mov ecx, dword [esi + 0x68]
xor ecx, dword [eax]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x20], edi
mov edi, dword [esi + 0x74]
xor edi, dword [eax + 0xc]
xor edx, dword [eax + 4]
mov dword [esp + 0x24], edi
movzx edi, cl
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax], bl
mov ebx, dword [esp + 0x24]
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax + 1], bl
mov ebx, dword [esp + 0x20]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax + 2], bl
mov edi, edx
shr edi, 0x18
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax + 3], bl
movzx edi, dl
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax + 4], bl
mov ebx, ecx
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax + 5], bl
mov ebx, dword [esp + 0x24]
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x5e1328]
mov edi, dword [esp + 0x20]
mov byte [eax + 6], bl
shr edi, 0x18
movzx ebx, byte [edi + 0x5e1328]
movzx edi, byte [esp + 0x20]
mov byte [eax + 7], bl
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax + 8], bl
mov ebx, edx
shr ebx, 8
movzx edi, bl
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax + 9], bl
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x5e1328]
mov edi, dword [esp + 0x24]
mov byte [eax + 0xa], bl
shr edi, 0x18
movzx ebx, byte [edi + 0x5e1328]
movzx edi, byte [esp + 0x24]
mov byte [eax + 0xb], bl
movzx ebx, byte [edi + 0x5e1328]
mov byte [eax + 0xc], bl
mov ebx, dword [esp + 0x20]
shr ebx, 8
shr edx, 0x10
movzx edi, bl
movzx ebx, byte [edi + 0x5e1328]
movzx edx, dl
mov byte [eax + 0xd], bl
mov dl, byte [edx + 0x5e1328]
mov byte [eax + 0xe], dl
shr ecx, 0x18
mov cl, byte [ecx + 0x5e1328]
mov byte [eax + 0xf], cl
mov edx, dword [esi + 0x58]
xor dword [eax], edx
mov ecx, dword [esi + 0x5c]
xor dword [eax + 4], ecx
mov edx, dword [esi + 0x60]
xor dword [eax + 8], edx
mov ecx, dword [esi + 0x64]
xor dword [eax + 0xc], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8