Function at 0x14003e3a0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
lea rbp, [r11 - 0x48]
sub rsp, 0x140
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rbp], rax
movups xmm0, xmmword [0x14022edb8]
mov r10d, dword [0x14024b008]
mov rbx, rcx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
xor edi, edi
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movups xmmword [rsp + 0x78], xmm0
lea esi, [rdi + 0x1f]
mov qword [rsp + 0x30], rcx
psrldq xmm0, 0xf
movd eax, xmm0
movaps xmmword [r11 - 0x38], xmm8
lea r11d, [rdi + 5]
test al, al
je 0x14003e5a6
cmp r10d, 2
jl 0x14003e567
movdqa xmm0, xmmword [0x140230170]
lea rcx, [rsp + 0x7c]
movdqa xmm5, xmmword [0x14022ffe0]
mov edx, edi
movdqa xmm4, xmmword [0x1402302d0]
movdqa xmm7, xmmword [0x140230000]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movd xmm6, r11d
movd xmm8, esi
nop dword [rax]
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
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
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x14003e460
jmp 0x14003e5a6
lea r9, [rsp + 0x78]
mov r8d, edi
nop
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x10
jl 0x14003e570
movzx eax, byte [0x14022f228]
mov r8d, edi
mov byte [rsp + 0x58], al
movups xmm0, xmmword [0x14022f218]
movups xmmword [rsp + 0x48], xmm0
cmp r10d, 2
jl 0x14003e71d
movdqa xmm0, xmmword [0x140230170]
lea rcx, [rsp + 0x4c]
movdqa xmm5, xmmword [0x14022ffe0]
movdqa xmm4, xmmword [0x1402302d0]
movdqa xmm7, xmmword [0x140230000]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
movd xmm6, r11d
movd xmm8, esi
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
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
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x14003e610
cmp r8d, 0x11
jge 0x14003e766
movsxd rax, r8d
lea r9, [rsp + 0x48]
add r9, rax
nop dword [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x11
jl 0x14003e730
movzx eax, byte [0x14022f228]
mov ecx, edi
mov byte [rsp + 0x70], al
movups xmm0, xmmword [0x14022f218]
movups xmmword [rsp + 0x60], xmm0
cmp r10d, 2
jl 0x14003e8da
movdqa xmm0, xmmword [0x140230170]
lea rdx, [rsp + 0x64]
movdqa xmm5, xmmword [0x14022ffe0]
movdqa xmm4, xmmword [0x1402302d0]
movdqa xmm7, xmmword [0x140230000]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movd xmm6, r11d
movd xmm8, esi
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
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
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x14003e7d0
cmp ecx, 0x11
jge 0x14003e921
movsxd rax, ecx
lea r8, [rsp + 0x60]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x11
jl 0x14003e8f0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x70]
lea r8, [0x14021d1ee]
mov dword [rsp + 0x20], 0x64
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [0x1401e6158]
movaps xmm8, xmmword [rsp + 0x110]
lea rax, [rbp - 0x70]
movaps xmm7, xmmword [rsp + 0x120]
xorps xmm0, xmm0
movaps xmm6, xmmword [rsp + 0x130]
mov r8, 0xffffffffffffffff
mov rsi, qword [rsp + 0x158]
mov qword [rbx], rdi
movups xmmword [rbx + 8], xmm0
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], rdi
mov rdi, qword [rsp + 0x160]
inc r8
cmp byte [rax + r8], 0
jne 0x14003e994
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.14005f650
mov rax, rbx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140075760
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rbp
ret