Function at 0x140006240
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
movups xmm0, xmmword [0x14001f980]
xor eax, eax
xor esi, esi
mov qword [rcx], rax
mov rbx, rcx
mov dword [rcx + 8], eax
mov ecx, esi
cmp dword [0x14002f088], 2
mov eax, dword [0x14001f990]
mov dword [rbp - 0x20], eax
movzx eax, word [0x14001f994]
mov word [rbp - 0x1c], ax
movzx eax, byte [0x14001f996]
mov byte [rbp - 0x1a], al
movups xmmword [rbp - 0x30], xmm0
jl 0x1400063e1
movdqa xmm0, xmmword [0x140029d50]
lea rdx, [rbp - 0x2c]
movdqa xmm5, xmmword [0x140029c80]
movdqa xmm4, xmmword [0x140029db0]
movdqa xmmword [rbp - 0x40], xmm0
mov r8d, dword [rbp - 0x40]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x140029cd0]
nop
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140029d30]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140029d30]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400062d0
movaps xmm6, xmmword [rsp + 0x50]
cmp ecx, 0x17
jge 0x14000641f
movsxd rax, ecx
lea r8, [rbp - 0x30]
add r8, rax
nop dword [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
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x17
jl 0x1400063f0
cmp byte [0x14001fba1], sil
movsd xmm0, qword [str._BSTU]
movzx eax, word [0x14001fba0]
movsd qword [rbp - 0x40], xmm0
mov word [rbp - 0x38], ax
je 0x140006468
xor byte [rbp - 0x3f], 0x36
xor byte [rbp - 0x3e], 0x37
xor byte [rbp - 0x3d], 0x38
xor byte [rbp - 0x3c], 0x39
xor byte [rbp - 0x3b], 0x3a
xor byte [rbp - 0x3a], 0x3b
xor byte [rbp - 0x39], 0x3c
xor byte [rbp - 0x38], 0x3d
xor byte [rbp - 0x37], 0x3e
mov byte [rbp - 0x40], 0x6e
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x1400064aa
call fcn.14001c0e0
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400064aa
call fcn.14001c0e0
lea r8, [rbx + 8]
mov rcx, rbx
lea rdx, [rbx + 4]
call rdi
mov word [rbx + 0xa], si
mov rsi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret