joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e0f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx eax, byte [0x1400ce188]
test al, al
je 0x14004e28f
test edx, edx
je 0x14004e117
cmp edx, 3
jne 0x14004e28f
mov rbx, qword [0x1400ce190]
test rbx, rbx
je 0x14004e28f
xor r14d, r14d
jmp 0x14004e139
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004e16d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004e2da
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004e130
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009858c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004e130
test r14b, 1
je 0x14004e28f
mov rbx, qword [0x1400ce190]
test rbx, rbx
je 0x14004e28f
xor r14d, r14d
jmp 0x14004e199
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004e1cd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004e2da
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004e190
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009858c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004e190
test r14b, 1
je 0x14004e28f
mov rbx, qword [0x1400ce190]
test rbx, rbx
je 0x14004e28f
xor r14d, r14d
jmp 0x14004e1f9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004e22d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004e2da
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004e1f0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009858c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004e1f0
test r14b, 1
je 0x14004e28f
mov rbx, qword [0x1400ce190]
test rbx, rbx
je 0x14004e28f
xor r14d, r14d
jmp 0x14004e259
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004e289
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14004e2da
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004e250
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009858c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14004e250
test r14b, 1
jne 0x14004e29b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x1400ce190]
jmp 0x14004e2a8
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14004e28f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x14004e2da
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14004e2a4
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009858c
mov rcx, rdi
call r14
jmp 0x14004e2a4
lea rcx, str.library_std_src_syspalwindows_thread_local_key.rs
call sym.core::option::unwrap_failed::h37b1e1ef647301c4
ud2
Function at 0x140051010
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1400ce160]
cmp rax, 3
jne 0x140051104
cmp rbx, 0x17f
ja 0x140051116
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sym.memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call dbg.from_bytes_with_nul
cmp qword [rsp + 0x28], 0
je 0x140051094
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140051127
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x1400510ec
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x140051127
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x140051127
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::pal::windows::net::init::{closure_env#0}>, !>
cmp rbx, 0x17f
jbe 0x14005104a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost, std::sys_common::net::{impl#6}::try_from::{closure_env#0}>
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140051140
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140051162
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140051234
mov rax, qword [0x1400ce160]
cmp rax, 3
jne 0x14005123f
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call sym.std::sys::pal::windows::net::Socket::new::h1534ed451c581d5f
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x1400511a3
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140051234
cmp word [rbx], 0
je 0x1400511c4
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400511d9
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140051214
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140051234
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::pal::windows::net::init::{closure_env#0}>, !>
jmp 0x140051173
Function at 0x1400515c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x14005166f
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x14005167e
cmp ecx, 0x17
jne 0x1400516a5
cmp eax, 0x1b
jbe 0x1400516be
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400516ac
cmp eax, 0xf
jbe 0x1400516d6
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.RE_n_
mov edx, 0x43
call dbg.panic
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1400a4578]
mov edx, 0x42
call dbg.panic
int3

Function at 0x1400518d0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x90]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
cmp word [r10], 0
je 0x14005191a
movups xmm0, xmmword [r10 + 4]
mov ecx, dword [r10 + 0x14]
mov r11d, dword [r10 + 0x18]
movzx r10d, word [r10 + 0x1c]
mov r9d, 0x1c
mov di, 0x17
jmp 0x140051930
mov ecx, dword [r10 + 2]
movzx r10d, word [r10 + 6]
mov r9d, 0x10
mov di, 2
xorps xmm0, xmm0
rol r10w, 8
mov word [rsp + 0x3c], di
mov word [rsp + 0x3e], r10w
mov dword [rsp + 0x40], ecx
movups xmmword [rsp + 0x44], xmm0
mov dword [rsp + 0x54], r11d
mov rcx, qword [rdx]
mov dword [rsp + 0x28], r9d
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x14005197a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140051990
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1400519a0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
mov rax, r8
test rdx, rdx
je 0x1400519b1
add rsp, 0x48
ret
cmp word [rax], 0
je 0x1400519d3
movups xmm0, xmmword [rax + 4]
mov edx, dword [rax + 0x14]
mov r9d, dword [rax + 0x18]
movzx eax, word [rax + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x1400519e8
mov edx, dword [rax + 2]
movzx eax, word [rax + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol ax, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], ax
mov dword [rsp + 0x30], edx
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
mov rcx, qword [rcx]
lea rdx, [rsp + 0x2c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140051a1e
xor eax, eax
add rsp, 0x48
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x48
ret
Function at 0x140056440
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rdi, rdx
test rax, rax
je 0x1400564d0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call dbg.file_attr
cmp dword [rsp + 0x38], 2
jne 0x1400564ff
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14005654b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x140056577
lea rcx, [rsp + 0x88]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14009887c
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x1400565d5
mov qword [rsp + 0x80], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140056651
mov rbx, qword [rsp + 0x80]
jmp 0x1400565d7
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140056640
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.14009887c
test r15, r15
je 0x140056640
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14005667d
mov qword [rsi], 0
mov rcx, rbx
call fcn.14009887c
jmp 0x14005667d
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
call fcn.14009887c
jmp 0x1400564bf
Function at 0x140058690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14009b088]
test ecx, ecx
je 0x1400586c0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400586d9
cmp qword [rax + 8], 0
je 0x1400586d9
add rax, 0x10
jmp 0x1400587a1
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400586b0
mov ecx, dword [0x14009b088]
test ecx, ecx
je 0x140058782
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005879f
mov rdi, rax
test rax, rax
jne 0x14005874b
mov rax, qword [0x1400c0808]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400587b8
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009b088]
test ecx, ecx
je 0x1400587a8
dec ecx
mov rdx, rdi
call fcn.14009858c
xor ecx, ecx
test rsi, rsi
je 0x14005876b
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x14005876b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14005876d
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x1400587a1
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400586f8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x140058743
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x1400587d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009b0a8]
test ecx, ecx
je 0x1400588d2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140058802
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x1400588cc
mov ecx, dword [0x14009b0a8]
test ecx, ecx
je 0x1400588f4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140058911
mov rdi, rax
test rax, rax
jne 0x140058878
mov rax, qword [0x1400c0808]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140058930
mov rdi, rax
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009b0a8]
test ecx, ecx
je 0x14005891d
dec ecx
mov rdx, rdi
call fcn.14009858c
test rsi, rsi
je 0x140058892
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x140058894
mov rax, qword [rsi + 8]
jmp 0x140058894
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x1400588cc
test rcx, rcx
je 0x1400588cc
lock dec qword [rcx]
jne 0x1400588cc
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140058913
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400587f4
jmp 0x140058802
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140058821
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x140058870
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x140058940
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14009b0c8]
test ecx, ecx
je 0x14005896f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140058988
cmp byte [rax + 8], 0
je 0x140058988
add rax, 9
jmp 0x140058a30
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140058960
mov ecx, dword [0x14009b0c8]
test ecx, ecx
je 0x140058a11
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140058a2e
mov rdi, rax
test rax, rax
jne 0x1400589ee
mov rax, qword [0x1400c0808]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140058a47
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x14009b0c8]
test ecx, ecx
je 0x140058a37
dec ecx
mov rdx, rdi
call fcn.14009858c
xor ecx, ecx
test rsi, rsi
je 0x140058a04
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x140058a30
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400589a3
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x1400589e6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x140058a60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14009b0e8]
test ecx, ecx
je 0x140058a8f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140058aa8
cmp byte [rax + 8], 0
je 0x140058aa8
add rax, 9
jmp 0x140058b50
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140058a80
mov ecx, dword [0x14009b0e8]
test ecx, ecx
je 0x140058b31
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140058b4e
mov rdi, rax
test rax, rax
jne 0x140058b0e
mov rax, qword [0x1400c0808]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140058b67
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x14009b0e8]
test ecx, ecx
je 0x140058b57
dec ecx
mov rdx, rdi
call fcn.14009858c
xor ecx, ecx
test rsi, rsi
je 0x140058b24
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x140058b50
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140058ac3
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x140058b06
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x140058b80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009b108]
test ecx, ecx
je 0x140058c7c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140058bb2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140058c76
mov ecx, dword [0x14009b108]
test ecx, ecx
je 0x140058ca5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140058cc2
mov rdi, rax
test rax, rax
jne 0x140058c28
mov rax, qword [0x1400c0808]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140058ce1
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009b108]
test ecx, ecx
je 0x140058cce
dec ecx
mov rdx, rdi
call fcn.14009858c
test rsi, rsi
je 0x140058c9e
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x140058c9e
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x140058c76
test rcx, rcx
je 0x140058c76
lock dec qword [rcx]
jne 0x140058c76
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140058cc4
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140058ba4
jmp 0x140058bb2
call sym.std::sync::mpmc::context::Context::new::hf40be5734a4388b1
jmp 0x140058c3e
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140058bd1
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x140058c20
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x140058d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009b128]
test ecx, ecx
je 0x140058e02
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140058d32
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140058dfc
mov ecx, dword [0x14009b128]
test ecx, ecx
je 0x140058e24
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140058e41
mov rdi, rax
test rax, rax
jne 0x140058da8
mov rax, qword [0x1400c0808]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140058e60
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009b128]
test ecx, ecx
je 0x140058e4d
dec ecx
mov rdx, rdi
call fcn.14009858c
test rsi, rsi
je 0x140058dc2
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x140058dc4
mov rax, qword [rsi + 8]
jmp 0x140058dc4
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x140058dfc
test rcx, rcx
je 0x140058dfc
lock dec qword [rcx]
jne 0x140058dfc
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140058e43
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140058d24
jmp 0x140058d32
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140058d51
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h49c2100727a863e8
mov ecx, eax
jmp 0x140058da0
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3