Function at 0x140016a60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov eax, dword [str.MZVW_]
xorps xmm0, xmm0
mov r10d, dword [0x14005b088]
xor ecx, ecx
cmp byte [0x140049aa5], cl
movups xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x71], eax
movzx eax, word [0x140049aa4]
movups xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x6d], ax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
movsd xmm0, qword [str.UQS]
movsd qword [rbp - 0x79], xmm0
movaps xmmword [rsp + 0xf0], xmm6
je 0x140016c11
mov r8d, ecx
cmp r10d, 2
jl 0x140016bd5
movdqa xmm2, xmmword [0x140055670]
mov r8d, 8
movdqa xmm4, xmmword [0x140055750]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140055680]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140055690]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.UQS]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400556f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.33333333333333336666666666666666]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x79], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140055690]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x75]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400556f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.33333333333333336666666666666666]
xorps xmm2, xmm0
movd dword [rbp - 0x75], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x79]
add r9, rax
nop
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x140016be0
cmp byte [0x140049abd], cl
lea rax, [rbp - 0x79]
movsd xmm0, qword [0x140049ab0]
mov qword [rbp - 0x31], rax
mov eax, dword [0x140049ab8]
mov dword [rbp - 0x61], eax
movzx eax, word [0x140049abc]
mov word [rbp - 0x5d], ax
movsd qword [rbp - 0x69], xmm0
je 0x140016d91
mov r8d, ecx
cmp r10d, 2
jl 0x140016d52
movdqa xmm2, xmmword [0x140055670]
mov r8d, 8
movdqa xmm4, xmmword [0x140055750]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140055680]
movdqa xmm0, xmm2
mov eax, dword [str.33333333333333336666666666666666]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140055690]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400556f0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x140049ab0]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x69], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140055690]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400556f0]
movd xmm1, dword [rbp - 0x65]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x65], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x69]
add r9, rax
nop dword [rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x140016d60
cmp byte [0x140049aaf], cl
lea rax, [rbp - 0x69]
mov qword [rbp - 0x39], rax
mov rax, qword [str._DG_C_C:zZ]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x29], rcx
je 0x140016ef1
cmp r10d, 2
jl 0x140016eb6
movdqa xmm2, xmmword [0x140055670]
movdqa xmm4, xmmword [0x140055750]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140055680]
movdqa xmm0, xmm2
mov eax, dword [str.33333333333333336666666666666666]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140055690]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400556f0]
movd xmm1, dword [rbp + 0x67]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movd dword [rbp + 0x67], xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140055690]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400556f0]
movd xmm1, dword [rbp + 0x6b]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp + 0x6b], xmm2
jmp 0x140016ef1
lea r9, [rbp + 0x67]
mov r8d, ecx
nop dword [rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x140016ec0
cmp byte [0x140049a95], cl
lea rax, [rbp + 0x67]
movups xmm0, xmmword [str.__AFD]
mov qword [rbp - 0x19], rax
mov eax, dword [0x140049a90]
movups xmmword [rbp - 0x59], xmm0
mov dword [rbp - 0x41], eax
movsd xmm0, qword [0x140049a88]
movzx eax, word [0x140049a94]
movsd qword [rbp - 0x49], xmm0
mov word [rbp - 0x3d], ax
mov qword [rbp + 0xf], rcx
je 0x1400170ad
cmp r10d, 2
jl 0x140017076
movdqa xmm0, xmmword [str.33333333333333336666666666666666]
lea rdx, [rbp - 0x55]
movdqa xmm5, xmmword [0x140055670]
movdqa xmm4, xmmword [0x140055750]
movdqa xmm6, xmmword [0x140055690]
movdqa xmmword [rbp + 0x37], xmm0
mov r8d, dword [rbp + 0x37]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
mov eax, ecx
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400556f0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400556f0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x140016f70
cmp eax, 0x1e
jge 0x1400170ad
movsxd rax, ecx
lea r8, [rbp - 0x59]
add r8, rax
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0x1e
jl 0x140017080
lea rax, [rbp - 0x59]
lea rcx, [0x14005e050]
mov qword [rbp + 0x1f], rax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
movaps xmm6, xmmword [rsp + 0xf0]
test eax, eax
je 0x1400170da
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x14005e09c], 0x7fffffff
jne 0x1400170fc
mov ecx, 6
mov dword [0x14005e09c], 0x7ffffffe
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov r8d, dword [0x14005c4b0]
lea rcx, [0x14008e6f8]
lea eax, [r8 + 1]
mov dword [0x14005c4b0], eax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
call fcn.14001e3a0
mov qword [0x14008e6f0], rax
lea rcx, [0x14005e050]
mov eax, 1
xchg byte [0x14005cfe6], al
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [0x14008e288]
test rcx, rcx
je 0x140017157
add rcx, 0x58
call qword [sym.imp.MSVCP140.dll__Cnd_broadcast]
add rsp, 0x100
pop rbp
ret