Function at 0x101e81c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [ebp + 8]
lea edx, [eax + ecx*8]
mov eax, esi
mov ecx, dword [edx + 8]
shl eax, 6
add ecx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 4]
add ecx, eax
mov dword [ebp - 0x20], ecx
mov cl, byte [ebp + 0x14]
cmp cl, 4
je 0x101e821e
cmp cl, 0xc
je 0x101e821e
cmp cl, 0xb
je 0x101e821e
cmp cl, 0x11
je 0x101e8217
cmp cl, 0x12
je 0x101e8217
movzx eax, cl
mov ebx, dword [eax*4 + 0x104e4f80]
jmp 0x101e8223
mov ebx, 0x200
jmp 0x101e8223
mov ebx, 0x400
movzx eax, byte [ebp + 0x18]
mov edx, dword [edx + 0x10]
movzx ecx, cl
shl ecx, 4
add ecx, eax
mov dword [ebp - 4], ebx
lea eax, [ecx*8 + 0x10442900]
mov dword [ebp - 0x10], eax
lea eax, [esi + esi]
mov dword [ebp + 8], eax
movzx eax, word [eax + edx]
test ax, ax
je 0x101e83ea
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
cmp eax, ecx
jle 0x101e83ea
mov eax, dword [ebp + 0x20]
add eax, ecx
cmp ebx, eax
jle 0x101e83ea
xor eax, eax
xor ebx, ebx
push edi
xor ecx, ecx
mov dword [ebp + 0x18], eax
or edi, 0xffffffff
mov dword [ebp + 0x14], eax
xor esi, esi
cmp dword [ebp + 0xc], eax
jbe 0x101e83bc
mov dword [ebp + 0xc], edx
nop dword [eax + eax]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
movsx eax, word [eax + esi*2]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jle 0x101e82b5
xor ebx, ebx
xor ecx, ecx
or edi, 0xffffffff
jmp 0x101e82e1
cmp dword [ebp - 0x18], 0
jne 0x101e82ce
cmp edi, 0xffffffff
lea eax, [ebx + 1]
cmovne eax, ebx
mov ebx, eax
lea eax, [ecx + 1]
cmovne ecx, eax
jmp 0x101e82e7
cmp ebx, dword [ebp + 0x1c]
jl 0x101e82df
mov edx, dword [ebp + 0x18]
cmp edi, 0xffffffff
cmove edi, esi
inc edx
jmp 0x101e82ea
xor ebx, ebx
lea eax, [esi + 1]
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x18]
cmp edx, 2
mov eax, 0xffffffff
cmovg edi, eax
lea eax, [esi + 1]
mov dword [ebp - 0xc], eax
cmovle eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
xor eax, eax
cmp edx, 2
mov dword [ebp - 8], edi
cmovle eax, edx
mov dword [ebp - 0x18], eax
xor eax, eax
cmp edx, 2
cmovle eax, ecx
mov ecx, eax
xor eax, eax
cmp edx, 2
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0xc]
cmovle eax, ebx
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp edi, 0xffffffff
je 0x101e834d
mov eax, dword [ebp + 8]
movzx eax, word [eax + edx]
dec eax
cmp esi, eax
jne 0x101e834d
mov edi, dword [ebp + 8]
movzx eax, word [edi + edx]
mov edi, dword [ebp - 8]
sub ecx, eax
add ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x20]
jl 0x101e83f0
mov eax, edi
cmp edi, esi
jg 0x101e839b
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
nop word [eax + eax]
mov ecx, dword [edx]
movsx ecx, word [ecx + eax*2]
mov dword [edi + ecx*4], 0
mov ecx, dword [edx]
movsx ecx, word [ecx + eax*2]
inc eax
mov dword [ebx + ecx*4], 0
cmp eax, esi
jle 0x101e8370
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
mov edx, dword [eax + 0x10]
sub ebx, edi
inc esi
add ebx, esi
xor ecx, ecx
xor eax, eax
mov dword [ebp + 0x18], eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], edx
movzx eax, word [eax + edx]
cmp esi, eax
jl 0x101e8290
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
pop edi
movzx eax, word [ebx + edx]
cmp ecx, eax
je 0x101e83ea
push ecx
push dword [ebp - 0x10]
mov word [ebx + edx], cx
push dword [ebp - 0x14]
call fcn.10203520
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x14]
mov byte [edx + ecx], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + edi*2]
mov edi, dword [ebp - 8]
dec eax
cmp esi, eax
jne 0x101e83a7
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], eax
jmp 0x101e83aa