Function at 0x1400235c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 8], cx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor ebx, ebx
movzx eax, cx
xor r14b, r14b
xor r12b, r12b
mov rbp, r9
mov rdi, r8
mov r13, rdx
lea ecx, [rbx + 1]
test al, al
jns 0x1400236e6
mov rax, qword [0x140099410]
add rdi, rcx
movzx esi, byte [r8]
add rax, 3
mov byte [rsp + 0x68], sil
cmp rax, 0x1c
jb 0x140023641
call fcn.14002423c
mov al, byte [0x14009ade3]
neg al
mov eax, dword [0x14009adf8]
sbb rcx, rcx
and ecx, 5
add rcx, 0xa
add rcx, rax
call fcn.140024100
lea rcx, [rsp + 0x68]
call fcn.140023f00
mov ecx, esi
mov edx, 0xc0
mov r8d, 4
and ecx, edx
je 0x140023672
sub ecx, 0x40
je 0x14002366b
sub ecx, 0x40
jne 0x14002367d
mov ebx, r8d
jmp 0x14002367d
mov ebx, 1
jmp 0x14002367d
mov al, sil
and al, 7
cmp al, 5
cmove rbx, r8
mov r12b, sil
and r12b, dl
cmp r12b, dl
je 0x140023739
and sil, 7
cmp sil, r8b
jne 0x140023739
mov rax, qword [0x140099410]
add rax, 3
cmp rax, 0x1c
jb 0x1400236cf
call fcn.14002423c
mov al, byte [0x14009ade3]
neg al
mov eax, dword [0x14009adf8]
sbb rcx, rcx
and ecx, 5
add rcx, 0xa
add rcx, rax
call fcn.140024100
mov r14b, byte [rdi]
lea rcx, [rsp + 0x68]
inc rdi
mov byte [rsp + 0x68], r14b
call fcn.140023f00
jmp 0x140023739
mov rbx, rax
shr rbx, 8
and ebx, 0xf
cmp rbx, 3
jne 0x140023708
movzx eax, byte [rsp + 0x90]
lea rbx, [rax*2 + 2]
jmp 0x140023739
cmp rbx, 5
jne 0x140023720
movzx eax, byte [rsp + 0x90]
lea rbx, [rax*2 + 4]
jmp 0x140023739
cmp rbx, 7
jne 0x140023739
movzx eax, byte [rsp + 0x80]
xor rax, rcx
lea rbx, [rax*4 + 4]
xor esi, esi
test byte [r13], 0x1f
je 0x14002375a
movzx ecx, byte [rbp + 1]
mov rax, rdi
sub rax, r13
and ecx, 0xf
sub rax, 2
cmp rax, rcx
cmovle rsi, rbp
test rbx, rbx
je 0x14002380b
cmp rdi, rbp
jae 0x14002380b
test rsi, rsi
je 0x1400237fd
mov bpl, byte [r13]
and bpl, 0x1f
cmp byte [rsi], 0
jge 0x1400237b5
movzx ecx, byte [rsi + 1]
mov eax, ecx
and eax, 0xf
add rax, 2
add rax, r13
cmp rax, rdi
jne 0x1400237b5
cmp bpl, 2
jb 0x1400237e6
test cl, 0x40
je 0x1400237a8
add rsi, 0xa
jmp 0x1400237ac
add rsi, 0xe
add bpl, 0xff
test rsi, rsi
je 0x1400237e8
movzx eax, byte [rsi + 1]
and eax, 0xf
add rax, 2
add rax, r13
cmp rax, rdi
jne 0x1400237e8
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.140023c90
lea rax, [rsi + 0xa]
xor esi, esi
cmp bpl, 2
cmovae rsi, rax
jmp 0x1400237f6
xor esi, esi
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.140023c90
mov rbp, qword [rsp + 0x78]
jmp 0x14002380b
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.140023c90
add rdi, rbx
and r14b, 7
cmp r14b, 5
jne 0x14002382f
mov ebx, 4
cmp r12b, 0x40
lea eax, [rbx - 3]
cmove ebx, eax
xor r14b, r14b
jmp 0x14002375a
movzx ebx, word [rsp + 0x60]
and ebx, 0xf
je 0x1400238a4
cmp rdi, rbp
jae 0x1400238a4
cmp rbx, 3
jne 0x140023856
movzx eax, byte [rsp + 0x90]
lea rbx, [rax*2 + 2]
jmp 0x140023893
cmp rbx, 5
jne 0x14002386e
movzx eax, byte [rsp + 0x90]
lea rbx, [rax*2 + 4]
jmp 0x140023893
cmp rbx, 9
jne 0x140023893
movzx eax, byte [rsp + 0x90]
mov ecx, 8
cmp byte [rsp + 0x88], 0
lea ebx, [rax*2 + 2]
cmovne ebx, ecx
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.140023c90
add rdi, rbx
mov rax, rdi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret