Function at 0x1400219e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
mov rax, qword [0x14042a140]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rcx + 0x10]
movaps xmm10, xmm2
mov rdi, rdx
mov rsi, rcx
cmp rbx, qword [rcx + 8]
je 0x140021be3
movsd xmm7, qword [0x1403f37a8]
mov rcx, rbx
movsd xmm6, qword [0x1403f37a0]
movabs rbp, 0x8000000000000000
movsd xmm9, qword [0x1403f37c0]
mov r14d, 0x405
movabs r15, 0xffff000000000000
movabs r12, 0xffffffffffff
xorps xmm8, xmm8
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x36], r14w
mov rax, qword [rsp + 0x30]
and rax, r15
or rax, rdi
mov qword [rsp + 0x30], rax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140021aa7
add rcx, 0xffffffffffffffa0
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call fcn.14001fd50
mov ecx, dword [rbx - 0x60]
lea rax, [rbx - 0x60]
mov rbx, rax
shl rcx, 5
mov rax, qword [rax + 8]
and rax, r12
add rcx, rax
mov rax, qword [rsp + 0x20]
cmp rax, rcx
je 0x140021bd6
movzx ecx, word [rax + 0x1e]
shr cx, 9
test cl, 1
jne 0x140021c34
movzx edx, word [rax + 0x1e]
movzx ecx, dl
shr cl, 4
test cl, 1
je 0x140021bd6
movzx ecx, dx
shr cx, 8
test cl, 1
je 0x140021b8f
mov rdx, qword [rax + 0x10]
xorps xmm0, xmm0
test rdx, rdx
js 0x140021b30
cvtsi2sd xmm0, rdx
jmp 0x140021b48
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [rsp + 0x28]
comisd xmm0, xmm8
jb 0x140021bd6
movsd xmm0, qword [rsp + 0x28]
comisd xmm7, xmm0
jbe 0x140021bd6
movsd xmm0, qword [rsp + 0x28]
xor ecx, ecx
comisd xmm0, xmm6
jb 0x140021b82
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140021b82
mov rcx, rbp
cvttsd2si rax, xmm0
add rax, rcx
cmp rdx, rax
jmp 0x140021bd4
shr dl, 7
test dl, 1
je 0x140021c34
mov rcx, qword [rax + 0x10]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movsd qword [rsp + 0x28], xmm0
movsd xmm1, qword [rsp + 0x28]
comisd xmm1, xmm9
jb 0x140021bd6
movsd xmm0, qword [rsp + 0x28]
comisd xmm6, xmm0
jbe 0x140021bd6
movsd xmm0, qword [rsp + 0x28]
cvttsd2si rax, xmm0
cmp rcx, rax
je 0x140021c2f
mov rcx, rbx
cmp rbx, qword [rsi + 8]
jne 0x140021a82
movaps xmm0, xmm10
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402e72b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rax, qword [rsp + 0x20]
movzx ecx, word [rax + 0x1e]
bt cx, 9
jae 0x140021c46
movsd xmm0, qword [rax + 0x10]
jmp 0x140021be7
test cl, 0x20
je 0x140021c56
movd xmm0, dword [rax + 0x10]
cvtdq2pd xmm0, xmm0
jmp 0x140021be7
xorps xmm0, xmm0
test cl, 0x40
je 0x140021c6b
mov ecx, dword [rax + 0x10]
cvtsi2sd xmm0, rcx
jmp 0x140021be7
test cl, cl
jns 0x140021c7a
cvtsi2sd xmm0, qword [rax + 0x10]
jmp 0x140021be7
mov rcx, qword [rax + 0x10]
test rcx, rcx
jns 0x140021c61
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
jmp 0x140021be7