Function at 0x140020a10
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
xorps xmm5, xmm5
movaps xmmword [rax - 0x48], xmm6
movsd xmm6, qword [0x14025aed0]
movaps xmm4, xmm5
movaps xmm3, xmm5
mov r13, rcx
movaps xmm1, xmm3
movaps xmm2, xmm3
movaps xmm0, xmm3
mulsd xmm2, qword [0x14025aab8]
mulsd xmm1, qword [0x14025a1b0]
mulsd xmm0, xmm3
mulsd xmm2, xmm3
mulsd xmm1, xmm3
addsd xmm1, qword [0x14025a3d0]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm4, xmm2
comisd xmm4, xmmword [0x14025aa08]
jbe 0x140020a97
movaps xmm0, xmm3
mulsd xmm0, qword [0x14025a098]
subsd xmm4, xmm0
addsd xmm3, qword [0x14025a108]
comisd xmm6, xmm3
ja 0x140020a45
comisd xmm5, xmm4
jbe 0x140020aba
call fcn.140036d92
call fcn.140036daa
jmp 0x140020f6b
xor eax, eax
lea rcx, [rsp + 0x20]
lea r14d, [rax + 1]
mov byte [rcx], al
add eax, r14d
add rcx, r14
cmp eax, 0x100
jb 0x140020ac5
xor r10d, r10d
mov r9d, 0xff
xor r8b, r8b
xor ebx, ebx
mov r11d, r14d
cmp r9d, r14d
jbe 0x140020af7
lea r11d, [r11*2 + 1]
cmp r11d, r9d
jb 0x140020aea
mov eax, r10d
test r10d, r10d
je 0x140020b45
dec eax
je 0x140020b3b
dec eax
je 0x140020b31
dec eax
je 0x140020b27
lea rax, [fcn.140036daa]
lea ecx, [r10 - 4]
add rcx, rax
movzx eax, r8b
mov r8b, byte [rcx]
add r8b, byte [rsp + rax + 0x20]
jmp 0x140020b56
cvttsd2si rcx, xmm4
shr ecx, 0x18
jmp 0x140020b4a
cvttsd2si rcx, xmm4
shr ecx, 0x10
jmp 0x140020b4a
cvttsd2si rcx, xmm4
shr ecx, 8
jmp 0x140020b4a
cvttsd2si rcx, xmm4
movzx eax, r8b
mov r8b, byte [rsp + rax + 0x20]
add r8b, cl
add r10d, r14d
cmp r10d, 0x1e
jb 0x140020b66
xor r10d, r10d
add r8b, 0x1e
movzx eax, r8b
add ebx, r14d
and eax, r11d
cmp ebx, 0xb
jbe 0x140020b7c
xor edx, edx
div r9d
mov eax, edx
cmp eax, r9d
ja 0x140020af7
cmp r9d, eax
je 0x140020ba7
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
dec r9d
jne 0x140020ae0
movzx r10d, byte [rsp + 0x27]
mov r12b, byte [rsp + 0x25]
movzx eax, r8b
movzx edx, byte [rsp + rax + 0x20]
lea rdi, [fcn.140036d92]
movzx r11d, byte [rsp + rdx + 0x20]
mov cl, byte [rdi + r14]
mov sil, byte [rdi]
add cl, 0x3a
sub sil, r14b
movzx r14d, byte [rsp + 0x21]
mov r15b, byte [rsp + r14 + 0x20]
inc r14b
shl sil, 4
add r15b, byte [rsp + 0x23]
or sil, cl
movzx ebx, r14b
movzx r8d, r15b
add r15b, r11b
inc r14b
mov al, byte [rsp + r8 + 0x20]
movzx r9d, r15b
mov byte [rsp + rdx + 0x20], al
mov al, byte [rsp + r10 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rbx + 0x20]
mov byte [rsp + r10 + 0x20], al
mov byte [rsp + rbx + 0x20], r11b
add r12b, byte [rsp + r11 + 0x20]
movzx eax, r12b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + r10 + 0x20]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r8 + 0x20]
movzx r8d, sil
movzx edx, byte [rsp + rax + 0x20]
movzx r10d, byte [rsp + r8 + 0x20]
add ecx, r11d
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
movzx r11d, r14b
xor cl, byte [rsp + rax + 0x20]
mov al, byte [rdi + 2]
mov dil, byte [rdi + 3]
dec al
xor cl, sil
add dil, 0x3a
movzx edx, cl
shl al, 4
or dil, al
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 r12b, byte [rsp + r10 + 0x20]
movzx eax, r12b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
mov edx, 4
xor cl, byte [rsp + rax + 0x20]
lea rax, [fcn.140036d92]
mov qword [rbp + 0x78], rdx
xor cl, dil
add rax, rdx
mov qword [rbp + 0x80], rax
mov byte [r13], cl
mov bl, byte [rax + 1]
mov al, byte [rax]
add r15b, byte [rsp + r11 + 0x20]
movzx edx, cl
dec al
movzx r8d, dil
movzx r10d, byte [rsp + r8 + 0x20]
mov rdi, qword [rbp + 0x80]
shl al, 4
add bl, 0x3a
movzx r9d, r15b
inc r14b
or bl, al
mov al, byte [rsp + r9 + 0x20]
lea rsi, [rsp + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rbp + 0x70], bl
mov byte [rsp + r9 + 0x20], al
movzx eax, r14b
add rsi, rax
mov al, byte [rsi]
mov byte [rsp + rdx + 0x20], al
mov byte [rsi], r10b
add r12b, byte [rsp + r10 + 0x20]
movzx eax, r12b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
mov r8b, byte [rbp + 0x70]
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, bl
mov ebx, 2
mov byte [r13 + 1], cl
add r15b, byte [rsi]
movzx edx, cl
movzx r8d, r8b
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r15b
lea rdi, [rdi + 2]
mov al, byte [rdi]
mov r11b, byte [rdi + 1]
inc r14b
dec al
add r11b, 0x3a
lea rsi, [rsp + 0x20]
shl al, 4
inc rbx
or r11b, al
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, r14b
add rsi, rax
mov al, byte [rsi]
mov byte [rsp + rdx + 0x20], al
mov byte [rsi], r10b
add r12b, byte [rsp + r10 + 0x20]
movzx eax, r12b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
mov r8b, r11b
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
test rbx, rbx
jle 0x140020e49
mov byte [rbx + r13 - 1], cl
dec qword [rbp + 0x78]
jne 0x140020da8
lea rdx, [rsp + 0x20]
movzx eax, r14b
lea rbx, [fcn.140036d92]
add rdx, rax
mov edi, 6
mov qword [rbp + 0x70], 5
mov rsi, rdx
add rbx, 0xc
add r15b, byte [rsi]
movzx edx, cl
movzx r8d, r8b
movzx r10d, byte [rsp + r8 + 0x20]
movzx r9d, r15b
lea rbx, [rbx + 2]
mov al, byte [rbx + 1]
mov r11b, byte [rbx]
inc r14b
add al, 0x3a
dec r11b
lea rsi, [rsp + 0x20]
shl r11b, 4
inc rdi
or r11b, al
mov al, byte [rsp + r9 + 0x20]
mov byte [rsp + r8 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r9 + 0x20], al
movzx eax, r14b
add rsi, rax
mov al, byte [rsi]
mov byte [rsp + rdx + 0x20], al
mov byte [rsi], r10b
add r12b, byte [rsp + r10 + 0x20]
movzx eax, r12b
movzx ecx, byte [rsp + rax + 0x20]
movzx eax, byte [rsp + rdx + 0x20]
add ecx, eax
movzx eax, byte [rsp + r8 + 0x20]
mov r8b, r11b
add ecx, eax
movzx eax, cl
movzx ecx, byte [rsp + r9 + 0x20]
movzx edx, byte [rsp + rax + 0x20]
add ecx, r10d
movzx eax, cl
mov cl, byte [rsp + rdx + 0x20]
xor cl, byte [rsp + rax + 0x20]
xor cl, r11b
test rdi, rdi
jle 0x140020f1b
mov byte [rdi + r13 - 1], cl
dec qword [rbp + 0x70]
jne 0x140020e7a
movzx eax, r14b
movzx edx, cl
movzx r9d, r11b
add r15b, byte [rsp + rax + 0x20]
movzx r11d, byte [rsp + r9 + 0x20]
inc r14b
movzx r10d, r15b
movzx ecx, r14b
mov byte [r13 + 0xb], 0
mov al, byte [rsp + r10 + 0x20]
mov byte [rsp + r9 + 0x20], al
mov al, byte [rsp + rdx + 0x20]
mov byte [rsp + r10 + 0x20], al
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rdx + 0x20], al
mov byte [rsp + rcx + 0x20], r11b
lea r11, [rsp + 0x130]
mov rax, r13
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