Function at 0x14000d040
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [r11 - 0x68]
sub rsp, 0x140
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov r8, qword [rcx + 0x318]
mov r12, rdx
xor edx, edx
mov rbx, rcx
mov r15d, edx
movzx eax, word [r8 + 0x14]
lea rdi, [r8 + 0x18]
add rdi, rax
cmp dx, word [r8 + 6]
jae 0x14000d3d4
mov qword [r11 + 0x18], r13
mov r13d, dword [0x140036010]
movaps xmmword [r11 - 0x38], xmm6
movdqa xmm6, xmmword [0x140030dc0]
movaps xmmword [r11 - 0x48], xmm7
movdqa xmm7, xmmword [0x140030d90]
movaps xmmword [r11 - 0x58], xmm8
movdqa xmm8, xmmword [0x140030d70]
movaps xmmword [r11 - 0x68], xmm9
movdqa xmm9, xmmword [str.111133335555::::]
movaps xmmword [r11 - 0x78], xmm10
movdqa xmm10, xmmword [0x140030cd0]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x20], r14
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rdi + 8]
cmovae ecx, dword [rdi + 8]
test ecx, ecx
je 0x14000d376
mov r14d, dword [rdi + 0xc]
mov ecx, edx
mov esi, dword [rdi + 0x14]
add r14, r12
movups xmm0, xmmword [0x1400291e8]
add rsi, qword [rbx + 0x320]
movzx eax, byte [0x140029208]
mov byte [rbp - 0x30], al
movups xmm1, xmmword [0x1400291f8]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm1
cmp r13d, 2
jl 0x14000d23c
movdqa xmmword [rsp + 0x20], xmm7
lea rdx, [rbp - 0x4c]
mov r8d, dword [rsp + 0x20]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm10
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm9
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm8
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm10
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm6
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm9
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm8
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x14000d150
cmp ecx, 0x21
jge 0x14000d27d
movsxd rax, ecx
lea r8, [rbp - 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x21
jl 0x14000d250
mov r8, rsi
lea rcx, [rbp - 0x50]
mov rdx, rdi
call fcn.1400021c0
mov qword [rbp - 0x28], rsi
xor eax, eax
mov qword [rbp - 0x60], rax
xorps xmm2, xmm2
movups xmmword [rsp + 0x30], xmm2
lea rax, [rbp - 0x28]
mov word [rsp + 0x30], 1
movups xmmword [rsp + 0x50], xmm2
mov qword [rsp + 0x58], rax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x34], eax
mov rax, qword [rbx]
movups xmmword [rsp + 0x60], xmm2
mov qword [rsp + 0x60], 8
movups xmm1, xmmword [rsp + 0x60]
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x32], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x10], xmm2
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [rbp - 0x60]
movups xmmword [rax + 0x30], xmm1
movups xmmword [rax + 0x40], xmm2
movups xmmword [rax + 0x50], xmm2
movups xmmword [rax + 0x60], xmm2
movsd qword [rax + 0x70], xmm0
mov rax, qword [rbx]
movups xmm0, xmmword [rax + 0x30]
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [rax + 0x70]
mov rax, qword [rax]
shr rax, 8
movups xmmword [rsp + 0x50], xmm1
movsd qword [rbp - 0x60], xmm0
test al, al
jne 0x14000d374
mov qword [rsp + 0x20], 1
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.140003ff0
mov rax, qword [rbx]
movups xmm0, xmmword [rax + 0x30]
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [rax + 0x70]
mov rax, qword [rax]
shr rax, 8
movups xmmword [rsp + 0x50], xmm1
movsd qword [rbp - 0x60], xmm0
test al, al
je 0x14000d340
xor edx, edx
mov rax, qword [rbx + 0x318]
inc r15d
add rdi, 0x28
movzx ecx, word [rax + 6]
cmp r15d, ecx
jl 0x14000d0e3
movaps xmm10, xmmword [rsp + 0xf0]
movaps xmm9, xmmword [rsp + 0x100]
movaps xmm8, xmmword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0x120]
movaps xmm6, xmmword [rsp + 0x130]
mov r14, qword [rsp + 0x188]
mov r13, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x178]
mov al, 1
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.140025c30
add rsp, 0x140
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret