Function at 0x140016a90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov r10d, dword [0x14005e018]
xorps xmm0, xmm0
mov qword [rax + 0x10], rdi
xor ecx, ecx
cmp byte [0x14004bae3], cl
mov edi, 0x1f
mov eax, dword [str.ABC7]
movups xmmword [rsp + 0x70], xmm0
mov dword [rbp + 0x30], eax
lea ebx, [rdi - 0x1e]
lea r11d, [rdi - 0x1b]
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
movups xmmword [rbp - 0x30], xmm0
je 0x140016bbf
cmp r10d, 2
jl 0x140016b83
movdqa xmm3, xmmword [0x140058360]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140058430]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140058430]
shufps xmm2, xmm0, 0xdd
movd xmm0, r11d
psrad xmm2, xmm0
movd xmm0, edi
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x140058380]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400583d0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400583f0]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rbp + 0x30], xmm2
jmp 0x140016bbf
lea r9, [rbp + 0x30]
mov r8d, ecx
nop word [rax + rax]
mov eax, 0x4ec4ec4f
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, 0x34
add dl, r8b
inc r8d
xor byte [r9 - 1], dl
cmp r8d, r11d
jl 0x140016b90
cmp byte [0x14004badd], cl
lea rax, [rbp + 0x30]
movsd xmm0, qword [0x14004bad0]
mov qword [rsp + 0x78], rax
mov eax, dword [0x14004bad8]
movaps xmmword [rsp + 0x110], xmm6
mov dword [rsp + 0x48], eax
movzx eax, word [0x14004badc]
movaps xmmword [rsp + 0x100], xmm7
mov word [rsp + 0x4c], ax
movaps xmmword [rsp + 0xf0], xmm8
movsd qword [rsp + 0x40], xmm0
je 0x140016d60
mov r8d, ecx
cmp r10d, 2
jl 0x140016d1f
movdqa xmm2, xmmword [0x140058360]
mov r8d, 8
movdqa xmm4, xmmword [0x140058430]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140058370]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r11d
movd xmm5, edi
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140058380]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x14004bad0]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400583d0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400583f0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x40], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140058380]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x44]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400583d0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400583f0]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x4ec4ec4f
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, 0x34
add dl, r8b
inc r8d
xor byte [r9 - 1], dl
cmp r8d, 0xe
jl 0x140016d30
movsd xmm0, qword [str.GZZVJPIeKRQY_3B]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov r8d, ecx
mov eax, dword [0x14004ba90]
mov dword [rsp + 0x38], eax
movzx eax, word [0x14004ba94]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x14004ba96]
mov byte [rsp + 0x3e], al
movsd qword [rsp + 0x30], xmm0
mov qword [rbp - 0x80], rcx
cmp r10d, 2
jl 0x140016eb1
movdqa xmm2, xmmword [0x140058360]
mov r8d, 8
movdqa xmm4, xmmword [0x140058430]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140058370]
movdqa xmm0, xmm2
mov eax, dword [0x1400583f0]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r11d
movd xmm5, edi
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140058380]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400583d0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.GZZVJPIeKRQY_3B]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x30], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140058380]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400583d0]
movd xmm1, dword [rsp + 0x34]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
mov eax, 0x4ec4ec4f
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, 0x34
add dl, r8b
inc r8d
xor byte [r9 - 1], dl
cmp r8d, 0xf
jl 0x140016ec0
cmp byte [0x14004bab5], cl
lea rax, [rsp + 0x30]
movups xmm0, xmmword [0x14004ba98]
mov qword [rbp - 0x70], rax
mov eax, dword [0x14004bab0]
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x68], eax
movsd xmm0, qword [0x14004baa8]
movzx eax, word [0x14004bab4]
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6c], ax
mov qword [rbp - 0x48], rcx
je 0x1400170bc
cmp r10d, 2
jl 0x140017084
movdqa xmm0, xmmword [0x1400583f0]
lea rdx, [rsp + 0x54]
movdqa xmm5, xmmword [0x140058360]
movdqa xmm4, xmmword [0x140058430]
movdqa xmm7, xmmword [0x140058380]
movdqa xmmword [rbp - 0x20], xmm0
mov r8d, dword [rbp - 0x20]
movd xmm6, r11d
movd xmm8, edi
nop dword [rax + 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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400583d0]
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400583d0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x140016f80
cmp eax, 0x1e
jge 0x1400170bc
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop
mov eax, 0x4ec4ec4f
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, 0x34
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x1e
jl 0x140017090
lea rax, [rsp + 0x50]
lea rcx, [0x140060fe0]
mov qword [rbp - 0x38], rax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
movaps xmm8, xmmword [rsp + 0xf0]
movaps xmm7, xmmword [rsp + 0x100]
movaps xmm6, xmmword [rsp + 0x110]
mov rdi, qword [rsp + 0x138]
test eax, eax
je 0x140017103
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x14006102c], 0x7fffffff
jne 0x140017125
mov ecx, 6
mov dword [0x14006102c], 0x7ffffffe
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov r8d, dword [0x14005f440]
lea rcx, [0x140091688]
lea eax, [r8 + 1]
mov dword [0x14005f440], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.14001e510
mov qword [0x140091680], rax
lea rcx, [0x140060fe0]
xchg byte [0x14005ff76], bl
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [0x140091218]
test rcx, rcx
je 0x14001717c
add rcx, 0x58
call qword [sym.imp.MSVCP140.dll__Cnd_broadcast]
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop rbp
ret