Function at 0x1400c6390
Capabilities:
Encode data using xor
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm9
movdqa xmmword [rsp + 0xa0], xmm8
movdqa xmmword [rsp + 0x90], xmm7
movdqa xmmword [rsp + 0x80], xmm6
mov ecx, dword [0x1401fc068]
test ecx, ecx
je 0x1400c63ea
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400c6403
cmp qword [rax + 8], 0
je 0x1400c6403
add rax, 0x10
jmp 0x1400c661d
lea rcx, [0x1401fc050]
call fcn.14016c770
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400c63da
mov ecx, dword [0x1401fc068]
test ecx, ecx
je 0x1400c65fe
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400c661b
mov rsi, rax
test rax, rax
jne 0x1400c6473
movzx eax, byte [0x1402f31d1]
mov edx, 0x18
xor ecx, ecx
call fcn.14018e330
test rax, rax
je 0x1400c668a
mov rsi, rax
lea rax, [0x1401fc050]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401fc068]
test ecx, ecx
je 0x1400c664e
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
call fcn.140192f90
test rax, rax
je 0x1400c6661
movdqu xmm6, xmmword [rax]
inc qword [rax]
pshufd xmm7, xmm6, 0x44
pxor xmm7, xmmword [0x140200b00]
pshufd xmm8, xmm6, 0xee
pxor xmm8, xmmword [0x140200b10]
mov r14d, 1
lea r15, [rsp + 0x60]
xorps xmm9, xmm9
lea rdi, [rsp + 0x30]
lea rbx, [rsp + 0x28]
nop dword [rax]
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm6
movaps xmmword [r15], xmm9
mov qword [r15 + 0x10], 0
mov qword [rsp + 0x28], r14
mov r8d, 8
mov rcx, rdi
mov rdx, rbx
call fcn.14000eeb0
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rax
rol rax, 0xd
xor rcx, r9
xor rax, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rcx
rol rcx, 0x10
xor rcx, rdx
add r8, rcx
rol rcx, 0x15
add rdx, rax
rol rax, 0x11
xor rcx, r8
xor rax, rdx
rol rdx, 0x20
xor r8, r9
add r8, rax
rol rax, 0xd
xor rax, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rcx
rol rcx, 0x10
xor rcx, rdx
add r8, rcx
rol rcx, 0x15
add rdx, rax
rol rax, 0x11
xor rax, rdx
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
xor rax, r8
rol r8, 0x20
add rdx, rcx
rol rcx, 0x10
xor rcx, rdx
add r8, rcx
rol rcx, 0x15
add rdx, rax
rol rax, 0x11
xor rax, rdx
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
add rdx, rcx
rol rcx, 0x10
xor rcx, rdx
rol rcx, 0x15
xor rax, r8
add rdx, rax
rol rax, 0x11
mov r8, rdx
rol r8, 0x20
xor r8, rax
xor r8, rcx
inc r14
xor r8, rdx
je 0x1400c64c0
lea rax, [rsi + 0x10]
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], r8
jmp 0x1400c661d
lea rcx, [0x1401fc050]
call fcn.14016c770
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c6422
xor eax, eax
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
movaps xmm8, xmmword [rsp + 0xa0]
movaps xmm9, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1401fc050]
call fcn.14016c770
mov ecx, eax
jmp 0x1400c646b
lea rax, [0x14026f680]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_129f3b9964af4d4a709d1383930ade12dfe7c081library_std_src_threadlocal.rs
lea r9, [0x140247810]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.140033850
mov ecx, 8
mov edx, 0x18
call fcn.140023f30
int3