Function at 0x10077be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x1c
mov eax, dword [0x1011b140]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [esp + 0x24]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x34]
sub ebx, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
movlpd qword [esp + 0x1c], xmm0
test edx, edx
jle 0x10077e06
push esi
nop dword [eax]
push edi
lea eax, [esp + 0x24]
push 0
push eax
call fcn.100bef40
lea eax, [edi - 2]
add esp, 0xc
xor esi, esi
cmp eax, 3
ja case.default.0x10077c3e
jmp dword [eax*4 + 0x10077e18]
xor ecx, ecx
test ebx, ebx
js 0x10077dc6
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov bl, byte [edx]
mov eax, ecx
and eax, 7
movzx edx, bl
movzx eax, byte [esp + eax + 0x20]
sub edx, eax
lea eax, [edi + ecx]
and eax, 7
add esi, edx
mov edx, dword [esp + 0x10]
inc ecx
mov byte [esp + eax + 0x20], bl
mov eax, esi
shr eax, 1
mov byte [edx], al
add edx, ebp
mov dword [esp + 0x10], edx
cmp ecx, dword [esp + 0x18]
jle 0x10077c57
jmp 0x10077dc6
xor ecx, ecx
test ebx, ebx
js 0x10077dc6
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov bl, byte [eax]
mov eax, ecx
and eax, 7
movzx edx, bl
movzx eax, byte [esp + eax + 0x20]
sub edx, eax
lea eax, [edi + ecx]
and eax, 7
add esi, edx
inc ecx
mov byte [esp + eax + 0x20], bl
mov eax, 0xaaaaaaab
mul esi
mov eax, dword [esp + 0x10]
shr edx, 1
mov byte [eax], dl
add eax, ebp
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x18]
jle 0x10077ca2
jmp 0x10077dc6
xor ecx, ecx
test ebx, ebx
js 0x10077dc6
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov bl, byte [edx]
mov eax, ecx
and eax, 7
movzx edx, bl
movzx eax, byte [esp + eax + 0x20]
sub edx, eax
lea eax, [edi + ecx]
and eax, 7
add esi, edx
mov edx, dword [esp + 0x10]
inc ecx
mov byte [esp + eax + 0x20], bl
mov eax, esi
shr eax, 2
mov byte [edx], al
add edx, ebp
mov dword [esp + 0x10], edx
cmp ecx, dword [esp + 0x18]
jle 0x10077cf2
jmp 0x10077dc6
xor ecx, ecx
test ebx, ebx
js 0x10077dc6
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
nop
mov bl, byte [eax]
mov eax, ecx
and eax, 7
movzx edx, bl
movzx eax, byte [esp + eax + 0x20]
sub edx, eax
lea eax, [edi + ecx]
and eax, 7
add esi, edx
inc ecx
mov byte [esp + eax + 0x20], bl
mov eax, 0xcccccccd
mul esi
mov eax, dword [esp + 0x10]
shr edx, 2
mov byte [eax], dl
add eax, ebp
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x18]
jle 0x10077d40
jmp 0x10077dc6
xor ecx, ecx
test ebx, ebx
js 0x10077dc6
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
nop word [eax + eax]
mov bl, byte [edx]
mov eax, ecx
and eax, 7
movzx edx, bl
movzx eax, byte [esp + eax + 0x20]
sub edx, eax
lea eax, [edi + ecx]
and eax, 7
add esi, edx
xor edx, edx
inc ecx
mov byte [esp + eax + 0x20], bl
mov eax, esi
div edi
mov edx, dword [esp + 0x10]
mov byte [edx], al
add edx, ebp
mov dword [esp + 0x10], edx
cmp ecx, dword [esp + 0x18]
jle 0x10077d90
cmp ecx, dword [esp + 0x30]
jge 0x10077df2
mov ebx, ebp
imul ebx, ecx
add ebx, dword [esp + 0x14]
mov eax, ecx
xor edx, edx
and eax, 7
inc ecx
movzx eax, byte [esp + eax + 0x20]
sub esi, eax
mov eax, esi
div edi
mov byte [ebx], al
add ebx, ebp
cmp ecx, dword [esp + 0x30]
jl 0x10077dd5
inc dword [esp + 0x14]
sub dword [esp + 0x1c], 1
mov ebx, dword [esp + 0x18]
jne 0x10077c20
pop esi
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.100bd374
add esp, 0x1c
ret