Function at 0x140098780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x20
mov r11, qword [rcx]
mov r15d, r8d
mov r10, qword [rcx + 8]
mov rbx, rcx
mov esi, edx
mov rdi, qword [r11 + 0x20]
cmp r10, qword [rcx + 0x10]
jae 0x140098a18
movzx r9d, byte [rdi + rsi*8 + 5]
cmp r9b, 0x5b
jne 0x140098811
movzx eax, byte [rdi + rsi*8 + 2]
and al, 0x1f
cmp al, 0x13
jne 0x14009887d
mov eax, dword [rbx + 0x18]
movzx ecx, word [rdi + rsi*8]
and eax, 0xf000
cmp eax, 0x1000
ja 0x1400987ed
mov edx, ecx
inc r8d
mov rcx, rbx
call fcn.140098df0
jmp 0x1400987f5
mov dword [r10], ecx
add qword [rbx + 8], 4
cmp dword [rbx + 0x1c], 0x15
jne 0x14009880a
mov rax, qword [rbx + 8]
mov dword [rax], 0x20000
add qword [rbx + 8], 4
xor eax, eax
jmp 0x14009893f
cmp r9b, 0x1c
jne 0x14009887d
test dword [rcx + 0x18], 0xf000
movsd xmm1, qword [rdi + rsi*8 + 8]
jne 0x140098864
cvttsd2si rcx, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
ucomisd xmm1, xmm0
jp 0x140098a18
jne 0x140098a18
mov dword [r10], 0x30000
mov rax, qword [rbx + 8]
add rax, 4
mov qword [rbx + 8], rax
mov dword [rax], ecx
add qword [rbx + 8], 4
xor eax, eax
jmp 0x14009893f
cvttsd2si ecx, xmm1
movsx eax, cx
cmp ecx, eax
jne 0x140098a18
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
jmp 0x140098833
mov qword [rsp + 0x40], rbp
movzx ebp, byte [r11 + 0xbd]
movzx r8d, word [r11 + rbp*2 + 0x192]
cmp r8d, esi
jbe 0x1400988e5
nop dword [rax + rax]
movzx eax, word [rdi + r8*8]
cmp eax, esi
jne 0x1400988da
cmp bpl, 0x5c
je 0x140098953
movzx eax, word [rdi + r8*8 + 2]
xor eax, dword [rbx + 0x18]
test eax, 0xfff
jne 0x1400988da
movzx ecx, byte [rdi + r8*8 + 4]
movzx eax, byte [r11 + 0xbc]
and cl, 0x80
and al, 0x80
cmp cl, al
jae 0x140098953
movzx r8d, word [rdi + r8*8 + 6]
cmp r8d, esi
ja 0x1400988a0
sub r9b, 0x29
mov qword [rsp + 0x48], r14
cmp r9b, 1
ja 0x1400989fd
mov r8d, dword [rbx + 0x18]
mov eax, r8d
and eax, 0xf000
cmp eax, 0x2000
jne 0x140098917
test r15d, r15d
jle 0x140098917
add r8d, 0x1000
movzx edx, si
mov rcx, r11
call fcn.140098740
test rax, rax
je 0x14009895f
movzx eax, word [rax + 2]
mov dword [r10], eax
add qword [rbx + 8], 4
xor eax, eax
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
mov dword [r10], r8d
add qword [rbx + 8], 4
xor eax, eax
jmp 0x14009893a
cmp dword [rbx + 0x1c], 0x15
jne 0x140098993
mov r8d, 0x226e
mov rcx, r11
call fcn.140098740
test rax, rax
je 0x140098993
movzx ecx, word [rax + 2]
mov dword [r10], ecx
mov rax, qword [rbx + 8]
add rax, 4
mov qword [rbx + 8], rax
mov dword [rax], 0x20000
jmp 0x14009892e
inc r15d
cmp r15d, 0x64
jge 0x1400989fd
mov rbp, r10
cmp r10, qword [rbx + 0x10]
jae 0x1400989fd
movzx edx, word [rdi + rsi*8]
mov r8d, r15d
mov rcx, rbx
call fcn.140098780
movzx edx, word [rdi + rsi*8 + 2]
mov r8d, r15d
mov rcx, rbx
mov r14d, eax
call fcn.140098780
add r14d, eax
cmp r14d, 1
jg 0x1400989f9
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
jae 0x1400989f9
movzx ecx, byte [rdi + rsi*8 + 5]
mov eax, r14d
shl ecx, 8
or ecx, dword [rbx + 0x1c]
shl ecx, 0x10
add ecx, esi
mov dword [rdx], ecx
add qword [rbx + 8], 4
jmp 0x140098935
mov qword [rbx + 8], rbp
mov rax, qword [rbx + 8]
lea ecx, [rsi + 0x10000]
mov dword [rax], ecx
mov eax, 1
add qword [rbx + 8], 4
jmp 0x140098935
mov eax, 0xa
jmp 0x14009893f