Function at 0x14005d3a0
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 r12, rdx
mov r13, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rdx + 0x17], 0
js 0x14005d652
mov word [r12], 0
mov byte [r12 + 0x17], 0
cmp byte [r8 + 0x17], 0
js 0x14005d669
mov word [r8], 0
mov byte [r8 + 0x17], 0
movzx eax, byte [r13 + 0x17]
mov esi, eax
and esi, 0x7f
test al, al
mov r15, qword [r13]
cmovns r15, r13
cmovs rsi, qword [r13 + 8]
movzx eax, byte [0x1401296e8]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x14005d638
mov qword [rsp + 0x38], r8
xor ebp, ebp
lea rcx, [0x140100320]
movabs rdx, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1400fdb10]
lea rdi, [rsp + 0x40]
mov rax, rbp
shl rax, 4
mov qword [rsp + 0x50], rdx
movaps xmmword [rsp + 0x40], xmm6
mov rdx, qword [rax + rcx]
mov rbx, qword [rax + rcx + 8]
mov byte [rsp + 0x57], bl
lea r8, [rbx + rbx]
mov rcx, rdi
call fcn.140083a30
mov word [rsp + rbx*2 + 0x40], 0
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x14005d48c
mov rcx, qword [rsp + 0x48]
jmp 0x14005d491
mov ecx, eax
and ecx, 0x7f
cmp rcx, rsi
ja 0x14005d50a
mov r14b, 1
test rcx, rcx
je 0x14005d63c
mov rdx, rdi
test al, al
jns 0x14005d4ae
mov rdx, qword [rsp + 0x40]
xor ebx, ebx
movzx edi, word [r15 + rbx*2]
cmp di, word [rdx + rbx*2]
jne 0x14005d50a
inc rbx
cmp rcx, rbx
jne 0x14005d4b0
mov rdi, rcx
test al, al
js 0x14005d643
test r14b, r14b
jne 0x14005d514
mov qword [rsp + 0x30], rdi
inc rbp
movzx eax, byte [0x1401296e8]
xor rax, 3
cmp rbp, rax
lea rcx, [0x140100320]
movabs rdx, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
jb 0x14005d44b
jmp 0x14005d638
xor r14d, r14d
mov rdi, qword [rsp + 0x30]
jmp 0x14005d4c6
test rdi, rdi
je 0x14005d638
movzx edx, byte [r13 + 0x17]
test dl, dl
jns 0x14005d52c
mov rax, qword [r13 + 8]
jmp 0x14005d531
mov eax, edx
and eax, 0x7f
cmp rdi, rax
je 0x14005d638
mov rcx, r13
test dl, dl
jns 0x14005d545
mov rcx, qword [r13]
lea rbp, [rcx + rax*2]
mov rdx, rbp
test rax, rax
jle 0x14005d579
btr rax, 0x3f
mov rdx, rcx
nop dword [rax]
cmp word [rdx], 0x3d
je 0x14005d574
add rdx, 2
dec rax
jne 0x14005d560
mov rdx, rbp
jmp 0x14005d579
test rdx, rdx
je 0x14005d56f
mov rax, rdx
sub rax, rcx
sar rax, 1
cmp rdx, rbp
mov rsi, 0xffffffffffffffff
cmovne rsi, rax
lea rbp, [r13 + 0x18]
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x40]
mov rdx, r13
xor r8d, r8d
mov r9, rsi
call fcn.1400275a0
cmp byte [r12 + 0x17], 0
js 0x14005d67e
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r12], xmm0
mov bl, 1
cmp rsi, 0xffffffffffffffff
je 0x14005d613
inc rsi
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x40]
mov rdx, r13
mov r8, rsi
mov r9, 0xffffffffffffffff
call fcn.1400275a0
mov rsi, qword [rsp + 0x38]
cmp byte [rsi + 0x17], 0
js 0x14005d68c
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140081fb0
mov eax, ebx
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
xor ebx, ebx
jmp 0x14005d613
xor edi, edi
jmp 0x14005d4c6
mov rcx, qword [rsp + 0x40]
call fcn.140080ca8
jmp 0x14005d4ce
mov rax, qword [r12]
mov word [rax], 0
mov qword [r12 + 8], 0
jmp 0x14005d3e1
mov rax, qword [r8]
mov word [rax], 0
mov qword [r8 + 8], 0
jmp 0x14005d3f7
mov rcx, qword [r12]
call fcn.140080ca8
jmp 0x14005d5b8
mov rcx, qword [rsi]
call fcn.140080ca8
jmp 0x14005d602