Function at 0x1400064a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140100028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp byte [rdx + 0x71], 0
jne 0x1400067f2
mov rbp, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
cmp rbp, rcx
jae 0x1400067fb
mov rax, qword [rbx]
mov qword [rbp], rax
xor eax, eax
mov qword [rbx], rax
movups xmm0, xmmword [rbx + 8]
movups xmm1, xmmword [rbx + 0x18]
movups xmmword [rbp + 0x18], xmm1
movups xmmword [rbp + 8], xmm0
lea rdi, [rbp + 0x28]
lea rsi, [rbx + 0x28]
mov ecx, 8
rep movsq qword [rdi], qword [rsi]
mov cl, byte [rbx + 0x6c]
mov byte [rbp + 0x6c], cl
mov ecx, dword [rbx + 0x68]
mov dword [rbp + 0x68], ecx
mov cl, byte [rbx + 0x72]
mov byte [rbp + 0x72], cl
movzx ecx, word [rbx + 0x70]
mov word [rbp + 0x70], cx
mov rcx, qword [rbx + 0x78]
mov qword [rbp + 0x78], rcx
mov qword [rbx + 0x78], rax
mov rax, qword [rbx + 0x80]
mov qword [rbp + 0x80], rax
add rbp, 0x88
mov qword [r14 + 8], rbp
mov r13, qword [r14]
mov rbp, qword [r14 + 8]
mov rax, rbp
sub rax, r13
cmp rax, 0x89
jl 0x14000659e
movabs rcx, 0xf0f0f0f0f0f0f0f1
mul rcx
mov rbx, rdx
shr rbx, 7
add rbx, 0xfffffffffffffffe
shr rbx, 1
lea r15, [rbp - 0x88]
mov rcx, qword [rbp - 0x58]
mov rax, rbx
shl rax, 7
lea rax, [rax + rbx*8]
cmp qword [r13 + rax + 0x30], rcx
jge 0x1400065c3
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140069890
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jle 0x140006a12
lea rsi, [rsp + 0x28]
mov r8d, 0x88
mov rcx, rsi
mov dl, 0xaa
call fcn.14006bec0
mov r8, rsi
mov rax, qword [rbp - 0x88]
mov qword [rsi], rax
xor eax, eax
mov qword [rbp - 0x88], rax
movups xmm0, xmmword [rbp - 0x80]
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
lea r9, [rsp + 0x50]
lea rsi, [rbp - 0x60]
mov ecx, 8
mov rdi, r9
rep movsq qword [rdi], qword [rsi]
mov cl, byte [rbp - 0x1c]
mov byte [r9 + 0x44], cl
mov ecx, dword [rbp - 0x20]
mov dword [r9 + 0x40], ecx
mov cl, byte [rbp - 0x16]
mov byte [r9 + 0x4a], cl
movzx ecx, word [rbp - 0x18]
mov word [r9 + 0x48], cx
mov rcx, qword [rbp - 0x10]
mov qword [r9 + 0x50], rcx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov qword [r9 + 0x58], rax
mov rax, rbx
shl rax, 7
lea r14, [rax + rbx*8]
mov rax, qword [r13 + r14]
mov qword [r13 + r14], 0
mov rcx, qword [r15]
mov qword [r15], rax
test rcx, rcx
jne 0x1400069d8
lea r12, [r14 + r13]
add r12, 0x28
movups xmm0, xmmword [r12 - 0x20]
movups xmm1, xmmword [r12 - 0x10]
movups xmmword [r15 + 0x18], xmm1
movups xmmword [r15 + 8], xmm0
lea rdi, [r15 + 0x28]
mov ecx, 8
mov rsi, r12
rep movsq qword [rdi], qword [rsi]
mov al, byte [r12 + 0x44]
mov byte [r15 + 0x6c], al
mov eax, dword [r12 + 0x40]
mov dword [r15 + 0x68], eax
movzx eax, word [r12 + 0x48]
mov word [r15 + 0x70], ax
mov al, byte [r12 + 0x4a]
mov byte [r15 + 0x72], al
mov rax, qword [r12 + 0x50]
mov qword [r12 + 0x50], 0
mov rcx, qword [r15 + 0x78]
mov qword [r15 + 0x78], rax
test rcx, rcx
jne 0x140006a25
lea rax, [r14 + r13]
mov rcx, qword [r13 + r14 + 0x80]
mov qword [r15 + 0x80], rcx
test rbx, rbx
je 0x140006742
lea rcx, [rbx - 1]
shr rcx, 0x3f
add rbx, rcx
dec rbx
sar rbx, 1
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
shl rcx, 7
lea rcx, [rcx + rbx*8]
cmp qword [r13 + rcx + 0x30], rdx
jl 0x140006742
mov r15, rax
jg 0x14000664a
mov ecx, dword [r13 + rcx + 0x68]
mov r15, rax
cmp ecx, dword [rsp + 0x90]
jg 0x14000664a
lea rbp, [r14 + r13]
add rbp, 8
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rax], rdx
test rcx, rcx
jne 0x1400069f5
lea rbx, [r14 + r13]
add rbx, 0x80
movups xmm0, xmmword [r8 + 8]
movups xmm1, xmmword [r8 + 0x18]
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp], xmm0
mov ecx, 8
mov rdi, r12
mov rsi, r9
rep movsq qword [rdi], qword [rsi]
mov al, byte [r9 + 0x44]
mov byte [r12 + 0x44], al
mov eax, dword [r9 + 0x40]
mov dword [r12 + 0x40], eax
movzx eax, word [r8 + 0x70]
mov word [rbp + 0x68], ax
mov al, byte [r8 + 0x72]
mov byte [rbp + 0x6a], al
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
mov rcx, qword [rbp + 0x70]
mov qword [rbp + 0x70], rax
test rcx, rcx
jne 0x140006a4d
lea rcx, [rsp + 0x28]
mov rax, qword [rcx + 0x80]
mov qword [rbx], rax
int3
inc dword [r14 + 0x20]
jmp 0x1400064d5
movabs rax, 0x1e1e1e1e1e1e1e1
mov rdx, qword [r14]
sub rbp, rdx
sar rbp, 3
movabs rsi, 0xf0f0f0f0f0f0f0f1
imul rbp, rsi
lea rdi, [rbp + 1]
cmp rdi, rax
ja 0x140006a69
sub rcx, rdx
sar rcx, 3
imul rcx, rsi
lea rsi, [rcx + rcx]
cmp rsi, rdi
cmovb rsi, rdi
movabs rdx, 0xf0f0f0f0f0f0f0
cmp rcx, rdx
cmovae rsi, rax
test rsi, rsi
je 0x140006a71
cmp rsi, rax
ja 0x140006a78
mov rax, rsi
shl rax, 7
lea rcx, [rax + rsi*8]
int3
mov rcx, rbp
shl rcx, 7
lea r9, [rcx + rbp*8]
lea rbp, [rax + r9]
mov rcx, rsi
shl rcx, 7
lea r8, [rcx + rsi*8]
add r8, rax
mov rcx, qword [rbx]
lea rdx, [rax + r9]
add rdx, 0x28
mov qword [rdx - 0x28], rcx
xor r10d, r10d
mov qword [rbx], r10
movups xmm0, xmmword [rbx + 8]
movups xmm1, xmmword [rbx + 0x18]
movups xmmword [rdx - 0x10], xmm1
movups xmmword [rdx - 0x20], xmm0
lea rsi, [rbx + 0x28]
mov ecx, 8
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
mov cl, byte [rbx + 0x6c]
mov byte [rdx + 0x44], cl
mov ecx, dword [rbx + 0x68]
mov dword [rdx + 0x40], ecx
mov cl, byte [rbx + 0x72]
mov byte [rdx + 0x4a], cl
movzx ecx, word [rbx + 0x70]
mov word [rdx + 0x48], cx
mov rcx, qword [rbx + 0x78]
mov qword [rdx + 0x50], rcx
mov qword [rbx + 0x78], r10
mov rcx, qword [rbx + 0x80]
mov qword [rdx + 0x58], rcx
add r9, rax
add r9, 0x88
mov rdx, qword [r14]
mov rbx, qword [r14 + 8]
cmp rbx, rdx
je 0x1400069cb
mov r10, 0xffffffffffffff78
xor eax, eax
mov rcx, qword [rbx - 0x88]
mov qword [rbp - 0x88], rcx
mov qword [rbx - 0x88], rax
movups xmm0, xmmword [rbx - 0x80]
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x80], xmm0
lea rdi, [rbp - 0x60]
lea rsi, [rbx - 0x60]
mov ecx, 8
rep movsq qword [rdi], qword [rsi]
mov cl, byte [rbx - 0x1c]
mov byte [rbp - 0x1c], cl
mov ecx, dword [rbx - 0x20]
mov dword [rbp - 0x20], ecx
mov cl, byte [rbx - 0x16]
mov byte [rbp - 0x16], cl
movzx ecx, word [rbx - 0x18]
mov word [rbp - 0x18], cx
mov rcx, qword [rbx - 0x10]
mov qword [rbp - 0x10], rcx
mov qword [rbx - 0x10], rax
mov rcx, qword [rbx - 8]
lea rdi, [rbx + r10]
mov qword [rbp - 8], rcx
add rbp, r10
mov rbx, rdi
cmp rdx, rdi
jne 0x140006918
mov rbx, qword [r14]
mov rsi, qword [r14 + 8]
mov qword [r14], rbp
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], r8
cmp rsi, rbx
je 0x1400069b5
add rsi, 0xffffffffffffff78
mov rcx, rsi
int3
test rbx, rbx
je 0x140006551
mov rcx, rbx
call fcn.1400672f8
jmp 0x140006551
mov qword [r14], rbp
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], r8
jmp 0x1400069b5
lock dec dword [rcx]
jne 0x140006672
mov rsi, r8
mov rdi, r9
call qword [rcx + 0x10]
mov r9, rdi
mov r8, rsi
jmp 0x140006672
lock dec dword [rcx]
jne 0x140006767
mov rsi, r8
mov rdi, r9
call qword [rcx + 0x10]
mov r9, rdi
mov r8, rsi
jmp 0x140006767
mov eax, dword [r13 + rax + 0x68]
cmp eax, dword [rbp - 0x20]
jg 0x1400065c9
jmp 0x14000659e
lock dec dword [rcx + 8]
jne 0x1400066e4
add rcx, 8
add rcx, 0xfffffffffffffff8
mov rsi, r8
mov rdi, r9
int3
lock dec dword [rcx + 8]
jne 0x1400067d9
add rcx, 8
add rcx, 0xfffffffffffffff8
int3
mov rcx, r14
int3
xor eax, eax
jmp 0x140006873
int3