Function at 0x14000d1d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rdi
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14000d4cb
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14035ab78], eax
jle 0x14000d4a2
lea rcx, [0x14035ab78]
call fcn.140247bf4
cmp dword [0x14035ab78], 0xffffffff
jne 0x14000d4a2
movups xmm0, xmmword [str.r_xYJITLZ]
movups xmmword [rsp + 0x38], xmm0
movsd xmm1, qword [0x1402f95c8]
movsd qword [rsp + 0x48], xmm1
mov eax, dword [0x1402f95d0]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1402f95d4]
mov word [rsp + 0x54], ax
movzx eax, byte [0x1402f95d6]
mov byte [rsp + 0x56], al
xor ecx, ecx
cmp dword [0x140353c80], 2
jl 0x14000d3c5
movdqa xmm5, xmmword [0x140304160]
movdqa xmm4, xmmword [0x1403042b0]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x140304180]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x140304250]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x3c]
mov r8d, dword [rsp + 0x60]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140304200]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
pxor xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140304200]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x14000d2c1
cmp ecx, 0x1f
jge 0x14000d3fc
movsxd rax, ecx
lea r8, [rsp + 0x38]
add r8, rax
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x37
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1f
jl 0x14000d3d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rsp + 0x38]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000d420
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140002ef0
nop
lea r8, [rsp + 0x60]
mov rdx, qword [0x14035a9f8]
mov rcx, rdi
call fcn.14000cbd0
mov qword [0x14035ab80], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000d496
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d490
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d490
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140247544
nop
lea rcx, [0x14035ab78]
call fcn.140247b94
cmp qword [0x14035ab80], 0
je 0x14000d4cb
mov r9, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140010ce0
test al, al
je 0x14000d4cb
cmp byte [rsp + 0x30], 0
je 0x14000d4cb
mov al, 1
jmp 0x14000d4cd
xor al, al
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rdi
ret