Function at 0x456aa4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, eax
mov edx, dword [eax + 0x2c]
mov edi, dword [eax + 0x74]
lea eax, [edx + edx]
mov dword [esp + 0x28], eax
mov eax, edx
lea ecx, [edx - 0x106]
mov dword [esp + 0x24], ecx
mov ecx, edx
neg ecx
shl ecx, 1
mov dword [esp + 0x2c], ecx
jmp 0x456b26
cmp dword [esp + 0x1c], 0
jne 0x456c30
xor eax, eax
add edi, eax
mov dword [ebx + 0x74], edi
cmp edi, 2
jbe 0x456b16
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x6c]
movzx esi, byte [ecx + eax]
mov dword [ebx + 0x48], esi
movzx eax, byte [ecx + eax + 1]
mov ecx, dword [ebx + 0x58]
shl esi, cl
xor eax, esi
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp edi, 0x105
ja 0x456c28
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test eax, eax
je 0x456c28
mov eax, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x3c]
sub ecx, edi
sub ecx, esi
mov dword [esp + 0x1c], ecx
add eax, dword [esp + 0x24]
cmp esi, eax
jae 0x456bac
mov ebp, dword [ebx]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x456c28
mov eax, ecx
mov ecx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x74]
cmp dword [esp + 0x1c], eax
jb 0x456ad4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
je 0x456c48
cmp eax, 2
je 0x456c7c
lea eax, [esi + edi]
add eax, ecx
mov esi, dword [ebp]
mov edi, eax
mov ecx, dword [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
add dword [ebp], ecx
add dword [ebp + 8], ecx
mov eax, ecx
mov edi, dword [ebx + 0x74]
jmp 0x456ae1
mov eax, dword [ebx + 0x38]
lea esi, [eax + edx]
mov edi, eax
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
sub dword [ebx + 0x70], edx
mov esi, dword [ebx + 0x6c]
sub esi, edx
mov dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], edx
mov eax, dword [ebx + 0x4c]
lea ecx, [eax + eax]
add ecx, dword [ebx + 0x44]
mov edi, eax
neg edi
lea edi, [ecx + edi*2]
nop
movzx ecx, word [edi + eax*2 - 2]
mov ebp, ecx
sub ebp, edx
cmp edx, ecx
jbe 0x456be7
xor ebp, ebp
mov word [edi + eax*2 - 2], bp
dec eax
jne 0x456bd8
mov edi, dword [esp + 0x28]
add edi, dword [ebx + 0x40]
mov eax, edx
add edi, dword [esp + 0x2c]
movzx ecx, word [edi + eax*2 - 2]
mov ebp, ecx
sub ebp, edx
cmp edx, ecx
jbe 0x456c0b
xor ebp, ebp
mov word [edi + eax*2 - 2], bp
dec eax
jne 0x456bfc
add dword [esp + 0x1c], edx
mov ebp, dword [ebx]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x456b4d
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jmp 0x456b67
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
call fcn.0045de1c
mov dword [ebp + 0x30], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x456b86
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
call fcn.0045e0fc
mov dword [ebp + 0x30], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x456b86