Function at 0x5a72b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov dword [ebp - 0xc], edx
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov eax, 1
mov ecx, edx
shl eax, cl
mov dword [ebp - 8], eax
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x1c], edi
lea ebx, [eax - 1]
mov dword [ebp - 0x10], ebx
test edx, edx
je 0x5a72e3
mov ecx, eax
shr ecx, 1
jmp 0x5a72e8
mov ecx, 1
lea ecx, [ecx + 1]
mov edi, ebx
lea ecx, [esi + ecx*4]
xor esi, esi
mov dword [ebp - 0x2c], ecx
mov ecx, eax
shr eax, 1
add eax, 3
shr ecx, 3
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ecx + eax*2]
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, edx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 8]
cmovae edx, ecx
add eax, 2
add eax, ecx
adc esi, edx
shrd eax, esi, 1
shr esi, 1
add eax, 2
adc esi, 0
shld esi, eax, 2
shl eax, 2
test esi, esi
jb 0x5a735f
ja 0x5a7353
cmp eax, dword [ebp + 0x14]
jbe 0x5a735f
mov eax, 0xffffffd4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov word [ecx - 4], ax
mov eax, dword [ebp + 0x10]
mov word [ecx - 2], dx
lea esi, [edx + 1]
xor ecx, ecx
mov word [eax], cx
mov ecx, 1
cmp esi, ecx
jb 0x5a73cc
mov edx, dword [ebp - 0xc]
mov ebx, eax
sub ebx, edx
jmp 0x5a7390
movzx esi, word [edx]
mov ax, word [edx + ebx]
cmp si, 0xffff
jne 0x5a73b3
mov esi, dword [ebp + 0x10]
inc ax
mov word [esi + ecx*2], ax
lea eax, [ecx - 1]
mov esi, dword [ebp - 4]
mov byte [edi + esi + 2], al
dec edi
jmp 0x5a73bd
add ax, si
mov esi, dword [ebp + 0x10]
mov word [esi + ecx*2], ax
mov esi, dword [ebp + 8]
inc ecx
inc esi
add edx, 2
cmp ecx, esi
jbe 0x5a7390
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea eax, [ecx + 1]
mov word [edx], ax
xor eax, eax
cmp edi, ebx
jne 0x5a752e
lea edi, [edx + 2]
xor esi, esi
mov edx, dword [ebp + 8]
add edi, ecx
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
mov dword [ebp + 0x14], esi
movlpd qword [ebp - 0x28], xmm0
inc edx
je 0x5a745e
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
movsx ecx, word [ecx + eax*2]
mov dword [ebp - 0x24], ecx
mov dword [esi + edi], ebx
mov dword [esi + edi + 4], edx
cmp ecx, 8
jle 0x5a743b
add edi, esi
add ecx, 0xfffffff7
shr ecx, 2
and ecx, 0x3ffffffe
mov dword [edi + 8], ebx
lea esi, [edi + 8]
mov dword [edi + 0xc], edx
add edi, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x18]
add esi, ecx
mov ecx, dword [ebp + 8]
inc eax
add ebx, 0x1010101
mov dword [ebp + 0x14], esi
adc edx, 0x1010101
inc ecx
cmp eax, ecx
jb 0x5a7403
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor esi, esi
test ecx, ecx
je 0x5a74a5
mov eax, ebx
inc edi
shr eax, 1
inc eax
mov dword [ebp + 0x14], eax
lea ecx, [ecx]
mov edx, dword [ebp - 4]
lea edi, [edi + 2]
movzx eax, byte [edi - 3]
mov ecx, esi
and ecx, ebx
mov byte [ecx + edx + 2], al
mov edx, dword [ebp - 0x14]
movzx eax, byte [edi - 2]
lea ecx, [esi + edx]
and ecx, ebx
lea esi, [esi + edx*2]
mov ebx, dword [ebp - 4]
mov byte [ecx + ebx + 2], al
mov ebx, dword [ebp - 0x10]
and esi, ebx
dec dword [ebp + 0x14]
jne 0x5a7470
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor esi, esi
test ecx, ecx
je 0x5a74d3
mov edi, dword [ebp - 0x1c]
movzx eax, byte [esi + edx + 2]
add ecx, esi
mov edx, dword [ebp + 0x10]
inc esi
lea edx, [edx + eax*2]
movzx eax, word [edx]
mov word [edi + eax*2], cx
inc word [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp esi, ecx
jb 0x5a74b1
mov esi, dword [ebp - 0x2c]
xor edi, edi
mov edx, dword [ebp - 0xc]
xor ebx, ebx
add esi, 4
movsx edx, word [edx + ebx*2]
cmp edx, 0xffffffff
je 0x5a758a
test edx, edx
je 0x5a757d
cmp edx, 1
je 0x5a758a
mov ecx, dword [ebp + 0xc]
lea eax, [edx - 1]
bsr eax, eax
sub ecx, eax
mov dword [ebp + 0x10], eax
shl edx, cl
shl ecx, 0x10
sub ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [esi], ecx
mov ecx, edi
movsx eax, word [edx + ebx*2]
sub ecx, eax
mov dword [esi - 4], ecx
movsx eax, word [edx + ebx*2]
mov ecx, dword [ebp - 8]
add edi, eax
jmp 0x5a759e
xor ecx, ecx
mov dword [ebp + 0x14], ecx
test esi, esi
je 0x5a7575
mov edx, dword [ebp - 0xc]
movsx edx, word [edx + ecx*2]
test edx, edx
jle 0x5a7568
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov byte [eax + esi + 2], cl
mov ecx, dword [ebp - 0x14]
add eax, ecx
and eax, ebx
cmp eax, edi
jbe 0x5a755f
add eax, ecx
and eax, ebx
cmp eax, edi
ja 0x5a7557
dec edx
jne 0x5a7545
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x24]
inc ecx
mov dword [ebp + 0x14], ecx
cmp ecx, esi
jb 0x5a7537
jmp 0x5a74a2
mov ecx, dword [ebp - 8]
jmp 0x5a74a8
mov eax, dword [ebp + 0xc]
inc eax
shl eax, 0x10
sub eax, ecx
mov dword [esi], eax
jmp 0x5a759b
mov eax, dword [ebp + 0xc]
shl eax, 0x10
sub eax, ecx
mov dword [esi], eax
lea eax, [edi - 1]
mov dword [esi - 4], eax
inc edi
mov edx, dword [ebp - 0xc]
inc ebx
add esi, 8
cmp ebx, dword [ebp + 8]
jbe 0x5a74e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret