Function at 0x10018959
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x100188d1
mov ecx, 0x47
xor edx, edx
nop dword [eax]
mov al, byte [edx + str.b_ib]
xor al, cl
inc ecx
mov byte [esp + edx + 0xc], al
and ecx, 0x800000ff
jns 0x100188ad
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x19
jl 0x10018890
push esi
lea eax, [esp + 0x10]
mov byte [esp + 0x29], 0
push eax
push esi
call fcn.1001ba70
add esp, 0xc
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
cmp ecx, 8
ja case.0x100188dd.1
jmp dword [ecx*4 + 0x10018a7c]
add eax, dword [ebp + 0x10]
mov dword [esi + 0x64], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
add eax, dword [ebp + 0x10]
cmp byte [eax], 0xe8
mov ecx, dword [eax + 1]
je 0x10018947
mov ecx, 0xc8
xor edx, edx
mov al, byte [edx + 0x1004faa4]
xor al, cl
inc ecx
mov byte [esp + edx + 0xc], al
and ecx, 0x800000ff
jns 0x10018923
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x20
jl 0x10018906
push esi
lea eax, [esp + 0x10]
mov byte [esp + 0x30], 0
push eax
push esi
call fcn.1001ba70
add esp, 0xc
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
add eax, 5
add eax, ecx
mov dword [esi + 0x64], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
add eax, dword [ebp + 0x10]
cmp byte [eax], 0xe9
mov ecx, dword [eax + 1]
je 0x10018947
mov ecx, 0x1f
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x1004fac8]
xor al, cl
inc ecx
mov byte [esp + edx + 0xc], al
and ecx, 0x800000ff
jns 0x1001898d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x1f
jl 0x10018970
push esi
lea eax, [esp + 0x10]
mov byte [esp + 0x2f], 0
push eax
push esi
call fcn.1001ba70
add esp, 0xc
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp byte [eax], 0x55
jne 0x100189c2
cmp byte [eax + 1], 0x8b
jne 0x100189c2
cmp byte [eax + 2], 0xec
je 0x100189c5
dec eax
jmp case.0x100188dd.4
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10018a6d
mov edx, dword [ebp + 0x14]
lea ecx, [edx - 1]
cmp ecx, 3
ja 0x10018a6d
sub edx, 1
je 0x10018a69
sub edx, 1
je 0x10018a02
sub edx, 2
jne case.0x100188dd.1
mov eax, dword [eax + edi]
mov dword [esi + 0x64], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
movzx eax, word [eax + edi]
mov dword [esi + 0x64], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp byte [eax], 0x55
jne 0x10018a24
cmp byte [eax + 1], 0x8b
jne 0x10018a24
cmp byte [eax + 2], 0xec
je 0x100189c5
inc eax
jmp case.0x100188dd.5
inc eax
cmp byte [eax], 0x55
jne case.0x100188dd.6
cmp byte [eax + 1], 0x8b
jne case.0x100188dd.6
cmp byte [eax + 2], 0xec
jne case.0x100188dd.6
jmp 0x100189c5
dec eax
cmp byte [eax], 0x55
jne case.0x100188dd.7
cmp byte [eax + 1], 0x8b
jne case.0x100188dd.7
cmp byte [eax + 2], 0xec
jne case.0x100188dd.7
jmp 0x100189c5
mov edi, dword [ebp + 0x10]
test edi, edi
je case.0x100188dd.1
mov edx, dword [ebp + 0x14]
lea ecx, [edx - 1]
cmp ecx, 3
ja case.0x100188dd.1
jmp 0x100189df
movzx eax, byte [eax + edi]
mov dword [esi + 0x64], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10