Function at 0x4c1d20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.004e2da0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x2c]
mov ebx, edi
shld ecx, ebx, 5
xor edx, edx
shl ebx, 5
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
cmp ecx, edx
jb 0x4c1d9a
ja 0x4c1d60
cmp ebx, edx
jbe 0x4c1d9a
nop
movzx ebp, byte [eax]
mov dword [esi], ebp
movzx ebp, byte [eax + 1]
shl ebp, 8
or dword [esi], ebp
movzx ebp, byte [eax + 2]
shl ebp, 0x10
or dword [esi], ebp
movzx ebp, byte [eax + 3]
shl ebp, 0x18
or dword [esi], ebp
add eax, 4
add dword [esp + 0x14], 1
adc edx, 0
add esi, 4
cmp edx, ecx
jb 0x4c1d60
ja 0x4c1d9a
cmp dword [esp + 0x14], ebx
jb 0x4c1d60
mov ebx, dword [esp + 0x38]
xor ebp, ebp
mov eax, 1
mov dword [esp + 0x14], eax
cmp ebp, ebx
ja 0x4c1df4
jb 0x4c1db5
cmp eax, dword [esp + 0x34]
jae 0x4c1df4
mov eax, edi
shl eax, 7
mov dword [esp + 0x10], eax
jmp 0x4c1dc4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
mov edx, esi
push edi
sub edx, eax
push edx
push esi
call fcn.004c1980
add esp, 0x10
add dword [esp + 0x14], 1
adc ebp, 0
add esi, dword [esp + 0x10]
cmp ebp, ebx
jb 0x4c1dc0
ja 0x4c1df4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x14], eax
jb 0x4c1dc0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
dec edx
imul edx, edi
push ecx
shl edx, 7
add edx, dword [esp + 0x48]
push edi
push edx
push esi
call fcn.004c1980
xor eax, eax
add esp, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp ebx, eax
jb 0x4c1ee0
ja 0x4c1e35
cmp dword [esp + 0x34], eax
jbe 0x4c1ee0
mov eax, edi
shl eax, 7
lea ecx, [eax + esi - 0x40]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push ebx
push ecx
push 0
push eax
call fcn.004e3740
imul eax, edi
shl eax, 7
add eax, dword [esp + 0x44]
xor ecx, ecx
xor edx, edx
test esi, esi
jb 0x4c1ea0
ja 0x4c1e76
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4c1ea0
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx + ecx*4]
xor ebx, dword [eax]
mov ebp, dword [esp + 0x40]
add eax, 4
mov dword [ebp + ecx*4], ebx
add ecx, 1
adc edx, 0
cmp edx, esi
jb 0x4c1e76
ja 0x4c1e9c
cmp ecx, dword [esp + 0x1c]
jb 0x4c1e76
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
push edi
push eax
push ecx
call fcn.004c1980
mov eax, dword [esp + 0x28]
add esp, 0x10
add dword [esp + 0x14], 1
adc eax, 0
mov dword [esp + 0x18], eax
cmp eax, ebx
jb 0x4c1e46
ja 0x4c1ee0
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x34]
jb 0x4c1e46
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
xor esi, esi
xor edi, edi
test ebp, ebp
jb 0x4c1f32
ja 0x4c1f00
test edx, edx
je 0x4c1f32
lea ebx, [ebx]
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + esi*4]
mov byte [eax], cl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
mov ebx, ecx
shr ebx, 0x10
shr ecx, 0x18
mov byte [eax + 2], bl
mov byte [eax + 3], cl
add eax, 4
add esi, 1
adc edi, 0
cmp edi, ebp
jb 0x4c1f00
ja 0x4c1f32
cmp esi, edx
jb 0x4c1f00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret