Function at 0x5495e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
js 0x5498ca
mov eax, dword [ebp - 0x24]
movzx esi, word [eax + 2]
xor eax, eax
test esi, esi
mov edx, 0x8a
mov ecx, 7
cmove ecx, edx
setne al
add eax, 3
mov dword [ebp - 0x14], eax
xor edi, edi
dec edi
xor edx, edx
xor ebx, ebx
jmp 0x549898
movzx ecx, word [esi + 0xb16]
mov dword [ebp - 0x18], ecx
movzx ecx, word [esi + 0xb14]
mov edi, esi
mov dword [ebp - 0x20], ecx
mov esi, ecx
mov ecx, eax
shl esi, cl
or dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
mov ecx, 0x10
sub ecx, esi
cmp eax, ecx
jg 0x5499cf
mov edx, dword [ebp - 0x14]
add eax, esi
mov esi, edi
mov edi, dword [ebp - 0x1c]
mov dword [esi + 0x1710], eax
add ebx, 0xfff6
cmp eax, 0xa
jge 0x549a1b
mov ecx, eax
shl ebx, cl
or edx, ebx
mov word [esi + 0x170c], dx
add eax, 7
jmp 0x5497b0
mov ebx, edx
cmp edx, 9
jg 0x549626
movzx ecx, word [esi + 0xb12]
mov dword [ebp - 0x18], ecx
movzx ecx, word [esi + 0xb10]
mov edi, esi
mov dword [ebp - 0x20], ecx
mov esi, ecx
mov ecx, eax
shl esi, cl
or dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
mov ecx, 0x10
sub ecx, esi
cmp eax, ecx
jg 0x549983
mov edx, dword [ebp - 0x14]
add eax, esi
mov esi, edi
mov edi, dword [ebp - 0x1c]
mov dword [esi + 0x1710], eax
add ebx, 0xfffe
cmp eax, 0xe
jge 0x549ae7
mov ecx, eax
shl ebx, cl
or edx, ebx
mov word [esi + 0x170c], dx
add eax, 3
jmp 0x5497b0
mov edx, ebx
mov ebx, dword [ebp - 0x14]
jmp 0x54975d
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x1710]
movzx ecx, word [esi + 0x170c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x54968b
cmp ecx, edi
je 0x5496f7
movzx edi, word [esi + ecx*4 + 0xace]
movzx esi, word [esi + ecx*4 + 0xacc]
mov dword [ebp - 0x18], esi
mov ecx, eax
shl esi, cl
mov ebx, dword [ebp - 0x14]
or ebx, esi
mov esi, dword [ebp - 0x10]
mov ecx, 0x10
sub ecx, edi
mov word [esi + 0x170c], bx
cmp eax, ecx
jg 0x549922
add eax, edi
mov dword [esi + 0x1710], eax
movzx edi, word [esi + 0xb0e]
movzx esi, word [esi + 0xb0c]
mov dword [ebp - 0x14], esi
mov ecx, eax
shl esi, cl
or ebx, esi
mov ecx, 0x10
sub ecx, edi
cmp eax, ecx
jg 0x5498d2
add eax, edi
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov dword [esi + 0x1710], eax
add edx, 0xfffd
cmp eax, 0xf
jge 0x549a81
mov ecx, eax
shl edx, cl
or ebx, edx
mov word [esi + 0x170c], bx
add eax, 2
mov dword [esi + 0x1710], eax
jmp 0x54986b
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x18], ecx
mov edi, dword [esi + 0x14]
lea ecx, [edi + 1]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov byte [ecx + edi], al
mov al, byte [esi + 0x170d]
mov byte [ebp - 0x18], al
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea eax, [edi + 1]
mov dword [esi + 0x14], eax
mov al, byte [ebp - 0x18]
mov byte [ecx + edi], al
mov eax, dword [esi + 0x1710]
mov cl, 0x10
sub cl, al
mov edi, dword [ebp - 0x14]
shr edi, cl
lea ecx, [edx + eax]
add ecx, 0xfffffff0
mov word [esi + 0x170c], di
mov eax, edi
jmp 0x54985c
mov dword [ebp - 0x1c], eax
cmp ebx, dword [ebp - 0x14]
jge 0x5496fe
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x1710]
movzx eax, word [esi + 0x170c]
mov edi, dword [ebp - 0x1c]
movzx edx, word [esi + edi*4 + 0xace]
movzx edi, word [esi + edi*4 + 0xacc]
mov dword [ebp - 0x14], edi
shl edi, cl
or eax, edi
mov edi, 0x10
sub edi, edx
mov word [esi + 0x170c], ax
cmp ecx, edi
jg 0x5497bb
add ecx, edx
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x1710], ecx
dec ebx
mov edi, dword [ebp - 0x1c]
jne 0x54982d
xor ebx, ebx
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5498bc
xor ecx, ecx
cmp edi, eax
sete cl
mov eax, 4
sub eax, ecx
mov dword [ebp - 0x14], eax
xor ecx, 7
mov edx, dword [ebp - 0x2c]
lea esi, [edx + 1]
cmp edx, dword [ebp + 8]
mov edx, esi
mov esi, dword [ebp - 0x28]
je 0x5498ca
mov eax, esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
movzx esi, word [esi + edx*4 + 6]
mov edx, ebx
inc ebx
cmp ebx, ecx
mov dword [ebp - 0x28], esi
jge 0x54980e
cmp eax, esi
je 0x549888
jmp 0x54980e
mov ecx, 0x8a
mov dword [ebp - 0x14], 3
jmp 0x549888
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x10]
mov word [esi + 0x170c], bx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], edx
mov edx, ebx
lea ebx, [ecx + 1]
mov dword [esi + 0x14], ebx
mov byte [eax + ecx], dl
mov al, byte [esi + 0x170d]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
mov dword [esi + 0x14], ecx
mov byte [edx + ebx], al
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
lea eax, [edi + ebx]
add eax, 0xfffffff0
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
shr ebx, cl
jmp 0x549788
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
mov eax, ebx
lea ebx, [esi + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + esi], al
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x170d]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + ebx], al
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, bl
lea eax, [edi + ebx]
add eax, 0xfffffff0
mov ebx, dword [ebp - 0x18]
shr ebx, cl
jmp 0x549757
mov eax, dword [ebp - 0x14]
mov word [edi + 0x170c], ax
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ebx, [esi + 1]
mov dword [edi + 0x14], ebx
mov byte [ecx + esi], al
mov al, byte [edi + 0x170d]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov byte [esi + ebx], al
mov ebx, dword [edi + 0x1710]
mov cl, 0x10
sub cl, bl
mov eax, dword [ebp - 0x18]
add eax, ebx
add eax, 0xfffffff0
mov ebx, edx
mov edx, dword [ebp - 0x20]
shr edx, cl
jmp 0x5496c8
mov eax, dword [ebp - 0x14]
mov word [edi + 0x170c], ax
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
lea ebx, [esi + 1]
mov dword [edi + 0x14], ebx
mov byte [ecx + esi], al
mov al, byte [edi + 0x170d]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov dword [edi + 0x14], ecx
mov byte [esi + ebx], al
mov ebx, dword [edi + 0x1710]
mov cl, 0x10
sub cl, bl
mov eax, dword [ebp - 0x18]
add eax, ebx
add eax, 0xfffffff0
mov ebx, edx
mov edx, dword [ebp - 0x20]
shr edx, cl
jmp 0x54965c
mov ecx, eax
movzx eax, bx
shl ebx, cl
or edx, ebx
mov word [esi + 0x170c], dx
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea esi, [ebx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [ecx + ebx], dl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x170d]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov byte [edx + esi], cl
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, dl
shr eax, cl
mov word [esi + 0x170c], ax
mov eax, edx
add eax, 0xfffffff7
jmp 0x5497b0
mov ecx, eax
movzx eax, dx
shl edx, cl
or ebx, edx
mov word [esi + 0x170c], bx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
lea esi, [edx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [ecx + edx], bl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x170d]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov byte [edx + esi], cl
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, dl
shr eax, cl
mov word [esi + 0x170c], ax
mov eax, edx
add eax, 0xfffffff2
jmp 0x5497b0
mov ecx, eax
movzx eax, bx
shl ebx, cl
or edx, ebx
mov word [esi + 0x170c], dx
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea esi, [ebx + 1]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x14], esi
mov byte [ecx + ebx], dl
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + 0x170d]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x14]
lea edi, [esi + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edi
mov byte [edx + esi], cl
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, dl
shr eax, cl
mov word [esi + 0x170c], ax
mov eax, edx
add eax, 0xfffffff3
jmp 0x5497b0