joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052b10
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
cmp edx, 3
je 0x140052b28
test edx, edx
jne 0x140052c9f
mov rbx, qword [0x1400d6158]
test rbx, rbx
je 0x140052c9f
xor r14d, r14d
jmp 0x140052b49
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140052b7d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140052cea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140052b40
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009db84
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140052b40
test r14b, 1
je 0x140052c9f
mov rbx, qword [0x1400d6158]
test rbx, rbx
je 0x140052c9f
xor r14d, r14d
jmp 0x140052ba9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140052bdd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140052cea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140052ba0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009db84
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140052ba0
test r14b, 1
je 0x140052c9f
mov rbx, qword [0x1400d6158]
test rbx, rbx
je 0x140052c9f
xor r14d, r14d
jmp 0x140052c09
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140052c3d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140052cea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140052c00
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009db84
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140052c00
test r14b, 1
je 0x140052c9f
mov rbx, qword [0x1400d6158]
test rbx, rbx
je 0x140052c9f
xor r14d, r14d
jmp 0x140052c69
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140052c99
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140052cea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140052c60
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009db84
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140052c60
test r14b, 1
jne 0x140052cab
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x1400d6158]
jmp 0x140052cb8
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140052c9f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x140052cea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140052cb4
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14009db84
mov rcx, rdi
call r14
jmp 0x140052cb4
lea rcx, str.library_std_src_syspalwindows_thread_local_key.rs
call sym.core::option::unwrap_failed::hc0851016c6838662
ud2
Function at 0x1400567d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400567e9
dec ecx
jmp 0x1400567f3
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.14009db84
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x14005682a
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14005682a
lock dec qword [rax]
jne 0x14005682a
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056845
dec ecx
jmp 0x14005684f
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
call fcn.14009db84
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1400568f0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056907
dec ecx
jmp 0x140056911
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.14009db84
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056939
dec ecx
jmp 0x140056943
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.14009db84

Function at 0x1400569f0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056a09
dec ecx
jmp 0x140056a13
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.14009db84
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x140056a4a
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140056a4a
lock dec qword [rax]
jne 0x140056a4a
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056a65
dec ecx
jmp 0x140056a6f
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
call fcn.14009db84
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140056b10
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056b27
dec ecx
jmp 0x140056b31
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.14009db84
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056b59
dec ecx
jmp 0x140056b63
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.14009db84
Function at 0x140056c10
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056c29
dec ecx
jmp 0x140056c33
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.14009db84
mov rcx, qword [rsp + 0x38]
cmp qword [rcx + 8], 0
je 0x140056c6a
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140056c6a
lock dec qword [rax]
jne 0x140056c6a
lea rax, [rcx + 0x10]
mov rdi, rcx
mov rcx, rax
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov rcx, rdi
mov edx, 0x18
mov r8d, 8
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140056c85
dec ecx
jmp 0x140056c8f
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
call fcn.14009db84
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140056f70
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x200
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x26], ax
mov rax, qword [0x1400d6138]
cmp rax, 3
jne 0x14005707c
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
ja 0x14005709e
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r8, rdi
call sym.memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rdi
call dbg.from_bytes_with_nul
cmp qword [rsp + 0x38], 0
je 0x140057002
lea rax, [0x1400a7bb8]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14005706e
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x140057053
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140057067
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x26]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x200
pop rbx
pop rdi
pop rsi
ret
mov rbx, rdx
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}>, !>
mov rdx, rbx
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
jbe 0x140056fb8
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost>
jmp 0x14005706e
Function at 0x1400570b0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov eax, 1
test rcx, rcx
jne 0x140057162
mov rax, qword [0x1400d6138]
cmp rax, 3
jne 0x140057188
mov rsi, rdx
mov rcx, rdx
mov edx, 1
call sym.std::sys::pal::windows::net::Socket::new::hcd1973642841914a
test rax, rax
je 0x1400570f1
mov eax, 1
jmp 0x140057162
cmp word [rsi], 0
je 0x140057113
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov r9d, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x140057128
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], cx
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
lea rax, [rsp + 0x2c]
mov rsi, rdx
mov rcx, rdx
mov rdx, rax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140057169
xor eax, eax
mov rdx, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.WS2_32.dll_closesocket
mov rdx, rdi
jmp 0x1400570ea
mov rsi, rdx
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}>, !>
mov rdx, rsi
jmp 0x1400570d5

Function at 0x1400574f0
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 0x14005759f
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x1400575ae
cmp ecx, 0x17
jne 0x1400575d5
cmp eax, 0x1b
jbe 0x1400575ee
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 0x1400575dc
cmp eax, 0xf
jbe 0x140057606
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.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
mov edx, 0x43
call dbg.panic
lea rcx, [0x1400aa0f1]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
mov edx, 0x42
call dbg.panic
int3
Function at 0x1400577e0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x50
mov rax, r8
cmp r8, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
cmp word [r9], 0
je 0x14005781e
movups xmm0, xmmword [r9 + 4]
mov eax, dword [r9 + 0x14]
mov r11d, dword [r9 + 0x18]
movzx r10d, word [r9 + 0x1c]
mov r9d, 0x1c
mov si, 0x17
jmp 0x140057834
mov eax, dword [r9 + 2]
movzx r10d, word [r9 + 6]
mov r9d, 0x10
mov si, 2
xorps xmm0, xmm0
rol r10w, 8
mov word [rsp + 0x34], si
mov word [rsp + 0x36], r10w
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x3c], xmm0
mov dword [rsp + 0x4c], r11d
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x14005787c
movsxd rdx, eax
xor eax, eax
add rsp, 0x50
pop rsi
ret
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x50
pop rsi
ret

Function at 0x1400578a0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
mov rax, r8
test rdx, rdx
je 0x1400578b1
add rsp, 0x48
ret
cmp word [rax], 0
je 0x1400578d3
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 0x1400578e8
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 0x14005791e
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 0x14005c1d0
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 0x14005c260
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 0x14005c28f
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14005c2db
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 0x14005c307
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 sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14005c365
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 0x14005c3e1
mov rbx, qword [rsp + 0x80]
jmp 0x14005c367
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 0x14005c3d0
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 sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x14005c3d0
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14005c40d
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x14005c40d
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 sub.KERNEL32.dll_CloseHandle
jmp 0x14005c24f
Function at 0x14005e330
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 [0x1400a0060]
test ecx, ecx
je 0x14005e360
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005e379
cmp qword [rax + 8], 0
je 0x14005e379
add rax, 0x10
jmp 0x14005e444
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005e350
mov ecx, dword [0x1400a0060]
test ecx, ecx
je 0x14005e425
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005e442
test rax, rax
jne 0x14005e3eb
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005e464
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400a0060]
test ecx, ecx
je 0x14005e44b
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009db84
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x14005e40b
mov rdx, qword [rsi]
mov qword [rsi], 0
cmp rdx, 1
jne 0x14005e40b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14005e40d
xor edx, edx
mov qword [rax + 8], 1
lea r8, [rax + 0x10]
mov qword [rax + 0x10], rdx
mov byte [rax + 0x18], cl
mov rax, r8
jmp 0x14005e444
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005e398
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005e3dd
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x14005e480
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 [0x1400a0080]
test ecx, ecx
je 0x14005e599
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005e4af
cmp qword [rax + 8], 0
jne 0x14005e593
mov ecx, dword [0x1400a0080]
test ecx, ecx
je 0x14005e5bb
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005e5d8
test rax, rax
jne 0x14005e539
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rsp + 0x20], rax
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005e5fa
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a0080]
test ecx, ecx
je 0x14005e5e1
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009db84
mov rax, rdi
test rsi, rsi
je 0x14005e553
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14005e555
mov rcx, qword [rsi + 8]
jmp 0x14005e555
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14005e593
test rdx, rdx
je 0x14005e593
lock dec qword [rdx]
jne 0x14005e593
lea rcx, [rsp + 0x28]
mov rsi, rax
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rax, rsi
add rax, 0x10
jmp 0x14005e5da
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005e4a4
jmp 0x14005e4af
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005e4ce
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005e52b
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005e630
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 [0x1400a00a0]
test ecx, ecx
je 0x14005e65f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005e678
cmp byte [rax + 8], 0
je 0x14005e678
add rax, 9
jmp 0x14005e72b
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005e650
mov ecx, dword [0x1400a00a0]
test ecx, ecx
je 0x14005e70c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005e729
test rax, rax
jne 0x14005e6e6
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005e748
lea rcx, dbg.destroy_value_u8_
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1400a00a0]
test ecx, ecx
je 0x14005e732
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009db84
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x14005e6fc
cmp byte [rsi], 0
mov byte [rsi], 0
movzx edx, byte [rsi + 1]
cmove edx, ecx
mov ecx, edx
lea rdx, [rax + 9]
mov byte [rax + 8], 1
mov byte [rax + 9], cl
mov rax, rdx
jmp 0x14005e72b
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005e697
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005e6d8
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3

Function at 0x14005e760
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 [0x1400a00c0]
test ecx, ecx
je 0x14005e78f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005e7a8
cmp byte [rax + 8], 0
je 0x14005e7a8
add rax, 9
jmp 0x14005e85b
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005e780
mov ecx, dword [0x1400a00c0]
test ecx, ecx
je 0x14005e83c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005e859
test rax, rax
jne 0x14005e816
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005e878
lea rcx, dbg.destroy_value_u8_
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1400a00c0]
test ecx, ecx
je 0x14005e862
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009db84
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x14005e82c
cmp byte [rsi], 0
mov byte [rsi], 0
movzx edx, byte [rsi + 1]
cmove edx, ecx
mov ecx, edx
lea rdx, [rax + 9]
mov byte [rax + 8], 1
mov byte [rax + 9], cl
mov rax, rdx
jmp 0x14005e85b
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005e7c7
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005e808
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3