Function at 0x1401659f0
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 [0x140391058]
test ecx, ecx
je 0x140165a43
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140165a5c
add rax, 8
jmp 0x140165c55
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h0b426f6ff46acd0b
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140165a3a
je 0x140165c53
call sym.std::hash::random::RandomState::new::KEYS::__u7b__u7b_closure_u7d__u7d_::h8624d2910f786e78
test rax, rax
je 0x140165ca6
movdqu xmm6, xmmword [rax]
inc qword [rax]
pshufd xmm7, xmm6, 0x44
pxor xmm7, xmmword [0x14039c210]
pshufd xmm8, xmm6, 0xee
pxor xmm8, xmmword [0x14039c220]
mov ebx, 1
lea r14, [rsp + 0x60]
xorps xmm9, xmm9
lea rsi, [rsp + 0x30]
lea rdi, [rsp + 0x28]
nop dword [rax + rax]
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm6
movaps xmmword [r14], xmm9
mov qword [r14 + 0x10], 0
mov qword [rsp + 0x28], rbx
mov r8d, 8
mov rcx, rsi
mov rdx, rdi
call sym.__core::hash::sip::Hasher_S__as_core::hash::Hasher_::write::h1e7da10d0c5cb165
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 r15, rdx
rol r15, 0x20
xor r15, rax
xor r15, rcx
inc rbx
xor r15, rdx
je 0x140165ab0
movzx eax, byte [0x1404a5170]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x140165ccf
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h0b426f6ff46acd0b
mov qword [rsi], rax
mov qword [rsi + 8], r15
mov ecx, dword [0x140391058]
test ecx, ecx
je 0x140165c86
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140391058]
test ecx, ecx
je 0x140165c96
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.14021a8f4
test rdi, rdi
je 0x140165c4e
mov rcx, qword [0x1404a5110]
xor edx, edx
mov r8, rdi
call fcn.14021a7bc
mov rax, rbx
jmp 0x140165c55
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, sym.std::sys::thread_local::os_local::destroy_value::h0b426f6ff46acd0b
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x140165c18
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h0b426f6ff46acd0b
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x140165c2c
lea rax, [0x140444748]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_3f5fd8dd41153bc5fdca9427e9e05be2c767ba23library_std_src_threadlocal.rs
lea r9, [0x140444690]
lea r8, [rsp + 0x30]
mov edx, 0x46
call sym.core::result::unwrap_failed::h9b9528a0a4171737
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
int3