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

Disassembly:
sub esp, 0x20
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov edi, dword [edx + 0x24]
mov ecx, edi
shl ecx, 4
add edx, ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea ebp, [edi - 1]
mov esi, dword [edx + 0x3c]
xor esi, dword [ecx + 4]
mov ebx, dword [ecx]
xor ebx, dword [edx + 0x38]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
mov esi, dword [edx + 0x40]
xor esi, dword [ecx + 8]
mov edx, dword [edx + 0x44]
xor edx, dword [ecx + 0xc]
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edx
movzx ecx, bl
movzx edx, dh
mov dword [esp + 0x1c], ebx
mov esi, dword [ecx*4 + 0x500910]
xor esi, dword [edx*4 + 0x500d10]
movzx ecx, byte [esp + 0x26]
movzx edx, bh
mov ebx, dword [esp + 0x18]
xor esi, dword [ecx*4 + 0x501110]
movzx ecx, byte [esp + 0x23]
xor esi, dword [ecx*4 + 0x501510]
mov ecx, dword [esp + 0x10]
movzx ecx, cl
mov dword [eax], esi
mov esi, dword [ecx*4 + 0x500910]
xor esi, dword [edx*4 + 0x500d10]
movzx ecx, byte [esp + 0x2a]
mov edx, dword [esp + 0x10]
movzx edx, dh
xor esi, dword [ecx*4 + 0x501110]
movzx ecx, byte [esp + 0x27]
xor esi, dword [ecx*4 + 0x501510]
mov dword [eax + 4], esi
movzx ecx, bl
mov esi, dword [ecx*4 + 0x500910]
xor esi, dword [edx*4 + 0x500d10]
movzx ecx, byte [esp + 0x1e]
movzx edx, bh
xor esi, dword [ecx*4 + 0x501110]
movzx ecx, byte [esp + 0x2b]
xor esi, dword [ecx*4 + 0x501510]
mov ecx, dword [esp + 0x14]
movzx ecx, cl
mov dword [eax + 8], esi
mov esi, dword [ecx*4 + 0x500910]
movzx ecx, byte [esp + 0x22]
xor esi, dword [edx*4 + 0x500d10]
xor esi, dword [ecx*4 + 0x501110]
movzx ecx, byte [esp + 0x1f]
xor esi, dword [ecx*4 + 0x501510]
mov dword [eax + 0xc], esi
cmp ebp, 1
jbe 0x4cbf98
lea edi, [ebp + 4]
shl edi, 4
add edi, dword [esp + 0x34]
dec ebp
lea ecx, [ecx]
mov ecx, dword [edi - 4]
lea edi, [edi - 0x10]
xor ecx, dword [eax + 4]
mov ebx, dword [edi + 8]
xor ebx, dword [eax]
mov edx, dword [edi + 0x14]
xor edx, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edi + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edx
movzx ecx, bl
movzx edx, dh
mov dword [esp + 0x1c], ebx
mov esi, dword [ecx*4 + 0x500910]
xor esi, dword [edx*4 + 0x500d10]
movzx ecx, byte [esp + 0x26]
movzx edx, bh
mov ebx, dword [esp + 0x14]
xor esi, dword [ecx*4 + 0x501110]
movzx ecx, byte [esp + 0x23]
xor esi, dword [ecx*4 + 0x501510]
mov ecx, dword [esp + 0x10]
mov dword [eax], esi
movzx ecx, cl
mov esi, dword [ecx*4 + 0x500910]
xor esi, dword [edx*4 + 0x500d10]
movzx ecx, byte [esp + 0x2a]
mov edx, dword [esp + 0x10]
movzx edx, dh
xor esi, dword [ecx*4 + 0x501110]
movzx ecx, byte [esp + 0x27]
xor esi, dword [ecx*4 + 0x501510]
mov dword [eax + 4], esi
movzx ecx, bl
mov esi, dword [ecx*4 + 0x500910]
xor esi, dword [edx*4 + 0x500d10]
movzx ecx, byte [esp + 0x1e]
movzx edx, bh
xor esi, dword [ecx*4 + 0x501110]
movzx ecx, byte [esp + 0x2b]
xor esi, dword [ecx*4 + 0x501510]
mov ecx, dword [esp + 0x18]
movzx ecx, cl
mov dword [eax + 8], esi
mov esi, dword [ecx*4 + 0x500910]
movzx ecx, byte [esp + 0x22]
xor esi, dword [edx*4 + 0x500d10]
xor esi, dword [ecx*4 + 0x501110]
movzx ecx, byte [esp + 0x1f]
xor esi, dword [ecx*4 + 0x501510]
mov dword [eax + 0xc], esi
dec ebp
jne 0x4cbe90
mov ebp, dword [esp + 0x34]
pop edi
pop esi
mov ecx, dword [ebp + 0x50]
xor ecx, dword [eax + 8]
mov edx, dword [ebp + 0x48]
xor edx, dword [eax]
mov ebx, dword [ebp + 0x4c]
xor ebx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x54]
xor ecx, dword [eax + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x20], ecx
movzx ecx, dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
movzx ecx, byte [ecx + 0x501910]
mov byte [eax], cl
mov ecx, dword [esp + 8]
movzx ecx, ch
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0x1e]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 2], cl
movzx ecx, byte [esp + 0x1b]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 3], cl
movzx ecx, bl
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 4], cl
movzx ecx, dh
mov edx, dword [esp + 0xc]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 5], cl
movzx ecx, byte [esp + 0x22]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 6], cl
movzx ecx, byte [esp + 0x1f]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 7], cl
movzx ecx, dl
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 8], cl
movzx ecx, bh
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 9], cl
movzx ecx, byte [esp + 0x16]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 0xa], cl
movzx ecx, byte [esp + 0x23]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 0xb], cl
mov ecx, dword [esp + 8]
movzx ecx, cl
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 0xc], cl
movzx ecx, dh
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 0xd], cl
movzx ecx, byte [esp + 0x1a]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 0xe], cl
movzx ecx, byte [esp + 0x17]
movzx ecx, byte [ecx + 0x501910]
mov byte [eax + 0xf], cl
mov ecx, dword [ebp + 0x38]
xor dword [eax], ecx
mov ecx, dword [ebp + 0x3c]
xor dword [eax + 4], ecx
mov ecx, dword [ebp + 0x40]
xor dword [eax + 8], ecx
mov ecx, dword [ebp + 0x44]
xor dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
xor ecx, esp
call fcn.004d17f4
add esp, 0x20
ret