Function at 0x140083e70
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 [0x140196f88]
mov r9, rcx
mov rax, qword [0x1401e6718]
dec r10d
mov ecx, dword [0x140196f84]
add r10d, eax
mov r8, qword [0x1401d05b8]
shr r10d, cl
add r10d, 2
mov dword [rsp + 0x98], r10d
cmp edx, r10d
jl 0x140083ee8
mov rbx, qword [0x1401d05b0]
xor esi, esi
mov edx, eax
mov rbp, rbx
sub rdx, 0x18
mov eax, esi
shr rdx, 2
test edx, edx
js 0x140083ee8
mov r12d, 0x3eb202fe
cmp dword [rbp], r12d
je 0x140083ef7
inc eax
add rbp, 4
cmp eax, edx
jle 0x140083ed8
mov eax, 0xffffffff
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret
cmp eax, edx
jg 0x140083ee8
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 [0x1401e6718]
shr ecx, 2
mov dword [rbp + 0xc], ecx
mov word [rbp + 8], ax
mov word [rbp + 0xa], 2
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.140136540
movsxd r11, dword [rsp + 0x98]
lea r10d, [r11 - 3]
test r10d, r10d
je 0x140084030
mov r12, qword [rsp + 0xa8]
mov esi, r15d
mov r9d, dword [0x140196f88]
nop dword [rax]
mov rdx, qword [r12]
lea r12, [r12 + 8]
test edi, edi
je 0x140084005
lea ecx, [rdi + 1]
mov eax, edi
imul ecx, r9d
add rax, r13
cmp rdx, rax
jne 0x140083ff9
cmp ecx, 0x10000
jae 0x140083ff9
lea eax, [rsi - 1]
add eax, ecx
xor eax, r15d
test eax, 0xffff0000
jne 0x140083ff9
inc edi
jmp 0x140084010
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 0x140083fc0
mov esi, 0
mov r12d, 0x3eb202fe
test edi, edi
je 0x140084030
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 0x1400840c3
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [r9 + rdx], 0
jne 0x140084080
movzx ecx, word [r10 + 4]
inc edx
cmp ecx, edx
jge 0x1400840b0
lea rcx, str.syslinux_patch:_Subdirectory_path_too_long..._aborting_install_
call fcn.14004f2f0
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.140135ea0
mov r9d, dword [rsp + 0x88]
mov ecx, esi
mov dword [rbp + 0x10], esi
test r9d, r9d
je 0x140084141
cmp r9d, 8
jb 0x140084141
mov eax, r9d
and eax, 0x80000007
jge 0x1400840ec
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 0x140084100
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 0x14008418d
mov eax, r9d
sub eax, ecx
cmp eax, 2
jl 0x140084184
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 0x140084170
cmp r10d, r9d
jge 0x140084187
sub r12d, dword [rbx]
lea eax, [rdx + rsi]
add r12d, eax
mov dword [rbp + 0x10], r12d
lea eax, [r9*4]
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret