Function at 0x180031880
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x70
movups xmm0, xmmword [str.z__YPBdAJNQqW_2_0:D]
mov eax, dword [0x18009c3d8]
xor edi, edi
cmp byte [0x18009c3db], dil
mov r14d, dword [0x1800ab090]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x1800a0280]
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x20], eax
je 0x180031a3f
mov ecx, edi
cmp r14d, 2
jl 0x1800319fe
movdqa xmm0, xmmword [0x1800a02c0]
lea rdx, [rbp - 0x2c]
movdqa xmm4, xmmword [0x1800a0170]
movdqa xmm3, xmmword [0x1800a0380]
movdqa xmm5, xmmword [0x1800a0200]
movdqa xmmword [rbp - 0x50], xmm0
mov r8d, dword [rbp - 0x50]
nop dword [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, xmm6
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, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x180031910
cmp ecx, 0x14
jge 0x180031a3f
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, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x14
jl 0x180031a10
xorps xmm0, xmm0
lea rax, [rbp - 0x30]
xorps xmm1, xmm1
mov rbx, 0xffffffffffffffff
movups xmmword [rbp - 0x50], xmm0
mov r8, rbx
movdqu xmmword [rbp - 0x40], xmm1
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x180031a60
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.180012cd0
lea rcx, [rbp - 0x50]
call fcn.180048d40
mov rcx, rax
mov rsi, rax
call fcn.1800488d0
test al, al
jne 0x180031a93
mov rsi, rdi
jmp 0x180031a9d
mov eax, dword [0x1800ade20]
mov rsi, qword [rax + rsi]
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x180031ad8
mov rcx, qword [rbp - 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031ad3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180031d1e
call fcn.18006a6e8
cmp byte [0x18009e213], dil
movups xmm0, xmmword [str.z__YPBdLKSU_qW_2_0:D]
mov eax, dword [0x18009e210]
mov dword [rbp - 0x20], eax
movups xmmword [rbp - 0x30], xmm0
je 0x180031c64
mov r8d, edi
cmp r14d, 2
jl 0x180031c23
movdqa xmm0, xmmword [0x1800a02c0]
lea rcx, [rbp - 0x2c]
movdqa xmm4, xmmword [0x1800a0170]
movdqa xmm3, xmmword [0x1800a0380]
movdqa xmm5, xmmword [0x1800a0200]
movdqa xmmword [rbp - 0x50], xmm0
mov edx, dword [rbp - 0x50]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 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, xmm6
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, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x180031b32
cmp r8d, 0x14
jge 0x180031c64
movsxd rax, r8d
lea r9, [rbp - 0x30]
add r9, rax
nop dword [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
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x14
jl 0x180031c30
xorps xmm0, xmm0
lea rax, [rbp - 0x30]
xorps xmm1, xmm1
movups xmmword [rbp - 0x50], xmm0
movdqu xmmword [rbp - 0x40], xmm1
inc rbx
cmp byte [rax + rbx], dil
jne 0x180031c77
mov r8, rbx
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.180012cd0
lea rcx, [rbp - 0x50]
call fcn.180048d40
mov rcx, rax
mov rbx, rax
call fcn.1800488d0
test al, al
je 0x180031cb2
mov eax, dword [0x1800ade20]
mov rdi, qword [rax + rbx]
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x180031ce9
mov rcx, qword [rbp - 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031ce4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180031d1e
call fcn.18006a6e8
mov r9d, 0x48
mov r8d, 0x28
mov rdx, rdi
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
jmp 0x180048fe0
call fcn.180070324
int3