Function at 0x1400a0680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r12, qword [rcx + 0x10]
test r12, r12
jne 0x1400a06cf
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x1400a06be
call fcn.1401363f0
int3
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdi, rcx
lea rsi, [rcx + 0x28]
cmp r12, rsi
jne 0x1400a09ad
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
cmp dword [rdi + 0x54], 0
jg 0x1400a0713
cmp qword [rdi + 0x48], 2
je 0x1400a09d7
mov qword [rdi + 0x10], 0
lea rax, [rdi + 0x38]
mov qword [rdi + 8], rax
mov dword [rdi + 0x18], 0
jmp 0x1400a06a7
test r8d, r8d
sets al
cmp edx, 0x10
setge cl
or cl, al
jne case.default.0x1400a08ac
movsxd r9, edx
add r9, 0x28
lea rax, [0x1402172f4]
jmp 0x1400a086c
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x28]
mov qword [rbx], rax
lea r14, [rdi + 0x18]
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rdx, rbx
mov r8, r14
call qword [0x14021e390]
test al, al
je 0x1400a07a3
movsxd r15, dword [rdi + 0x18]
sub dword [rdi + 0x54], r15d
cmp r15, 0x11
jge 0x1400a07af
test r15d, r15d
jle 0x1400a074c
lea rcx, [rdi + 0x38]
mov rdx, qword [rsp + 0x28]
mov r8, r15
call fcn.14016a030
mov qword [rdi + 0x10], rsi
add r15, rsi
mov qword [rdi + 8], r15
cmp qword [rdi + 0x48], 2
jb 0x1400a06a7
jmp 0x1400a07d2
mov dword [rdi + 0x54], 0
jmp 0x1400a06ef
lea rax, [rdi + 0x38]
mov rcx, qword [rsp + 0x28]
movups xmm0, xmmword [rcx]
movups xmmword [rdi + 0x38], xmm0
mov qword [rdi + 0x10], rcx
mov qword [rdi + 8], rax
cmp qword [rdi + 0x48], 1
jbe 0x1400a06a7
add rdi, 0x48
mov qword [rdi], 1
jmp 0x1400a06a7
movzx ecx, byte [rdi + r9 + 4]
test cl, cl
js case.default.0x1400a08ac
add r9, 4
shl ecx, 0x1c
add edx, ecx
add edx, 0xf0000000
jmp 0x1400a0853
movzx r10d, byte [rdi + r9 + 1]
mov ecx, r10d
shl ecx, 7
add edx, ecx
add edx, 0xffffff80
lea rcx, [r9 + 2]
test r10b, r10b
jns 0x1400a087b
movzx r10d, byte [rdi + rcx]
mov r11d, r10d
shl r11d, 0xe
add edx, r11d
add edx, 0xffffc000
test r10b, r10b
jns 0x1400a0856
movzx ecx, byte [rdi + r9 + 3]
mov r10d, ecx
shl r10d, 0x15
add edx, r10d
add edx, 0xffe00000
test cl, cl
js 0x1400a07e2
add r9, 3
mov rcx, r9
inc rcx
jmp 0x1400a087b
add rcx, 4
mov r9, rcx
cmp rcx, 0x38
jge case.default.0x1400a08ac
movzx edx, byte [rdi + r9]
test dl, dl
js 0x1400a0801
inc r9
mov rcx, r9
cmp rcx, 0x38
jg case.default.0x1400a08ac
mov r9, rdi
add r9, rcx
je case.default.0x1400a08ac
test edx, edx
je 0x1400a06ef
and edx, 7
cmp edx, 5
ja case.default.0x1400a08ac
movsxd rdx, dword [rax + rdx*4]
add rdx, rax
jmp rdx
add rcx, 8
jmp 0x1400a085f
inc r8d
jmp 0x1400a085f
test r8d, r8d
jle 0x1400a06ef
dec r8d
jmp 0x1400a085f
cmp byte [r9], 0
js 0x1400a08e3
inc rcx
mov rdx, rcx
mov r9, rdi
mov rcx, rdx
add r9, rdx
jne 0x1400a085f
jmp case.default.0x1400a08ac
lea rdx, [rcx + 2]
cmp byte [r9 + 1], 0
jns 0x1400a08d3
cmp byte [rdi + rdx], 0
jns 0x1400a0906
cmp byte [rdi + rcx + 3], 0
js 0x1400a099d
add rcx, 3
mov rdx, rcx
inc rdx
jmp 0x1400a08d3
movzx edx, byte [r9]
lea r10, [rcx + 1]
test dl, dl
jns 0x1400a0951
movzx r11d, byte [rdi + r10]
mov ebx, r11d
shl ebx, 7
add edx, ebx
add edx, 0xffffff80
test r11b, r11b
jns 0x1400a094e
movzx r10d, byte [rdi + rcx + 2]
mov r11d, r10d
shl r11d, 0xe
add edx, r11d
add edx, 0xffffc000
test r10b, r10b
js 0x1400a097c
add rcx, 2
mov r10, rcx
inc r10
mov rcx, rdi
add rcx, r10
je case.default.0x1400a08ac
movsxd rcx, edx
mov edx, 0x38
sub rdx, r10
cmp rdx, rcx
jl case.default.0x1400a08ac
add r10, rcx
mov rcx, r10
jmp 0x1400a085f
movzx r10d, byte [rdi + rcx + 3]
mov r11d, r10d
shl r11d, 0x15
add edx, r11d
add edx, 0xffe00000
test r10b, r10b
js 0x1400a09e7
add rcx, 3
jmp 0x1400a094b
cmp byte [rdi + rcx + 4], 0
js 0x1400a0a1b
add rcx, 4
jmp 0x1400a0903
movsxd rax, dword [rdi + 0x18]
add rax, r12
add rax, 0xfffffffffffffff0
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x48], 1
jne 0x1400a09cf
mov qword [rdi + 0x48], 2
mov rsi, r12
jmp 0x1400a06a7
mov rax, qword [rdi + 8]
sub rax, r12
mov qword [rdi + 0x48], rax
jmp 0x1400a06fa
movzx r9d, byte [r9 + 4]
cmp r9d, 7
ja case.default.0x1400a08ac
shl r9d, 0x1c
add edx, r9d
add edx, 0xf0000000
cmp edx, 0x7fffffef
ja case.default.0x1400a08ac
add rcx, 5
mov r10, rcx
jmp 0x1400a0951
cmp byte [rdi + rcx + 5], 0
js 0x1400a0a2b
add rcx, 5
jmp 0x1400a0903
cmp byte [rdi + rcx + 6], 0
js 0x1400a0a3b
add rcx, 6
jmp 0x1400a0903
cmp byte [rdi + rcx + 7], 0
js 0x1400a0a4b
add rcx, 7
jmp 0x1400a0903
cmp byte [rdi + rcx + 8], 0
js 0x1400a0a5b
add rcx, 8
jmp 0x1400a0903
cmp byte [rdi + rcx + 9], 0
js case.default.0x1400a08ac
add rcx, 9
jmp 0x1400a0903