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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x1c]
xor eax, eax
sub edx, 6
cmp edx, eax
push esi
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
jle 0x4c6a30
mov esi, dword [ebp + 0xc]
mov ecx, edx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
test edx, edx
jle 0x4c6a6e
push 8
pop ecx
mov esi, dword [ebp - 0x2c]
cmp esi, dword [ebx + 0x1c]
ja 0x4c6a6e
jmp 0x4c6a56
mov esi, dword [ebp - 0x28]
cmp esi, 4
jge 0x4c6a5a
mov edi, dword [ebp + eax*4 - 0x24]
add esi, ecx
inc eax
inc dword [ebp - 0x28]
mov dword [ebx + esi*4], edi
cmp eax, edx
jl 0x4c6a41
cmp dword [ebp - 0x28], 4
jne 0x4c6a6a
inc dword [ebp - 0x2c]
add ecx, 4
and dword [ebp - 0x28], 0
cmp eax, edx
jl 0x4c6a37
mov esi, dword [ebp - 0x2c]
cmp esi, dword [ebx + 0x1c]
ja 0x4c6baf
mov eax, edx
shl eax, 2
lea ecx, [ebp + eax - 0x27]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp + eax - 0x26]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp + eax - 0x25]
lea eax, [ebp + eax - 0x28]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0x556f30
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax]
mov al, byte [ebp - 0x24]
xor al, byte [ecx + str.cw]
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x24], al
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x23], cl
mov ecx, dword [ebp - 0x3c]
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x22], cl
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x21], cl
mov ecx, dword [ebp - 0x30]
xor al, byte [ecx]
add dword [ebp - 0x30], 4
xor ecx, ecx
inc ecx
mov byte [ebp - 0x24], al
cmp edx, 8
je 0x4c6b0a
cmp edx, ecx
jle 0x4c6b61
mov edi, dword [ebp + ecx*4 - 0x28]
lea eax, [ebp + ecx*4 - 0x24]
xor dword [eax], edi
inc ecx
cmp ecx, edx
jl 0x4c6af9
jmp 0x4c6b61
mov edi, dword [ebp + ecx*4 - 0x28]
lea eax, [ebp + ecx*4 - 0x24]
xor dword [eax], edi
inc ecx
cmp ecx, 4
jl 0x4c6b0a
movzx eax, byte [ebp - 0x18]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x16]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x15]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x11], al
push 5
pop ecx
mov edi, dword [ebp + ecx*4 - 0x28]
lea eax, [ebp + ecx*4 - 0x24]
xor dword [eax], edi
inc ecx
cmp ecx, 8
jl 0x4c6b51
xor eax, eax
test edx, edx
jle 0x4c6ba6
lea ecx, [esi*4 + 8]
cmp esi, dword [ebx + 0x1c]
ja 0x4c6baf
jmp 0x4c6b8a
mov esi, dword [ebp - 0x28]
cmp esi, 4
jge 0x4c6b8e
mov edi, dword [ebp + eax*4 - 0x24]
add esi, ecx
inc eax
inc dword [ebp - 0x28]
mov dword [ebx + esi*4], edi
cmp eax, edx
jl 0x4c6b75
cmp dword [ebp - 0x28], 4
mov esi, dword [ebp - 0x2c]
jne 0x4c6ba2
inc esi
add ecx, 4
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esi
cmp eax, edx
jl 0x4c6b6e
cmp esi, dword [ebx + 0x1c]
jbe 0x4c6aa2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
leave
ret