Function at 0x10014310
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040efb
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x1005901c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xf4], edi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xec], eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [ebp - 0xe8], ecx
cmp dword [esi + 8], eax
jb 0x10014373
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
cmp dword [esi + 0x14], eax
jae 0x1001482b
cmp byte [edi + 0x10], 0
je 0x1001482b
movq xmm0, qword [esi]
xor dl, dl
mov eax, dword [esi + 8]
mov cl, 1
movq qword [ebp - 0xd0], xmm0
movq xmm0, qword [esi + 0xc]
mov dword [ebp - 0xc8], eax
mov eax, dword [esi + 0x14]
mov byte [ebp - 0xdf], dl
mov dword [ebp - 0xdc], 0x10000
mov byte [ebp - 0xde], cl
movq qword [ebp - 0xc4], xmm0
mov dword [ebp - 0xbc], eax
mov dword [ebp - 4], 0
nop dword [eax]
mov ch, byte [edi + 0x10]
mov byte [ebp - 0xe0], ch
cmp cl, 8
jae 0x10014592
nop dword [eax]
nop word [eax + eax]
movzx eax, dl
cmp byte [ebp + eax - 0xd9], ch
jae 0x1001458c
lea eax, [eax + eax*2]
lea esi, [ebp - 0xd0]
lea esi, [esi + eax*8]
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp dword [esi + 8], eax
jb 0x10014425
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
cmp dword [esi + 0x14], eax
jae 0x1001458c
mov al, dl
lea ecx, [ebp - 0xd0]
inc al
lea edi, [ebp - 0xd0]
and al, 7
mov byte [ebp - 0xdc], al
movzx eax, al
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
movzx eax, dl
mov dword [ebp - 0xf0], eax
lea eax, [eax + eax*2]
movq xmm0, qword [edi + eax*8]
lea edi, [edi + eax*8]
movq qword [ecx], xmm0
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
movq xmm0, qword [edi + 0xc]
movq qword [ecx + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [ecx + 0x14], eax
movzx eax, byte [ebp - 0xdc]
lea eax, [eax + eax*2]
movq xmm0, qword [ebp + eax*8 - 0xd0]
movq qword [edi], xmm0
mov ecx, dword [ebp + eax*8 - 0xc8]
mov dword [edi + 8], ecx
movq xmm0, qword [ebp + eax*8 - 0xc4]
movq qword [edi + 0xc], xmm0
mov ecx, dword [ebp + eax*8 - 0xbc]
mov dword [edi + 0x14], ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 4]
sub edx, dword [edi + 0xc]
sub ecx, dword [edi]
cmp ecx, edx
jbe 0x100144fb
mov edx, dword [ebp + eax*8 - 0xcc]
mov ecx, dword [ebp + eax*8 - 0xd0]
mov esi, dword [ebp + eax*8 - 0xc8]
mov dword [ebp - 0x100], edx
sub edx, ecx
shr edx, 1
add edx, ecx
mov dword [ebp - 0x104], edx
movq xmm0, qword [ebp - 0x104]
mov dword [ebp + eax*8 - 0xcc], edx
movq qword [edi], xmm0
mov dword [edi + 8], esi
jmp 0x10014539
mov edx, dword [ebp + eax*8 - 0xc0]
mov ecx, dword [ebp + eax*8 - 0xc4]
mov esi, dword [ebp + eax*8 - 0xbc]
mov dword [ebp - 0x10c], edx
sub edx, ecx
shr edx, 1
add edx, ecx
mov dword [ebp - 0x110], edx
movq xmm0, qword [ebp - 0x110]
mov dword [ebp + eax*8 - 0xc0], edx
movq qword [edi + 0xc], xmm0
mov dword [edi + 0x14], esi
mov eax, dword [ebp - 0xf0]
inc byte [ebp + eax - 0xd9]
mov cl, byte [ebp + eax - 0xd9]
movzx eax, byte [ebp - 0xdc]
mov byte [ebp + eax - 0xd9], cl
mov cl, byte [ebp - 0xda]
mov dl, byte [ebp - 0xdc]
add cl, 1
mov byte [ebp - 0xde], cl
mov byte [ebp - 0xda], cl
mov byte [ebp - 0xdf], dl
cmp cl, 8
jae 0x1001458c
mov ch, byte [ebp - 0xe0]
jmp 0x100143f0
mov edi, dword [ebp - 0xf4]
mov eax, dword [edi + 0xc]
cmp eax, 2
jne 0x10014799
mov eax, dword [edi]
cmp eax, 1
ja 0x100145e6
test eax, eax
je 0x100145b7
cmp byte [edi + 0x10], 0
je 0x100145b7
mov dword [edi], 0
jmp 0x100145e6
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 0x5c]
mov al, byte [eax + 0xc]
mov dl, byte [ebp - 0xdc]
test al, al
je 0x100147a4
mov cl, byte [ebp - 0xda]
inc byte [edi + 0x10]
mov byte [ebp - 0xde], cl
mov byte [ebp - 0xdf], dl
cmp cl, 1
jbe 0x10014767
push dword [ebp - 0xec]
movzx esi, byte [ebp - 0xdb]
lea eax, [ebp - 0xe4]
push 0x80
push eax
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xe4], 0
call sub.tbb12.dll_void____cdecl_tbb::detail::r1::allocate_class_tbb::detail::d1::small_object_pool____unsigned_int__struct_tbb::detail::d1::execution_data_const__
lea ecx, [esi + esi*2]
mov dword [ebp - 0xf8], eax
lea esi, [ebp - 0xd0]
push 0x30
lea esi, [esi + ecx*8]
mov dword [eax + 8], 0
lea ecx, [eax + 0x10]
mov dword [eax + 0xc], 0
push 0
push ecx
call fcn.100263d0
mov ecx, dword [ebp - 0xf8]
xor edx, edx
push dword [ebp - 0xec]
push 0x10
mov dword [ecx], vtable.tbb::detail::d1::start_for_class_Intel::OpenCL::TaskExecutor::BlockedRangeByTile2d__struct_TaskLoopBody2D_class_Intel::OpenCL::TaskExecutor::BlockedRangeByTile2d___class_tbb::detail::d1::affinity_partitioner_.0
movq xmm0, qword [esi]
movq qword [ecx + 0x40], xmm0
mov eax, dword [esi + 8]
mov dword [ecx + 0x48], eax
movq xmm0, qword [esi + 0xc]
movq qword [ecx + 0x4c], xmm0
mov eax, dword [esi + 0x14]
mov esi, ecx
mov ecx, dword [ebp - 0xe8]
mov dword [esi + 0x54], eax
mov eax, dword [ecx + 0x58]
mov dword [esi + 0x58], eax
shr dword [ecx + 0x60], 1
mov eax, dword [ecx + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x60]
div dword [ecx + 0x68]
mov dword [esi + 0x64], edx
mov eax, dword [ecx + 0x68]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], 2
mov al, byte [ecx + 0x70]
mov byte [esi + 0x70], al
mov eax, dword [ecx + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0xe4]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0xf0]
mov al, byte [ebp + eax - 0xd9]
sub byte [esi + 0x70], al
lea eax, [ebp - 0xe4]
push eax
call sub.tbb12.dll_void____cdecl_tbb::detail::r1::allocate_class_tbb::detail::d1::small_object_pool____unsigned_int__struct_tbb::detail::d1::execution_data_const__
mov edx, dword [ebp - 0xe8]
add esp, 0x24
mov ecx, dword [edx + 0x5c]
mov dword [eax], ecx
mov dword [eax + 4], 2
mov ecx, dword [ebp - 0xe4]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], 0
mov dword [edx + 0x5c], eax
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x60], 0
mov eax, dword [ebp - 0xec]
mov edx, dword [eax]
je 0x10014742
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x74]
movzx eax, word [eax + ecx*2]
test ax, ax
jne 0x10014735
shr ecx, 4
push ecx
push edx
push esi
call sub.tbb12.dll_void___cdecl_tbb::detail::r1::spawn_class_tbb::detail::d1::task___class_tbb::detail::d1::task_group_context___unsigned_short_int_
add esp, 0xc
jmp 0x1001474c
push eax
push edx
push esi
call sub.tbb12.dll_void___cdecl_tbb::detail::r1::spawn_class_tbb::detail::d1::task___class_tbb::detail::d1::task_group_context___unsigned_short_int_
add esp, 0xc
jmp 0x1001474c
push edx
push esi
call sub.tbb12.dll_void___cdecl_tbb::detail::r1::spawn_class_tbb::detail::d1::task___class_tbb::detail::d1::task_group_context__
add esp, 8
mov eax, dword [ebp - 0xf0]
mov cl, byte [ebp - 0xde]
inc al
add cl, 0xff
and al, 7
mov byte [ebp - 0xdb], al
jmp 0x100147e2
movzx esi, dl
mov al, byte [ebp + esi - 0xd9]
cmp al, byte [edi + 0x10]
jae 0x100147a4
lea eax, [esi + esi*2]
lea esi, [ebp - 0xd0]
lea esi, [esi + eax*8]
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp dword [esi + 8], eax
jb 0x100147ee
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
cmp dword [esi + 0x14], eax
jb 0x100147ee
jmp 0x100147a4
test eax, eax
jne 0x100147a4
mov dword [edi + 0xc], 2
movzx eax, dl
lea ecx, [ebp - 0xd0]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp - 0xe8]
push eax
add ecx, 0x58
call fcn.1000cc30
mov dl, byte [ebp - 0xdc]
mov cl, byte [ebp - 0xda]
dec dl
add cl, 0xff
and dl, 7
mov byte [ebp - 0xdf], dl
mov byte [ebp - 0xdc], dl
mov byte [ebp - 0xda], cl
mov byte [ebp - 0xde], cl
test cl, cl
je 0x10014834
mov eax, dword [ebp - 0xec]
push dword [eax]
call sub.tbb12.dll_bool___cdecl_tbb::detail::r1::is_group_execution_cancelled_class_tbb::detail::d1::task_group_context__
mov cl, byte [ebp - 0xde]
add esp, 4
mov dl, byte [ebp - 0xdf]
test al, al
je 0x100143d0
mov al, cl
mov cl, dl
nop word [eax + eax]
dec cl
and cl, 7
add al, 0xff
jne 0x10014820
jmp 0x10014834
push esi
add ecx, 0x58
call fcn.1000cc30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021496
mov esp, ebp
pop ebp
ret 0xc