Function at 0x205b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add eax, esi
sub eax, dword [esp + 0x40]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x18], eax
cmp eax, esi
jbe 0x205d8d
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea ebp, [eax - 1]
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
jmp 0x205b9d
mov ecx, dword [esp + 0xc]
mov edi, ecx
mov eax, dword [esp + 8]
sub edi, eax
cmp ecx, dword [esp + 0x10]
je 0x205bf6
mov dword [eax + edi], esi
add ecx, 4
mov dword [ebx + 4], ecx
mov eax, dword [esp + 0x40]
add esi, eax
dec esi
inc esi
cmp esi, dword [esp + 0x18]
jae 0x205d8d
mov dword [esp + 0xc], ecx
test edx, edx
je 0x205baa
cmp byte [edx], 0x3f
je 0x205bb5
movzx ecx, byte [esi]
mov eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jne 0x205bf0
cmp dword [esp + 0x40], 2
jb 0x205b70
xor ecx, ecx
jmp 0x205bdc
movzx edx, byte [esi + ecx + 1]
mov eax, dword [esp + 0x3c]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x205cff
inc ecx
cmp ebp, ecx
je 0x205b70
test edx, edx
je 0x205bc0
cmp byte [edx + ecx + 1], 0x3f
jne 0x205bc0
jmp 0x205bd7
mov ecx, dword [esp + 0xc]
jmp 0x205b92
mov eax, edi
sar eax, 2
mov dword [esp], edi
shr edi, 1
mov dword [esp + 0x14], edi
mov ecx, edi
and ecx, 2
mov edx, eax
shr edx, 1
add edx, eax
xor eax, 1
add eax, ecx
cmp edx, eax
ja 0x205c1a
mov edx, eax
mov dword [esp + 0x10], edx
lea eax, [edx*4]
push eax
call fcn.001ccc70
add esp, 4
mov edx, dword [esp + 8]
test edx, edx
mov dword [esp + 4], eax
je 0x205d5b
cmp eax, edx
mov ebx, eax
mov eax, dword [esp + 0xc]
jbe 0x205d0a
cmp eax, ebx
jbe 0x205d0a
cmp dword [esp], 0
je 0x205d47
mov eax, dword [esp + 8]
mov edx, dword [esp]
add eax, edx
dec eax
mov ecx, dword [esp + 4]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x205c93
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x205c80
add eax, edx
add ecx, edx
add edx, dword [esp]
mov edi, dword [esp + 8]
sub edi, dword [esp + 0xc]
cmp edi, 0xfffffff8
ja 0x205d47
neg edx
xor edi, edi
nop
nop
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 0x205cb0
jmp 0x205d47
add esi, ecx
mov ecx, dword [esp + 0xc]
jmp 0x205b92
mov ecx, dword [esp]
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, dword [esp]
and edx, 0xfffffffc
add ebx, edx
add edx, eax
mov ecx, dword [esp + 0x14]
and ecx, 1
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test byte [esp], 1
je 0x205d47
mov eax, dword [esp]
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebx + eax], cl
push dword [esp + 8]
call fcn.001ccc80
add esp, 4
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 4]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 4]
mov edi, dword [esp]
add ecx, edi
mov dword [esp + 0x10], eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x44]
jmp 0x205b82
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret