Function at 0x1800752a0
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 0x1800752d9
movzx eax, byte [rcx + 0x1a]
movzx edx, byte [rcx + 0x1b]
movzx r9d, byte [rcx + 0x19]
mov byte [rsp + 0x70], r9b
mov r9, qword [rcx + 0x11]
mov qword [rsp + 0x68], r9
mov r14, qword [rcx]
mov r15, qword [rcx + 8]
movzx ebp, byte [rcx + 0x1c]
cmp bpl, 0x80
je 0x180075307
movzx r10d, byte [rcx + 0x26]
movzx r11d, byte [rcx + 0x27]
movzx r9d, byte [rcx + 0x25]
mov byte [rsp + 0x38], r9b
mov rcx, qword [rcx + 0x1d]
mov qword [rsp + 0x30], rcx
movzx ecx, byte [rsp + 0x70]
mov byte [rsp + 0x59], cl
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x51], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x5d], rcx
movzx ecx, byte [rsp + 0x38]
mov byte [rsp + 0x65], cl
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x50], r8b
mov byte [rsp + 0x5a], al
mov byte [rsp + 0x5b], dl
mov byte [rsp + 0x5c], bpl
mov byte [rsp + 0x2f], r10b
mov byte [rsp + 0x66], r10b
mov byte [rsp + 0x2e], r11b
mov byte [rsp + 0x67], r11b
cmp r8b, 0x80
jne 0x180075503
test r14, r14
je 0x1800754f9
cmp r14, r15
je 0x1800754f9
mov rdi, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
lea r12, [0x18008ea2b]
movzx r8d, byte [r14]
movzx eax, r8b
test al, al
js 0x1800753a0
inc r14
jmp 0x180075410
mov ecx, eax
and ecx, 0x1f
movzx r9d, byte [r14 + 1]
and r9d, 0x3f
cmp al, 0xdf
jbe 0x1800753ed
movzx edx, byte [r14 + 2]
shl r9d, 6
and edx, 0x3f
or edx, r9d
cmp r8b, 0xf0
jb 0x1800753fb
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 0x1800754f9
add r14, 4
jmp 0x180075410
add r14, 2
shl ecx, 6
or ecx, r9d
mov eax, ecx
jmp 0x180075410
add r14, 3
shl ecx, 0xc
or edx, ecx
mov eax, edx
nop word cs:[rax + rax]
mov byte [rsp + 0x32], 0
mov word [rsp + 0x30], 0
mov byte [rsp + 0x39], 0x7d
mov ecx, eax
shr ecx, 0x14
movzx ecx, byte [rcx + r12]
mov byte [rsp + 0x33], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
movzx ecx, byte [rcx + r12]
mov byte [rsp + 0x34], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
movzx ecx, byte [rcx + r12]
mov byte [rsp + 0x35], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
movzx ecx, byte [rcx + r12]
mov byte [rsp + 0x36], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
movzx ecx, byte [rcx + r12]
mov byte [rsp + 0x37], cl
mov ecx, eax
and ecx, 0xf
movzx ecx, byte [rcx + r12]
mov byte [rsp + 0x38], cl
or eax, 1
bsr eax, eax
xor eax, 0x1c
shr eax, 2
lea rcx, [rax - 2]
mov byte [rsp + rax + 0x30], 0x7b
mov word [rsp + rax + 0x2e], 0x755c
movzx eax, word [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov word [rdx + 8], ax
mov rax, qword [rsp + 0x30]
mov qword [rdx], rax
mov byte [rsp + 0x5b], 0xa
nop dword [rax + rax]
cmp rcx, 9
ja 0x1800754f0
lea r13, [rcx + 1]
lea eax, [rcx + 1]
mov byte [rsp + 0x5a], al
movzx edx, byte [rsp + rcx + 0x50]
mov rcx, rdi
call qword [rbx + 0x20]
mov rcx, r13
test al, al
je 0x1800754c0
jmp 0x180075549
cmp r14, r15
jne 0x180075388
cmp bpl, 0x80
jne 0x18007555f
xor esi, esi
jmp 0x18007554c
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 0x180075367
lea eax, [rdi + 1]
mov byte [rsp + 0x5a], al
cmp rdi, 0xa
jae 0x1800755ab
movzx edx, byte [rsp + rdi + 0x50]
mov rcx, rbx
call qword [r13 + 0x20]
inc rdi
test al, al
je 0x180075520
mov sil, 1
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx edi, byte [rsp + 0x2f]
movzx r14d, byte [rsp + 0x2e]
mov rbx, qword [rsi + 0x20]
mov r15, qword [rsi + 0x28]
nop word cs:[rax + rax]
cmp rdi, r14
setb sil
jae 0x18007554c
lea eax, [rdi + 1]
mov byte [rsp + 0x66], al
cmp rdi, 0xa
jae 0x1800755ab
movzx edx, byte [rsp + rdi + 0x5c]
mov rcx, rbx
call qword [r15 + 0x20]
inc rdi
test al, al
je 0x180075580
jmp 0x18007554c
lea r8, [0x1800909e8]
mov edx, 0xa
mov rcx, rdi
call sym.rt_dll.dll_core::panicking::panic_bounds_check::haff3f812aa129433
int3