Function at 0x140125730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, rcx
movzx eax, byte [r9]
test r8b, 1
jne 0x1401257ee
test al, al
je 0x1401257f6
mov rax, qword [rdx]
mov r8, qword [rdx + 0x10]
mov r9, qword [rdx + 0x18]
movabs rcx, 0x7ffffffffffffff
and rcx, qword [rdx + 8]
mov rdx, rax
cmp r8, r9
je 0x1401259e7
mov rdx, rax
jmp 0x1401257ad
add r8, 0x20
cmp r8, r9
je 0x1401259e7
movzx r10d, word [r8]
cmp r10w, 2
je 0x1401259e7
movups xmm0, xmmword [r8 + 2]
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rbp - 0x42], xmm1
movaps xmmword [rbp - 0x50], xmm0
test r10w, r10w
je 0x1401257a0
mov word [rdx], r10w
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rdx + 2], xmm0
movups xmm0, xmmword [rbp - 0x42]
movups xmmword [rdx + 0x10], xmm0
add rdx, 0x20
jmp 0x1401257a0
test al, al
je 0x140125974
mov r14, qword [rdx + 0x10]
mov r15, qword [rdx + 0x18]
xor r12d, r12d
test r14, r14
je 0x14012580f
cmp r15, r14
je 0x14012580f
movzx r12d, byte [r14]
mov rax, qword [rdx]
mov qword [rbp - 0x58], rax
mov rax, qword [rdx + 8]
mov qword [rbp - 0x28], rax
mov qword [rbp - 8], 0
mov qword [rbp], 4
mov qword [rbp + 8], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 4
mov qword [rbp - 0x10], 0
cmp r15, r14
je 0x14012592d
lea rbx, [rbp - 0x18]
lea r13, [rbp - 0x10]
jmp 0x1401258a3
mov rcx, rbx
mov rax, r13
mov rcx, qword [rcx]
shl rdx, 5
mov word [rcx + rdx], di
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rcx + rdx + 2], xmm0
movups xmm0, xmmword [rbp - 0x42]
movups xmmword [rcx + rdx + 0x10], xmm0
inc qword [rax]
add r14, 0x20
cmp r14, r15
je 0x14012592d
movzx edi, word [r14]
cmp di, 2
je 0x14012592d
test r12b, r12b
setne al
movups xmm0, xmmword [r14 + 2]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbp - 0x42], xmm1
movaps xmmword [rbp - 0x50], xmm0
test di, di
sete cl
xor cl, al
je 0x1401258f0
mov rdx, qword [rbp + 8]
cmp rdx, qword [rbp - 8]
jne 0x140125920
lea rcx, [rbp - 8]
call fcn.140137af0
lea rax, [rbp + 8]
lea rcx, [rbp]
jmp 0x14012590d
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 0x20]
jne 0x140125870
lea rcx, [rbp - 0x20]
call fcn.140137af0
mov rax, r13
mov rcx, rbx
mov rdx, qword [rax]
jmp 0x140125876
lea rcx, [rbp]
lea rax, [rbp + 8]
jmp 0x140125876
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140125949
shl rdx, 5
mov r8d, 4
mov rcx, qword [rbp - 0x58]
call fcn.14000e9a0
mov rcx, qword [rbp - 8]
mov rax, qword [rbp]
mov rdx, qword [rbp + 8]
mov r9, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov r10, qword [rbp - 0x10]
shl rdx, 5
add rdx, rax
shl r10, 5
add r10, r8
jmp 0x1401259f6
mov rax, qword [rdx]
mov r8, qword [rdx + 0x10]
mov r9, qword [rdx + 0x18]
movabs rcx, 0x7ffffffffffffff
and rcx, qword [rdx + 8]
mov rdx, rax
cmp r8, r9
je 0x1401259e7
mov rdx, rax
jmp 0x1401259a9
add r8, 0x20
cmp r8, r9
je 0x1401259e7
movzx r10d, word [r8]
cmp r10w, 2
je 0x1401259e7
movups xmm0, xmmword [r8 + 2]
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rbp - 0x42], xmm1
movaps xmmword [rbp - 0x50], xmm0
test r10w, r10w
jne 0x1401259a0
mov word [rdx], 0
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rdx + 2], xmm0
movups xmm0, xmmword [rbp - 0x42]
movups xmmword [rdx + 0x10], xmm0
add rdx, 0x20
jmp 0x1401259a0
mov r8d, 4
xor r9d, r9d
mov r10d, 4
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], r8
mov qword [rsi + 0x28], r9
mov qword [rsi + 0x30], r8
mov qword [rsi + 0x38], r10
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret