Function at 0x1400d25f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push r12
push r13
push r14
sub rsp, 0x28
mov r12d, dword [rsp + 0x88]
mov rbp, r9
movsxd r13, dword [rsp + 0x80]
mov r11, r8
mov r14, rcx
test r12d, r12d
je 0x1400d28d7
movdqa xmm3, xmmword [0x1401cab10]
lea eax, [r13 - 0x10]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rsi
mov rsi, r13
movsxd rcx, eax
lea eax, [r13 - 4]
movsxd r9, eax
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x10], r15
mov r15, qword [rsp + 0x70]
mov qword [rsp + 8], r9
mov qword [rsp], rcx
nop dword [rax]
nop word [rax + rax]
dec r12d
xor ebx, ebx
xor r10d, r10d
mov dword [rsp + 0x88], r12d
test rcx, rcx
js 0x1400d26d3
movdqa xmm2, xmmword [0x1401cab10]
lea rbx, [rcx + 0x10]
shr rbx, 4
mov rdx, r14
mov r10, rbx
mov r8, r15
mov rcx, rbx
sub rdx, r11
shl ebx, 4
sub r8, r11
shl r10, 4
mov rax, r11
movdqu xmm1, xmmword [rdx + rax]
movdqu xmm0, xmmword [rax]
lea rax, [rax + 0x10]
pcmpgtb xmm1, xmm0
pxor xmm1, xmm2
movdqu xmmword [r8 + rax - 0x10], xmm1
sub rcx, 1
jne 0x1400d26b1
cmp r10, r9
jg 0x1400d2778
mov rbp, r9
lea rax, [r11 + 1]
sub rbp, r10
add rax, r10
mov rdi, r14
shr rbp, 2
mov rsi, r15
sub rdi, r11
sub rsi, r11
mov r12d, 0xff
inc rbp
lea ebx, [rbx + rbp*4]
lea r10, [r10 + rbp*4]
nop dword [rax]
movzx ecx, byte [rax - 1]
xor edx, edx
cmp byte [rax + rdi - 1], cl
movzx r8d, byte [rax]
movzx r9d, byte [rax + rdi]
lea rax, [rax + 4]
cmovle edx, r12d
xor ecx, ecx
mov byte [rax + rsi - 5], dl
cmp r9b, r8b
cmovle ecx, r12d
xor r8d, r8d
mov byte [rax + rsi - 4], cl
movzx ecx, byte [rax - 2]
cmp byte [rdi + rax - 2], cl
movzx ecx, byte [rax - 3]
cmovle r8d, r12d
xor edx, edx
cmp byte [rdi + rax - 3], cl
mov byte [rax + rsi - 2], r8b
cmovle edx, r12d
mov byte [rax + rsi - 3], dl
sub rbp, 1
jne 0x1400d2710
mov r12d, dword [rsp + 0x88]
mov rsi, r13
mov rbp, qword [rsp + 0x68]
mov ecx, r13d
sub ecx, ebx
cmp ebx, r13d
jge 0x1400d2855
cmp ecx, 0x20
jb 0x1400d2855
lea eax, [r13 - 1]
movsxd rdx, ebx
movsxd r8, eax
lea rbx, [rdx + r15]
lea rax, [r8 + r11]
lea r9, [r8 + r15]
lea rdi, [rdx + r11]
cmp rbx, rax
ja 0x1400d27b7
cmp r9, rdi
jae 0x1400d2855
add rdx, r14
lea rax, [r8 + r14]
cmp rbx, rax
ja 0x1400d27cc
cmp r9, rdx
jae 0x1400d2855
and ecx, 0x8000001f
jge 0x1400d27db
dec ecx
or ecx, 0xffffffe0
inc ecx
movdqa xmm2, xmmword [0x1402238f0]
mov eax, r13d
sub eax, ecx
mov rdx, r15
movsxd r8, eax
mov rcx, r14
lea rax, [r11 + 0x10]
sub rcx, r11
add rax, r10
sub rdx, r11
nop
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x20
movdqu xmm1, xmmword [rcx + rax - 0x10]
lea rax, [rax + 0x20]
pcmpgtb xmm1, xmm0
xorps xmm0, xmm0
pandn xmm1, xmm3
pand xmm1, xmm2
psubb xmm0, xmm1
movdqu xmm1, xmmword [rcx + rax - 0x20]
movdqu xmmword [rdx + rax - 0x30], xmm0
movdqu xmm0, xmmword [rax - 0x20]
pcmpgtb xmm1, xmm0
xorps xmm0, xmm0
pandn xmm1, xmm3
pand xmm1, xmm2
psubb xmm0, xmm1
movdqu xmmword [rdx + rax - 0x20], xmm0
cmp r10, r8
jl 0x1400d2800
cmp r10, rsi
jge 0x1400d28a4
mov r9, r14
lea rdx, [r10 + r11]
mov rbx, r15
sub r9, r11
sub rbx, r11
mov r8, rsi
sub r8, r10
mov r12d, 0xff
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, ecx
cmp byte [r9 + rdx - 1], al
cmovle ecx, r12d
mov byte [rbx + rdx - 1], cl
sub r8, 1
jne 0x1400d2880
mov r12d, dword [rsp + 0x88]
add r14, qword [rsp + 0x58]
add r11, rbp
add r15, qword [rsp + 0x78]
mov rcx, qword [rsp]
mov r9, qword [rsp + 8]
test r12d, r12d
jne 0x1400d2670
mov r15, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r14
pop r13
pop r12
pop rbp
ret