Function at 0xa60680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
xor edx, edx
push ebx
push esi
mov eax, dword [eax]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], edi
mov esi, dword [eax]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0xc], ecx
test esi, esi
jle 0xa60883
nop dword [eax + eax]
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 4]
jg 0xa6083a
mov edi, dword [ecx]
mov ecx, dword [ebp + 0xc]
cmp byte [edi], 0x98
jne 0xa6083d
cmp dword [edi + 0x18], ecx
jne 0xa6083d
mov ecx, dword [ebp - 0x28]
mov edx, edi
call fcn.00a37730
mov ecx, eax
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0xa606ff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x10], ecx
cmp dword [esi], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
je 0xa6073d
cmp ebx, eax
jge 0xa6073d
mov eax, dword [esi + 8]
lea ecx, [ebx*4]
mov edx, dword [ecx + eax]
mov eax, dword [esi + 0x10]
cmp edx, dword [eax + 8]
mov eax, 0xffffffff
cmove edx, eax
mov eax, dword [esi + 0x28]
mov esi, dword [esi + 0x2c]
add esi, ecx
mov ecx, dword [ebp - 0x10]
movzx eax, byte [eax + ebx]
mov dword [ebp - 0x14], eax
jmp 0xa60749
or edx, 0xffffffff
mov dword [ebp - 0x14], 0
mov esi, ecx
mov esi, dword [esi]
mov eax, edx
mov dword [ebp - 0x18], edx
cdq
cmp dword [edi + 0x20], eax
jne 0xa60800
cmp dword [edi + 0x24], edx
jne 0xa60800
mov edi, dword [ecx]
mov dl, byte [edi]
test dl, dl
je 0xa60791
mov al, dl
sub edi, esi
nop
movzx ecx, byte [esi]
mov dl, al
movzx eax, al
mov al, byte [eax + 0xaad778]
cmp al, byte [ecx + 0xaad778]
jne 0xa60791
mov al, byte [edi + esi + 1]
inc esi
mov dl, al
test al, al
jne 0xa60770
movzx eax, byte [esi]
movzx ecx, byte [eax + 0xaad778]
movzx eax, dl
movzx eax, byte [eax + 0xaad778]
sub eax, ecx
jne 0xa607f8
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ecx + 0xc]
xor eax, dword [ebp - 0x14]
cmp ebx, dword [ebp + 0x14]
jle 0xa607c8
mov edi, dword [ebp - 8]
cmp eax, edi
je 0xa607cd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, eax
mov dword [ebp - 8], edi
mov esi, dword [ebp - 4]
add ecx, 0x14
inc esi
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], esi
jge 0xa60811
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00a605d0
add esp, 8
test eax, eax
je 0xa6081e
jmp 0xa6080e
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
jmp 0xa60806
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
cmp ebx, dword [ebp + 0x14]
jge 0xa60836
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc ebx
cmp esi, dword [ebp - 0x20]
jl 0xa606c0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
xor eax, eax
test edi, edi
setne al
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, eax
jne 0xa607bf
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
test edx, edx
mov edx, dword [ebp + 0x18]
setne al
mov dword [edx], eax
cmp edi, dword [ebp - 0x20]
jge 0xa6082a
cmp byte [esi + 0x18], 0
je 0xa607bf
cmp ebx, dword [esi + 4]
jne 0xa607bf
mov edx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0x10]
push edi
call fcn.00a605d0
add esp, 8
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
jmp 0xa60843