Function at 0x10027880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
jne 0x10027ad1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax]
mov eax, dword [ebx + 0x28]
or edx, 0xffffffff
mov dword [ebp - 8], ecx
cmp esi, eax
jae 0x100278e0
mov ebx, dword [ecx]
mov ecx, 0x20
sub ecx, eax
shr edx, cl
mov dword [ebp - 0x1c], ebx
mov ecx, esi
shl ebx, cl
mov ecx, eax
sub ecx, esi
or ebx, edi
mov edi, dword [ebp - 0x1c]
shr edi, cl
mov ecx, 0x20
sub ecx, eax
and edx, ebx
mov ebx, dword [ebp + 8]
add esi, ecx
add dword [ebp - 8], 4
jmp 0x100278f1
mov ecx, 0x20
sub ecx, eax
shr edx, cl
mov ecx, eax
and edx, edi
shr edi, cl
sub esi, eax
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0xc], edx
je 0x10027903
xor edx, 0xbb
mov dword [ebp - 0xc], edx
test edx, edx
je 0x10027ab6
cmp edx, dword [ebx + 0x2c]
ja 0x10027ab6
mov eax, dword [ebx + 0x30]
lea ecx, [eax + edx]
mov dword [ebp - 0x18], eax
mov dword [ebx], eax
mov dword [ebx + 4], ecx
test esi, esi
jne 0x1002793e
mov ecx, dword [ebp - 8]
mov edi, dword [ecx]
add dword [ebp - 8], 4
mov dword [ebp - 0x1c], edi
mov cl, byte [ebp - 0x1c]
shr edi, 1
mov esi, 0x1f
jmp 0x10027943
mov ecx, edi
shr edi, 1
dec esi
test cl, 1
jne 0x10027a67
mov edx, dword [ebx + 0x20]
mov dword [ebp - 0x14], edx
mov edx, eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
jmp 0x10027969
mov ebx, dword [ebp + 8]
cmp esi, dword [ebp - 0x14]
jb 0x10027996
or eax, 0xffffffff
mov ecx, 0x20
sub ecx, dword [ebp - 0x14]
shr eax, cl
mov ecx, dword [ebp - 0x18]
and eax, edi
movzx ecx, byte [eax + ecx]
mov eax, ecx
shr ecx, 4
and eax, 0xf
mov bl, byte [eax + ebx + 0x10]
shr edi, cl
sub esi, ecx
jmp 0x100279f3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x10027ab6
mov edx, dword [eax]
or eax, 0xffffffff
mov ecx, 0x20
sub ecx, dword [ebp - 0x14]
mov ebx, edx
shr eax, cl
mov ecx, esi
shl ebx, cl
mov ecx, dword [ebp - 0x18]
or ebx, edi
and eax, ebx
movzx eax, byte [eax + ecx]
mov ebx, dword [ebp + 8]
mov ecx, eax
and ecx, 0xf
mov bl, byte [ecx + ebx + 0x10]
shr eax, 4
mov ecx, eax
cmp esi, eax
jb 0x100279dd
shr edi, cl
sub esi, eax
jmp 0x100279f0
sub ecx, esi
shr edx, cl
mov edi, edx
mov edx, 0x20
sub edx, eax
add esi, edx
add dword [ebp - 8], 4
mov edx, dword [ebp - 0x10]
cmp bl, 0xc
jb 0x10027a4c
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
shl eax, 8
or eax, ecx
movzx ecx, bl
mov cl, byte [ecx + 0x10037244]
mov ebx, eax
mov byte [ebp - 1], cl
shl ebx, 0x10
movzx ecx, cl
or eax, ebx
cmp ecx, dword [ebp - 0xc]
ja 0x10027ac1
sub dword [ebp - 0xc], ecx
mov cl, byte [ebp - 1]
test dl, 3
je 0x10027a40
lea esp, [esp]
mov byte [edx], al
inc edx
add cl, 0xff
jne 0x10027a30
jmp 0x10027a58
mov dword [edx], eax
add edx, 4
add cl, 0xfc
jne 0x10027a40
jmp 0x10027a58
movzx eax, bl
mov byte [edx], bl
inc edx
dec dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x10], edx
jne 0x10027966
jmp 0x10027ac1
cmp esi, 4
jae 0x10027a9e
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
add dword [ebp - 8], 4
mov ebx, eax
mov ecx, esi
shl ebx, cl
mov ecx, 4
sub ecx, esi
shr eax, cl
or ebx, edi
push edx
and ebx, 0xf
mov edi, eax
mov eax, dword [ebp - 0x18]
push ebx
push eax
add esi, 0x1c
call fcn.10032ac0
add esp, 0xc
jmp 0x10027ac1
mov ebx, edi
push edx
and ebx, 0xf
push ebx
push eax
shr edi, 4
sub esi, 4
call fcn.10032ac0
add esp, 0xc
jmp 0x10027ac1
mov eax, dword [ebx + 0x30]
lea edx, [eax + 4]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], edi
pop edi
mov dword [eax + 8], esi
mov dword [eax + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret