Function at 0x1400f1f40
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, 0x88
movdqa xmmword [rsp + 0x70], xmm8
movdqa xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm6
mov rbx, r9
mov rax, qword [rdx]
mov r12, qword [rdx + 8]
mov r13, r12
and r13, r8
shr r8, 0x39
movd xmm0, r8d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm6, xmm0, 0
mov qword [rsp + 0x38], rax
lea rbp, [rax - 0x10]
movzx edi, word [r9 + 0x54]
movzx r8d, word [r9 + 0x50]
movzx eax, word [r9 + 0x52]
mov word [rsp + 0x2e], ax
cmp di, 0x23
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
jne 0x1400f208f
movzx edi, word [rbx + 0x56]
cmp r8w, 5
jne 0x1400f2147
pcmpeqd xmm7, xmm7
xor eax, eax
nop word cs:[rax + rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movdqu xmm8, xmmword [rax + r13]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb r15d, xmm0
test r15d, r15d
jne 0x1400f203d
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400f2311
add r13, rax
add r13, 0x10
add rax, 0x10
and r13, r12
jmp 0x1400f1fe0
lea eax, [r15 - 1]
and ax, r15w
mov r15d, eax
je 0x1400f2003
tzcnt esi, r15d
add rsi, r13
and rsi, r12
mov rax, rsi
shl rax, 4
mov rcx, rbp
sub rcx, rax
mov r14, qword [rcx]
mov rcx, rbx
mov rdx, r14
call fcn.140112b00
test al, al
je 0x1400f2030
cmp word [r14 + 0x54], 0x23
jne 0x1400f2030
cmp di, word [r14 + 0x56]
jne 0x1400f2030
cmp word [r14 + 0x50], 5
jne 0x1400f2030
movzx eax, word [rsp + 0x2e]
cmp ax, word [r14 + 0x52]
jne 0x1400f2030
jmp 0x1400f22ba
cmp r8w, 5
jne 0x1400f2207
pcmpeqd xmm7, xmm7
xor eax, eax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movdqu xmm8, xmmword [rax + r13]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb r15d, xmm0
test r15d, r15d
jne 0x1400f20fd
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400f2311
add r13, rax
add r13, 0x10
add rax, 0x10
and r13, r12
jmp 0x1400f20a0
lea eax, [r15 - 1]
and ax, r15w
mov r15d, eax
je 0x1400f20c3
tzcnt esi, r15d
add rsi, r13
and rsi, r12
mov rax, rsi
shl rax, 4
mov rcx, rbp
sub rcx, rax
mov r14, qword [rcx]
mov rcx, rbx
mov rdx, r14
call fcn.140112b00
test al, al
je 0x1400f20f0
cmp di, word [r14 + 0x54]
jne 0x1400f20f0
cmp word [r14 + 0x50], 5
jne 0x1400f20f0
movzx eax, word [rsp + 0x2e]
cmp ax, word [r14 + 0x52]
jne 0x1400f20f0
jmp 0x1400f22ba
mov word [rsp + 0x2e], r8w
pcmpeqd xmm7, xmm7
xor eax, eax
nop word cs:[rax + rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movdqu xmm8, xmmword [rax + r13]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb r15d, xmm0
test r15d, r15d
jne 0x1400f21bd
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400f2311
add r13, rax
add r13, 0x10
add rax, 0x10
and r13, r12
jmp 0x1400f2160
lea eax, [r15 - 1]
and ax, r15w
mov r15d, eax
je 0x1400f2183
tzcnt esi, r15d
add rsi, r13
and rsi, r12
mov rax, rsi
shl rax, 4
mov rcx, rbp
sub rcx, rax
mov r14, qword [rcx]
mov rcx, rbx
mov rdx, r14
call fcn.140112b00
test al, al
je 0x1400f21b0
cmp word [r14 + 0x54], 0x23
jne 0x1400f21b0
cmp di, word [r14 + 0x56]
jne 0x1400f21b0
movzx eax, word [rsp + 0x2e]
cmp ax, word [r14 + 0x50]
jne 0x1400f21b0
jmp 0x1400f22ba
mov word [rsp + 0x2e], r8w
pcmpeqd xmm7, xmm7
xor eax, eax
nop word cs:[rax + rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movdqu xmm8, xmmword [rax + r13]
movdqa xmm0, xmm8
pcmpeqb xmm0, xmm6
pmovmskb r15d, xmm0
test r15d, r15d
jne 0x1400f227d
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400f2311
add r13, rax
add r13, 0x10
add rax, 0x10
and r13, r12
jmp 0x1400f2220
lea eax, [r15 - 1]
and ax, r15w
mov r15d, eax
je 0x1400f2243
tzcnt esi, r15d
add rsi, r13
and rsi, r12
mov rax, rsi
shl rax, 4
mov rcx, rbp
sub rcx, rax
mov r14, qword [rcx]
mov rcx, rbx
mov rdx, r14
call fcn.140112b00
test al, al
je 0x1400f2270
cmp di, word [r14 + 0x54]
jne 0x1400f2270
movzx eax, word [rsp + 0x2e]
cmp ax, word [r14 + 0x50]
jne 0x1400f2270
mov rax, rsi
neg rax
mov r9, qword [rsp + 0x48]
shl rax, 4
shl rsi, 4
sar rsi, 4
lea rcx, [rsi - 0x10]
and rcx, r12
mov rdx, qword [rsp + 0x38]
movdqu xmm0, xmmword [rdx + rcx]
pcmpeqd xmm1, xmm1
pcmpeqb xmm0, xmm1
psllw xmm0, 7
pmovmskb r8d, xmm0
movdqu xmm0, xmmword [rdx + rsi]
pcmpeqb xmm0, xmm1
pmovmskb edx, xmm0
test r8d, r8d
je 0x1400f231a
bsr r8w, r8w
xor r8d, 0xf
jmp 0x1400f231f
mov rax, qword [rsp + 0x40]
xor ecx, ecx
jmp 0x1400f2366
mov r8w, 0x10
add rax, qword [rsp + 0x38]
or edx, 0x10000
tzcnt edx, edx
add r8d, edx
mov dl, 0x80
cmp r8w, 0xf
ja 0x1400f2340
inc qword [r9 + 0x10]
mov dl, 0xff
mov r8, qword [rsp + 0x38]
mov byte [r8 + rsi], dl
mov byte [r8 + rcx + 0x10], dl
dec qword [r9 + 0x18]
movdqu xmm0, xmmword [rax - 0x10]
mov rax, qword [rsp + 0x40]
movdqu xmmword [rax + 8], xmm0
mov ecx, 1
mov qword [rax], rcx
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret