Function at 0x1400a55c0
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
mov rsi, rdx
movzx r8d, byte [rcx + 0x10]
cmp r8b, 0x80
je 0x1400a55f9
movzx eax, byte [rcx + 0x1a]
movzx edx, byte [rcx + 0x1b]
movzx r9d, byte [rcx + 0x19]
mov byte [rsp + 0x68], r9b
mov r9, qword [rcx + 0x11]
mov qword [rsp + 0x60], r9
mov r14, qword [rcx]
mov r15, qword [rcx + 8]
movzx ebp, byte [rcx + 0x1c]
cmp bpl, 0x80
je 0x1400a5627
movzx r10d, byte [rcx + 0x26]
movzx r11d, byte [rcx + 0x27]
movzx r9d, byte [rcx + 0x25]
mov byte [rsp + 0x30], r9b
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], r14
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x48], r8b
mov byte [rsp + 0x52], al
mov byte [rsp + 0x53], dl
mov byte [rsp + 0x54], bpl
mov byte [rsp + 0x27], r10b
mov byte [rsp + 0x5e], r10b
mov byte [rsp + 0x26], r11b
mov byte [rsp + 0x5f], r11b
cmp r8b, 0x80
jne 0x1400a5894
test r14, r14
je 0x1400a58de
cmp r14, r15
je 0x1400a58de
mov rdi, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
mov qword [rsp + 0x70], r15
movzx eax, byte [r14]
test al, al
js 0x1400a56c0
inc r14
jmp 0x1400a5730
mov ecx, eax
and ecx, 0x1f
movzx r8d, byte [r14 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x1400a570b
movzx edx, byte [r14 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x1400a5719
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 0x1400a58de
add r14, 4
jmp 0x1400a5730
add r14, 2
shl ecx, 6
or ecx, r8d
mov eax, ecx
jmp 0x1400a5730
add r14, 3
shl ecx, 0xc
or edx, ecx
mov eax, edx
nop word cs:[rax + rax]
mov cl, 2
mov dx, 0x5c
lea r8d, [rax - 9]
cmp r8d, 0x1e
ja case.default.0x1400a574e
lea r9, [0x140770f58]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov ax, 0x74
jmp case.0x1400a574e.34
cmp eax, 0x5c
je case.0x1400a574e.34
lea ecx, [rax - 0x20]
cmp ecx, 0x5f
jae 0x1400a57f0
mov cl, 1
xor r8d, r8d
mov edx, eax
xor eax, eax
jmp 0x1400a5783
mov ax, 0x6e
jmp case.0x1400a574e.34
mov ax, 0x72
nop dword [rax]
xor r8d, r8d
xor r9d, r9d
shl eax, 8
movzx edx, dl
or edx, eax
mov word [rsp + 0x48], dx
mov qword [rsp + 0x4a], r8
mov byte [rsp + 0x53], cl
movzx r12d, r9b
movzx r13d, cl
mov r15d, r12d
inc r15b
nop word [rax + rax]
cmp r12, r13
jae 0x1400a57e0
mov byte [rsp + 0x52], r15b
movzx edx, byte [rsp + r12 + 0x48]
inc r12
mov rcx, rdi
call qword [rbx + 0x20]
inc r15b
test al, al
je 0x1400a57b0
jmp 0x1400a58d9
cmp r14, qword [rsp + 0x70]
jne 0x1400a56a6
jmp 0x1400a58de
mov byte [rsp + 0x2a], 0
mov word [rsp + 0x28], 0
mov byte [rsp + 0x31], 0x7d
mov ecx, eax
shr ecx, 0x14
lea rdx, [0x140772f2b]
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2b], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2c], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2d], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2e], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2f], cl
mov ecx, eax
and ecx, 0xf
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x30], cl
or eax, 1
bsr eax, eax
xor eax, 0x1c
shr eax, 2
lea r9, [rax - 2]
mov byte [rsp + rax + 0x28], 0x7b
mov word [rsp + rax + 0x26], 0x755c
movzx edx, word [rsp + 0x28]
mov eax, edx
shr eax, 8
mov r8, qword [rsp + 0x2a]
mov cl, 0xa
jmp 0x1400a5786
movzx edi, al
movzx r12d, dl
mov rbx, qword [rsi + 0x20]
mov r13, qword [rsi + 0x28]
nop word cs:[rax + rax]
cmp rdi, r12
jae 0x1400a5687
lea eax, [rdi + 1]
mov byte [rsp + 0x52], al
cmp rdi, 0xa
jae 0x1400a593c
movzx edx, byte [rsp + rdi + 0x48]
mov rcx, rbx
call qword [r13 + 0x20]
inc rdi
test al, al
je 0x1400a58b0
mov sil, 1
jmp 0x1400a5929
cmp bpl, 0x80
jne 0x1400a58e8
xor esi, esi
jmp 0x1400a5929
movzx edi, byte [rsp + 0x27]
movzx r14d, byte [rsp + 0x26]
mov rbx, qword [rsi + 0x20]
mov r15, qword [rsi + 0x28]
nop dword [rax + rax]
cmp rdi, r14
setb sil
jae 0x1400a5929
lea eax, [rdi + 1]
mov byte [rsp + 0x5e], al
cmp rdi, 0xa
jae 0x1400a593c
movzx edx, byte [rsp + rdi + 0x54]
mov rcx, rbx
call qword [r15 + 0x20]
inc rdi
test al, al
je 0x1400a5900
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x140774ef0]
mov edx, 0xa
mov rcx, rdi
call dbg.panic_bounds_check
int3