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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx ecx, byte [eax]
push ebx
push esi
movzx esi, byte [eax + 1]
shl esi, 0x10
shl ecx, 0x18
or ecx, esi
movzx esi, byte [eax + 2]
shl esi, 8
or ecx, esi
movzx esi, byte [eax + 3]
movzx ebx, byte [eax + 9]
push edi
movzx edi, byte [eax + 5]
or ecx, esi
movzx esi, byte [eax + 4]
shl edi, 0x10
shl esi, 0x18
or esi, edi
movzx edi, byte [eax + 6]
mov edx, dword [ebp + 8]
xor ecx, dword [edx + 4]
shl edi, 8
or esi, edi
movzx edi, byte [eax + 7]
or esi, edi
movzx edi, byte [eax + 8]
xor esi, dword [edx + 8]
shl ebx, 0x10
shl edi, 0x18
or edi, ebx
movzx ebx, byte [eax + 0xa]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 0xb]
or edi, ebx
xor edi, dword [edx + 0xc]
movzx ebx, byte [eax + 0xc]
movzx edx, byte [eax + 0xd]
shl edx, 0x10
shl ebx, 0x18
or ebx, edx
movzx edx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl edx, 8
or edx, eax
or edx, ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3cc]
xor edx, dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
cmp eax, 1
jle 0x4de994
add ebx, 0x2c
dec eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov ebx, edi
sar ebx, 0x10
and ebx, 0xff
mov eax, edx
sar eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x5081e8]
xor eax, dword [ebx*4 + 0x507de8]
mov ebx, esi
sar ebx, 0x18
and ebx, 0xff
xor eax, dword [ebx*4 + 0x5079e8]
mov ebx, ecx
and ebx, 0xff
xor eax, dword [ebx*4 + 0x5085e8]
mov ebx, dword [ebp - 4]
xor eax, dword [ebx - 4]
mov ebx, edi
mov dword [ebp - 0xc], eax
sar ebx, 0x18
and ebx, 0xff
mov eax, edx
sar eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x507de8]
xor eax, dword [ebx*4 + 0x5079e8]
mov ebx, ecx
sar ebx, 8
and ebx, 0xff
xor eax, dword [ebx*4 + 0x5081e8]
mov ebx, esi
and ebx, 0xff
xor eax, dword [ebx*4 + 0x5085e8]
mov ebx, dword [ebp - 4]
xor eax, dword [ebx]
mov ebx, esi
mov dword [ebp - 0x10], eax
sar ebx, 8
mov eax, edx
sar eax, 0x18
and ebx, 0xff
and eax, 0xff
mov eax, dword [eax*4 + 0x5079e8]
xor eax, dword [ebx*4 + 0x5081e8]
mov ebx, ecx
sar ebx, 0x10
and ebx, 0xff
xor eax, dword [ebx*4 + 0x507de8]
mov ebx, edi
sar edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x5081e8]
sar esi, 0x10
and esi, 0xff
xor edi, dword [esi*4 + 0x507de8]
mov esi, dword [ebp - 0xc]
sar ecx, 0x18
and ecx, 0xff
xor edi, dword [ecx*4 + 0x5079e8]
and ebx, 0xff
xor eax, dword [ebx*4 + 0x5085e8]
mov ebx, dword [ebp - 4]
xor eax, dword [ebx + 4]
and edx, 0xff
xor edi, dword [edx*4 + 0x5085e8]
add ebx, 0x20
xor edi, dword [ebx - 0x28]
dec dword [ebp - 8]
mov ecx, edi
mov edi, dword [ebp - 0x10]
mov edx, eax
mov dword [ebp - 4], ebx
jne 0x4de852
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
shl eax, 5
lea eax, [eax + ebx + 4]
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov dword [ebp + 8], eax
sar eax, 0x18
mov ebx, ecx
sar ebx, 0x18
and ebx, 0xff
xor al, byte [ebx + str.cw]
mov ebx, dword [ebp + 0xc]
mov byte [ebx], al
mov ebx, dword [ebp + 8]
sar ebx, 0x10
mov eax, esi
sar eax, 0x10
and eax, 0xff
xor bl, byte [eax + str.cw]
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
mov eax, edi
sar eax, 8
and eax, 0xff
xor bl, byte [eax + str.cw]
mov eax, dword [ebp + 0xc]
mov byte [eax + 2], bl
mov ebx, dword [ebp + 0xc]
mov eax, edx
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor al, byte [ebp + 8]
mov byte [ebx + 3], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
sar eax, 0x18
mov ebx, esi
sar ebx, 0x18
and ebx, 0xff
xor al, byte [ebx + str.cw]
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 4], al
mov ebx, dword [ebp + 8]
sar ebx, 0x10
mov eax, edi
sar eax, 0x10
and eax, 0xff
xor bl, byte [eax + str.cw]
mov eax, dword [ebp + 0xc]
mov byte [eax + 5], bl
mov ebx, dword [ebp + 8]
sar ebx, 8
mov eax, edx
sar eax, 8
and eax, 0xff
xor bl, byte [eax + str.cw]
mov eax, dword [ebp + 0xc]
mov byte [eax + 6], bl
mov ebx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor al, byte [ebp + 8]
mov byte [ebx + 7], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
mov ebx, edi
sar ebx, 0x18
sar eax, 0x18
and ebx, 0xff
xor al, byte [ebx + str.cw]
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 8], al
mov ebx, dword [ebp + 8]
mov eax, edx
sar eax, 0x10
and eax, 0xff
sar ebx, 0x10
xor bl, byte [eax + str.cw]
mov eax, dword [ebp + 0xc]
mov byte [eax + 9], bl
mov ebx, dword [ebp + 8]
mov eax, ecx
sar ebx, 8
sar eax, 8
and eax, 0xff
xor bl, byte [eax + str.cw]
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xa], bl
mov eax, esi
and eax, 0xff
mov bl, byte [eax + str.cw]
xor bl, byte [ebp + 8]
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xb], bl
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0xc]
mov dword [ebp + 8], ebx
sar ebx, 0x18
sar edx, 0x18
and edx, 0xff
xor bl, byte [edx + str.cw]
mov edx, dword [ebp + 8]
mov byte [eax + 0xc], bl
sar ecx, 0x10
and ecx, 0xff
mov ebx, edx
sar ebx, 0x10
xor bl, byte [ecx + str.cw]
sar esi, 8
and esi, 0xff
mov ecx, edx
sar ecx, 8
mov byte [eax + 0xd], bl
xor cl, byte [esi + str.cw]
and edi, 0xff
mov byte [eax + 0xe], cl
mov cl, byte [edi + str.cw]
pop edi
xor cl, dl
pop esi
mov byte [eax + 0xf], cl
pop ebx
mov esp, ebp
pop ebp
ret 8