Function at 0x180160bb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rdx
mov r13, rcx
movsxd r9, dword [r8]
movsxd r11, dword [r8 + 4]
mov eax, r9d
sub eax, r11d
cdqe
cmp qword [r8 + 8], rax
jae 0x180160e97
cmp byte [rcx + 0xc], 0
je 0x180160e97
xor bl, bl
mov dword [rbp - 0x79], 0x10000
mov r14b, 1
movups xmm0, xmmword [r8]
movaps xmmword [rbp - 0x69], xmm0
lea r12, vtable.tbb::task.0
nop dword [rax + rax]
movzx r10d, byte [r13 + 0xc]
cmp r14b, 8
jae 0x180160ce0
nop
movzx ecx, bl
cmp byte [rbp + rcx - 0x76], r10b
jae 0x180160ce0
add rcx, rcx
mov eax, dword [rbp + rcx*8 - 0x69]
sub eax, dword [rbp + rcx*8 - 0x65]
cdqe
cmp qword [rbp + rcx*8 - 0x61], rax
jae 0x180160ce0
lea eax, [rbx + 1]
and al, 7
movzx ecx, al
mov byte [rbp - 0x79], cl
add rcx, rcx
movzx r9d, bl
mov eax, r9d
shl rax, 4
lea r8, [rbp - 0x69]
add r8, rax
movups xmm0, xmmword [r8]
movups xmmword [rbp + rcx*8 - 0x69], xmm0
movzx eax, byte [rbp - 0x79]
shl rax, 4
lea rdx, [rbp - 0x69]
add rdx, rax
mov eax, dword [rdx]
mov dword [r8], eax
mov ecx, dword [rdx]
sub ecx, dword [rdx + 4]
shr ecx, 1
add ecx, dword [rdx + 4]
mov dword [rdx], ecx
mov dword [r8 + 4], ecx
mov rax, qword [rdx + 8]
mov qword [r8 + 8], rax
inc byte [rbp + r9 - 0x76]
movzx ecx, byte [rbp + r9 - 0x76]
movzx eax, byte [rbp - 0x79]
mov byte [rbp + rax - 0x76], cl
movzx eax, byte [rbp - 0x77]
inc al
mov byte [rbp - 0x77], al
cmp al, 8
jae 0x180160ce0
movzx ebx, byte [rbp - 0x79]
jmp 0x180160c40
mov rax, qword [r15 - 0x20]
movzx ecx, byte [rax + 8]
movzx r14d, byte [rbp - 0x77]
movzx ebx, byte [rbp - 0x79]
test cl, cl
je 0x180160dc3
add byte [r13 + 0xc], 2
movzx eax, byte [r13 + 0xc]
cmp r14b, 1
jbe 0x180160da2
movzx esi, byte [rbp - 0x78]
mov eax, esi
shl rax, 4
lea rbx, [rbp - 0x69]
add rbx, rax
mov rcx, r15
call fcn.180160650
mov rdx, rax
mov qword [rsp + 0x20], rax
mov qword [rax], r12
mov byte [rax - 0xb], 1
lea rax, vtable.._AV__start_for_V__blocked_range_H_tbb__VProxyLoopBody__A0xcf67f9a5____CBVauto_partitioner_2__internal_interface9_tbb__.0
mov qword [rdx], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdx + 8], xmm0
movups xmm0, xmmword [r15 + 0x18]
movups xmmword [rdx + 0x18], xmm0
movsd xmm1, qword [r15 + 0x28]
movsd qword [rdx + 0x28], xmm1
shr qword [r15 + 0x30], 1
mov rax, qword [r15 + 0x30]
mov qword [rdx + 0x30], rax
mov dword [rdx + 0x38], 2
movzx eax, byte [r15 + 0x3c]
sub al, byte [rbp + rsi - 0x76]
mov byte [rdx + 0x3c], al
mov rcx, qword [rdx - 0x28]
mov rax, qword [rcx]
lea r8, [rdx - 8]
call qword [rax]
add r14b, 0xff
mov byte [rbp - 0x77], r14b
inc sil
and sil, 7
mov byte [rbp - 0x78], sil
movzx ebx, byte [rbp - 0x79]
jmp 0x180160e56
movzx ecx, bl
cmp byte [rbp + rcx - 0x76], al
jae 0x180160dc3
add rcx, rcx
mov eax, dword [rbp + rcx*8 - 0x69]
sub eax, dword [rbp + rcx*8 - 0x65]
cdqe
cmp qword [rbp + rcx*8 - 0x61], rax
jb 0x180160e56
movzx eax, bl
shl rax, 4
lea rcx, [rbp - 0x69]
add rcx, rax
movsxd r11, dword [rcx]
mov r10d, dword [r15 + 0x24]
mov r9d, dword [r15 + 0x20]
mov eax, r10d
sub eax, r9d
movsxd rdi, eax
movsxd r8, dword [r15 + 0x28]
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov r12, r8
movsxd rax, dword [rcx + 4]
imul rax, rdi
add rax, rsi
xor edx, edx
div r8
add eax, r9d
mov dword [rsp + 0x28], eax
cmp r11d, r8d
jl 0x180160e1a
mov dword [rsp + 0x2c], r10d
jmp 0x180160e30
mov rax, r11
imul rax, rdi
add rax, rsi
xor edx, edx
div r12
add eax, r9d
mov dword [rsp + 0x2c], eax
mov rcx, qword [r15 + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 8]
add r14b, 0xff
mov byte [rbp - 0x77], r14b
dec bl
and bl, 7
mov byte [rbp - 0x79], bl
lea r12, vtable.tbb::task.0
test r14b, r14b
je 0x180160e6a
mov rax, qword [r15 - 0x38]
cmp qword [rax + 0x78], 0
je 0x180160c30
test r14b, r14b
je 0x180160f00
nop dword [rax]
nop word [rax + rax]
add r14b, 0xff
mov byte [rbp - 0x77], r14b
dec bl
and bl, 7
mov byte [rbp - 0x79], bl
test r14b, r14b
jne 0x180160e80
jmp 0x180160f00
mov r10d, dword [rdx + 0x24]
mov r8d, dword [rdx + 0x20]
mov eax, r10d
sub eax, r8d
movsxd rbx, eax
movsxd rcx, dword [rdx + 0x28]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
mov rsi, rcx
mov rax, r11
imul rax, rbx
add rax, rdi
xor edx, edx
div rcx
add eax, r8d
mov dword [rsp + 0x20], eax
cmp r9d, ecx
jl 0x180160edb
mov dword [rsp + 0x24], r10d
jmp 0x180160ef1
mov rax, r9
imul rax, rbx
add rax, rdi
xor edx, edx
div rsi
add eax, r8d
mov dword [rsp + 0x24], eax
mov rcx, qword [r15 + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 8]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18042cdf0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret