Function at 0x14006b820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push r12
sub rsp, 0x58
mov r10d, dword [0x140109f10]
mov r9, rcx
mov rax, qword [0x140158bd8]
dec r10d
mov ecx, dword [0x140109f0c]
add r10d, eax
mov r8, qword [0x140142a98]
shr r10d, cl
add r10d, 2
mov dword [rsp + 0x98], r10d
cmp edx, r10d
jl 0x14006b898
mov rbx, qword [0x140142a90]
xor esi, esi
mov edx, eax
mov rbp, rbx
sub rdx, 0x18
mov eax, esi
shr rdx, 2
test edx, edx
js 0x14006b898
mov r12d, 0x3eb202fe
cmp dword [rbp], r12d
je 0x14006b8a7
inc eax
add rbp, 4
cmp eax, edx
jle 0x14006b888
mov eax, 0xffffffff
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret
cmp eax, edx
jg 0x14006b898
mov eax, dword [r9]
movzx edx, word [rbp + 0x16]
add rdx, rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r13
mov edi, esi
mov qword [rsp + 0x40], r14
mov r13, rsi
mov qword [rsp + 0x20], rdx
movzx ecx, word [rdx + 0xe]
mov qword [rsp + 0x38], r15
mov r15d, 0x8000
mov dword [rcx + r8], eax
movzx eax, word [rdx + 0x10]
mov rcx, qword [r9]
add r9, 8
shr rcx, 0x20
mov qword [rsp + 0x80], r9
mov dword [rax + r8], ecx
lea eax, [r10 - 2]
mov ecx, dword [0x140158bd8]
mov word [rbp + 8], ax
mov eax, 2
shr ecx, 2
mov dword [rbp + 0xc], ecx
mov word [rbp + 0xa], ax
movzx eax, word [rdx + 0xc]
movzx r14d, word [rdx + 0xa]
xor edx, edx
mov dword [rsp + 0x88], ecx
add r14, rbx
mov rcx, r14
mov qword [rsp + 0xa8], r9
lea r8, [rax + rax*4]
add r8, r8
call fcn.140093c00
movsxd r11, dword [rsp + 0x98]
lea r10d, [r11 - 3]
test r10d, r10d
je 0x14006b9de
mov r12, qword [rsp + 0xa8]
mov esi, r15d
mov r9d, dword [0x140109f10]
nop dword [rax]
mov rdx, qword [r12]
lea r12, [r12 + 8]
test edi, edi
je 0x14006b9b5
lea ecx, [rdi + 1]
mov eax, edi
imul ecx, r9d
add rax, r13
cmp rdx, rax
jne 0x14006b9a9
cmp ecx, 0x10000
jae 0x14006b9a9
lea eax, [rsi - 1]
add eax, ecx
xor eax, r15d
test eax, 0xffff0000
jne 0x14006b9a9
inc edi
jmp 0x14006b9c0
mov qword [r14], r13
mov word [r14 + 8], di
add r14, 0xa
mov esi, r15d
mov r13, rdx
mov edi, 1
add r15d, r9d
sub r10d, 1
jne 0x14006b970
mov esi, r10d
mov r12d, 0x3eb202fe
test edi, edi
je 0x14006b9de
mov qword [r14], r13
mov word [r14 + 8], di
mov r8, qword [rsp + 0x80]
mov r10, qword [rsp + 0x20]
mov r9, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x38]
mov rax, qword [r8 + r11*8 - 0x18]
movzx edx, word [r10]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov qword [rdx + rbx], rax
mov rax, qword [r8 + r11*8 - 0x10]
mov qword [rdx + rbx + 8], rax
test r9, r9
je 0x14006ba73
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [r9 + rdx], 0
jne 0x14006ba30
movzx ecx, word [r10 + 4]
inc edx
cmp ecx, edx
jge 0x14006ba60
lea rcx, str.syslinux_patch:_Subdirectory_path_too_long..._aborting_install_
call fcn.140041aa0
mov eax, 0xffffffff
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret
movzx ecx, word [r10 + 2]
movsxd r8, edx
add rcx, rbx
mov rdx, r9
call fcn.140093550
mov r9d, dword [rsp + 0x88]
mov ecx, esi
mov dword [rbp + 0x10], esi
test r9d, r9d
je 0x14006baf1
cmp r9d, 8
jb 0x14006baf1
mov eax, r9d
and eax, 0x80000007
jge 0x14006ba9c
dec eax
or eax, 0xfffffff8
inc eax
mov edx, r9d
xorps xmm1, xmm1
sub edx, eax
xorps xmm2, xmm2
nop word [rax + rax]
movdqu xmm0, xmmword [rbx]
add ecx, 8
psubd xmm1, xmm0
movdqu xmm0, xmmword [rbx + 0x10]
add rbx, 0x20
psubd xmm2, xmm0
cmp ecx, edx
jl 0x14006bab0
paddd xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add r12d, eax
mov edx, esi
cmp ecx, r9d
jge 0x14006bb3d
mov eax, r9d
sub eax, ecx
cmp eax, 2
jl 0x14006bb34
mov eax, r9d
sub eax, ecx
sub eax, 2
shr eax, 1
inc eax
mov r8d, eax
lea r10d, [rcx + rax*2]
nop word [rax + rax]
sub esi, dword [rbx]
sub edx, dword [rbx + 4]
add rbx, 8
sub r8, 1
jne 0x14006bb20
cmp r10d, r9d
jge 0x14006bb37
sub r12d, dword [rbx]
lea eax, [rsi + rdx]
add r12d, eax
mov dword [rbp + 0x10], r12d
lea eax, [r9*4]
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret