Function at 0x1400be210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movzx r9d, byte [rcx + 0x10]
cmp r9b, 0x80
je 0x1400be247
movzx eax, byte [rcx + 0x1a]
movzx r8d, byte [rcx + 0x1b]
movzx r10d, byte [rcx + 0x19]
mov byte [rsp + 0x68], r10b
mov r10, qword [rcx + 0x11]
mov qword [rsp + 0x60], r10
mov r15, qword [rcx]
mov r13, qword [rcx + 8]
movzx esi, byte [rcx + 0x1c]
cmp sil, 0x80
je 0x1400be274
movzx r11d, byte [rcx + 0x26]
movzx ebx, byte [rcx + 0x27]
movzx r10d, byte [rcx + 0x25]
mov byte [rsp + 0x30], r10b
mov rcx, qword [rcx + 0x1d]
mov qword [rsp + 0x28], rcx
movzx ecx, byte [rsp + 0x68]
mov byte [rsp + 0x51], cl
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x49], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x55], rcx
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + 0x5d], cl
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x48], r9b
mov byte [rsp + 0x52], al
mov byte [rsp + 0x53], r8b
mov byte [rsp + 0x27], sil
mov byte [rsp + 0x54], sil
mov byte [rsp + 0x26], r11b
mov byte [rsp + 0x5e], r11b
mov byte [rsp + 0x25], bl
mov byte [rsp + 0x5f], bl
mov rsi, qword [rdx + 0x20]
mov rbx, qword [rdx + 0x28]
cmp r9b, 0x80
jne 0x1400be492
test r15, r15
je 0x1400be480
lea rdi, [rsp + 0x48]
lea r14, [0x1400e872c]
jmp 0x1400be30e
add r12, 0xfffffffffffffffe
cmp r12, 9
jbe 0x1400be591
cmp r15, r13
je 0x1400be480
movzx eax, byte [r15]
test al, al
js 0x1400be330
inc r15
jmp 0x1400be3a0
mov ecx, eax
and ecx, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x1400be37b
movzx edx, byte [r15 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x1400be389
movzx eax, byte [r15 + 3]
and ecx, 7
shl ecx, 0x12
shl edx, 6
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x1400be480
add r15, 4
jmp 0x1400be3a0
add r15, 2
shl ecx, 6
or ecx, r8d
mov eax, ecx
jmp 0x1400be3a0
add r15, 3
shl ecx, 0xc
or edx, ecx
mov eax, edx
nop word cs:[rax + rax]
mov byte [rsp + 0x2a], 0
mov word [rsp + 0x28], 0
mov byte [rsp + 0x31], 0x7d
mov ecx, eax
mov rdx, rcx
shr rdx, 0x14
movzx edx, byte [rdx + r14]
mov byte [rsp + 0x2b], dl
mov edx, eax
shr edx, 0x10
and edx, 0xf
movzx edx, byte [rdx + r14]
mov byte [rsp + 0x2c], dl
mov edx, eax
shr edx, 0xc
and edx, 0xf
movzx edx, byte [rdx + r14]
mov byte [rsp + 0x2d], dl
mov edx, eax
shr edx, 8
and edx, 0xf
movzx edx, byte [rdx + r14]
mov byte [rsp + 0x2e], dl
mov edx, eax
shr edx, 4
and edx, 0xf
movzx edx, byte [rdx + r14]
mov byte [rsp + 0x2f], dl
and ecx, 0xf
movzx ecx, byte [rcx + r14]
mov byte [rsp + 0x30], cl
or eax, 1
bsr edx, eax
xor edx, 0x1c
shr edx, 2
lea rcx, [rdx - 2]
cmp rcx, 0xb
jae 0x1400be5d2
mov byte [rsp + rcx + 0x2a], 0x7b
mov word [rsp + rcx + 0x28], 0x755c
movzx eax, word [rsp + 0x30]
mov word [rdi + 8], ax
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rsp + 0x53], 0xa
nop
mov r12, rdx
cmp rdx, 0xc
je 0x1400be300
lea eax, [r12 - 1]
mov byte [rsp + 0x52], al
movzx edx, byte [rsp + r12 + 0x46]
mov rcx, rsi
call qword [rbx + 0x20]
lea rdx, [r12 + 1]
test al, al
je 0x1400be450
jmp 0x1400be300
cmp byte [rsp + 0x27], 0x80
jne 0x1400be518
xor eax, eax
jmp 0x1400be593
movzx ecx, al
movzx r14d, r8b
cmp r8b, al
mov edx, ecx
cmova edx, r14d
movzx ebp, dl
cmp al, 0xb
mov eax, 0xa
cmovae eax, ecx
movzx edi, al
lea r12, [rcx - 1]
mov qword [rsp + 0x70], rdi
neg rdi
neg rbp
nop word cs:[rax + rax]
lea rax, [r12 + rbp]
cmp rax, 0xffffffffffffffff
je 0x1400be2e0
lea rax, [rdi + r12]
lea ecx, [r12 + 2]
mov byte [rsp + 0x52], cl
cmp rax, 0xffffffffffffffff
je 0x1400be5a4
movzx edx, byte [rsp + r12 + 0x49]
mov rcx, rsi
call qword [rbx + 0x20]
inc r12
test al, al
je 0x1400be4d0
mov al, 1
cmp r12, r14
jae 0x1400be2e0
jmp 0x1400be593
movzx edx, byte [rsp + 0x26]
movzx eax, dl
movzx ecx, byte [rsp + 0x25]
movzx r14d, cl
cmp cl, dl
mov ecx, eax
cmova ecx, r14d
movzx r15d, cl
cmp dl, 0xb
mov ecx, 0xa
cmovae ecx, eax
movzx edi, cl
lea r12, [rax - 1]
mov r13, rdi
neg r13
neg r15
lea rax, [r15 + r12]
cmp rax, 0xffffffffffffffff
je 0x1400be48b
lea rax, [r12 + r13]
lea ecx, [r12 + 2]
mov byte [rsp + 0x5e], cl
cmp rax, 0xffffffffffffffff
je 0x1400be5bc
movzx edx, byte [rsp + r12 + 0x55]
mov rcx, rsi
call qword [rbx + 0x20]
inc r12
test al, al
je 0x1400be550
mov al, 1
cmp r12, r14
jae 0x1400be48b
jmp 0x1400be593
mov al, 1
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x1400e8790]
mov edx, 0xa
mov rcx, qword [rsp + 0x70]
call dbg.panic_bounds_check
ud2
lea r8, [0x1400e8790]
mov edx, 0xa
mov rcx, rdi
call dbg.panic_bounds_check
ud2
lea r8, [0x1400e8758]
mov edx, 0xa
call dbg.slice_start_index_len_fail
ud2