Function at 0x101edfb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, 1
mov ecx, edx
mov dword [ebp - 0x1c], esi
shl eax, cl
mov ecx, eax
sar ecx, 1
or ecx, eax
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [esi + 0x14], ecx
jbe 0x101ee17e
push ebx
push edi
nop
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x10], edi
test eax, eax
je 0x101ee16d
lea edx, [ecx + 4]
mov ebx, ecx
cmp ecx, edx
jae 0x101ee161
nop dword [eax]
mov ecx, dword [esi + 0x14]
cmp ebx, ecx
jae 0x101ee15e
lea eax, [edx - 1]
cmp ebx, eax
je 0x101ee020
lea eax, [ecx - 1]
mov dword [ebp - 0xc], 0
cmp ebx, eax
jne 0x101ee027
mov dword [ebp - 0xc], 1
mov eax, dword [esi + 0x10]
mov edx, eax
mov ecx, dword [esi + 8]
imul edx, ebx
inc ebx
add edx, edi
lea ecx, [ecx + edx*4]
mov edx, dword [esi + 0x20]
imul edx, ebx
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0xc]
add edx, edi
mov edi, dword [esi]
lea ecx, [ecx + edx*2]
add ecx, 2
mov dword [ebp - 4], ecx
movsx ecx, word [ecx]
mov edx, ecx
and edx, 0xfffffbb9
cmp dword [ebp - 0xc], 0
cmove edx, ecx
mov dword [ebp - 0xc], edx
movzx ecx, dl
test dl, dl
je 0x101ee14b
test edx, 0x5000
jne 0x101ee14b
mov eax, dword [ebp + 8]
shl eax, 8
or eax, ecx
mov ecx, edi
movzx eax, byte [eax + 0x10396d30]
add eax, 6
lea eax, [edi + eax*4]
mov dword [edi + 0x64], eax
call fcn.101f3cf0
test eax, eax
je 0x101ee13d
mov eax, dword [ebp - 0xc]
shr eax, 4
movzx esi, al
movzx eax, byte [esi + str._t_n_f_r_n_n_r_r_f_r_f_r_r_r_r_r_t_n_f_v_n_t_r_f_f_v_f_v_r_f_r_f_t_n_f_v_n_n_v_v_f_r_t_n_r_r_n_n_t_n_f_r_n_t_v_f_f_v_t_n_r_f_n_t_t_n_f_r_n_t_v_f_f_r_f_r_v_f_v_f_t_n_f_v_n_n_v_v_f_v_f_v_v_v_v_v_t_n_f_v_n_t_r_f_f_r_t_n_v_f_n_t_t_n_f_r_n_n_r_r_f_v_t_n_v_v_n_n_t_n_f_r_n_n_r_r_f_v_t_n_v_v_n_n_t_n_f_v_n_t_r_f_f_r_t_n_v_f_n_t_t_n_f_v_n_n_v_v_f_v_f_v_v_v_v_v_t_n_f_r_n_t_v_f_f_r_f_r_v_f_v_f_t_n_f_r_n_t_v_f_f_v_t_n_r_f_n_t_t_n_f_v_n_n_v_v_f_r_t_n_r_r_n_n_t_n_f_v_n_t_r_f_f_v_f_v_r_f_r_f_t_n_f_r_n_n_r_r_f_r_f_r_r_r_r_r]
add eax, 6
lea eax, [edi + eax*4]
mov dword [edi + 0x64], eax
call fcn.101f3cf0
movzx ecx, byte [esi + 0x10397230]
mov edi, eax
mov eax, dword [ebp - 0x18]
xor edi, ecx
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
neg ecx
mov edx, dword [ebp - 4]
test edi, edi
cmove ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, edx
mov eax, dword [esi + 0x20]
add eax, eax
sub ecx, eax
add edx, eax
movzx eax, word [edi*2 + 0x10397330]
or word [ecx], ax
or word [ecx - 2], 2
or word [ecx + 2], 4
mov ecx, dword [ebp - 4]
movzx eax, word [edi*2 + 0x10397334]
or word [ecx - 2], ax
mov eax, 0x1000
or word [ecx], ax
movzx eax, word [edi*2 + 0x10397338]
or word [ecx + 2], ax
movzx eax, word [edi*2 + 0x1039733c]
or word [edx - 2], 1
or word [edx], ax
or word [edx + 2], 8
jmp 0x101ee140
mov ecx, dword [ebp - 4]
mov eax, 0x4000
or word [ecx], ax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
lea edx, [ecx + 4]
cmp ebx, edx
jb 0x101ee000
jmp 0x101ee161
mov ecx, dword [ebp - 8]
inc edi
mov dword [ebp - 0x10], edi
cmp edi, eax
jb 0x101edff0
add ecx, 4
mov dword [ebp - 8], ecx
cmp ecx, dword [esi + 0x14]
jb 0x101edfe0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret