Function at 0x1400d0630
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 0x1400d077f
movzx edi, word [rbx + 0x56]
cmp r8w, 5
jne 0x1400d0837
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 0x1400d072d
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400d09fc
add r13, rax
add r13, 0x10
add rax, 0x10
and r13, r12
jmp 0x1400d06d0
lea eax, [r15 - 1]
and ax, r15w
mov r15d, eax
je 0x1400d06f3
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.1400e6f70
test al, al
je 0x1400d0720
cmp word [r14 + 0x54], 0x23
jne 0x1400d0720
cmp di, word [r14 + 0x56]
jne 0x1400d0720
cmp word [r14 + 0x50], 5
jne 0x1400d0720
movzx eax, word [rsp + 0x2e]
cmp ax, word [r14 + 0x52]
jne 0x1400d0720
jmp 0x1400d09aa
cmp r8w, 5
jne 0x1400d08f7
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 0x1400d07ed
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400d09fc
add r13, rax
add r13, 0x10
add rax, 0x10
and r13, r12
jmp 0x1400d0790
lea eax, [r15 - 1]
and ax, r15w
mov r15d, eax
je 0x1400d07b3
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.1400e6f70
test al, al
je 0x1400d07e0
cmp di, word [r14 + 0x54]
jne 0x1400d07e0
cmp word [r14 + 0x50], 5
jne 0x1400d07e0
movzx eax, word [rsp + 0x2e]
cmp ax, word [r14 + 0x52]
jne 0x1400d07e0
jmp 0x1400d09aa
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 0x1400d08ad
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400d09fc
add r13, rax
add r13, 0x10
add rax, 0x10
and r13, r12
jmp 0x1400d0850
lea eax, [r15 - 1]
and ax, r15w
mov r15d, eax
je 0x1400d0873
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.1400e6f70
test al, al
je 0x1400d08a0
cmp word [r14 + 0x54], 0x23
jne 0x1400d08a0
cmp di, word [r14 + 0x56]
jne 0x1400d08a0
movzx eax, word [rsp + 0x2e]
cmp ax, word [r14 + 0x50]
jne 0x1400d08a0
jmp 0x1400d09aa
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 0x1400d096d
pcmpeqb xmm8, xmm7
pmovmskb eax, xmm8
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400d09fc
add r13, rax
add r13, 0x10
add rax, 0x10
and r13, r12
jmp 0x1400d0910
lea eax, [r15 - 1]
and ax, r15w
mov r15d, eax
je 0x1400d0933
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.1400e6f70
test al, al
je 0x1400d0960
cmp di, word [r14 + 0x54]
jne 0x1400d0960
movzx eax, word [rsp + 0x2e]
cmp ax, word [r14 + 0x50]
jne 0x1400d0960
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
pmovmskb r8d, xmm0
movdqu xmm0, xmmword [rdx + rsi]
pcmpeqb xmm0, xmm1
pmovmskb edx, xmm0
test r8d, r8d
je 0x1400d0a05
bsr r8w, r8w
xor r8d, 0xf
jmp 0x1400d0a0a
mov rax, qword [rsp + 0x40]
xor ecx, ecx
jmp 0x1400d0a51
mov r8w, 0x10
add rax, qword [rsp + 0x38]
or edx, 0x10000
tzcnt edx, edx
add r8d, edx
mov dl, 0x80
cmp r8w, 0xf
ja 0x1400d0a2b
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