Function at 0x180029440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xc0], rbx
mov esi, r9d
movaps xmmword [rbp + 0x70], xmm6
mov rdi, rdx
movaps xmmword [rbp + 0x60], xmm7
mov rbx, rcx
movaps xmmword [rbp + 0x50], xmm8
movaps xmmword [rbp + 0x40], xmm9
movaps xmmword [rbp + 0x30], xmm10
movaps xmmword [rbp + 0x20], xmm11
movaps xmmword [rbp + 0x10], xmm12
mov r14d, r8d
cmp r8d, 3
jl 0x1800297ef
test byte [rcx + 0x30], 2
mov rax, qword [rcx + 0x38]
movss xmm8, dword [rax]
movss xmm9, dword [rax + 4]
je 0x18002975e
mov eax, r9d
lea edx, [r14*8 - 6]
and eax, 0xffffff
add edx, r14d
mov dword [rbp + 0xd0], eax
lea eax, [r14 + r14]
mov r8d, eax
mov dword [rbp], eax
call fcn.18002ee30
mov r13d, dword [rbx + 0x4c]
mov r8d, 2
nop word [rax + rax]
mov rax, qword [rbx + 0x58]
movzx edx, r8w
add dx, dx
inc r8d
add dx, r13w
mov word [rax], r13w
mov rax, qword [rbx + 0x58]
lea ecx, [rdx - 2]
mov word [rax + 2], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 4], dx
add qword [rbx + 0x58], 6
cmp r8d, r14d
jl 0x1800294f0
movsxd rax, r14d
shl rax, 3
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18002953d
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180001550
movss xmm11, dword [0x180063c80]
sub rsp, rcx
movss xmm10, dword [0x1800630e8]
mov r15, rdi
movsxd rax, r14d
xorps xmm12, xmm12
lea r12, [rsp + 0x20]
lea rsi, [rax*8 - 8]
mov rax, r14
mov qword [rbp + 8], rax
nop dword [rax]
movss xmm6, dword [r15]
movss xmm7, dword [r15 + 4]
subss xmm6, dword [rsi + rdi]
subss xmm7, dword [rsi + rdi + 4]
movaps xmm1, xmm6
movaps xmm0, xmm7
mulss xmm1, xmm6
mulss xmm0, xmm7
addss xmm0, xmm1
comiss xmm0, xmm12
jbe 0x1800295c7
call fcn.180010c90
mov rax, qword [rbp + 8]
movaps xmm1, xmm10
divss xmm1, xmm0
mulss xmm6, xmm1
mulss xmm7, xmm1
movss dword [rsi + r12], xmm7
xorps xmm6, xmm11
movss dword [rsi + r12 + 4], xmm6
mov rsi, r15
sub rsi, rdi
add r15, 8
sub rax, 1
mov qword [rbp + 8], rax
jne 0x180029580
movss xmm6, dword [0x180063bcc]
lea r11, [rdi + 4]
mov r9d, dword [rbp + 0xd8]
lea r15d, [r14 - 1]
xor esi, esi
mov r10, r12
sub r10, rdi
mov edi, dword [rbp + 0xd0]
nop dword [rax]
nop word [rax + rax]
movss xmm3, dword [r10 + r11 - 4]
movaps xmm1, xmm6
movss xmm4, dword [r10 + r11]
movaps xmm5, xmm10
movsxd rax, r15d
movzx edx, si
add r15w, r15w
add dx, dx
addss xmm3, dword [r12 + rax*8]
addss xmm4, dword [r12 + rax*8 + 4]
mov rax, qword [rbx + 0x50]
lea ecx, [r15 + r13]
lea r8d, [rdx + r13]
mulss xmm3, xmm6
mulss xmm4, xmm6
movaps xmm0, xmm3
mulss xmm0, xmm3
movaps xmm2, xmm4
mulss xmm2, xmm4
addss xmm2, xmm0
movss xmm0, dword [r11 - 4]
maxss xmm1, xmm2
divss xmm5, xmm1
movaps xmm2, xmm5
mulss xmm5, xmm4
mulss xmm2, xmm3
mulss xmm5, xmm6
mulss xmm2, xmm6
subss xmm0, xmm2
movss dword [rax], xmm0
movss xmm1, dword [r11]
mov rax, qword [rbx + 0x50]
subss xmm1, xmm5
movss dword [rax + 4], xmm1
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm8
movss dword [rax + 0xc], xmm9
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], r9d
addss xmm2, dword [r11 - 4]
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm2
addss xmm5, dword [r11]
mov rax, qword [rbx + 0x50]
add r11, 8
movss dword [rax + 0x18], xmm5
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm8
movss dword [rax + 0x20], xmm9
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
mov rax, qword [rbx + 0x58]
add qword [rbx + 0x50], 0x28
mov word [rax], r8w
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [r13 + 1]
mov rax, qword [rbx + 0x58]
add ecx, r15d
mov r15d, esi
inc esi
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], cx
lea ecx, [r13 + 1]
mov rax, qword [rbx + 0x58]
add ecx, edx
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], r8w
add qword [rbx + 0x58], 0xc
cmp esi, r14d
jl 0x180029620
movzx eax, word [rbp]
jmp 0x1800297ec
lea eax, [r14 - 2]
mov r8d, r14d
lea edx, [rax + rax*2]
call fcn.18002ee30
mov rcx, r14
mov rax, qword [rbx + 0x50]
movsd xmm0, qword [rdi]
lea rdi, [rdi + 8]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm8
movss dword [rax + 0xc], xmm9
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
add qword [rbx + 0x50], 0x14
sub rcx, 1
jne 0x180029770
mov r8d, 2
nop dword [rax + rax]
mov rcx, qword [rbx + 0x58]
movzx eax, word [rbx + 0x4c]
mov word [rcx], ax
lea ecx, [r8 - 1]
add cx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
movzx ecx, r8w
mov rax, qword [rbx + 0x58]
inc r8d
add cx, word [rbx + 0x4c]
mov word [rax + 4], cx
add qword [rbx + 0x58], 6
cmp r8d, r14d
jl 0x1800297b0
movzx eax, r14w
add dword [rbx + 0x4c], eax
mov rbx, qword [rbp + 0xc0]
movaps xmm6, xmmword [rbp + 0x70]
movaps xmm7, xmmword [rbp + 0x60]
movaps xmm8, xmmword [rbp + 0x50]
movaps xmm9, xmmword [rbp + 0x40]
movaps xmm10, xmmword [rbp + 0x30]
movaps xmm11, xmmword [rbp + 0x20]
movaps xmm12, xmmword [rbp + 0x10]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret