Function at 0x140217590
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 [0x14029b1a0]
test ecx, ecx
je 0x1402175ea
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140217603
cmp qword [rax + 8], 0
je 0x140217603
add rax, 0x10
jmp 0x14021784d
lea rcx, [0x14029b188]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1402175da
mov ecx, dword [0x14029b1a0]
test ecx, ecx
je 0x14021782e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14021784b
mov rsi, rax
test rax, rax
jne 0x140217698
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x140217655
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1402178ba
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1402178ba
mov rsi, rax
lea rax, [0x14029b188]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14029b1a0]
test ecx, ecx
je 0x14021787e
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
call fcn.14027a140
test rax, rax
je 0x140217891
movdqu xmm6, xmmword [rax]
inc qword [rax]
pshufd xmm7, xmm6, 0x44
pxor xmm7, xmmword [str.uespemosarenegylmodnarodsetybdeth]
pshufd xmm8, xmm6, 0xee
pxor xmm8, xmmword [0x1402a3600]
mov r14d, 1
lea r15, [rsp + 0x60]
xorps xmm9, xmm9
lea rdi, [rsp + 0x30]
lea rbx, [rsp + 0x28]
nop word cs:[rax + 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.14010f060
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 0x1402176f0
lea rax, [rsi + 0x10]
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], r8
jmp 0x14021784d
lea rcx, [0x14029b188]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140217622
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, [0x14029b188]
call fcn.140242d30
mov ecx, eax
jmp 0x140217690
lea rax, [0x14036b330]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
lea r9, [0x14035cbb0]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.1400ad960
mov ecx, 8
mov edx, 0x18
call fcn.1400a81e0
int3