Function at 0x14015df40
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 [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rdx + 0x17], 0
js 0x14015e1f2
mov word [r12], 0
mov byte [r12 + 0x17], 0
cmp byte [r8 + 0x17], 0
js 0x14015e209
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 [0x1403b48c8]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x14015e1d8
mov qword [rsp + 0x38], r8
xor ebp, ebp
lea rcx, [0x1403384e0]
movabs rdx, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x14032f5c0]
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.1401bcb50
mov word [rsp + rbx*2 + 0x40], 0
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x14015e02c
mov rcx, qword [rsp + 0x48]
jmp 0x14015e031
mov ecx, eax
and ecx, 0x7f
cmp rcx, rsi
ja 0x14015e0aa
mov r14b, 1
test rcx, rcx
je 0x14015e1dc
mov rdx, rdi
test al, al
jns 0x14015e04e
mov rdx, qword [rsp + 0x40]
xor ebx, ebx
movzx edi, word [r15 + rbx*2]
cmp di, word [rdx + rbx*2]
jne 0x14015e0aa
inc rbx
cmp rcx, rbx
jne 0x14015e050
mov rdi, rcx
test al, al
js 0x14015e1e3
test r14b, r14b
jne 0x14015e0b4
mov qword [rsp + 0x30], rdi
inc rbp
movzx eax, byte [0x1403b48c8]
xor rax, 3
cmp rbp, rax
lea rcx, [0x1403384e0]
movabs rdx, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
jb 0x14015dfeb
jmp 0x14015e1d8
xor r14d, r14d
mov rdi, qword [rsp + 0x30]
jmp 0x14015e066
test rdi, rdi
je 0x14015e1d8
movzx edx, byte [r13 + 0x17]
test dl, dl
jns 0x14015e0cc
mov rax, qword [r13 + 8]
jmp 0x14015e0d1
mov eax, edx
and eax, 0x7f
cmp rdi, rax
je 0x14015e1d8
mov rcx, r13
test dl, dl
jns 0x14015e0e5
mov rcx, qword [r13]
lea rbp, [rcx + rax*2]
mov rdx, rbp
test rax, rax
jle 0x14015e119
btr rax, 0x3f
mov rdx, rcx
nop dword [rax]
cmp word [rdx], 0x3d
je 0x14015e114
add rdx, 2
dec rax
jne 0x14015e100
mov rdx, rbp
jmp 0x14015e119
test rdx, rdx
je 0x14015e10f
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.14005d000
cmp byte [r12 + 0x17], 0
js 0x14015e21e
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 0x14015e1b3
inc rsi
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x40]
mov rdx, r13
mov r8, rsi
mov r9, 0xffffffffffffffff
call fcn.14005d000
mov rsi, qword [rsp + 0x38]
cmp byte [rsi + 0x17], 0
js 0x14015e22c
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.1401bb0d0
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 0x14015e1b3
xor edi, edi
jmp 0x14015e066
mov rcx, qword [rsp + 0x40]
call fcn.1401b9ce8
jmp 0x14015e06e
mov rax, qword [r12]
mov word [rax], 0
mov qword [r12 + 8], 0
jmp 0x14015df81
mov rax, qword [r8]
mov word [rax], 0
mov qword [r8 + 8], 0
jmp 0x14015df97
mov rcx, qword [r12]
call fcn.1401b9ce8
jmp 0x14015e158
mov rcx, qword [rsi]
call fcn.1401b9ce8
jmp 0x14015e1a2