Function at 0x49ca30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x34
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], edx
mov esi, dword [esp + 0x58]
movzx edx, byte [esi + 1]
mov edi, dword [eax]
lea eax, [esi + 1]
mov dword [esp + 0x2c], eax
inc eax
inc eax
shl edx, 8
mov dword [esp + 0x34], ecx
movzx ecx, byte [esi]
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3a], al
shl ebx, 0x10
or edx, ebx
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x3b], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, edx
shr eax, 0x18
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x38], cl
mov byte [esp + 0x3c], dl
mov byte [esp + 0x3f], al
test ebp, ebp
je 0x49cc20
mov ebp, 1
sub dword [esp + 0x14], ebp
test edi, edi
jne 0x49cb88
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004dc1a0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0x49], bl
mov ebx, eax
mov ecx, eax
mov byte [esp + 0x48], al
shr ebx, 0x10
shr eax, 0x18
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], al
mov eax, edx
mov ebx, eax
shr ebx, 8
mov byte [esp + 0x4d], bl
mov ebx, eax
mov byte [esp + 0x4c], al
shr ebx, 0x10
shr eax, 0x18
add esp, 0x10
add dword [esp + 0x18], ebp
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], al
mov bl, byte [esp + edi + 0x38]
mov eax, dword [esp + 0x48]
xor bl, byte [eax]
mov ebp, dword [esp + 0x24]
inc edi
mov byte [ebp], bl
inc ebp
inc eax
and edi, 7
cmp dword [esp + 0x14], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x48], eax
jne 0x49cb15
cmp dword [esp + 0x18], 0
je 0x49cc07
mov byte [esi], cl
mov esi, dword [esp + 0x2c]
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
inc esi
shr ecx, 0x18
mov byte [esi], cl
mov byte [esi + 1], dl
inc esi
inc esi
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
mov ecx, dword [esp + 0x10]
inc esi
mov eax, edx
shr eax, 0x10
mov byte [esi], al
shr edx, 0x18
mov byte [esi + 1], dl
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00511c1b
add esp, 0x34
ret
mov edx, dword [esp + 0x10]
mov dword [edx], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00511c1b
add esp, 0x34
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511c1b
add esp, 0x34
ret