Function at 0x140018780
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov r10d, dword [0x140067090]
xorps xmm0, xmm0
mov edx, dword [str.K____D]
xor ecx, ecx
movdqa xmm5, xmmword [0x1400603e0]
mov r8d, ecx
movdqa xmm3, xmmword [0x140060450]
movdqa xmm4, xmmword [0x140060340]
movaps xmmword [rax - 0x18], xmm6
movdqa xmm6, xmmword [str.6666777788889999]
movaps xmmword [rax - 0x28], xmm7
movdqa xmm7, xmmword [0x140060420]
movaps xmmword [rax - 0x38], xmm8
movdqa xmm8, xmmword [0x140060360]
movaps xmmword [rax - 0x48], xmm9
movzx eax, word [0x140053af4]
movdqa xmm9, xmmword [0x140060350]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x140053af6]
mov byte [rsp + 0x3e], al
mov dword [rsp + 0x38], edx
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [str._V_]
movsd qword [rsp + 0x30], xmm0
cmp r10d, 2
jl 0x140018966
movdqa xmm1, xmm4
movdqa xmm0, xmm4
punpckldq xmm1, xmm4
mov r8d, 0xc
pmuldq xmm1, xmm3
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm4
pmulld xmm0, xmm6
psubd xmm1, xmm0
movd xmm0, dword [str._V_]
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
xorps xmm1, xmm0
movdqa xmm0, xmm9
movd dword [rsp + 0x30], xmm1
movdqa xmm1, xmm9
punpckldq xmm1, xmm9
pmuldq xmm1, xmm3
punpckhdq xmm0, xmm9
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm9
pmulld xmm0, xmm6
psubd xmm1, xmm0
movd xmm0, dword [rsp + 0x34]
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
xorps xmm1, xmm0
movdqa xmm0, xmm8
movd dword [rsp + 0x34], xmm1
movdqa xmm1, xmm8
punpckldq xmm1, xmm8
pmuldq xmm1, xmm3
punpckhdq xmm0, xmm8
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm8
pmulld xmm0, xmm6
psubd xmm1, xmm0
movd xmm0, edx
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
xorps xmm1, xmm0
movd dword [rsp + 0x38], xmm1
mov eax, r8d
lea r9, [rsp + 0x30]
add r9, rax
mov ebx, 1
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
sub al, dl
movsx eax, al
imul edx, eax, 0x36
add dl, r8b
inc r8d
xor byte [r9 - 1], dl
cmp r8d, 0xf
jl 0x140018980
cmp byte [0x140053ae5], cl
lea rax, [rsp + 0x30]
movsd xmm0, qword [0x140053ad8]
mov edx, dword [0x140053ae0]
mov qword [rsp + 0x68], rax
movzx eax, word [0x140053ae4]
mov word [rsp + 0x3c], ax
movsd qword [rsp + 0x30], xmm0
mov dword [rsp + 0x38], edx
je 0x140018b70
mov r8d, ecx
cmp r10d, 2
jl 0x140018b28
movd eax, xmm7
movdqa xmm1, xmm4
punpckldq xmm1, xmm4
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
movdqa xmm2, xmm9
pmuldq xmm0, xmm3
mov r8d, 0xc
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm4
pmulld xmm0, xmm6
psubd xmm1, xmm0
movd xmm0, eax
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm0
movd xmm0, dword [0x140053ad8]
xorps xmm1, xmm0
movdqa xmm0, xmm9
punpckhdq xmm0, xmm9
pmuldq xmm0, xmm3
movd dword [rsp + 0x30], xmm1
movdqa xmm1, xmm9
punpckldq xmm1, xmm9
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rsp + 0x34]
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm5
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movdqa xmm0, xmm8
xorps xmm2, xmm1
punpckhdq xmm0, xmm8
movd dword [rsp + 0x34], xmm2
movdqa xmm1, xmm8
pmuldq xmm0, xmm3
movdqa xmm2, xmm8
punpckldq xmm1, xmm8
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, edx
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm5
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x38], xmm2
mov eax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
sub al, dl
movsx eax, al
imul edx, eax, 0x36
add dl, r8b
inc r8d
xor byte [r9 - 1], dl
cmp r8d, 0xe
jl 0x140018b40
cmp byte [0x140053ad5], cl
lea rax, [rsp + 0x30]
movsd xmm0, qword [str.eRVBeoJQP_0C]
mov edx, dword [0x140053ad0]
mov qword [rsp + 0x60], rax
movzx eax, word [0x140053ad4]
mov word [rsp + 0x3c], ax
mov qword [rsp + 0x70], rcx
movsd qword [rsp + 0x30], xmm0
mov dword [rsp + 0x38], edx
je 0x140018d30
mov r8d, ecx
cmp r10d, 2
jl 0x140018cf1
movd eax, xmm7
movdqa xmm1, xmm4
punpckldq xmm1, xmm4
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
mov r8d, 0xc
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm4
pmulld xmm0, xmm6
psubd xmm1, xmm0
movd xmm0, eax
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm0
movd xmm0, dword [str.eRVBeoJQP_0C]
xorps xmm1, xmm0
movdqa xmm0, xmm9
punpckhdq xmm0, xmm9
pmuldq xmm0, xmm3
movd dword [rsp + 0x30], xmm1
movdqa xmm1, xmm9
punpckldq xmm1, xmm9
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rsp + 0x34]
pmulld xmm0, xmm6
psubd xmm9, xmm0
movd xmm0, eax
andps xmm9, xmm5
packuswb xmm9, xmm9
packuswb xmm9, xmm9
paddb xmm9, xmm0
movdqa xmm0, xmm8
punpckhdq xmm0, xmm8
xorps xmm9, xmm1
movdqa xmm1, xmm8
pmuldq xmm0, xmm3
punpckldq xmm1, xmm8
pmuldq xmm1, xmm3
movd dword [rsp + 0x34], xmm9
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, edx
pmulld xmm0, xmm6
psubd xmm8, xmm0
movd xmm0, eax
andps xmm8, xmm5
packuswb xmm8, xmm8
packuswb xmm8, xmm8
paddb xmm8, xmm0
xorps xmm8, xmm1
movd dword [rsp + 0x38], xmm8
mov eax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
sub al, dl
movsx eax, al
imul edx, eax, 0x36
add dl, r8b
inc r8d
xor byte [r9 - 1], dl
cmp r8d, 0xe
jl 0x140018d00
cmp byte [0x140053b2d], cl
lea rax, [rsp + 0x30]
movups xmm0, xmmword [str.CLII]
mov qword [rbp - 0x80], rax
mov eax, dword [0x140053b28]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x58], eax
movsd xmm0, qword [0x140053b20]
movzx eax, word [0x140053b2c]
movsd qword [rsp + 0x50], xmm0
mov word [rsp + 0x5c], ax
mov qword [rbp - 0x58], rcx
je 0x140018ecc
cmp r10d, 2
jl 0x140018e86
movdqa xmmword [rsp + 0x30], xmm7
lea rdx, [rsp + 0x44]
mov r8d, dword [rsp + 0x30]
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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm5
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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm5
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 0x140018da0
cmp ecx, 0x1e
jge 0x140018ecc
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
sub al, dl
movsx eax, al
imul edx, eax, 0x36
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x1e
jl 0x140018ea0
lea rax, [rsp + 0x40]
lea rcx, [0x140068500]
mov qword [rbp - 0x48], rax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140018ef2
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x14006854c], 0x7fffffff
jne 0x140018f14
mov ecx, 6
mov dword [0x14006854c], 0x7ffffffe
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov r8d, dword [0x140068550]
lea rcx, [0x14009a848]
lea eax, [r8 + 1]
mov dword [0x140068550], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.140020fe0
mov qword [0x14009a840], rax
lea rcx, [0x140068500]
xchg byte [0x14006a1ea], bl
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [0x14009a700]
test rcx, rcx
je 0x140018f6b
add rcx, 0x58
call qword [sym.imp.MSVCP140.dll__Cnd_broadcast]
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop rbp
ret