Function at 0x4456b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add eax, esi
sub eax, ebx
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x445949
mov edx, dword [esp + 0x40]
lea ebp, [ebx - 1]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
jmp 0x445747
mov ebx, dword [esp + 8]
mov ecx, ebx
mov edi, dword [esp + 4]
sub ecx, edi
cmp ebx, dword [esp + 0xc]
je 0x445799
mov eax, edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx], esi
add ebx, 4
mov dword [esp + 8], ebx
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x3c]
add esi, ebx
dec esi
inc esi
cmp esi, dword [esp + 0x14]
jae 0x445949
test edx, edx
je 0x445750
cmp byte [edx], 0x3f
je 0x44575b
movzx ecx, byte [esi]
mov edi, dword [esp + 0x38]
cmp cl, byte [edi]
jne 0x44573c
cmp ebx, 2
jb 0x445710
xor ecx, ecx
jmp 0x44578c
movzx edx, byte [esi + ecx + 1]
mov edi, dword [esp + 0x38]
cmp dl, byte [edi + ecx + 1]
mov edx, dword [esp + 0x40]
jne 0x4458bf
inc ecx
cmp ebp, ecx
je 0x445710
test edx, edx
je 0x445770
cmp byte [edx + ecx + 1], 0x3f
jne 0x445770
jmp 0x445787
mov dword [esp], ecx
mov eax, ecx
sar eax, 2
inc eax
mov ecx, ebx
not ecx
and ecx, edi
mov edx, edi
not edx
and edx, ebx
sub edx, ecx
sar edx, 2
mov ebx, edx
shr ebx, 1
add ebx, edx
cmp ebx, eax
ja 0x4457bf
mov ebx, eax
mov eax, ebx
and eax, 0xfffffffb
mov ecx, ebx
and ecx, 4
mov edx, ebx
or edx, 4
imul edx, ecx
xor ecx, 4
imul ecx, eax
add edx, ecx
push edx
call fcn.0040c580
add esp, 4
mov edx, dword [esp + 4]
test edx, edx
mov edi, dword [esp + 0x2c]
je 0x445925
mov dword [esp + 0xc], ebx
cmp eax, edx
mov ebx, dword [esp + 8]
mov ecx, dword [esp]
mov dword [esp + 0x10], eax
jbe 0x4458c6
cmp ebx, eax
jbe 0x4458c6
test ecx, ecx
je 0x44590d
mov eax, dword [esp + 4]
mov edx, dword [esp]
add eax, edx
dec eax
mov ecx, dword [esp + 0x10]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x445857
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x445840
add eax, edx
add ecx, edx
add edx, dword [esp]
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
sub edi, ebx
cmp edi, 0xfffffff8
ja 0x44590d
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x445870
jmp 0x44590d
add esi, ecx
jmp 0x44573c
shr ecx, 2
mov ebx, edx
mov edi, eax
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ecx, edx
mov edi, dword [esp]
mov edx, edi
and edx, 0xfffffffc
lea ebx, [eax + edx]
add edx, ecx
mov ecx, edi
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 8], ebx
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test byte [esp], 1
je 0x44590d
mov eax, dword [esp]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 8]
mov byte [edx + eax], cl
push dword [esp + 4]
call fcn.0040c590
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [edi], eax
lea ecx, [eax + ebx*4]
mov ebx, eax
mov edx, dword [esp]
add ebx, edx
mov dword [esp + 0xc], ecx
mov dword [edi + 8], ecx
mov ecx, eax
mov dword [esp + 4], eax
mov ecx, edx
mov edx, dword [esp + 0x40]
jmp 0x445728
mov eax, dword [esp + 0x2c]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret