Function at 0x10073a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x1cec8]
mov eax, dword [esi + 0x1cebc]
inc byte [eax + ecx*8]
mov eax, dword [esi + 0x1cebc]
mov ecx, dword [esi + 0x1cec8]
movsx edx, word [eax + ecx*8 + 2]
movzx ecx, byte [eax + ecx*8]
mov eax, edx
cdq
idiv ecx
movzx ebp, byte [eax + esi + 0x1aed8]
test ebp, ebp
je 0x10073ada
mov ebx, dword [esi + 0x28]
mov ecx, 0x20
sub ecx, ebp
shr ebx, cl
jmp 0x10073adc
xor ebx, ebx
push ebp
mov ecx, esi
call fcn.10072a60
mov edi, dword [esi + 0x28]
shr edi, 0x1f
test edi, edi
je 0x10073af9
mov eax, 1
mov ecx, ebp
shl eax, cl
add ebx, eax
push 1
mov ecx, esi
call fcn.10072a60
test edi, edi
jne 0x10073ae4
mov ecx, dword [esi + 0x1cec8]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
test bl, 1
mov edx, eax
not edx
cmove edx, eax
mov eax, dword [esi + 0x1cebc]
mov dword [esp + 0x10], edx
lea edi, [eax + ecx*8]
movzx eax, byte [edi + 1]
cmp eax, 3
ja case.default.0x10073b33
jmp dword [eax*4 + 0x10073d5c]
movzx ecx, byte [esi + 0x1ced0]
jmp 0x10073b7d
movzx ecx, byte [esi + 0x1ced1]
jmp 0x10073b7d
movzx ecx, byte [esi + 0x1ced0]
movzx eax, byte [esi + 0x1ced1]
add ecx, eax
shr ecx, 1
jmp 0x10073b7d
movzx eax, byte [esi + 0x1ced2]
movzx ecx, byte [esi + 0x1ced0]
sub ecx, eax
movzx eax, byte [esi + 0x1ced1]
add ecx, eax
jmp 0x10073b7d
xor ecx, ecx
lea eax, [ecx + edx]
mov byte [esi + 0x1ced4], al
sub al, byte [esi + 0x1ced0]
movzx eax, al
movzx eax, byte [eax + esi + 0x1b6d8]
add byte [edi + 4], al
mov eax, dword [esi + 0x1cebc]
mov ecx, dword [esi + 0x1cec8]
movzx ebx, byte [eax + ecx*8 + 4]
lea ecx, [eax + ecx*8]
movzx eax, byte [esi + 0x1ced4]
sub al, byte [esi + 0x1ced1]
movzx eax, al
movzx eax, byte [eax + esi + 0x1b6d8]
add byte [ecx + 5], al
mov ecx, dword [esi + 0x1cec8]
mov eax, dword [esi + 0x1cebc]
movzx edi, byte [eax + ecx*8 + 5]
lea edx, [eax + ecx*8]
movzx eax, byte [esi + 0x1ced1]
cmp edi, ebx
movzx ecx, byte [esi + 0x1ced0]
mov ebp, edi
cmovae ebp, ebx
add ecx, eax
movzx eax, byte [esi + 0x1ced4]
shr ecx, 1
sub al, cl
movzx eax, al
movzx eax, byte [eax + esi + 0x1b6d8]
add byte [edx + 6], al
cmp edi, ebx
mov eax, dword [esi + 0x1cebc]
mov ecx, dword [esi + 0x1cec8]
sbb ebx, ebx
movzx edx, byte [eax + ecx*8 + 6]
lea ecx, [eax + ecx*8]
neg ebx
mov eax, 2
cmp edx, ebp
cmovb ebx, eax
movzx eax, byte [esi + 0x1ced2]
sub al, byte [esi + 0x1ced0]
sub al, byte [esi + 0x1ced1]
add al, byte [esi + 0x1ced4]
movzx eax, al
movzx eax, byte [eax + esi + 0x1b6d8]
add byte [ecx + 7], al
cmp edx, ebp
mov ecx, dword [esi + 0x1cec8]
mov edi, dword [esi + 0x1cebc]
cmovae edx, ebp
mov ebp, 3
lea eax, [edi + ecx*8]
movzx eax, byte [eax + 7]
cmp eax, edx
mov eax, dword [edi + ecx*8 + 4]
lea edx, [edi + ecx*8]
cmovb ebx, ebp
test eax, 0x80808080
je 0x10073c9e
shr eax, 1
and eax, 0x7f7f7f7f
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x1cec8]
mov edi, dword [esi + 0x1cebc]
mov eax, dword [esp + 0x10]
mov byte [edi + ecx*8 + 1], bl
mov edx, dword [esi + 0x1cec8]
mov ecx, dword [esi + 0x1cebc]
lea ecx, [ecx + edx*8]
cdq
xor eax, edx
sub eax, edx
add word [ecx + 2], ax
mov ecx, dword [esi + 0x1cec8]
mov eax, dword [esi + 0x1cebc]
cmp byte [eax + ecx*8], 0x80
jne 0x10073ce5
mov byte [eax + ecx*8], 0x40
mov ecx, dword [esi + 0x1cec8]
mov eax, dword [esi + 0x1cebc]
sar word [eax + ecx*8 + 2], 1
mov eax, dword [esi + 0x1cecc]
sub eax, 0
je 0x10073d3f
sub eax, 1
je 0x10073d20
sub eax, 1
jne 0x10073d54
mov ecx, dword [esi + 0x1cec4]
add ecx, dword [esi + 0x1b7e0]
pop edi
movzx eax, byte [ecx - 1]
imul eax, eax, 0xb
sar eax, 4
sub al, 0x80
add al, byte [esi + 0x1ced4]
pop esi
pop ebp
mov byte [ecx], al
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x1cec4]
add ecx, dword [esi + 0x1b7e0]
pop edi
mov al, byte [ecx - 1]
sub al, 0x80
add al, byte [esi + 0x1ced4]
pop esi
pop ebp
mov byte [ecx], al
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x1cec4]
mov ecx, dword [esi + 0x1b7e0]
mov al, byte [esi + 0x1ced4]
mov byte [edx + ecx], al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret