Function at 0x1400426b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp r8d, 3
jl 0x140042a9c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
movaps xmmword [rax - 0x38], xmm6
mov r12d, r9d
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movaps xmmword [rax - 0x58], xmm8
mov rbx, rcx
movaps xmmword [rax - 0x68], xmm9
mov edi, r8d
test r9d, 0xff000000
je 0x140042a6b
test byte [rcx + 0x30], 4
mov rax, qword [rcx + 0x38]
movss xmm8, dword [rax]
movss xmm9, dword [rax + 4]
je 0x1400429de
movss xmm7, dword [rcx + 0xc0]
lea edx, [rdi*8 - 6]
mov eax, r9d
add edx, edi
and eax, 0xffffff
mov dword [rsp + 0xb0], eax
lea eax, [rdi + rdi]
mov r8d, eax
mov dword [rsp + 0x20], eax
call fcn.140041574
mov r13d, dword [rbx + 0x34]
mov r8d, 2
mov r9d, r8d
lea ebp, [r8 - 1]
mov rax, qword [rbx + 0x50]
movzx edx, r9w
add dx, dx
add r9d, ebp
add dx, r13w
movzx ecx, dx
mov word [rax], r13w
sub cx, r8w
mov rax, qword [rbx + 0x50]
mov word [rax + 2], cx
mov rax, qword [rbx + 0x50]
mov word [rax + 4], dx
add qword [rbx + 0x50], 6
cmp r9d, edi
jl 0x14004275e
mov r14, qword [rbx + 0x38]
xor r15d, r15d
cmp edi, dword [r14 + 0x34]
jle 0x1400427e8
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x1400427c2
mov rax, qword [0x1400b8e80]
test rax, rax
je 0x1400427bd
dec dword [rax + 0xc4]
call fcn.14007a790
mov rax, qword [0x1400b8e80]
test rax, rax
je 0x1400427d4
add dword [rax + 0xc4], ebp
movsxd rcx, edi
shl rcx, 3
call fcn.14007b2e4
mov qword [r14 + 0x38], rax
mov dword [r14 + 0x34], edi
mov rax, qword [rbx + 0x38]
lea r14d, [rdi - 1]
movss xmm6, dword [0x1400a9ecc]
mov r8, rsi
mov r10, rdi
mov r9, qword [rax + 0x38]
movsxd rax, edi
lea rdx, [rax*8 - 8]
movss xmm4, dword [r8]
movss xmm5, dword [r8 + 4]
subss xmm4, dword [rdx + rsi]
subss xmm5, dword [rdx + rsi + 4]
movaps xmm1, xmm4
movaps xmm0, xmm5
mulss xmm1, xmm4
mulss xmm0, xmm5
addss xmm0, xmm1
comiss xmm0, dword [0x1400a9e44]
jbe 0x140042852
call fcn.14003ad10
movaps xmm3, xmm6
divss xmm3, xmm0
mulss xmm4, xmm3
mulss xmm5, xmm3
xorps xmm4, xmmword [0x1400aa620]
movss dword [rdx + r9 + 4], xmm4
movss dword [rdx + r9], xmm5
mov rdx, r8
sub rdx, rsi
add r8, 8
sub r10, rbp
jne 0x14004280d
movss xmm4, dword [0x1400a9e90]
lea r11, [rsi + 4]
mov r10, r9
mulss xmm7, xmm4
sub r10, rsi
mov esi, dword [rsp + 0xb0]
movss xmm2, dword [r10 + r11 - 4]
movsxd rax, r14d
movss xmm3, dword [r9 + rax*8 + 4]
addss xmm3, dword [r10 + r11]
addss xmm2, dword [r9 + rax*8]
mulss xmm3, xmm4
mulss xmm2, xmm4
movaps xmm1, xmm3
mulss xmm1, xmm3
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm1, xmm0
comiss xmm1, dword [0x1400a9e50]
jbe 0x1400428ed
movaps xmm0, xmm6
divss xmm0, xmm1
movss xmm1, dword [0x1400a9f60]
minss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
movss xmm0, dword [r11 - 4]
movzx edx, r15w
mov rax, qword [rbx + 0x48]
add r14w, r14w
mulss xmm2, xmm7
add dx, dx
mulss xmm3, xmm7
lea ecx, [r14 + r13]
subss xmm0, xmm2
lea r8d, [rdx + r13]
movss dword [rax], xmm0
movss xmm1, dword [r11]
mov rax, qword [rbx + 0x48]
subss xmm1, xmm3
movss dword [rax + 4], xmm1
mov rax, qword [rbx + 0x48]
movss dword [rax + 8], xmm8
movss dword [rax + 0xc], xmm9
mov rax, qword [rbx + 0x48]
mov dword [rax + 0x10], r12d
addss xmm2, dword [r11 - 4]
mov rax, qword [rbx + 0x48]
movss dword [rax + 0x14], xmm2
addss xmm3, dword [r11]
mov rax, qword [rbx + 0x48]
add r11, 8
movss dword [rax + 0x18], xmm3
mov rax, qword [rbx + 0x48]
movss dword [rax + 0x1c], xmm8
movss dword [rax + 0x20], xmm9
mov rax, qword [rbx + 0x48]
mov dword [rax + 0x24], esi
mov rax, qword [rbx + 0x50]
add qword [rbx + 0x48], 0x28
mov word [rax], r8w
mov rax, qword [rbx + 0x50]
mov word [rax + 2], cx
lea ecx, [r13 + 1]
mov rax, qword [rbx + 0x50]
add cx, r14w
mov r14d, r15d
add r15d, ebp
mov word [rax + 4], cx
mov rax, qword [rbx + 0x50]
mov word [rax + 6], cx
lea ecx, [r13 + 1]
mov rax, qword [rbx + 0x50]
add ecx, edx
mov word [rax + 8], cx
mov rax, qword [rbx + 0x50]
mov word [rax + 0xa], r8w
add qword [rbx + 0x50], 0xc
cmp r15d, edi
jl 0x140042892
movzx eax, word [rsp + 0x20]
jmp 0x140042a68
lea eax, [rdi - 2]
mov r8d, edi
lea edx, [rax + rax*2]
call fcn.140041574
mov rcx, rdi
mov ebp, 1
mov rax, qword [rbx + 0x48]
movsd xmm0, qword [rsi]
lea rsi, [rsi + 8]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x48]
movss dword [rax + 8], xmm8
movss dword [rax + 0xc], xmm9
mov rax, qword [rbx + 0x48]
mov dword [rax + 0x10], r12d
add qword [rbx + 0x48], 0x14
sub rcx, rbp
jne 0x1400429f4
lea r8d, [rcx + 2]
mov rcx, qword [rbx + 0x50]
movzx eax, word [rbx + 0x34]
mov word [rcx], ax
movzx ecx, r8w
add cx, word [rbx + 0x34]
mov rax, qword [rbx + 0x50]
sub cx, bp
mov word [rax + 2], cx
movzx ecx, r8w
mov rax, qword [rbx + 0x50]
add r8d, ebp
add cx, word [rbx + 0x34]
mov word [rax + 4], cx
add qword [rbx + 0x50], 6
cmp r8d, edi
jl 0x140042a2a
movzx eax, di
add dword [rbx + 0x34], eax
movaps xmm6, xmmword [rsp + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm7, xmmword [rsp + 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret