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

Disassembly:
sub esp, 0x28
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov al, byte [esi + 4]
test al, al
jne 0x4dd2be
push 0x515de0
lea ecx, [esp + 0x24]
call fcn.004e07c4
lea eax, [esp + 0x20]
push 0x50b568
push eax
call fcn.004dffdb
mov eax, dword [esp + 0x30]
xor edx, edx
xor ecx, ecx
push ebx
mov dl, byte [eax]
mov cl, byte [eax + 1]
shl edx, 0x18
inc eax
push ebp
shl ecx, 0x10
or edx, ecx
inc eax
xor ecx, ecx
push edi
mov ch, byte [eax]
mov edi, dword [esi + 0x1e8]
or edx, ecx
inc eax
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax]
or edx, ecx
inc eax
xor ecx, ecx
xor edx, edi
mov cl, byte [eax]
mov dword [esp + 0x1c], edx
mov esi, ecx
xor ecx, ecx
mov cl, byte [eax + 1]
shl esi, 0x18
inc eax
shl ecx, 0x10
or esi, ecx
inc eax
xor ecx, ecx
mov ch, byte [eax]
or esi, ecx
inc eax
xor ecx, ecx
mov cl, byte [eax]
or esi, ecx
mov ecx, dword [esp + 0x20]
inc eax
mov ebp, dword [ecx + 0x1ec]
xor ecx, ecx
mov cl, byte [eax]
mov bl, byte [eax + 1]
xor esi, ebp
shl ecx, 0x18
inc eax
mov dword [esp + 0x10], esi
shl ebx, 0x10
or ecx, ebx
inc eax
xor ebx, ebx
mov esi, dword [esp + 0x20]
mov bh, byte [eax]
or ecx, ebx
inc eax
xor ebx, ebx
mov edi, dword [esi + 0x1f0]
mov bl, byte [eax]
or ecx, ebx
inc eax
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax]
mov dword [esp + 0x18], ecx
mov esi, ebx
xor ebx, ebx
mov bl, byte [eax + 1]
shl esi, 0x18
inc eax
shl ebx, 0x10
or esi, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov bl, byte [eax + 1]
or ebx, esi
mov esi, dword [esp + 0x20]
mov ebp, dword [esi + 0x1f4]
mov eax, dword [esi + 0x3d0]
xor ebx, ebp
cmp eax, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], eax
jle 0x4dd4e1
add esi, 0x210
dec eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], eax
xor eax, eax
mov al, bh
xor ebx, ebx
mov bl, byte [esp + 0x13]
mov esi, dword [eax*4 + 0x4fa454]
xor eax, eax
mov al, byte [esp + 0x1e]
mov ebp, dword [ebx*4 + 0x4f9c54]
xor esi, ebp
mov edi, dword [eax*4 + 0x4fa054]
mov eax, ecx
and eax, 0xff
xor esi, edi
mov ebx, dword [eax*4 + 0x4fa854]
mov eax, dword [esp + 0x3c]
xor esi, ebx
xor ebx, ebx
mov edi, dword [eax - 4]
mov bl, byte [esp + 0x12]
xor eax, eax
xor esi, edi
mov al, byte [esp + 0x1b]
mov edi, dword [eax*4 + 0x4f9c54]
mov eax, dword [ebx*4 + 0x4fa054]
xor edi, eax
xor eax, eax
mov al, dh
and edx, 0xff
mov ebp, dword [eax*4 + 0x4fa454]
mov eax, dword [esp + 0x14]
and eax, 0xff
xor edi, ebp
mov ebp, dword [eax*4 + 0x4fa854]
mov eax, dword [esp + 0x3c]
xor edi, ebp
mov ebx, dword [eax]
xor eax, eax
mov al, byte [esp + 0x17]
xor edi, ebx
xor ebx, ebx
mov bl, byte [esp + 0x1a]
mov ebp, dword [eax*4 + 0x4f9c54]
mov eax, dword [ebx*4 + 0x4fa054]
xor ebp, eax
xor eax, eax
mov al, byte [esp + 0x11]
mov ebx, dword [eax*4 + 0x4fa454]
mov eax, dword [esp + 0x3c]
xor ebp, ebx
mov ebx, dword [edx*4 + 0x4fa854]
mov edx, dword [eax + 4]
xor ebp, ebx
xor ebp, edx
xor edx, edx
mov dl, byte [esp + 0x16]
xor ebx, ebx
mov bl, ch
add eax, 0x20
mov edx, dword [edx*4 + 0x4fa054]
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx*4 + 0x4fa454]
xor edx, ecx
xor ecx, ecx
mov cl, byte [esp + 0x1f]
mov ebx, dword [ecx*4 + 0x4f9c54]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
xor edx, ebx
mov dword [esp + 0x10], esi
mov ebx, dword [ecx*4 + 0x4fa854]
mov ecx, edi
xor edx, ebx
mov ebx, dword [eax - 0x28]
mov eax, dword [esp + 0x24]
xor edx, ebx
mov ebx, ebp
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], eax
jne 0x4dd3a6
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
shl eax, 5
mov edi, dword [eax + esi + 0x1e8]
lea esi, [eax + esi + 0x1e8]
xor eax, eax
mov ecx, edi
mov al, byte [esp + 0x1f]
mov dword [esp + 0x3c], edi
sar ecx, 0x18
mov bl, byte [eax + 0x4f8b54]
mov eax, dword [esp + 0x40]
xor bl, cl
xor ecx, ecx
mov cl, byte [esp + 0x16]
mov byte [eax], bl
mov ebx, edi
mov cl, byte [ecx + 0x4f8b54]
sar ebx, 0x10
xor cl, bl
mov ebx, edi
mov byte [eax + 1], cl
xor ecx, ecx
mov cl, byte [esp + 0x19]
sar ebx, 8
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov bl, byte [esp + 0x3c]
mov byte [eax + 2], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov byte [eax + 3], cl
mov edi, dword [esi + 4]
xor ecx, ecx
mov ebx, edi
mov cl, byte [esp + 0x13]
mov dword [esp + 0x3c], edi
sar ebx, 0x18
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov ebx, edi
mov byte [eax + 4], cl
xor ecx, ecx
mov cl, byte [esp + 0x1e]
sar ebx, 0x10
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov ebx, edi
mov edi, dword [esp + 0x18]
mov byte [eax + 5], cl
xor ecx, ecx
and edi, 0xff
mov cl, byte [esp + 0x15]
sar ebx, 8
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov bl, byte [esp + 0x3c]
mov byte [eax + 6], cl
mov cl, byte [edi + 0x4f8b54]
xor cl, bl
mov byte [eax + 7], cl
mov edi, dword [esi + 8]
xor ecx, ecx
mov ebx, edi
mov cl, byte [esp + 0x1b]
mov dword [esp + 0x3c], edi
sar ebx, 0x18
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov ebx, edi
mov byte [eax + 8], cl
xor ecx, ecx
mov cl, byte [esp + 0x12]
sar ebx, 0x10
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov ebx, edi
mov byte [eax + 9], cl
xor ecx, ecx
mov cl, dh
sar ebx, 8
mov cl, byte [ecx + 0x4f8b54]
mov edi, dword [esp + 0x14]
xor cl, bl
mov bl, byte [esp + 0x3c]
and edi, 0xff
mov byte [eax + 0xa], cl
and edx, 0xff
mov cl, byte [edi + 0x4f8b54]
pop edi
xor cl, bl
pop ebp
mov byte [eax + 0xb], cl
mov esi, dword [esi + 0xc]
xor ecx, ecx
mov ebx, esi
mov cl, byte [esp + 0xf]
mov dword [esp + 0x34], esi
sar ebx, 0x18
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov ebx, esi
mov byte [eax + 0xc], cl
xor ecx, ecx
mov cl, byte [esp + 0x12]
sar ebx, 0x10
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
mov ebx, esi
mov byte [eax + 0xd], cl
xor ecx, ecx
mov cl, byte [esp + 9]
sar ebx, 8
mov cl, byte [ecx + 0x4f8b54]
xor cl, bl
pop ebx
mov byte [eax + 0xe], cl
mov dl, byte [edx + 0x4f8b54]
mov cl, byte [esp + 0x30]
pop esi
xor dl, cl
mov byte [eax + 0xf], dl
add esp, 0x28
ret 8