Function at 0x1400510e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
movups xmm0, xmmword [0x1401109f0]
mov r15, qword [0x14140fa00]
xor edi, edi
cmp byte [0x140110a0d], dil
mov r12d, dword [0x14011f090]
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm10
mov eax, dword [0x140110a08]
movdqa xmm10, xmmword [0x1401124f0]
mov dword [rbp - 0x28], eax
movzx eax, word [0x140110a0c]
movups xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x24], ax
movsd xmm0, qword [0x140110a00]
movsd qword [rbp - 0x30], xmm0
je 0x1400512e1
mov ecx, edi
cmp r12d, 2
jl 0x1400512a0
movdqa xmm0, xmmword [0x140112530]
lea rdx, [rbp - 0x3c]
movdqa xmm4, xmmword [0x140112470]
movdqa xmm3, xmmword [0x140112860]
movdqa xmm5, xmmword [0x1401124e0]
movdqa xmmword [rbp - 0x20], xmm0
mov r8d, dword [rbp - 0x20]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x1400511b0
cmp ecx, 0x1e
jge 0x1400512e1
movsxd rax, ecx
lea r8, [rbp - 0x40]
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, 0x1e
jl 0x1400512b0
movss xmm2, dword [0x140112298]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15 + 0xa0]
call fcn.1400295a0
mov r13, qword [r15 + 0xa0]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x5c], rax
mov rax, qword [0x14140fa00]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x3c], 1
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x54], rdi
mov qword [rsp + 0x5c], rdi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rsp + 0x7c], edi
mov dword [rbp - 0x80], 0x3f800000
mov qword [rbp - 0x50], rdi
mov byte [rsp + 0x78], 1
mov byte [rsp + 0x50], 1
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
test rax, rax
je 0x14005137a
inc dword [rax + 0x3c8]
mov ecx, 0x6106c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
lea rbx, [0x1400d5b40]
lea rax, [0x1400d5b30]
mov qword [0x141445fa0], r14
mov rcx, rbx
mov qword [0x141445f90], rax
mov qword [0x141445fa8], r14
lea rsi, [r14 + 0x6106c]
mov qword [0x141445f98], rsi
call fcn.14002cab0
cmp rax, rbx
je 0x1400513e6
cmp qword [0x141445fa8], rsi
ja 0x1400513df
mov rcx, rax
mov rbx, rax
call fcn.14002cab0
cmp rax, rbx
jne 0x1400513c6
lea rbx, [0x1400d5b40]
movups xmm0, xmmword [rsp + 0x30]
lea rax, [0x140111f48]
movups xmm2, xmmword [rsp + 0x40]
lea rdx, [rsp + 0x30]
movups xmm4, xmmword [rsp + 0x60]
mov rcx, r13
movups xmm3, xmmword [rsp + 0x50]
movups xmm5, xmmword [rsp + 0x70]
movups xmm6, xmmword [rbp - 0x80]
movups xmm7, xmmword [rbp - 0x70]
movups xmm8, xmmword [rbp - 0x60]
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x60], xmm4
mov byte [rbp - 4], 1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0x6106c
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x70], xmm5
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm7
movups xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm1
mov dword [rsp + 0x44], 0x41600000
mov qword [rsp + 0x68], rax
call fcn.140029320
mov rax, qword [0x14140fa00]
mov r13, qword [r15 + 0xa0]
test rax, rax
je 0x14005148f
inc dword [rax + 0x3c8]
mov ecx, 0x6106c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov rcx, rbx
lea rax, [0x1400d5b30]
mov qword [0x141445fa0], r14
mov qword [0x141445f90], rax
mov qword [0x141445fa8], r14
lea rsi, [r14 + 0x6106c]
mov qword [0x141445f98], rsi
call fcn.14002cab0
cmp rax, rbx
je 0x1400514ed
cmp qword [0x141445fa8], rsi
ja 0x1400514ed
mov rcx, rax
mov rbx, rax
call fcn.14002cab0
cmp rax, rbx
jne 0x1400514d4
xorps xmm0, xmm0
mov qword [rsp + 0x5c], rdi
movups xmmword [rbp - 0x7c], xmm0
mov qword [rsp + 0x30], rdi
xor eax, eax
movups xmmword [rbp - 0x6c], xmm0
lea rdx, [rsp + 0x30]
mov qword [rbp - 0x5c], rax
movups xmm7, xmmword [rbp - 0x70]
lea rax, [0x140111f48]
movups xmm8, xmmword [rbp - 0x60]
mov rcx, r13
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x3c], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
movups xmm2, xmmword [rsp + 0x40]
mov qword [rsp + 0x68], rdi
movups xmm4, xmmword [rsp + 0x60]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x54], rdi
movups xmm3, xmmword [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 0x7f7fffff
mov byte [rsp + 0x78], dil
mov dword [rsp + 0x7c], edi
movups xmm5, xmmword [rsp + 0x70]
mov dword [rbp - 0x80], 0x3f800000
movups xmm6, xmmword [rbp - 0x80]
mov qword [rbp - 0x50], rdi
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x60], xmm4
mov byte [rbp - 4], 1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0x6106c
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x70], xmm5
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm7
movups xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm1
mov dword [rsp + 0x44], 0x41980000
mov qword [rsp + 0x68], rax
call fcn.140029320
movss xmm3, dword [0x1401122b8]
lea rax, [0x14010ef14]
mov rcx, qword [r15 + 0xa0]
lea rdx, [0x1400a8cc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.140029a30
movss xmm3, dword [0x1401122a0]
lea rdx, [0x141400a40]
mov rcx, qword [r15 + 0xa0]
mov r8d, 0xe43c
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.1400298d0
cmp byte [0x140110a0d], dil
movups xmm0, xmmword [0x1401109f0]
mov qword [0x14140fc10], rax
mov eax, dword [0x140110a08]
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x28], eax
movsd xmm0, qword [0x140110a00]
movzx eax, word [0x140110a0c]
movsd qword [rbp - 0x30], xmm0
mov word [rbp - 0x24], ax
je 0x1400517f2
cmp r12d, 2
jl 0x1400517ae
movdqa xmm0, xmmword [0x140112530]
lea rcx, [rbp - 0x3c]
movdqa xmm4, xmmword [0x140112470]
movdqa xmm3, xmmword [0x140112860]
movdqa xmm5, xmmword [0x1401124e0]
movdqa xmmword [rbp - 0x20], xmm0
mov edx, dword [rbp - 0x20]
nop dword [rax]
nop word [rax + rax]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add edi, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x18
jl 0x1400516c0
cmp edi, 0x1e
jge 0x1400517f2
movsxd rax, edi
lea r8, [rbp - 0x40]
add r8, rax
nop dword [rax + rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul edi
add edx, edi
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, dil
inc edi
xor byte [r8 - 1], dl
cmp edi, 0x1e
jl 0x1400517c0
movss xmm2, dword [0x140112298]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15 + 0xa0]
call fcn.1400295a0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm10, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret