Function at 0x4af7e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [ecx]
test ebx, ebx
je 0x4af833
mov esi, dword [ecx + 4]
mov edx, dword [ecx + 8]
cmp edx, esi
jae 0x4af833
movzx eax, byte [ebx + edx]
mov dword [ebp - 0x14], ecx
cmp eax, 0x49
je 0x4af848
cmp eax, 0x42
jne 0x4af833
lea edi, [edx + 1]
cmp edi, esi
mov dword [ecx + 8], edi
jae 0x4af8e5
cmp byte [ebx + edi], 0x5f
jne 0x4af8e5
lea eax, [edx + 2]
xor esi, esi
mov dword [ecx + 8], eax
mov eax, edx
xor edx, edx
jmp 0x4af991
xor edx, edx
call fcn.004ab5b0
mov ebx, eax
add bl, bl
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
inc edx
mov dword [ecx + 8], edx
xor edx, edx
call fcn.004ab5b0
test al, al
jne 0x4af9f0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x4af87f
mov edx, 0x5129c7
push 1
call fcn.004432c0
mov edx, dword [ebp - 0x14]
add esp, 4
test al, al
jne 0x4af9f0
mov eax, dword [edx]
mov bl, 1
test eax, eax
je 0x4af83e
xor esi, esi
nop dword [eax]
mov ecx, dword [edx + 8]
cmp ecx, dword [edx + 4]
jae 0x4af8a2
cmp byte [eax + ecx], 0x45
je 0x4afa45
sub esi, 1
jb 0x4af8c8
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x4af8c8
mov edx, 0x513db0
push 2
call fcn.004432c0
mov edx, dword [ebp - 0x14]
add esp, 4
test al, al
jne 0x4af9f0
mov ecx, edx
call fcn.004acc60
test al, al
jne 0x4af9f0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x4af890
jmp 0x4af83e
cmp edi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ebx
cmova esi, edi
xor edx, edx
mov dword [ebp - 0x24], esi
xor esi, esi
nop word [eax + eax]
cmp edi, dword [ebp - 0x28]
jae 0x4af90b
cmp byte [ebx + edi], 0x5f
je 0x4af97b
cmp dword [ebp - 0x24], edi
mov al, 1
mov dword [ebp - 0x18], eax
je 0x4af977
movzx eax, byte [ebx + edi]
mov ebx, eax
add bl, 0xd0
cmp bl, 0xa
jb 0x4af93f
mov ah, al
add ah, 0x9f
cmp ah, 0x1a
jae 0x4af931
add al, 0xa9
jmp 0x4af93d
mov ah, al
add ah, 0xbf
cmp ah, 0x1a
jae 0x4af977
add al, 0xe3
mov ebx, eax
mov eax, edx
mov edx, 0x3e
inc edi
mul edx
mov edx, 0x3e
mov ecx, eax
mov eax, esi
seto byte [ebp - 0xd]
mul edx
add edx, ecx
mov ecx, dword [ebp - 0x14]
setb bh
or bh, byte [ebp - 0xd]
mov dword [ecx + 8], edi
jne 0x4af977
mov esi, eax
movzx ebx, bl
add esi, ebx
mov ebx, dword [ebp - 0x20]
adc edx, 0
jae 0x4af900
xor edx, edx
jmp 0x4af9b5
mov eax, esi
inc edi
and eax, edx
mov dword [ecx + 8], edi
cmp eax, 0xffffffff
je 0x4af9ae
mov eax, dword [ebp - 0x1c]
add esi, 1
adc edx, 0
cmp esi, eax
sbb edx, 0
jae 0x4af9ae
mov eax, dword [ecx + 0xc]
inc eax
cmp eax, 0x1f4
jbe 0x4afa07
mov dl, 1
mov dword [ebp - 0x18], 0
jmp 0x4af9b5
mov al, 1
xor edx, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4af9f7
mov ebx, dword [ebp - 0x18]
mov edi, edx
mov edx, 0x512c40
mov ecx, ebx
xor cl, 1
test bl, bl
movzx ecx, cl
lea esi, [ecx + ecx*8 + 0x10]
mov ecx, str.invalid_syntaxrecursion_limit_reachedfor___::closureshim_as__mut_const___dyn___unsafe_extern__
cmovne edx, ecx
mov ecx, eax
push esi
call fcn.004432c0
mov ecx, dword [ebp - 0x14]
mov edx, edi
add esp, 4
test al, al
je 0x4af9f7
mov bl, 2
jmp 0x4af83e
mov dword [ecx], 0
mov byte [ecx + 4], dl
xor ebx, ebx
jmp 0x4af83e
cmp dword [ecx + 0x10], 0
je 0x4afa00
movsd xmm0, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], eax
mov esi, ecx
movsd qword [ebp - 0x30], xmm1
movsd qword [ebp - 0x38], xmm0
call fcn.004af7e0
movsd xmm0, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
movsd qword [esi], xmm0
movsd qword [esi + 8], xmm1
jmp 0x4af840
inc ecx
mov dword [edx + 8], ecx
jmp 0x4af83e