Function at 0xa5d2efa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
lea eax, [eax + edx*2]
mov dword [ebp - 0x14], ecx
add eax, 2
xor esi, esi
mov dword [ebp - 0x10], eax
lea eax, [edx + 1]
mov dword [ebp - 4], eax
xor eax, eax
push edi
lea edi, [edx*2 + 2]
mov edx, ecx
lea ebx, [eax + 1]
shl ebx, cl
xor ecx, ecx
mov dword [ebp - 0xc], ebx
lea eax, [ebx - 1]
mov dword [ebp - 8], eax
mov dword [ebp + 0x14], eax
xor eax, eax
bts eax, edx
cmp edx, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edx, 0x40
cmovae ecx, eax
add edi, eax
adc esi, ecx
add edi, 8
adc esi, 0
test esi, esi
ja 0xa5d3188
jb 0xa5d2f6e
cmp edi, dword [ebp + 0x1c]
ja 0xa5d3188
cmp dword [ebp + 0x10], 0xff
ja 0xa5d3188
mov eax, dword [ebp - 0x14]
cmp eax, 0xc
jbe 0xa5d2f8a
push 0xffffffffffffffd4
jmp 0xa5d318a
or dword [ebp + 0x1c], 0xffffffff
lea ecx, [eax - 1]
mov edi, dword [ebp + 0xc]
xor edx, edx
mov esi, dword [ebp + 0x14]
inc edx
mov word [ebp + 0x10], ax
mov eax, edx
shl ax, cl
mov word [ebp + 0x12], dx
xor edx, edx
movzx eax, ax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], edx
jbe 0xa5d300b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp - 4]
lea ecx, [ecx + esi*4]
add ecx, 6
mov dword [ebp + 0x14], ecx
mov ecx, edi
mov edi, dword [ebp + 0x14]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
movzx ecx, word [ecx + eax]
cmp cx, word [ebp + 0x1c]
jne 0xa5d2fe5
mov byte [edi], dl
xor ecx, ecx
dec esi
sub edi, 4
inc ecx
jmp 0xa5d2ff4
cmp cx, word [ebp - 0x18]
jl 0xa5d2ff4
xor ebx, ebx
mov word [ebp + 0x12], bx
mov ebx, dword [ebp - 4]
mov word [eax], cx
inc edx
mov ecx, dword [ebp - 0x1c]
add eax, 2
cmp edx, ebx
jb 0xa5d2fd0
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
lea eax, [ebx - 1]
mov ecx, ebx
shr ecx, 3
cmp esi, eax
mov eax, ebx
jne 0xa5d30ed
shr eax, 1
xorps xmm0, xmm0
add eax, 3
movlpd qword [ebp - 0x20], xmm0
add eax, ecx
mov dword [ebp + 0x14], eax
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0xa5d30a1
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], ecx
movsx esi, word [edi + edx*2]
mov edi, dword [ebp - 0x10]
mov dword [ebp + 0x1c], esi
mov dword [eax + edi], ecx
mov dword [eax + edi + 4], ebx
mov edi, dword [ebp + 0xc]
cmp esi, 8
jle 0xa5d308a
mov edi, dword [ebp - 0x10]
add edi, eax
mov dword [edi + 8], ecx
lea ecx, [esi - 9]
shr ecx, 2
lea esi, [edi + 8]
mov dword [edi + 0xc], ebx
and ecx, 0x3ffffffe
add edi, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x1c]
add eax, esi
mov esi, 0x1010101
inc edx
add ecx, esi
mov dword [ebp + 0x10], ecx
adc ebx, esi
cmp edx, dword [ebp - 4]
jb 0xa5d3049
mov ebx, dword [ebp - 0xc]
xor edx, edx
xor esi, esi
mov dword [ebp + 0x10], edx
test ebx, ebx
je 0xa5d3184
xor edi, edi
mov ebx, edx
mov edx, dword [ebp - 0x10]
lea eax, [edi + esi]
mov ecx, dword [ebp - 8]
and ecx, ebx
inc edi
add ebx, dword [ebp + 0x14]
mov al, byte [eax + edx]
mov edx, dword [ebp + 8]
mov byte [edx + ecx*4 + 6], al
cmp edi, 2
jb 0xa5d30b4
mov edx, dword [ebp + 0x10]
add esi, 2
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0xc]
lea edx, [edx + eax*2]
and edx, dword [ebp - 8]
mov dword [ebp + 0x10], edx
cmp esi, ebx
jb 0xa5d30b0
jmp 0xa5d3142
shr eax, 1
add ecx, 3
add eax, ecx
xor ecx, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0xa5d313e
xor ebx, ebx
xor esi, esi
cmp bx, word [edi]
mov ebx, dword [ebp + 0x10]
jge 0xa5d312a
mov eax, dword [ebp + 8]
mov byte [eax + ecx*4 + 6], dl
mov eax, dword [ebp + 0x14]
add ecx, ebx
and ecx, dword [ebp - 8]
cmp ecx, eax
ja 0xa5d3116
movsx eax, word [edi]
inc esi
cmp esi, eax
jl 0xa5d310c
mov eax, dword [ebp - 4]
inc edx
add edi, 2
cmp edx, eax
jb 0xa5d3100
mov ebx, dword [ebp - 0xc]
test ecx, ecx
je 0xa5d313e
or eax, 0xffffffff
jmp 0xa5d318b
test ebx, ebx
je 0xa5d3184
mov esi, dword [ebp + 8]
movzx edi, bx
add esi, 7
mov dword [ebp + 0x10], edi
movzx ecx, byte [esi - 1]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x18]
movzx edx, word [eax + ecx*2]
lea eax, [edx + 1]
mov word [edi + ecx*2], ax
mov eax, edx
mov cl, byte [ebp - 0x14]
mov edi, dword [ebp + 0x10]
bsr eax, eax
sub cl, al
shl dx, cl
sub dx, di
mov byte [esi], cl
mov word [esi - 3], dx
lea esi, [esi + 4]
sub ebx, 1
jne 0xa5d314e
xor eax, eax
jmp 0xa5d318b
push 0xffffffffffffffd2
pop eax
pop edi
pop esi
pop ebx
leave
ret