Function at 0x1400a5640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov r12, rdx
movzx r8d, byte [rcx + 0x10]
cmp r8b, 0x80
je 0x1400a5682
movzx eax, byte [rcx + 0x1a]
movzx edx, byte [rcx + 0x1b]
movzx r9d, byte [rcx + 0x19]
mov byte [rbp - 0x40], r9b
mov r9, qword [rcx + 0x11]
mov qword [rbp - 0x48], r9
mov r14, qword [rcx]
mov r9, qword [rcx + 8]
mov qword [rbp - 0x10], r9
movzx r13d, byte [rcx + 0x1c]
cmp r13b, 0x80
je 0x1400a56b3
movzx r10d, byte [rcx + 0x26]
movzx r11d, byte [rcx + 0x27]
movzx r9d, byte [rcx + 0x25]
mov byte [rbp - 0x50], r9b
mov rcx, qword [rcx + 0x1d]
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x38], r14
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x30], rcx
mov byte [rbp - 0x28], r8b
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x27], rcx
movzx ecx, byte [rbp - 0x40]
mov byte [rbp - 0x1f], cl
mov byte [rbp - 0x1e], al
mov byte [rbp - 0x1d], dl
mov byte [rbp - 0x1c], r13b
movzx ecx, byte [rbp - 0x50]
mov byte [rbp - 0x13], cl
mov rcx, qword [rbp - 0x58]
mov qword [rbp - 0x1b], rcx
mov byte [rbp + 6], r10b
mov byte [rbp - 0x12], r10b
mov byte [rbp + 7], r11b
mov byte [rbp - 0x11], r11b
cmp r8b, 0x80
jne 0x1400a58b3
mov byte [rbp + 5], r13b
mov qword [rbp - 0x60], r12
test r14, r14
je 0x1400a58a6
cmp r14, qword [rbp - 0x10]
je 0x1400a58a6
lea rbx, [rbp - 0x28]
mov rax, qword [rbp - 0x60]
mov rdi, qword [rax + 0x20]
mov r13, qword [rax + 0x28]
lea rsi, [0x14063736c]
lea r15, [rbp - 6]
jmp 0x1400a574a
cmp r14, qword [rbp - 0x10]
je 0x1400a58a6
movzx eax, byte [r14]
test al, al
js 0x1400a5760
inc r14
jmp 0x1400a57d0
mov ecx, eax
and ecx, 0x1f
movzx r8d, byte [r14 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x1400a57ab
movzx edx, byte [r14 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x1400a57b9
movzx eax, byte [r14 + 3]
and ecx, 7
shl ecx, 0x12
shl edx, 6
and eax, 0x3f
or eax, edx
or eax, ecx
cmp eax, 0x110000
je 0x1400a58a6
add r14, 4
jmp 0x1400a57d0
add r14, 2
shl ecx, 6
or ecx, r8d
mov eax, ecx
jmp 0x1400a57d0
add r14, 3
shl ecx, 0xc
or edx, ecx
mov eax, edx
nop word cs:[rax + rax]
mov byte [rbp - 4], 0
mov word [rbp - 6], 0
mov byte [rbp + 3], 0x7d
mov ecx, eax
shr ecx, 0x14
movzx ecx, byte [rcx + rsi]
mov byte [rbp - 3], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [rcx + rsi]
mov byte [rbp - 2], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [rcx + rsi]
mov byte [rbp - 1], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [rcx + rsi]
mov byte [rbp], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [rcx + rsi]
mov byte [rbp + 1], cl
mov ecx, eax
and ecx, 0xf
movzx ecx, byte [rcx + rsi]
mov byte [rbp + 2], cl
or eax, 1
bsr r12d, eax
xor r12d, 0x1c
shr r12d, 2
mov byte [r12 + r15], 0x7b
mov word [r12 + r15 - 2], 0x755c
movzx eax, word [rbp + 2]
mov word [rbx + 8], ax
mov rax, qword [rbp - 6]
mov qword [rbx], rax
mov byte [rbp - 0x1d], 0xa
nop word cs:[rax + rax]
cmp r12, 0xc
je 0x1400a5740
lea eax, [r12 - 1]
mov byte [rbp - 0x1e], al
movzx edx, byte [rbp + r12 - 0x2a]
mov rcx, rdi
call qword [r13 + 0x20]
inc r12
test al, al
je 0x1400a5870
add r12, 0xfffffffffffffffd
cmp r12, 9
ja 0x1400a5740
jmp 0x1400a58f8
cmp byte [rbp + 5], 0x80
jne 0x1400a58fd
xor esi, esi
jmp 0x1400a5948
movzx edi, al
movzx esi, dl
mov rbx, qword [r12 + 0x20]
mov r15, qword [r12 + 0x28]
nop word cs:[rax + rax]
cmp rdi, rsi
jae 0x1400a5705
lea eax, [rdi + 1]
mov byte [rbp - 0x1e], al
cmp rdi, 0xa
jae 0x1400a595e
movzx edx, byte [rbp + rdi - 0x28]
mov rcx, rbx
call qword [r15 + 0x20]
inc rdi
test al, al
je 0x1400a58d0
mov sil, 1
jmp 0x1400a5948
movzx edi, byte [rbp + 6]
movzx r14d, byte [rbp + 7]
mov rax, qword [rbp - 0x60]
mov rbx, qword [rax + 0x20]
mov r15, qword [rax + 0x28]
nop word cs:[rax + rax]
cmp rdi, r14
setb sil
jae 0x1400a5948
lea eax, [rdi + 1]
mov byte [rbp - 0x12], al
cmp rdi, 0xa
jae 0x1400a595e
movzx edx, byte [rbp + rdi - 0x1c]
mov rcx, rbx
call qword [r15 + 0x20]
inc rdi
test al, al
je 0x1400a5920
mov eax, esi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x1406392d8]
mov edx, 0xa
mov rcx, rdi
call sym.core::panicking::panic_bounds_check::hc59ada7dadd9fb7c
int3