Function at 0x140017eb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov eax, dword [0x14003d988]
xorps xmm0, xmm0
mov r10d, dword [0x14004e088]
xor ecx, ecx
mov dword [rsp + 0x50], eax
mov r8d, ecx
movzx eax, word [0x14003d98c]
mov word [rsp + 0x54], ax
movzx eax, byte [0x14003d98e]
mov byte [rsp + 0x56], al
movaps xmmword [rsp + 0x100], xmm6
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
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [0x14003d978]
movups xmmword [rsp + 0x40], xmm0
cmp r10d, 2
jl 0x140018069
movdqa xmm0, xmmword [0x140048c70]
lea rdx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140048bc0]
movdqa xmm4, xmmword [0x140048cb0]
movdqa xmm6, xmmword [0x140048be0]
movdqa xmmword [rsp + 0x60], xmm0
mov r9d, dword [rsp + 0x60]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 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 r8d, 8
pmuldq xmm1, xmm4
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 [0x140048c40]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r9d
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, r9d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140048c40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp r8d, 0x10
jl 0x140017f60
cmp r8d, 0x17
jge 0x1400180b1
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0x17
jl 0x140018080
movsd xmm0, qword [str.yVVTT]
lea rax, [rsp + 0x40]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x70], rax
mov r8d, ecx
mov eax, dword [0x14003d9b0]
mov dword [rsp + 0x38], eax
movzx eax, word [0x14003d9b4]
mov word [rsp + 0x3c], ax
movzx eax, byte [str.__pipediscord_ipc_0]
mov byte [rsp + 0x3e], al
mov qword [rbp - 0x60], rcx
movsd qword [rsp + 0x30], xmm0
cmp r10d, 2
jl 0x140018205
movdqa xmm2, xmmword [0x140048bc0]
mov r8d, 8
movdqa xmm4, xmmword [0x140048cb0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140048bd0]
movdqa xmm0, xmm2
mov eax, dword [0x140048c70]
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 [0x140048be0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140048c40]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.yVVTT]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x30], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140048be0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140048c40]
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
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xf
jl 0x140018210
cmp byte [0x14003d965], cl
lea rax, [rsp + 0x30]
movups xmm0, xmmword [str.ZG_EE_r]
mov qword [rbp - 0x50], rax
mov eax, dword [0x14003d960]
movups xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x78], eax
movsd xmm0, qword [0x14003d958]
movzx eax, word [0x14003d964]
movsd qword [rbp - 0x80], xmm0
mov word [rbp - 0x74], ax
mov qword [rbp - 0x28], rcx
je 0x14001841d
cmp r10d, 2
jl 0x1400183d6
movdqa xmm0, xmmword [0x140048c70]
lea rdx, [rsp + 0x74]
movdqa xmm5, xmmword [0x140048bc0]
movdqa xmm4, xmmword [0x140048cb0]
movdqa xmm6, xmmword [0x140048be0]
movdqa xmmword [rsp + 0x60], xmm0
mov r8d, dword [rsp + 0x60]
nop dword [rax]
nop word [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, 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 [0x140048c40]
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 [0x140048c40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x1400182d0
cmp eax, 0x1e
jge 0x14001841d
movsxd rax, ecx
lea r8, [rsp + 0x70]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
inc ecx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ecx, 0x1e
jl 0x1400183f0
lea rax, [rsp + 0x70]
lea rcx, [0x140051040]
mov qword [rbp - 0x18], rax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
movaps xmm6, xmmword [rsp + 0x100]
test eax, eax
je 0x14001844b
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x14005108c], 0x7fffffff
jne 0x14001846d
mov ecx, 6
mov dword [0x14005108c], 0x7ffffffe
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov r8d, dword [0x14004f4b0]
lea rcx, [0x140081708]
lea eax, [r8 + 1]
mov dword [0x14004f4b0], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call fcn.14001f410
mov qword [0x140081700], rax
lea rcx, [0x140051040]
mov eax, 1
xchg byte [0x14004ffd6], al
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [0x140081298]
test rcx, rcx
je 0x1400184c8
add rcx, 0x58
call qword [sym.imp.MSVCP140.dll__Cnd_broadcast]
add rsp, 0x110
pop rbp
ret