Function at 0x14000d400
Capabilities:
Encode data using xor

Disassembly:
push rsi
push r13
push r15
sub rsp, 0x70
mov rax, qword [rcx + 0x318]
mov r13, rdx
movaps xmmword [rsp + 0x50], xmm6
mov r15, rcx
sub r13, qword [rax + 0x30]
jne 0x14000d5e2
movups xmm1, xmmword [0x140029530]
movups xmm0, xmmword [0x140029520]
movups xmmword [rsp + 0x40], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
movups xmmword [rsp + 0x30], xmm0
test al, al
je 0x14000d5c7
xor esi, esi
cmp dword [0x140036010], 2
jl 0x14000d59a
movdqa xmm0, xmmword [0x140030d90]
lea rcx, [rsp + 0x34]
movdqa xmm4, xmmword [0x140030cd0]
movdqa xmm3, xmmword [0x140030dc0]
movdqa xmm5, xmmword [str.111133335555::::]
movdqa xmm6, xmmword [0x140030d70]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, esi
lea eax, [rsi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add esi, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp esi, 0x20
jl 0x14000d4a0
lea rcx, [rsp + 0x30]
call fcn.1400021c0
xor al, al
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x70
pop r15
pop r13
pop rsi
ret
lea r8, [rsp + 0x30]
nop
mov eax, 0x5397829d
lea r8, [r8 + 1]
mul esi
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, sil
inc esi
sub al, cl
add al, 0x39
xor byte [r8 - 1], al
cmp esi, 0x20
jl 0x14000d5a0
lea rcx, [rsp + 0x30]
call fcn.1400021c0
xor al, al
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x70
pop r15
pop r13
pop rsi
ret
movdqa xmm6, xmmword [0x140030d70]
xor esi, esi
test byte [rax + 0x5e], 0x40
mov qword [rsp + 0xa8], rdi
mov edi, dword [0x140036010]
jne 0x14000d7bb
cmp byte [0x14002914d], sil
movups xmm0, xmmword [0x140029130]
mov eax, dword [0x140029148]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14002914c]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x4c], ax
movsd xmm0, qword [0x140029140]
movsd qword [rsp + 0x40], xmm0
je 0x14000d7b1
mov r8d, esi
cmp edi, 2
jl 0x14000d769
movdqa xmm0, xmmword [0x140030d90]
lea rcx, [rsp + 0x34]
movdqa xmm4, xmmword [0x140030cd0]
movdqa xmm3, xmmword [0x140030dc0]
movdqa xmm5, xmmword [str.111133335555::::]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x18
jl 0x14000d680
cmp r8d, 0x1e
jge 0x14000d7b1
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x1e
jl 0x14000d780
lea rcx, [rsp + 0x30]
call fcn.1400021c0
mov rdx, qword [r15 + 0x318]
mov rax, qword [rdx + 0xb0]
mov qword [rsp + 0x90], rax
test eax, eax
je 0x14000db03
movzx r11d, word [rdx + 0x14]
mov r9d, esi
mov qword [rsp + 0x98], rbx
add r11, rdx
movzx ebx, word [rdx + 6]
mov qword [rsp + 0x60], r14
test ebx, ebx
je 0x14000d826
mov r8, rsi
nop dword [rax]
mov r10d, dword [r11 + r8 + 0x24]
cmp eax, r10d
jb 0x14000d81a
mov edx, dword [r11 + r8 + 0x28]
add edx, r10d
cmp eax, edx
jb 0x14000d9ed
inc r9d
add r8, 0x28
cmp r9d, ebx
jl 0x14000d800
mov r14, rsi
mov eax, dword [rsp + 0x94]
add rax, r14
mov qword [rsp + 0x90], rax
test r14, r14
jne 0x14000da06
cmp byte [0x14002942d], sil
movups xmm0, xmmword [0x140029410]
mov eax, dword [0x140029428]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14002942c]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x4c], ax
movsd xmm0, qword [0x140029420]
movsd qword [rsp + 0x40], xmm0
je 0x14000d9de
cmp edi, 2
jl 0x14000d9a4
movdqa xmm0, xmmword [0x140030d90]
lea rcx, [rsp + 0x34]
movdqa xmm4, xmmword [0x140030cd0]
movdqa xmm3, xmmword [0x140030dc0]
movdqa xmm5, xmmword [str.111133335555::::]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop dword [rax]
movd xmm2, esi
lea eax, [rsi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add esi, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp esi, 0x18
jl 0x14000d8c0
cmp esi, 0x1e
jge 0x14000d9de
movsxd rax, esi
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, sil
inc esi
sub al, cl
add al, 0x39
xor byte [r8 - 1], al
cmp esi, 0x1e
jl 0x14000d9b0
lea rcx, [rsp + 0x30]
call fcn.1400021c0
jmp 0x14000daf4
mov r14d, dword [r11 + r8 + 0x2c]
add r14, qword [r15 + 0x320]
sub r14, r10
mov ecx, eax
add r14, rcx
jmp 0x14000d829
cmp r14, rax
jae 0x14000daf4
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x68], r12
nop dword [rax]
mov eax, dword [r14 + 4]
test eax, eax
je 0x14000dae7
add eax, 0xfffffff8
shr eax, 1
je 0x14000dad2
lea rbp, [r14 + 8]
mov r12d, eax
nop
movzx r10d, word [rbp]
movzx eax, r10w
shr ax, 0xc
and r10d, 0x80000fff
jge 0x14000da63
dec r10d
or r10d, 0xfffff000
inc r10d
cmp ax, 3
je 0x14000da6f
cmp ax, 0xa
jne 0x14000dac4
mov rcx, qword [r15 + 0x318]
mov r8d, esi
mov r11d, dword [r14]
movzx ebx, word [rcx + 0x14]
movzx edi, word [rcx + 6]
add rbx, rcx
test edi, edi
je 0x14000dab2
mov rax, rsi
nop
mov r9d, dword [rbx + rax + 0x24]
cmp r11d, r9d
jb 0x14000daa6
mov edx, dword [rbx + rax + 0x28]
add edx, r9d
cmp r11d, edx
jb 0x14000db1a
inc r8d
add rax, 0x28
cmp r8d, edi
jl 0x14000da90
lea rdx, [r15 + 0x320]
mov rcx, qword [rdx]
movzx eax, r10w
add qword [rax + rcx], r13
add rbp, 2
sub r12, 1
jne 0x14000da40
mov eax, dword [r14 + 4]
add r14, rax
cmp r14, qword [rsp + 0x90]
jb 0x14000da20
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov al, 1
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0xa8]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x70
pop r15
pop r13
pop rsi
ret
mov ecx, dword [rbx + rax + 0x2c]
lea rdx, [r15 + 0x320]
sub rcx, r9
add rcx, r11
add rcx, qword [rdx]
jne 0x14000dabc
jmp 0x14000dab9