Function at 0x140010020
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x38]
sub rsp, 0x120
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
lea rcx, [rsp + 0x40]
call fcn.14000fdc0
nop
lea r9, [rbp - 0x70]
mov edx, 0x444
mov r8d, 1
mov rcx, r14
cmp qword [rsp + 0x50], 0
jne 0x14001028f
mov dword [rbp - 0x5c], 0xff
call qword [sym.imp.USER32.dll_SendMessageW]
movups xmm0, xmmword [0x1400307f8]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x140030808]
movups xmmword [rsp + 0x70], xmm1
movsd xmm0, qword [0x140030818]
movsd qword [rbp - 0x80], xmm0
movzx eax, byte [0x140030820]
mov byte [rbp - 0x78], al
xor r9d, r9d
mov ecx, r9d
cmp dword [0x14003a0a0], 2
jl 0x14001020f
movdqa xmm5, xmmword [0x140030c40]
movdqa xmm4, xmmword [0x140030ca0]
movdqa xmm6, xmmword [0x140030c60]
movdqa xmm0, xmmword [0x140030c90]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x60]
movdqa xmm7, xmmword [0x140030c70]
mov r8d, dword [rsp + 0x30]
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
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], 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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, r8d
paddb xmm3, xmm0
movd xmm0, dword [rdx + 4]
xorps xmm3, xmm0
movd dword [rdx + 4], xmm3
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x28
jl 0x140010123
cmp ecx, 0x29
jge 0x14001024e
movsxd rax, ecx
lea r8, [rsp + 0x60]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
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
sub al, dl
add al, 0x38
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x29
jl 0x140010220
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r9
mov rsi, 0xffffffffffffffff
mov r9d, esi
lea r8, [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovb rax, rsi
mov rcx, rax
call fcn.14002869c
lea r8, [rsp + 0x60]
jmp 0x1400102f6
mov dword [rbp - 0x5c], 0xff00
call qword [sym.imp.USER32.dll_SendMessageW]
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova r8, qword [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r9
mov rsi, 0xffffffffffffffff
mov r9d, esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovb rax, rsi
mov rcx, rax
call fcn.14002869c
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova r8, qword [rsp + 0x40]
mov dword [rsp + 0x28], ebx
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r9d, esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r9, rdi
xor r8d, r8d
mov edx, 0xc2
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call fcn.140028340
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14001036c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010367
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010367
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140028320
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret