Function at 0x180031300
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x180066240]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, qword [0x180067218]
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
sar rax, 3
xor ebx, ebx
mov r14d, dword [0x1800662a8]
movdqa xmm6, xmmword [0x180058330]
cmp rax, 1
ja 0x18003168a
movups xmm0, xmmword [0x180057b58]
movups xmmword [rbp - 0x69], xmm0
mov eax, dword [0x180057b68]
mov dword [rbp - 0x59], eax
movdqa xmm4, xmmword [0x180058340]
movdqa xmm5, xmmword [0x180058320]
movdqa xmm3, xmmword [0x1800583c0]
movdqa xmm7, xmmword [0x180056d20]
cmp byte [0x180057b6b], bl
je 0x1800314f0
mov r8d, ebx
cmp r14d, 2
jl 0x1800314a7
movdqa xmmword [rbp + 0x17], xmm4
lea rcx, [rbp - 0x65]
mov edx, dword [rbp + 0x17]
nop dword [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm7
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm7
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x1800313c0
cmp r8d, 0x14
jge 0x1800314f0
movsxd rax, r8d
lea r9, [rbp - 0x69]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x14
jl 0x1800314c0
mov eax, dword [0x180057b50]
mov dword [rbp - 0x31], eax
movzx eax, word [0x180057b54]
movups xmm1, xmmword [0x180057b40]
movups xmm0, xmmword [0x180057b30]
mov word [rbp - 0x2d], ax
movups xmmword [rbp - 0x41], xmm1
movups xmmword [rbp - 0x51], xmm0
mov r8d, ebx
cmp r14d, 2
jl 0x180031627
movdqa xmmword [rbp + 0x17], xmm4
lea rcx, [rbp - 0x4d]
mov edx, dword [rbp + 0x17]
nop dword [rax]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm7
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm7
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x20
jl 0x180031540
cmp r8d, 0x26
jge 0x180031670
movsxd rax, r8d
lea r9, [rbp - 0x51]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x26
jl 0x180031640
xor r9d, r9d
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x51]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdi, qword [0x180067218]
mov rsi, qword [rdi + 8]
mov rdi, qword [rdi]
mov rax, rsi
sub rax, rdi
sar rax, 3
cmp rax, 1
ja 0x1800319a3
movups xmm0, xmmword [0x180057b90]
movups xmmword [rbp - 0x69], xmm0
mov eax, dword [0x180057ba0]
mov dword [rbp - 0x59], eax
movdqa xmm4, xmmword [0x180058340]
movdqa xmm5, xmmword [0x180058320]
movdqa xmm3, xmmword [0x1800583c0]
movdqa xmm7, xmmword [0x180056d20]
cmp byte [0x180057ba3], bl
je 0x180031830
mov r8d, ebx
cmp r14d, 2
jl 0x1800317e7
movdqa xmmword [rbp + 0x17], xmm4
lea rcx, [rbp - 0x65]
mov edx, dword [rbp + 0x17]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm7
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm7
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x180031700
cmp r8d, 0x14
jge 0x180031830
movsxd rax, r8d
lea r9, [rbp - 0x69]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x14
jl 0x180031800
movups xmm0, xmmword [str.yU_T]
movups xmmword [rbp - 0x51], xmm0
movsd xmm0, qword [0x180057b80]
movsd qword [rbp - 0x41], xmm0
mov eax, dword [0x180057b88]
mov dword [rbp - 0x39], eax
cmp byte [0x180057b8b], bl
je 0x18003198c
cmp r14d, 2
jl 0x180031955
movdqa xmmword [rbp + 0x17], xmm4
lea rcx, [rbp - 0x4d]
mov edx, dword [rbp + 0x17]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm7
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm7
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x18
jl 0x180031873
cmp ebx, 0x1c
jge 0x18003198c
movsxd rax, ebx
lea r8, [rbp - 0x51]
add r8, rax
nop
mov eax, 0x4d4873ed
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, bl
sub al, cl
add al, 0x38
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1c
jl 0x180031960
xor r9d, r9d
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x51]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x1800319fa
lea rax, vtable.std::_Func_impl_no_alloc_class__bool___cdecl_script::AddScriptHandlers_void_::_2::_lambda_1___void__class_cfx::ResourceImpl____ptr64_.0
mov qword [rbp - 0x29], rax
lea rcx, [rbp - 0x29]
mov qword [rbp + 0xf], rcx
cmp rdi, rsi
je 0x1800319e3
nop dword [rax + rax]
mov rax, qword [rdi]
mov qword [rbp + 0x17], rax
test rcx, rcx
je 0x180031a2d
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
call qword [rax + 0x10]
add rdi, 8
mov rcx, qword [rbp + 0xf]
cmp rdi, rsi
jne 0x1800319c0
test rcx, rcx
je 0x1800319f8
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov al, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18004efc0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
nop
int3