Function at 0x10232430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, edx
imul edx, dword [ebp + 8], 0xb
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0xc], eax
mov esi, ecx
add edx, dword [eax + ebx*4]
mov dword [ebp + 8], edx
cmp ebx, 0x10
jge 0x102325a8
movzx eax, byte [edx]
mov edi, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
test eax, eax
jns 0x10232495
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
cmp eax, dword [esi + 0x10]
ja 0x1023248b
mov ecx, dword [ecx]
mov eax, dword [esi]
add dword [esi + 0xc], 3
bswap ecx
shr ecx, 8
shl eax, 0x18
or ecx, eax
add dword [esi + 8], 0x18
mov dword [esi], ecx
jmp 0x10232495
mov ecx, esi
call fcn.10244a20
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, edi
imul eax, dword [ebp - 4]
mov dword [ebp - 8], ecx
shr eax, 8
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
shr eax, cl
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x102324d5
or eax, 0xffffffff
sub eax, ecx
add edi, eax
lea eax, [ecx + 1]
mov ecx, dword [ebp - 8]
shl eax, cl
sub dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov dword [ebp - 4], 1
jmp 0x102324e1
mov edi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
cmp edi, 0x7e
ja 0x102324f9
movzx eax, byte [edi + 0x103c8020]
movzx edi, byte [edi + 0x103c80a0]
sub ecx, eax
mov dword [esi + 8], ecx
cmp dword [ebp - 4], 0
mov dword [esi + 4], edi
je 0x10232716
movzx eax, byte [edx + 1]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
test eax, eax
jns 0x10232545
mov edx, dword [esi + 0xc]
lea eax, [edx + 4]
cmp eax, dword [esi + 0x10]
ja 0x1023253e
mov ecx, dword [edx]
lea eax, [edx + 3]
mov dword [esi + 0xc], eax
mov eax, dword [esi]
bswap ecx
shr ecx, 8
shl eax, 0x18
or ecx, eax
add dword [esi + 8], 0x18
mov dword [esi], ecx
jmp 0x10232545
mov ecx, esi
call fcn.10244a20
mov eax, dword [esi]
mov edx, edi
imul edx, dword [ebp - 0x10]
mov ecx, dword [esi + 8]
shr eax, cl
shr edx, 8
cmp eax, edx
jbe 0x1023256e
or eax, 0xffffffff
sub eax, edx
add edi, eax
lea eax, [edx + 1]
shl eax, cl
mov edx, 1
sub dword [esi], eax
jmp 0x10232572
mov edi, edx
xor edx, edx
cmp edi, 0x7e
ja 0x1023258a
movzx eax, byte [edi + 0x103c8020]
movzx edi, byte [edi + 0x103c80a0]
sub ecx, eax
mov dword [esi + 8], ecx
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], edi
test edx, edx
jne 0x102325b4
mov edx, dword [eax + ebx*4 + 4]
inc ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], edx
cmp ebx, 0x10
jne 0x10232506
pop edi
pop esi
mov eax, 0x10
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + ebx*4 + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebx + 2]
mov dword [ebp + 8], eax
mov eax, dword [esi + 8]
test eax, eax
jns 0x102325fa
mov edx, dword [esi + 0xc]
lea eax, [edx + 4]
cmp eax, dword [esi + 0x10]
ja 0x102325f3
mov ecx, dword [edx]
lea eax, [edx + 3]
mov dword [esi + 0xc], eax
mov eax, dword [esi]
bswap ecx
shr ecx, 8
shl eax, 0x18
or ecx, eax
add dword [esi + 8], 0x18
mov dword [esi], ecx
jmp 0x102325fa
mov ecx, esi
call fcn.10244a20
mov eax, dword [esi]
mov edx, edi
imul edx, dword [ebp + 8]
mov ecx, dword [esi + 8]
shr eax, cl
shr edx, 8
cmp eax, edx
jbe 0x1023261f
sub edi, edx
lea eax, [edx + 1]
shl eax, cl
dec edi
sub dword [esi], eax
mov edx, 1
jmp 0x10232623
mov edi, edx
xor edx, edx
cmp edi, 0x7e
ja 0x1023263b
movzx eax, byte [edi + 0x103c8020]
movzx edi, byte [edi + 0x103c80a0]
sub ecx, eax
mov dword [esi + 8], ecx
mov dword [esi + 4], edi
test edx, edx
jne 0x1023264f
mov eax, 1
mov dword [ebp - 8], eax
lea eax, [edx + 0xb]
jmp 0x10232660
mov edx, ebx
mov ecx, esi
call fcn.10232720
mov dword [ebp - 8], eax
mov eax, 0x16
mov ebx, dword [ebp - 0x10]
mov edi, dword [esi + 8]
add ebx, eax
mov dword [ebp + 8], ebx
test edi, edi
jns 0x1023269f
mov edx, dword [esi + 0xc]
lea eax, [edx + 4]
cmp eax, dword [esi + 0x10]
ja 0x10232698
mov ecx, dword [edx]
lea eax, [edx + 3]
mov dword [esi + 0xc], eax
mov eax, dword [esi]
bswap ecx
shl eax, 0x18
shr ecx, 8
or ecx, eax
lea eax, [edi + 0x18]
mov dword [esi], ecx
mov dword [esi + 8], eax
jmp 0x1023269f
mov ecx, esi
call fcn.10244a20
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov ebx, dword [esi]
mov eax, ebx
shr eax, cl
shr edx, 1
mov edi, edx
sub edi, eax
lea eax, [ecx - 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
sar edi, 0x1f
add eax, edi
or eax, 1
mov dword [esi + 4], eax
lea eax, [edx + 1]
and eax, edi
mov edx, 4
shl eax, cl
mov ecx, dword [ebp - 8]
sub ebx, eax
xor ecx, edi
mov dword [esi], ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
sub ecx, edi
test ebx, ebx
movsx ecx, cx
cmovg eax, edx
mov edx, dword [ebp + 0xc]
movsx eax, word [eax + edx]
mov edx, dword [ebp + 0x14]
imul ecx, eax
movzx eax, byte [ebx + 0x103c6060]
inc ebx
mov dword [ebp + 0x10], ebx
mov word [edx + eax*2], cx
cmp ebx, 0x10
jge 0x102325a8
mov edx, dword [ebp + 8]
jmp 0x10232456
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret