Function at 0x140013e10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0xd0
cmp byte [0x1400221eb], 0
mov ebp, 4
movups xmm0, xmmword [0x1400221d8]
mov edi, dword [0x140028050]
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
lea r14d, [rbp + 0x1b]
movaps xmmword [rax - 0x38], xmm8
mov eax, dword [0x1400221e8]
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], eax
je 0x140013ff3
xor r8d, r8d
cmp edi, 2
jl 0x140013fb5
movdqa xmm0, xmmword [0x140023320]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x140023280]
movdqa xmm4, xmmword [0x140023340]
movdqa xmm7, xmmword [0x1400232b0]
movdqa xmmword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x40]
movd xmm6, ebp
movd xmm8, r14d
nop dword [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
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 [0x1400232f0]
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
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 [0x1400232f0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140013eb0
cmp r8d, 0x14
jge 0x140013ff3
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x32
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0x14
jl 0x140013fc0
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014241
mov ecx, dword [0x140022958]
movups xmm0, xmmword [0x140022938]
movzx eax, word [0x14002295c]
movups xmm1, xmmword [0x140022948]
mov dword [rsp + 0x90], ecx
xor ecx, ecx
mov word [rsp + 0x94], ax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm1
cmp edi, 2
jl 0x1400141b2
movdqa xmm0, xmmword [0x140023320]
lea rdx, [rsp + 0x74]
movdqa xmm5, xmmword [0x140023280]
movdqa xmm4, xmmword [0x140023340]
movdqa xmm7, xmmword [0x1400232b0]
movdqa xmmword [rsp + 0x40], xmm0
mov r8d, dword [rsp + 0x40]
movd xmm6, ebp
movd xmm8, r14d
nop dword [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
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 [0x1400232f0]
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
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 [0x1400232f0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x1400140b0
cmp ecx, 0x26
jge 0x1400141ef
movsxd rax, ecx
lea r8, [rsp + 0x70]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x32
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x26
jl 0x1400141c0
xorps xmm0, xmm0
mov qword [rsp + 0x60], 0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140014215
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140001f10
lea rcx, [rsp + 0x50]
call fcn.14000a830
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r14
ret