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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov ebx, edi
push edx
sar ebx, 2
push ecx
mov dword [ebp - 8], ecx
lea esi, [ebx + 6]
call fcn.0049d0c0
mov edx, dword [ebp - 8]
and ebx, 2
lea eax, [edx + edi]
mov ecx, esi
add ebx, 3
shl ecx, 4
lea edi, [edx + 0x10]
add edi, ecx
mov dword [ebp - 0xc], ebx
shl esi, 5
add esp, 0xc
mov bh, 1
mov dword [ebp - 0x10], edi
mov dword [edx + 0x1d0], ecx
mov dword [edx + 0x1d4], esi
mov byte [ebp - 1], bh
cmp eax, edi
jae 0x49cafd
lea esp, [esp]
movzx ecx, byte [eax - 4]
mov dh, byte [ecx + str.cw]
movzx ecx, byte [eax - 3]
mov bl, byte [ecx + str.cw]
movzx ecx, byte [eax - 2]
mov dl, byte [ecx + str.cw]
movzx ecx, byte [eax - 1]
mov cl, byte [ecx + str.cw]
mov byte [eax + 2], cl
xor bl, bh
mov byte [eax], bl
mov ebx, dword [ebp + 8]
mov byte [eax + 1], dl
mov dl, byte [ebp - 1]
mov ecx, eax
sub ecx, ebx
mov byte [eax + 3], dh
mov ecx, dword [ecx]
xor dword [eax], ecx
mov cl, dl
and cl, 0x80
add eax, 4
neg cl
sbb cl, cl
and cl, 0x1b
add dl, dl
xor dl, cl
mov ecx, dword [ebp - 0xc]
mov byte [ebp - 1], dl
test ecx, ecx
jle 0x49ca93
mov edi, 4
sub edi, ebx
mov esi, ecx
lea esp, [esp]
mov edx, dword [edi + eax - 4]
xor edx, dword [eax - 4]
add eax, 4
mov dword [eax - 4], edx
dec esi
jne 0x49ca80
mov edi, dword [ebp - 0x10]
cmp ebx, 0x20
jne 0x49caef
movzx ecx, byte [eax - 4]
movzx ecx, byte [ecx + str.cw]
mov byte [eax], cl
movzx ecx, byte [eax - 3]
movzx ecx, byte [ecx + str.cw]
mov byte [eax + 1], cl
movzx ecx, byte [eax - 2]
movzx ecx, byte [ecx + str.cw]
mov byte [eax + 2], cl
movzx ecx, byte [eax - 1]
movzx ecx, byte [ecx + str.cw]
mov byte [eax + 3], cl
mov ecx, dword [eax - 0x20]
xor dword [eax], ecx
mov edx, dword [eax - 0x1c]
xor edx, dword [eax]
mov dword [eax + 4], edx
mov esi, dword [eax - 0x18]
xor esi, edx
mov dword [eax + 8], esi
mov ecx, dword [eax - 0x14]
xor ecx, esi
mov dword [eax + 0xc], ecx
add eax, 0x10
mov bh, byte [ebp - 1]
cmp eax, edi
jb 0x49ca10
mov edx, dword [ebp - 8]
lea ebx, [edx + 0x20]
mov esi, edi
cmp edi, ebx
jbe 0x49cbdc
lea ebx, [ebx]
movzx eax, byte [esi - 0x1d]
mov edx, dword [eax*4 + 0x4ccc00]
movzx ecx, byte [esi - 0x1e]
xor edx, dword [ecx*4 + 0x4cc800]
movzx eax, byte [esi - 0x1f]
xor edx, dword [eax*4 + 0x4cc400]
movzx eax, byte [esi - 0x20]
xor edx, dword [eax*4 + 0x4cc000]
add esi, 0xfffffff0
mov dword [edi], edx
movzx eax, byte [esi - 9]
mov edx, dword [eax*4 + 0x4ccc00]
movzx ecx, byte [esi - 0xa]
xor edx, dword [ecx*4 + 0x4cc800]
movzx eax, byte [esi - 0xb]
xor edx, dword [eax*4 + 0x4cc400]
movzx eax, byte [esi - 0xc]
xor edx, dword [eax*4 + 0x4cc000]
add edi, 0x10
mov dword [edi - 0xc], edx
movzx eax, byte [esi - 5]
mov edx, dword [eax*4 + 0x4ccc00]
movzx ecx, byte [esi - 6]
xor edx, dword [ecx*4 + 0x4cc800]
movzx eax, byte [esi - 7]
xor edx, dword [eax*4 + 0x4cc400]
movzx eax, byte [esi - 8]
xor edx, dword [eax*4 + 0x4cc000]
mov dword [edi - 8], edx
movzx eax, byte [esi - 1]
movzx ecx, byte [esi - 2]
mov edx, dword [eax*4 + 0x4ccc00]
movzx eax, byte [esi - 3]
xor edx, dword [ecx*4 + 0x4cc800]
xor edx, dword [eax*4 + 0x4cc400]
movzx eax, byte [esi - 4]
xor edx, dword [eax*4 + 0x4cc000]
mov dword [edi - 4], edx
cmp esi, ebx
ja 0x49cb10
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4