Function at 0x55d760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
js 0x55dab3
mov eax, dword [ebp - 0x28]
movzx edx, word [eax + 2]
xor ebx, ebx
test edx, edx
mov eax, 0x8a
mov ecx, 7
cmove ecx, eax
setne bl
add ebx, 3
mov dword [ebp - 0x18], ebx
xor edi, edi
dec edi
xor eax, eax
xor ebx, ebx
jmp 0x55d9d6
movzx edi, word [ebx + 0xb16]
movzx edx, word [ebx + 0xb14]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x18]
shl edx, cl
or eax, edx
mov edx, eax
mov eax, ecx
mov ecx, 0x10
mov dword [ebp - 0x20], edi
sub ecx, edi
cmp eax, ecx
jg 0x55dc1d
add eax, dword [ebp - 0x20]
mov dword [ebx + 0x1710], eax
add esi, 0xfff6
cmp eax, 0xa
jge 0x55d7fa
mov ecx, eax
shl esi, cl
or edx, esi
mov word [ebx + 0x170c], dx
add eax, 7
jmp 0x55d84c
movzx ecx, si
mov dword [ebp - 0x14], ecx
mov ecx, eax
shl esi, cl
or edx, esi
mov word [ebx + 0x170c], dx
mov ecx, dword [ebx + 8]
mov eax, edx
mov edx, dword [ebx + 0x14]
lea esi, [edx + 1]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov cl, byte [ebx + 0x170d]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov byte [edx + esi], cl
mov eax, dword [ebx + 0x1710]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
shr edx, cl
mov word [ebx + 0x170c], dx
add eax, 0xfffffff7
mov edi, dword [ebp - 0x1c]
jmp 0x55d979
mov eax, esi
mov esi, dword [ebp - 0x14]
cmp esi, 9
jg 0x55d7a6
movzx edi, word [ebx + 0xb12]
movzx edx, word [ebx + 0xb10]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x18]
shl edx, cl
or eax, edx
mov edx, eax
mov eax, ecx
mov ecx, 0x10
mov dword [ebp - 0x20], edi
sub ecx, edi
cmp eax, ecx
jg 0x55db68
add eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x1710], eax
add esi, 0xfffe
cmp eax, 0xe
jge 0x55dc78
mov ecx, eax
shl esi, cl
or edx, esi
mov word [ebx + 0x170c], dx
add eax, 3
jmp 0x55d979
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
jmp 0x55d924
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1710]
mov dword [ebp - 0x18], ecx
movzx esi, word [ebx + 0x170c]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x55d854
cmp ecx, edi
je 0x55d8c0
movzx edi, word [ebx + ecx*4 + 0xace]
movzx edx, word [ebx + ecx*4 + 0xacc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
mov ecx, eax
shl edx, cl
or esi, edx
mov ecx, 0x10
sub ecx, edi
mov word [ebx + 0x170c], si
cmp eax, ecx
jg 0x55db16
add eax, edi
mov dword [ebx + 0x1710], eax
movzx edi, word [ebx + 0xb0e]
movzx edx, word [ebx + 0xb0c]
mov dword [ebp - 0x18], edx
mov ecx, eax
shl edx, cl
or esi, edx
mov edx, esi
mov ecx, 0x10
sub ecx, edi
cmp eax, ecx
jg 0x55dabb
add eax, edi
mov esi, dword [ebp - 0x14]
mov dword [ebx + 0x1710], eax
add esi, 0xfffd
cmp eax, 0xf
mov edi, dword [ebp - 0x1c]
jge 0x55dbc3
mov ecx, eax
shl esi, cl
or edx, esi
mov word [ebx + 0x170c], dx
add eax, 2
mov dword [ebx + 0x1710], eax
jmp 0x55d9a3
mov ecx, 0x8a
mov dword [ebp - 0x18], 3
jmp 0x55d9c0
mov dword [ebp - 0x14], edx
add ecx, edi
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x1710], ecx
dec eax
mov edi, dword [ebp - 0x1c]
jne 0x55da21
xor eax, eax
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x55d981
xor ecx, ecx
cmp edi, edx
sete cl
mov edx, 4
sub edx, ecx
mov dword [ebp - 0x18], edx
xor ecx, 7
mov esi, dword [ebp - 0x30]
lea edx, [esi + 1]
mov ebx, eax
cmp esi, dword [ebp + 8]
mov eax, edx
mov edx, dword [ebp - 0x2c]
je 0x55dab3
mov esi, edx
mov edx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
movzx edx, word [eax + edx*4 + 6]
mov dword [ebp - 0x14], ebx
lea eax, [ebx + 1]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], esi
cmp esi, edx
sete dl
cmp eax, ecx
jge 0x55daac
test dl, dl
jne 0x55d9c0
cmp eax, dword [ebp - 0x18]
jge 0x55d8c8
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1710]
movzx edx, word [ebx + 0x170c]
mov dword [ebp - 0x14], edx
mov edi, dword [ebp - 0x1c]
movzx edx, word [ebx + edi*4 + 0xace]
movzx esi, word [ebx + edi*4 + 0xacc]
mov edi, edx
mov dword [ebp - 0x18], esi
shl esi, cl
mov edx, dword [ebp - 0x14]
or edx, esi
mov esi, 0x10
sub esi, edi
mov word [ebx + 0x170c], dx
cmp ecx, esi
jle 0x55d98f
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + ebx], dl
mov cl, byte [esi + 0x170d]
mov byte [ebp - 0x14], cl
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp - 0x14]
mov byte [edx + ebx], cl
mov edx, dword [esi + 0x1710]
mov cl, 0x10
sub cl, dl
mov ebx, dword [ebp - 0x18]
shr ebx, cl
lea ecx, [edi + edx]
add ecx, 0xfffffff0
mov word [esi + 0x170c], bx
mov edx, ebx
mov dword [ebp - 0x14], edx
jmp 0x55d994
xor edx, edx
jmp 0x55d9fe
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [ebx + 0x170c], dx
mov eax, dword [ebx + 8]
mov esi, edx
mov edx, dword [ebx + 0x14]
lea ebx, [edx + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
mov ecx, esi
mov byte [eax + edx], cl
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x170d]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], ecx
mov byte [esi + ebx], al
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x1710]
mov cl, 0x10
sub cl, dl
lea eax, [edi + edx]
add eax, 0xfffffff0
mov edx, dword [ebp - 0x18]
shr edx, cl
jmp 0x55d94e
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
lea ebx, [edx + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
mov ecx, esi
mov byte [eax + edx], cl
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x170d]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], ecx
mov byte [esi + ebx], al
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x1710]
mov cl, 0x10
sub cl, dl
lea eax, [edi + edx]
add eax, 0xfffffff0
mov esi, dword [ebp - 0x20]
shr esi, cl
jmp 0x55d91e
mov word [ebx + 0x170c], dx
mov edi, dword [ebx + 8]
mov eax, edx
mov edx, dword [ebx + 0x14]
lea ebx, [edx + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
mov byte [edi + edx], al
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x170d]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], ecx
mov byte [edi + ebx], al
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x1710]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x20]
add eax, edx
add eax, 0xfffffff0
mov edx, dword [ebp - 0x24]
shr edx, cl
jmp 0x55d893
movzx ecx, si
mov dword [ebp - 0x14], ecx
mov ecx, eax
shl esi, cl
or edx, esi
mov word [ebx + 0x170c], dx
mov ecx, dword [ebx + 8]
mov eax, edx
mov edx, dword [ebx + 0x14]
lea esi, [edx + 1]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov cl, byte [ebx + 0x170d]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov eax, dword [ebx + 0x1710]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
shr edx, cl
mov word [ebx + 0x170c], dx
add eax, 0xfffffff2
jmp 0x55d979
mov word [ebx + 0x170c], dx
mov edi, dword [ebx + 8]
mov eax, edx
mov edx, dword [ebx + 0x14]
lea ebx, [edx + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
mov byte [edi + edx], al
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x170d]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x14]
lea ecx, [ebx + 1]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], ecx
mov byte [edi + ebx], al
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x1710]
mov cl, 0x10
sub cl, dl
mov eax, dword [ebp - 0x20]
add eax, edx
add eax, 0xfffffff0
mov edx, dword [ebp - 0x24]
shr edx, cl
jmp 0x55d7d7
movzx ecx, si
mov dword [ebp - 0x14], ecx
mov ecx, eax
shl esi, cl
or edx, esi
mov word [ebx + 0x170c], dx
mov ecx, dword [ebx + 8]
mov eax, edx
mov edx, dword [ebx + 0x14]
lea esi, [edx + 1]
mov dword [ebx + 0x14], esi
mov byte [ecx + edx], al
mov cl, byte [ebx + 0x170d]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0x14]
lea edi, [esi + 1]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov eax, dword [ebx + 0x1710]
mov cl, 0x10
sub cl, al
mov edx, dword [ebp - 0x14]
shr edx, cl
mov word [ebx + 0x170c], dx
add eax, 0xfffffff3
jmp 0x55d979