Function at 0x14001b694
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
movaps xmmword [rax - 0x48], xmm6
mov r15, rcx
movsd xmm6, qword [0x14020d470]
xorps xmm5, xmm5
xorps xmm4, xmm4
xorps xmm3, xmm3
movaps xmm2, xmm3
movaps xmm1, xmm3
mulsd xmm2, qword [0x14020d3c0]
movaps xmm0, xmm3
mulsd xmm1, qword [0x14020d1f0]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
subsd xmm2, xmm0
addsd xmm1, qword [0x14020d268]
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x14020d350]
jbe 0x14001b71b
movaps xmm0, xmm3
mulsd xmm0, qword [0x14020d0e0]
subsd xmm4, xmm0
addsd xmm3, qword [0x14020d170]
comisd xmm6, xmm3
ja 0x14001b6c9
comisd xmm5, xmm4
jbe 0x14001b73e
call fcn.14004ac8c
call fcn.14004ac9a
jmp 0x14001bc05
xor eax, eax
lea rcx, [rsp + 0x20]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jb 0x14001b745
xor r10d, r10d
mov r9d, 0xff
xor cl, cl
xor edi, edi
lea r11d, [rdi + 1]
cmp r9d, r11d
jbe 0x14001b776
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x14001b769
movzx eax, cl
mov dl, byte [rsp + rax + 0x20]
mov eax, r10d
test r10d, r10d
je 0x14001b7c2
sub eax, 1
je 0x14001b7b8
sub eax, 1
je 0x14001b7ae
cmp eax, 1
je 0x14001b7a4
lea ecx, [r10 - 4]
lea rax, [fcn.14004ac9a]
mov al, byte [rcx + rax]
jmp 0x14001b7c7
cvttsd2si rax, xmm4
shr eax, 0x18
jmp 0x14001b7c7
cvttsd2si rax, xmm4
shr eax, 0x10
jmp 0x14001b7c7
cvttsd2si rax, xmm4
shr eax, 8
jmp 0x14001b7c7
cvttsd2si rax, xmm4
add dl, al
lea r8d, [r10 + 1]
cmp r8d, 0x24
movzx edx, dl
lea eax, [rdx + 0x24]
movzx ecx, al
cmovb ecx, edx
sbb r10d, r10d
movzx ebx, cl
and r10d, r8d
mov eax, ebx
inc edi
and eax, r11d
cmp edi, 0xb
jbe 0x14001b7f9
xor edx, edx
div r9d
mov eax, edx
mov cl, bl
cmp eax, r9d
ja 0x14001b776
je 0x14001b823
mov edx, eax
mov ecx, r9d
mov al, byte [rsp + rdx + 0x20]
xor byte [rsp + rcx + 0x20], al
mov al, byte [rsp + rcx + 0x20]
xor byte [rsp + rdx + 0x20], al
mov al, byte [rsp + rdx + 0x20]
xor byte [rsp + rcx + 0x20], al
mov cl, bl
add r9d, 0xffffffff
jne 0x14001b75e
movzx r10d, byte [rsp + rbx + 0x20]
lea r13, [fcn.14004ac8c]
movzx ecx, byte [rsp + 0x27]
movzx r14d, byte [rsp + 0x21]
mov r8d, ecx
mov dil, byte [rsp + 0x25]
movzx ebx, byte [rsp + r10 + 0x20]
mov r11b, byte [r13 + 1]
mov r12b, byte [rsp + r14 + 0x20]
add r11b, 0x72
add r12b, byte [rsp + 0x23]
inc r14b
mov al, byte [r13]
mov sil, byte [r13 + 3]
shl al, 4
add sil, 0x72
or r11b, al
movzx r9d, r12b
add r12b, bl
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx ecx, r14b
inc r14b
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], bl
add dil, byte [rsp + rbx + 0x20]
movzx eax, dil
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rcx, rax
movzx r10d, r12b
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rax, rbx
movzx r9d, r11b
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
mov cl, byte [r13 + 2]
shl cl, 4
xor dl, byte [rsp + rax + 0x20]
or sil, cl
mov al, byte [rsp + r10 + 0x20]
xor dl, r11b
movzx r11d, byte [rsp + r9 + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx r8d, dl
movzx ecx, r14b
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov byte [rsp + rcx + 0x20], r11b
add dil, byte [rsp + r11 + 0x20]
movzx eax, dil
mov byte [rbp + 0x70], dil
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rcx, rax
movzx r9d, sil
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rax, r11
movzx eax, al
mov dl, byte [rsp + rcx + 0x20]
xor dl, byte [rsp + rax + 0x20]
xor dl, sil
mov byte [r15], dl
mov dil, byte [r13 + 5]
mov al, byte [r13 + 4]
add dil, 0x72
shl al, 4
or dil, al
movzx ebx, byte [rsp + r9 + 0x20]
add r12b, r11b
movzx r8d, dl
inc r14b
movzx r10d, r12b
add r12b, bl
movzx ecx, r14b
inc r14b
movzx r11d, r14b
mov al, byte [rsp + r10 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rbp + 0x70]
mov byte [rsp + rcx + 0x20], bl
add al, byte [rsp + rbx + 0x20]
mov byte [rbp + 0x70], al
movzx eax, al
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rcx, rax
movzx r9d, r12b
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx r8d, dil
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
movzx r10d, byte [rsp + r8 + 0x20]
add rax, rbx
mov bl, byte [rbp + 0x70]
mov dl, byte [rsp + rcx + 0x20]
movzx eax, al
xor dl, byte [rsp + rax + 0x20]
xor dl, dil
mov byte [r15 + 1], dl
mov al, byte [r13 + 6]
mov sil, byte [r13 + 7]
add r13, 8
shl al, 4
add sil, 0x72
or sil, al
movzx edx, dl
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + r11 + 0x20]
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + r11 + 0x20], r10b
add bl, byte [rsp + r10 + 0x20]
add r12b, byte [rsp + r11 + 0x20]
movzx eax, bl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx r8d, sil
movzx eax, byte [rsp + rdx + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
add rcx, r10
movzx r9d, r12b
movzx r10d, byte [rsp + r8 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, sil
mov byte [r15 + 2], cl
mov dil, byte [r13 + 1]
mov al, byte [r13]
add dil, 0x72
shl al, 4
or dil, al
movzx edx, cl
mov al, byte [rsp + r9 + 0x20]
inc r14b
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov esi, 4
mov byte [rsp + r9 + 0x20], al
movzx ecx, r14b
mov qword [rbp + 0x80], 2
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + rcx + 0x20], r10b
add bl, byte [rsp + r10 + 0x20]
movzx eax, bl
mov byte [rbp + 0x70], bl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, byte [rsp + rdx + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
add rcx, r10
movzx edx, byte [rsp + rax + 0x20]
movzx eax, cl
mov r11b, byte [rsp + rdx + 0x20]
xor r11b, byte [rsp + rax + 0x20]
xor r11b, dil
mov byte [r15 + 3], r11b
jmp 0x14001bb48
mov dil, byte [rbp + 0x78]
movzx r8d, r11b
lea r13, [r13 + 2]
mov al, byte [r13]
add r12b, r10b
mov bl, byte [r13 + 1]
inc r14b
shl al, 4
add bl, 0x72
or bl, al
movzx r10d, r12b
movzx r9d, dil
inc rsi
movzx ecx, r14b
mov byte [rbp + 0x78], bl
mov al, byte [rsp + r10 + 0x20]
movzx edi, byte [rsp + r9 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + r8 + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rbp + 0x70]
mov byte [rsp + rcx + 0x20], dil
add al, byte [rsp + rdi + 0x20]
mov byte [rbp + 0x70], al
movzx eax, al
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r9 + 0x20]
add rcx, rax
movzx eax, byte [rsp + r8 + 0x20]
add rcx, rax
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add rax, rdi
movzx eax, al
mov r11b, byte [rsp + rcx + 0x20]
xor r11b, byte [rsp + rax + 0x20]
xor r11b, bl
test rsi, rsi
jle 0x14001bbef
mov byte [rsi + r15 - 1], r11b
sub qword [rbp + 0x80], 1
mov r10b, dil
jne 0x14001bb44
mov byte [r15 + 6], 0
lea r11, [rsp + 0x130]
mov rax, r15
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret