Function at 0x18001ebb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x20]
mov rax, qword [rcx + 0x38]
mov esi, 2
mov r12d, r9d
mov qword [rbp + 0xb0], rbx
mov r14, rdx
movaps xmmword [rbp + 0x50], xmm6
mov rbx, rcx
movaps xmmword [rbp + 0x40], xmm7
movaps xmmword [rbp + 0x30], xmm8
movaps xmmword [rbp + 0x20], xmm9
movss xmm9, dword [rax]
movaps xmmword [rbp + 0x10], xmm10
movss xmm10, dword [rax + 4]
mov edi, r8d
test byte [rcx + 0x30], sil
je 0x18001eecc
mov eax, r9d
lea edx, [rdi*8 - 6]
and eax, 0xffffff
add edx, edi
mov dword [rbp], eax
lea eax, [rdi + rdi]
mov r8d, eax
mov dword [rbp + 4], eax
call fcn.1800230f0
mov eax, dword [rbx + 0x48]
mov r8d, esi
mov dword [rbp + 0xa0], eax
lea r15d, [rsi - 1]
cmp edi, esi
jle 0x18001ec8f
mov r14d, eax
mov rax, qword [rbx + 0x58]
movzx edx, r8w
add dx, dx
add r8d, r15d
add dx, r14w
movzx ecx, dx
mov word [rax], r14w
sub cx, si
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 4], dx
add qword [rbx + 0x58], 6
cmp r8d, edi
jl 0x18001ec52
mov r14, qword [rbp + 0xa8]
movsxd rax, edi
shl rax, 3
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18001eca9
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18002d5b0
sub rsp, rcx
lea ecx, [rdi - 1]
lea r13, [rsp + 0x20]
test edi, edi
jle 0x18001eec3
movss xmm8, dword [0x180052cf0]
mov r12, r14
movsxd rax, ecx
lea rsi, [rax*8]
mov rax, rdi
mov qword [rbp + 8], rax
movss xmm6, dword [r12]
movss xmm7, dword [r12 + 4]
subss xmm6, dword [rsi + r14]
subss xmm7, dword [rsi + r14 + 4]
movaps xmm1, xmm6
movaps xmm0, xmm7
mulss xmm1, xmm6
mulss xmm0, xmm7
addss xmm0, xmm1
comiss xmm0, dword [0x180052cd8]
jbe 0x18001ed2e
call fcn.180036478
mov rax, qword [rbp + 8]
movaps xmm1, xmm8
divss xmm1, xmm0
jmp 0x18001ed32
movaps xmm1, xmm8
mulss xmm6, xmm1
mulss xmm7, xmm1
xorps xmm6, xmmword [0x180053410]
movss dword [rsi + r13 + 4], xmm6
movss dword [rsi + r13], xmm7
mov rsi, r12
sub rsi, r14
add r12, 8
sub rax, r15
mov qword [rbp + 8], rax
jne 0x18001ece6
movss xmm4, dword [0x180052ce0]
lea rsi, [r14 + 4]
mov r11d, dword [rbp + 0xa0]
mov r10, r13
mov r12d, dword [rbp + 0xb8]
sub r10, r14
xor r9d, r9d
lea r14d, [rdi - 1]
movss xmm2, dword [r10 + rsi - 4]
movss xmm3, dword [r10 + rsi]
movsxd rax, r14d
addss xmm2, dword [r13 + rax*8]
addss xmm3, dword [r13 + rax*8 + 4]
mulss xmm2, xmm4
mulss xmm3, xmm4
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
comiss xmm1, dword [0x1800532e4]
jbe 0x18001ede5
movaps xmm0, xmm8
divss xmm0, xmm1
movss xmm1, dword [0x180052d2c]
minss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
movss xmm1, dword [rsi - 4]
movzx edx, r9w
movss xmm0, dword [rsi]
add r14w, r14w
mov rax, qword [rbx + 0x50]
add dx, dx
mov ecx, dword [rbp]
mulss xmm2, xmm4
mulss xmm3, xmm4
lea r8d, [rdx + r11]
subss xmm1, xmm2
subss xmm0, xmm3
movss dword [rax], xmm1
movss dword [rax + 4], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm9
movss dword [rax + 0xc], xmm10
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], r12d
addss xmm2, dword [rsi - 4]
addss xmm3, dword [rsi]
mov rax, qword [rbx + 0x50]
add rsi, 8
movss dword [rax + 0x14], xmm2
movss dword [rax + 0x18], xmm3
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm9
movss dword [rax + 0x20], xmm10
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], ecx
lea ecx, [r14 + r11]
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, [r11 + 1]
mov rax, qword [rbx + 0x58]
add cx, r14w
mov r14d, r9d
add r9d, r15d
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], cx
lea ecx, [r11 + 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 r9d, edi
jl 0x18001ed88
movzx eax, word [rbp + 4]
jmp 0x18001ef5a
lea eax, [rdi - 2]
mov r8d, edi
lea edx, [rax + rax*2]
call fcn.1800230f0
mov r15d, 1
test edi, edi
jle 0x18001ef1a
mov rcx, rdi
mov rax, qword [rbx + 0x50]
movsd xmm0, qword [r14]
lea r14, [r14 + 8]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm9
movss dword [rax + 0xc], xmm10
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], r12d
add qword [rbx + 0x50], 0x14
sub rcx, r15
jne 0x18001eee7
cmp edi, esi
jle 0x18001ef57
mov rcx, qword [rbx + 0x58]
movzx eax, word [rbx + 0x48]
mov word [rcx], ax
movzx ecx, si
add cx, word [rbx + 0x48]
mov rax, qword [rbx + 0x58]
sub cx, r15w
mov word [rax + 2], cx
movzx ecx, si
mov rax, qword [rbx + 0x58]
add esi, r15d
add cx, word [rbx + 0x48]
mov word [rax + 4], cx
add qword [rbx + 0x58], 6
cmp esi, edi
jl 0x18001ef1e
movzx eax, di
add dword [rbx + 0x48], eax
mov rbx, qword [rbp + 0xb0]
movaps xmm6, xmmword [rbp + 0x50]
movaps xmm7, xmmword [rbp + 0x40]
movaps xmm8, xmmword [rbp + 0x30]
movaps xmm9, xmmword [rbp + 0x20]
movaps xmm10, xmmword [rbp + 0x10]
lea rsp, [rbp + 0x60]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret