Function at 0xa703d42
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
lea eax, [eax + edx*2]
xor ebx, ebx
add eax, 2
xor esi, esi
mov dword [ebp - 0x18], eax
lea eax, [edx + 1]
mov dword [ebp - 4], eax
xor eax, eax
push edi
lea edx, [ebx + ecx]
lea edi, [eax + 1]
shl edi, cl
xor ecx, ecx
mov dword [ebp - 8], edi
lea eax, [edi - 1]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
xor eax, eax
bts eax, edx
cmp edx, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edx, 0x40
lea edx, [edi*2 + 2]
mov edi, dword [ebp - 8]
cmovae ecx, eax
add edx, eax
adc esi, ecx
add edx, 8
adc esi, ebx
cmp esi, ebx
ja 0xa703fde
jb 0xa703dbb
cmp edx, dword [ebp + 0x1c]
ja 0xa703fde
cmp dword [ebp + 0x10], 0xff
ja 0xa703fde
mov eax, dword [ebp + 0x14]
cmp eax, 0xc
jbe 0xa703dd7
push 0xffffffffffffffd4
jmp 0xa703fe0
xor edx, edx
mov word [ebp + 0x10], ax
inc edx
lea ecx, [eax - 1]
mov eax, edx
mov word [ebp + 0x12], dx
shl ax, cl
mov ecx, ebx
movzx eax, ax
mov dword [ebp + 0x1c], eax
cmp dword [ebp - 4], ecx
jbe 0xa703e53
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
add ebx, 6
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
sub edx, eax
mov dword [ebp - 0xc], edx
lea ebx, [ebx + edi*4]
movzx edx, word [eax + edx]
mov esi, edx
mov dword [ebp - 0x1c], esi
or esi, 0xffffffff
cmp dx, si
jne 0xa703e2a
mov byte [ebx], cl
xor edx, edx
dec edi
sub ebx, 4
inc edx
jmp 0xa703e3c
cmp dx, word [ebp + 0x1c]
jl 0xa703e36
xor edx, edx
mov word [ebp + 0x12], dx
mov edx, dword [ebp - 0x1c]
movzx edx, dx
mov word [eax], dx
inc ecx
mov edx, dword [ebp - 0xc]
add eax, 2
cmp ecx, dword [ebp - 4]
jb 0xa703e0e
mov dword [ebp - 0xc], edi
xor ebx, ebx
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, ebx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, edi
shr eax, 1
mov ecx, edi
add eax, 3
shr ecx, 3
add eax, ecx
mov dword [ebp - 0x1c], eax
lea eax, [edi - 1]
cmp dword [ebp - 0xc], eax
jne 0xa703f43
cmp dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, ebx
movlpd qword [ebp - 0x10], xmm0
jbe 0xa703eed
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0x10], ecx
movsx esi, word [esi + edx*2]
mov dword [ebp + 0x1c], esi
mov dword [edi + eax], ecx
mov dword [edi + eax + 4], ebx
cmp esi, 8
jle 0xa703ed1
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 esi, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x18]
add eax, esi
mov esi, 0x1010101
inc edx
add ecx, esi
mov dword [ebp + 0x10], ecx
adc ebx, esi
mov esi, dword [ebp + 0xc]
cmp edx, dword [ebp - 4]
jb 0xa703e99
mov edi, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp + 0x10], ebx
mov esi, ebx
mov dword [ebp + 0x1c], esi
mov edx, ebx
test edi, edi
je 0xa703fda
mov edi, ebx
mov ebx, edx
mov edx, dword [ebp - 0x18]
add edx, esi
mov esi, dword [ebp + 8]
mov ecx, ebx
and ecx, dword [ebp - 0x14]
mov al, byte [edi + edx]
inc edi
mov byte [esi + ecx*4 + 6], al
mov esi, dword [ebp - 0x1c]
add ebx, esi
cmp edi, 2
jb 0xa703f08
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push 0
pop ebx
lea edx, [edx + esi*2]
mov esi, dword [ebp + 0x1c]
and edx, dword [ebp - 0x14]
add esi, 2
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x1c], esi
cmp esi, eax
jb 0xa703eff
jmp 0xa703f96
cmp dword [ebp - 4], 0
mov ecx, ebx
je 0xa703f8f
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, ebx
cmp ax, word [edi]
mov eax, dword [ebp - 4]
jge 0xa703f7b
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebx + ecx*4 + 6], dl
add ecx, eax
and ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0xc]
ja 0xa703f64
movsx eax, word [edi]
inc esi
cmp esi, eax
jl 0xa703f5d
mov eax, dword [ebp - 4]
xor ebx, ebx
inc edx
add edi, 2
cmp edx, eax
jb 0xa703f4e
mov edi, dword [ebp - 8]
test ecx, ecx
je 0xa703f8f
or eax, 0xffffffff
jmp 0xa703fe1
test edi, edi
je 0xa703fda
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
movzx eax, ax
add edi, 7
mov dword [ebp + 0x10], eax
movzx edx, byte [edi - 1]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x18]
movzx esi, word [eax + edx*2]
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mov word [ecx + edx*2], ax
mov ecx, esi
bsr eax, ecx
mov cl, byte [ebp + 0x14]
sub cl, al
shl si, cl
sub si, word [ebp + 0x10]
inc ebx
mov byte [edi], cl
lea edi, [edi + 4]
mov word [edi - 7], si
cmp ebx, dword [ebp - 8]
jb 0xa703fa2
xor eax, eax
jmp 0xa703fe1
push 0xffffffffffffffd2
pop eax
pop edi
pop esi
pop ebx
leave
ret