joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004420]
mov rcx, qword [0x1400043d0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x140004430]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x140004410]
mov dword [0x14000700c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004380]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001644
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400070a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400070a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001692
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000168a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001779
inc ebx
add rax, 0x28
jmp 0x14000166a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x1400016b1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1400070a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001713
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001773
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001773
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001773
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1400070a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001ba0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001bec
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001be6
test eax, eax
jne 0x140001be6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001bbe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001da0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001dc3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001dc3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140001dc4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001dfe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001df5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001e00
inc r8d
add rax, 0x28
jmp 0x140001ddc
xor eax, eax
ret

Function at 0x140001e71
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400043d0]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140001e9d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140097d00]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140097d10]
mov dword [rax], 1
mov rax, qword [0x140097d20]
mov dword [rax], 1
mov rax, qword [0x140097c80]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140097cf0]
mov dword [0x14009e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140097dc0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140097da0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140097c60]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140009760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400097f0
cmp r11, r10
ja 0x14000985e
cmp r10, rdx
ja 0x140009872
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400097f2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400097d0
jmp 0x14000984c
ja 0x1400097fa
mov r11, r10
cmp rax, r8
jne 0x140009794
add rsi, rdi
lea rdx, [rdi + 1]
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
movzx r8d, byte [rdi]
test r8b, r8b
jns 0x140009830
cmp rdx, rsi
je 0x140009883
movzx r9d, byte [rdx]
inc rdx
and r8d, 0x7f
shl r8d, 8
or r8d, r9d
mov rdi, rdx
sub ecx, r8d
js 0x14000984e
xor al, 1
xor edx, edx
cmp rdi, rsi
setne dl
add rdx, rdi
cmp rdi, rsi
jne 0x140009810
jmp 0x14000984e
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::he555199e980d552e
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::hb9e1ad6ed19e23ce
ud2
lea rcx, [0x140097373]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call sym.core::panicking::panic::h7eca2dca7d5f1519
ud2

Function at 0x14000a9af
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14008c018]
test ecx, ecx
je 0x14000a9c8
dec ecx
add rsp, 0x28
jmp fcn.14008a00c
lea rcx, section..data
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14000a9bf

Function at 0x14000a9d8
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14000a9f9
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14008a004
mov rcx, rax
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14000a9ec

Function at 0x14000aa05
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx]
mov edx, 1
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::set::h3a2feaa1e71228a7
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
call sym.core::ptr::drop_in_place_core::option::Option_crossbeam_epoch::collector::LocalHandle__::h89f0259ddf201c89
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
mov rcx, rdi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp sym.std::sys::windows::thread_local_key::StaticKey::set::h3a2feaa1e71228a7
Function at 0x14000ee0d
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14000ee26
dec ecx
add rsp, 0x28
jmp fcn.14008a00c
mov rcx, rax
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14000ee1d
Function at 0x140014870
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae sym.core::str::count::do_count_chars::hfd77dd0bc2f5cd55
cmp rax, rcx
je 0x140014895
cmp rdx, 4
jae 0x140014898
xor eax, eax
xor r8d, r8d
jmp 0x140014930
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14008d6d0]
movdqa xmm3, xmmword [0x14008d6e0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400148c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140014947
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140014930
ret
Function at 0x14002d330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14002d348
add rsp, 0x28
jmp sym.std::io::stdio::cleanup::h6d15ec2fa2f7c720
lea rcx, [0x140097373]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call sym.core::panicking::panic::h7eca2dca7d5f1519
ud2

Function at 0x14002d370
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14002d388
add rsp, 0x28
jmp sym.std::io::stdio::cleanup::h6d15ec2fa2f7c720
lea rcx, [0x140097373]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call sym.core::panicking::panic::h7eca2dca7d5f1519
ud2

Function at 0x14002d480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14008c100]
test ecx, ecx
je 0x14002d53d
dec ecx
call fcn.14008a00c
cmp rax, 2
jb 0x14002d4b0
cmp qword [rax + 8], 0
je 0x14002d4b0
add rax, 0x10
jmp 0x14002d537
mov ecx, dword [0x14008c100]
test ecx, ecx
je 0x14002d550
dec ecx
call fcn.14008a00c
cmp rax, 1
je 0x14002d535
mov rsi, rax
test rax, rax
jne 0x14002d51b
movzx eax, byte [0x14009e150]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14002d573
mov rsi, rax
lea rax, sym.std::sys::common::thread_local::os_local::destroy_value::h382566231b43ce64
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14008c100]
test ecx, ecx
je 0x14002d563
dec ecx
mov rdx, rsi
call fcn.14008a004
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x14002d537
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h382566231b43ce64
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14002d495
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h382566231b43ce64
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14002d4c0
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h382566231b43ce64
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14002d513
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::h5459b1f9ef419134
ud2
Function at 0x14002d930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14008c088]
test ecx, ecx
je 0x14002da10
dec ecx
call fcn.14008a00c
cmp rax, 2
jb 0x14002d964
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14002d964
add rdi, 0x10
jmp 0x14002da06
mov ecx, dword [0x14008c088]
test ecx, ecx
je 0x14002da23
dec ecx
call fcn.14008a00c
cmp rax, 1
je 0x14002da04
mov rsi, rax
test rax, rax
jne 0x14002d9d3
movzx eax, byte [0x14009e150]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14002da46
mov rsi, rax
lea rax, sym.std::sys::common::thread_local::os_local::destroy_value::h2688534d38e74c1e
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14008c088]
test ecx, ecx
je 0x14002da36
dec ecx
mov rdx, rsi
call fcn.14008a004
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x14002da06
test rcx, rcx
je 0x14002da06
lock dec qword [rcx]
jne 0x14002da06
call sym.alloc::sync::Arc_T_A_::drop_slow::hcc26c286a99cc042
jmp 0x14002da06
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h2688534d38e74c1e
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14002d946
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h2688534d38e74c1e
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14002d974
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h2688534d38e74c1e
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14002d9cb
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h5459b1f9ef419134
ud2

Function at 0x14002da70
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14002da87
dec ecx
jmp 0x14002da91
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
mov edx, 1
call fcn.14008a004
cmp qword [rsi + 8], 0
je 0x14002daba
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14002daba
lock dec qword [rax]
jne 0x14002daba
mov rcx, qword [rsi + 0x10]
call sym.alloc::sync::Arc_T_A_::drop_slow::hcc26c286a99cc042
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14002dad2
dec ecx
jmp 0x14002dadc
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14008a004
Function at 0x14002dcb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14008c0a8]
test ecx, ecx
je 0x14002dd90
dec ecx
call fcn.14008a00c
cmp rax, 2
jb 0x14002dce4
mov rdi, rax
cmp qword [rax + 8], 0
js 0x14002dce0
invalid
je 0x14002dce4
add rdi, 0x10
jmp 0x14002dd86
mov ecx, dword [0x14008c0a8]
test ecx, ecx
je 0x14002dda3
dec ecx
call fcn.14008a00c
cmp rax, 1
je 0x14002dd84
mov rsi, rax
test rax, rax
jne 0x14002dd53
movzx eax, byte [0x14009e150]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14002ddc6
mov rsi, rax
lea rax, sym.std::sys::common::thread_local::os_local::destroy_value::he68ce9e8e68e1d78
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14008c0a8]
test ecx, ecx
je 0x14002ddb6
dec ecx
mov rdx, rsi
call fcn.14008a004
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x14002dd86
test rcx, rcx
je 0x14002dd86
lock dec qword [rcx]
jne 0x14002dd86
call sym.alloc::sync::Arc_T_A_::drop_slow::h351fe5b51e3dc63c
jmp 0x14002dd86
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::he68ce9e8e68e1d78
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14002dcc6
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::he68ce9e8e68e1d78
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
add byte [rcx - 0xc1163f], cl
invalid
invalid
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::he68ce9e8e68e1d78
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x14002dd4b
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h5459b1f9ef419134
ud2

Function at 0x14002f580
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14002f597
dec ecx
jmp 0x14002f5a1
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
mov edx, 1
call fcn.14008a004
mov edx, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14002f5c3
dec ecx
jmp 0x14002f5cd
mov rcx, rsi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14008a004
Function at 0x14002f600
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14002f617
dec ecx
jmp 0x14002f621
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
mov edx, 1
call fcn.14008a004
cmp qword [rsi + 8], 0
je 0x14002f64a
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14002f64a
lock dec qword [rax]
jne 0x14002f64a
mov rcx, qword [rsi + 0x10]
call sym.alloc::sync::Arc_T_A_::drop_slow::h351fe5b51e3dc63c
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14002f662
dec ecx
jmp 0x14002f66c
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14008a004

Function at 0x14002f7a0
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 [0x14009e121]
test al, al
je 0x14002f93f
test edx, edx
je 0x14002f7c7
cmp edx, 3
jne 0x14002f93f
mov rbx, qword [0x14009e128]
test rbx, rbx
je 0x14002f93f
xor r14d, r14d
jmp 0x14002f7e9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14002f81d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14002f98a
dec esi
mov ecx, esi
call fcn.14008a00c
test rax, rax
je 0x14002f7e0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14008a004
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14002f7e0
test r14b, 1
je 0x14002f93f
mov rbx, qword [0x14009e128]
test rbx, rbx
je 0x14002f93f
xor r14d, r14d
jmp 0x14002f849
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14002f87d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14002f98a
dec esi
mov ecx, esi
call fcn.14008a00c
test rax, rax
je 0x14002f840
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14008a004
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14002f840
test r14b, 1
je 0x14002f93f
mov rbx, qword [0x14009e128]
test rbx, rbx
je 0x14002f93f
xor r14d, r14d
jmp 0x14002f8a9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14002f8dd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14002f98a
dec esi
mov ecx, esi
call fcn.14008a00c
test rax, rax
je 0x14002f8a0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14008a004
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14002f8a0
test r14b, 1
je 0x14002f93f
mov rbx, qword [0x14009e128]
test rbx, rbx
je 0x14002f93f
xor r14d, r14d
jmp 0x14002f909
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14002f939
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14002f98a
dec esi
mov ecx, esi
call fcn.14008a00c
test rax, rax
je 0x14002f900
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.14008a004
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14002f900
test r14b, 1
jne 0x14002f94b
mov rbx, qword [0x14009e128]
jmp 0x14002f958
Function at 0x140030ab0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140030b35
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140030b76
cmp dword [rsp + 0x2c], 0
je 0x140030b5a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140030b90
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14009e128]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14009e128], rsi
jne 0x140030b10
mov byte [0x14009e121], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140030b6c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140030bdc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140030b5f
mov edi, dword [rsp + 0x28]
jmp 0x140030b6c
mov edi, dword [rsi + 0x18]
jmp 0x140030b6a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call sym.core::panicking::assert_failed::h2bde0f0e455d3871
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.combase.dll
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call sym.core::panicking::panic_fmt::he0194d744e617aa6
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.combase.dll
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call sym.core::panicking::assert_failed::ha0060e13d9f21d44
ud2