Function at 0x10012fe0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040dbb
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
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 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 0x1001303d
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
cmp dword [esi + 0x14], eax
jae 0x1001346f
mov al, byte [edi + 0x10]
test al, al
je 0x1001346f
movq xmm0, qword [esi]
xor al, al
mov ecx, dword [esi + 8]
mov dl, 1
movq qword [ebp - 0xd0], xmm0
movq xmm0, qword [esi + 0xc]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0xdf], al
mov dword [ebp - 0xdc], 0x10000
mov byte [ebp - 0xde], dl
movq qword [ebp - 0xc4], xmm0
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 0
mov ah, byte [edi + 0x10]
mov byte [ebp - 0xe0], ah
cmp dl, 8
jae 0x100131a9
nop word [eax + eax]
movzx ecx, al
cmp byte [ebp + ecx - 0xd9], ah
jae 0x100131a9
lea ecx, [ecx + ecx*2]
lea edx, [ebp - 0xd0]
lea edx, [edx + ecx*8]
mov ecx, dword [edx + 4]
sub ecx, dword [edx]
cmp dword [edx + 8], ecx
jb 0x100130e5
mov ecx, dword [edx + 0x10]
sub ecx, dword [edx + 0xc]
cmp dword [edx + 0x14], ecx
jae 0x100131a3
lea ecx, [eax + 1]
movzx esi, al
push dword [ebp - 0xf0]
and cl, 7
lea edx, [ebp - 0xd0]
mov byte [ebp - 0xdc], cl
movzx ecx, cl
lea eax, [esi + esi*2]
movq xmm0, qword [edx + eax*8]
lea edx, [edx + eax*8]
lea ecx, [ecx + ecx*2]
movq qword [ebp + ecx*8 - 0xd0], xmm0
mov eax, dword [edx + 8]
mov dword [ebp + ecx*8 - 0xc8], eax
movq xmm0, qword [edx + 0xc]
movq qword [ebp + ecx*8 - 0xc4], xmm0
mov eax, dword [edx + 0x14]
mov dword [ebp + ecx*8 - 0xbc], eax
lea ecx, [ebp - 0xd0]
movzx eax, byte [ebp - 0xdc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, edx
push eax
call fcn.1000aec0
inc byte [ebp + esi - 0xd9]
movzx eax, byte [ebp - 0xdc]
mov cl, byte [ebp + esi - 0xd9]
mov byte [ebp + eax - 0xd9], cl
mov dl, byte [ebp - 0xda]
mov al, byte [ebp - 0xdc]
inc dl
mov byte [ebp - 0xde], dl
mov byte [ebp - 0xda], dl
mov byte [ebp - 0xdf], al
cmp dl, 8
jae 0x100131a9
mov ah, byte [ebp - 0xe0]
jmp 0x100130b0
mov dl, byte [ebp - 0xde]
mov ecx, dword [edi + 0xc]
cmp ecx, 2
jne 0x100133e7
mov ecx, dword [edi]
cmp ecx, 1
ja 0x100131ff
test ecx, ecx
je 0x100131ce
cmp byte [edi + 0x10], 0
je 0x100131ce
mov dword [edi], 0
jmp 0x100131ff
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 0x5c]
add eax, 0xc
mov al, byte [eax]
test al, al
mov al, byte [ebp - 0xdc]
je 0x100133f2
mov dl, byte [ebp - 0xda]
inc byte [edi + 0x10]
mov byte [ebp - 0xde], dl
mov byte [ebp - 0xdf], al
cmp dl, 1
jbe 0x100133b5
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 - 0xf4], 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 - 0xf4]
xor edx, edx
push dword [ebp - 0xec]
push 0x10
mov dword [ecx], vtable.tbb::detail::d1::start_for_class_Intel::OpenCL::TaskExecutor::BlockedRangeByColumn2d__struct_TaskLoopBody2D_class_Intel::OpenCL::TaskExecutor::BlockedRangeByColumn2d___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 0x10013391
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x74]
movzx eax, word [eax + ecx*2]
test ax, ax
jne 0x10013369
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_
mov eax, dword [ebp - 0xf0]
add esp, 0xc
mov dl, byte [ebp - 0xde]
inc al
dec dl
and al, 7
mov byte [ebp - 0xdb], al
jmp 0x1001342e
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_
mov eax, dword [ebp - 0xf0]
add esp, 0xc
mov dl, byte [ebp - 0xde]
inc al
dec dl
and al, 7
mov byte [ebp - 0xdb], al
jmp 0x1001342e
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__
mov eax, dword [ebp - 0xf0]
add esp, 8
mov dl, byte [ebp - 0xde]
inc al
dec dl
and al, 7
mov byte [ebp - 0xdb], al
jmp 0x1001342e
movzx esi, al
mov cl, byte [ebp + esi - 0xd9]
cmp cl, byte [edi + 0x10]
jae 0x100133f2
lea ecx, [esi + esi*2]
lea esi, [ebp - 0xd0]
lea esi, [esi + ecx*8]
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
cmp dword [esi + 8], ecx
jb 0x1001343a
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
cmp dword [esi + 0x14], ecx
jb 0x1001343a
jmp 0x100133f2
test ecx, ecx
jne 0x100133f2
mov dword [edi + 0xc], 2
movzx eax, al
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.1000d930
mov al, byte [ebp - 0xdc]
mov dl, byte [ebp - 0xda]
dec al
dec dl
and al, 7
mov byte [ebp - 0xdf], al
mov byte [ebp - 0xdc], al
mov byte [ebp - 0xda], dl
mov byte [ebp - 0xde], dl
test dl, dl
je 0x10013478
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 dl, byte [ebp - 0xde]
add esp, 4
test al, al
mov al, byte [ebp - 0xdf]
je 0x10013094
mov cl, dl
dec al
and al, 7
add cl, 0xff
jne 0x10013464
jmp 0x10013478
push esi
add ecx, 0x58
call fcn.1000d930
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