Function at 0x1400af3d0
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
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rdx + 0x17], 0
js 0x1400af417
mov word [rdx], 0
mov byte [rdx + 0x17], 0
cmp byte [r8 + 0x17], 0
js 0x1400af42e
mov word [r8], 0
mov byte [r8 + 0x17], 0
jmp 0x1400af43e
mov rax, qword [rdx]
mov word [rax], 0
mov qword [rdx + 8], 0
cmp byte [r8 + 0x17], 0
jns 0x1400af40a
mov rax, qword [r8]
mov word [rax], 0
mov qword [r8 + 8], 0
movzx r12d, byte [rcx + 0x17]
mov rdi, rcx
test r12b, r12b
jns 0x1400af452
mov rdi, qword [rcx]
mov r12, qword [rcx + 8]
movzx eax, byte [0x1401ae0b0]
mov r13d, 3
sub r13, rax
je 0x1400af58e
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x28], r8
xor r14d, r14d
movaps xmm6, xmmword [0x140173f60]
jmp 0x1400af4a5
test al, al
js 0x1400af540
add r14, 1
cmp r14, r13
jae 0x1400af58e
mov rax, r14
shl rax, 4
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rcx
movaps xmmword [rsp + 0x40], xmm6
lea rcx, [0x140182fb0]
mov rdx, qword [rax + rcx]
mov rbx, qword [rax + rcx + 8]
mov byte [rsp + 0x57], bl
lea r8, [rbx + rbx]
lea rcx, [rsp + 0x40]
call fcn.1401379e0
mov word [rsp + rbx*2 + 0x40], 0
movzx eax, byte [rsp + 0x57]
test al, al
mov r15, qword [rsp + 0x48]
mov rdx, rax
cmovs rdx, r15
cmp rdx, r12
ja 0x1400af490
mov rcx, qword [rsp + 0x40]
test rdx, rdx
je 0x1400af55b
test al, al
lea rbx, [rsp + 0x40]
cmovs rbx, rcx
xor ebp, ebp
nop dword [rax + rax]
movzx esi, word [rdi + rbp*2]
cmp si, word [rbx + rbp*2]
jne 0x1400af490
add rbp, 1
cmp rdx, rbp
jne 0x1400af520
jmp 0x1400af55b
mov rcx, qword [rsp + 0x40]
call fcn.1401349d4
movzx r13d, byte [0x1401ae0b0]
xor r13, 3
jmp 0x1400af498
test al, al
js 0x1400af564
mov r15, rax
jmp 0x1400af569
call fcn.1401349d4
mov rdi, qword [rsp + 0x38]
test r15, r15
je 0x1400af58e
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400af585
mov rcx, rdi
cmp r15, rax
jne 0x1400af5b8
jmp 0x1400af58e
mov rax, qword [rdi + 8]
cmp r15, rax
jne 0x1400af5b5
xor esi, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140135280
mov eax, esi
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rdi]
lea rbp, [rcx + rax*2]
mov rdx, rbp
test rax, rax
jle 0x1400af5ec
mov rdx, rcx
nop word [rax + rax]
cmp word [rdx], 0x3d
je 0x1400af5e5
add rdx, 2
add rax, 0xffffffffffffffff
jne 0x1400af5d0
mov rdx, rbp
jmp 0x1400af5ec
test rdx, rdx
cmove rdx, rbp
mov rax, rdx
sub rax, rcx
sar rax, 1
cmp rdx, rbp
mov rbx, 0xffffffffffffffff
cmovne rbx, rax
lea rbp, [rdi + 0x18]
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x40]
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140044f4c
mov rcx, qword [rsp + 0x30]
cmp byte [rcx + 0x17], 0
jns 0x1400af637
mov rcx, qword [rcx]
call fcn.1401349d4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov sil, 1
cmp rbx, 0xffffffffffffffff
je 0x1400af590
add rbx, 1
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x40]
mov rdx, rdi
mov r8, rbx
mov r9, 0xffffffffffffffff
call fcn.140044f4c
mov rcx, qword [rsp + 0x28]
cmp byte [rcx + 0x17], 0
jns 0x1400af68d
mov rcx, qword [rcx]
call fcn.1401349d4
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
jmp 0x1400af590