Function at 0x140068780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov r12d, r14d
mov r15, rdx
mov rbx, rcx
movabs r13, 0x47ae147ae147ae15
nop word [rax + rax]
mov edx, 0x20
mov rcx, rdi
call fcn.1400098d0
imul rax, qword [rbx + 0x18]
mov rbp, qword [rbx + 0x38]
mov r10, qword [rbx + 0x28]
mov rcx, rax
mov esi, dword [rbx + 0x48]
shr rcx, 0x21
xor rax, rcx
mov ecx, dword [rbx + 0x4c]
mov r8, rax
shr rax, 5
and r8d, 0x1f
and rax, rbp
shr r8, cl
add r8d, esi
movzx ecx, byte [r10 + rax]
cmp r8d, ecx
jae 0x140068821
nop dword [rax + rax]
movzx ecx, byte [r10 + rax + 1]
inc rax
add r8d, esi
cmp r8d, ecx
jb 0x140068810
movzx ecx, byte [r10 + rax]
cmp r8d, ecx
jne 0x140068875
mov rcx, qword [rbx + 0x20]
mov r11, qword [rdi]
lea r9, [rcx + rax*8]
mov rdx, qword [r9]
cmp r11, qword [rdx]
jne 0x140068860
mov rcx, qword [rdx + 8]
cmp qword [rdi + 8], rcx
jne 0x140068860
mov rcx, qword [rdx + 0x10]
cmp qword [rdi + 0x10], rcx
jne 0x140068860
mov rcx, qword [rdx + 0x18]
cmp qword [rdi + 0x18], rcx
je 0x140068983
movzx ecx, byte [r10 + rax + 1]
inc rax
add r9, 8
add r8d, esi
cmp r8d, ecx
je 0x140068836
mov r9, qword [rbx + 0x30]
cmp r9, qword [rbx + 0x40]
jb 0x140068993
test rbp, rbp
jne 0x140068898
lea edx, [rbp + 8]
mov rcx, rbx
call fcn.1400140a0
jmp 0x14006896b
lea rcx, [rbp + 1]
movabs r11, 0x28f5c28f5c28f5c
mov rax, r13
cmp rcx, r11
ja 0x1400688c8
lea rcx, [rcx + rcx*4]
shl rcx, 4
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 6
jmp 0x1400688e0
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 6
lea rcx, [rcx + rcx*4]
shl rcx, 4
cmp r9, rcx
jae 0x1400688f1
mov rcx, rbx
call fcn.1400141c0
test al, al
jne 0x14006896b
mov r8, qword [rbx + 0x38]
mov rax, r13
lea r9, [r8 + 1]
cmp r9, r11
ja 0x14006891b
lea rcx, [r9 + r9*4]
shl rcx, 4
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 6
jmp 0x140068936
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
lea rcx, [rax + rax*4]
shl rcx, 4
mov rax, qword [rbx + 0x30]
add rax, rax
cmp rax, rcx
jae 0x140068955
movabs rax, 0xc4ceb9fe1a85ec54
mov r8b, 1
add qword [rbx + 0x18], rax
jmp 0x140068960
lea r9, [r8*2 + 2]
xor r8b, r8b
mov rdx, r9
mov rcx, rbx
call fcn.140069620
inc r12d
cmp r12d, 0x100
jl 0x1400687c0
mov qword [r15], r14
jmp 0x140068a47
mov qword [r15], rax
mov dword [r15 + 8], 1
jmp 0x140068a4b
lea ecx, [rsi + r8]
mov r11, rax
cmp ecx, 0xff
jbe 0x1400689a6
mov qword [rbx + 0x40], r14
cmp byte [r10 + rax], r14b
je 0x140068a2d
mov r9, rax
inc rax
cmp byte [r10 + rax], r14b
jne 0x1400689b0
cmp rax, r11
je 0x140068a2d
mov rcx, qword [rbx + 0x20]
lea rdx, [rcx + rax*8]
mov rcx, qword [rcx + rax*8 - 8]
mov qword [rdx], rcx
cmp r9, r11
je 0x1400689f7
nop word [rax + rax]
mov rcx, qword [rbx + 0x20]
lea rdx, [rcx + r9*8]
dec r9
mov rcx, qword [rdx - 8]
mov qword [rdx], rcx
cmp r9, r11
jne 0x1400689e0
mov r9, qword [rbx + 0x28]
mov rdx, rax
nop
movzx ecx, byte [r9 + rdx - 1]
add cl, byte [rbx + 0x48]
mov byte [r9 + rdx], cl
mov r9, qword [rbx + 0x28]
movzx ecx, byte [r9 + rdx]
add ecx, dword [rbx + 0x48]
cmp ecx, 0xff
jbe 0x140068a25
mov qword [rbx + 0x40], r14
dec rdx
cmp rdx, r11
jne 0x140068a00
mov rcx, qword [rbx + 0x28]
mov qword [r15], r11
mov byte [r11 + rcx], r8b
inc qword [rbx + 0x30]
cmp rax, r11
setne r14b
add r14d, 2
mov dword [r15 + 8], r14d
mov rbx, qword [rsp + 0x50]
mov rax, r15
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret