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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x55e004]
test eax, eax
je 0x41f916
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x41f851
mov edi, eax
mov eax, dword [eax + 4]
add edi, 8
test eax, eax
cmove edi, eax
jne 0x41f94f
mov eax, dword [0x55e004]
test eax, eax
je 0x41f934
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x41f94d
mov esi, eax
test eax, eax
jne 0x41f8cc
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x41f896
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x41f96e
mov dword [0x5da100], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x41f96e
mov dword [eax], 0x55e004
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e004]
test eax, eax
je 0x41f95f
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
movzx eax, byte [0x5da060]
test al, al
je 0x41f955
call sym.crossbeam_epoch::collector::Collector::register::hae3afb03fe2e6b46
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x41f94f
mov eax, dword [ecx + 0x414]
lea edx, [eax - 1]
mov dword [ecx + 0x414], edx
cmp dword [ecx + 0x410], 0
jne 0x41f94f
cmp eax, 1
jne 0x41f94f
call sym.crossbeam_epoch::internal::Local::finalize::hb71e2d890f7cbcfd
jmp 0x41f94f
mov ecx, 0x55e004
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x41f83e
jmp 0x41f851
mov ecx, 0x55e004
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x41f86e
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
call sym.crossbeam_epoch::sync::once_lock::OnceLock_LT_T_GT_::initialize::h0ade8987e0b4b159
jmp 0x41f8d7
mov ecx, 0x55e004
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x41f8c5
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
ud2
Function at 0x42d4b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0xc]
mov edi, 0x1b3
mov ecx, dword [eax]
xor eax, eax
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
lea eax, [eax + eax*2]
mov ebx, dword [ecx + eax*8 - 0x10]
mov dword [ebp - 0x10], eax
movzx ecx, bl
xor ecx, 0x84222325
mov eax, ecx
imul ecx, ecx, 0x100
mul edi
or ecx, edx
mov edx, 0xcbf29ce4
imul esi, edx, 0x1b3
add esi, ecx
movzx ecx, bh
xor ecx, eax
mov eax, ecx
imul ecx, ecx, 0x100
mul edi
imul edi, esi, 0x1b3
add ecx, edx
add edi, ecx
mov ecx, ebx
shr ecx, 0x10
movzx esi, cl
mov ecx, 0x1b3
xor esi, eax
mov eax, esi
mul ecx
mov ecx, eax
imul eax, esi, 0x100
imul esi, edi, 0x1b3
add eax, edx
mov edx, 0x1b3
add esi, eax
mov eax, ebx
shr eax, 0x18
imul esi, esi, 0x1b3
xor ecx, eax
mov eax, ecx
imul ecx, ecx, 0x100
mul edx
add ecx, edx
add ecx, esi
test ebx, ebx
je 0x42d598
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov esi, dword [edx + esi*8 - 0x18]
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [esi]
inc esi
xor edx, eax
mov eax, 0x100
mov edi, edx
imul edi, eax
mov eax, edx
mov edx, 0x1b3
mul edx
add edx, edi
mov edi, 0x1b3
imul ecx, edi
add ecx, edx
dec ebx
jne 0x42d570
mov edx, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43e0d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x55e108]
test eax, eax
je 0x43e0f9
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x43e10e
mov ecx, dword [eax + 4]
add eax, 8
test ecx, ecx
cmove eax, ecx
je 0x43e10e
pop esi
pop ebp
ret
mov ecx, 0x55e108
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x43e0e9
mov eax, dword [0x55e108]
test eax, eax
je 0x43e1b1
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x43e1ca
mov esi, eax
test eax, eax
jne 0x43e181
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x43e153
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x43e1db
mov dword [0x5da100], eax
push 0x1c
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x43e1db
mov dword [eax], 0x55e108
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e108]
test eax, eax
je 0x43e1cf
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov dword [esi + 4], 1
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
pop esi
pop ebp
ret
mov ecx, 0x55e108
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x43e12b
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x55e108
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x43e17a
mov ecx, 4
mov edx, 0x1c
call dbg.handle_alloc_error
ud2
Function at 0x44c190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov eax, 0x10
mov ebx, edx
mov dword [ebp - 0x2c], esi
mov edi, ecx
and edi, 0xf
sub eax, edi
mov edx, eax
mov dword [ebp - 0x10], eax
add edx, ecx
je 0x44c1d2
js 0x44c346
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
je 0x44c1d9
mov esi, ebx
jmp 0x44c1f3
mov eax, 1
jmp 0x44c20d
mov dword [ebp - 0x24], edx
call sub.kernel32.dll_GetProcessHeap
mov edx, dword [ebp - 0x24]
test eax, eax
je 0x44c33a
mov esi, ebx
mov dword [0x5da100], eax
push edx
push 0
push eax
mov ebx, edx
call sub.kernel32.dll_HeapAlloc
mov ecx, dword [ebp + 0x10]
mov edx, ebx
test eax, eax
mov ebx, esi
je 0x44c33a
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], ebx
xor ebx, ebx
cmp edx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
jb 0x44c31d
lea edx, [eax + ebx]
push ecx
push esi
push edx
mov esi, eax
call sym._memcpy
mov ecx, esi
add esp, 0xc
add ebx, dword [ebp + 0x10]
or edi, 0xfffffff0
mov dword [ebp - 0x18], ebx
jmp 0x44c262
mov eax, dword [ebp - 0x10]
inc edi
mov byte [ecx + ebx], al
mov esi, dword [ebp - 0x18]
lea ebx, [esi + 1]
mov dword [ebp - 0x18], ebx
je 0x44c279
cmp ebx, dword [ebp - 0x1c]
jne 0x44c250
lea ecx, [ebp - 0x20]
mov edx, ebx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve_for_push::hc62504e5a5680e58
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
jmp 0x44c250
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp ebx, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ecx
jb 0x44c304
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
add esi, 0xfffffff1
movups xmm0, xmmword [eax]
movups xmm1, xmmword [ecx]
xorps xmm1, xmm0
movups xmmword [ecx], xmm1
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x20], 0
call sym.libaes::aes_encrypt::h2f669fbe9fd41a06
cmp esi, 0x10
jb 0x44c304
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x10]
nop word cs:[eax + eax]
movups xmm0, xmmword [edi - 0x10]
movups xmm1, xmmword [edi]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
add esi, 0xfffffff0
xorps xmm1, xmm0
movups xmmword [edi], xmm1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x20], 0
call sym.libaes::aes_encrypt::h2f669fbe9fd41a06
add edi, 0x10
cmp esi, 0xf
ja 0x44c2d0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, ecx
lea ecx, [ebp - 0x20]
xor edx, edx
push ebx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h05941a02c7a10f33
mov ecx, ebx
add esp, 4
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
jmp 0x44c22a
mov ecx, 1
call dbg.handle_alloc_error
ud2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2
Function at 0x4641b0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, ecx
push 2
push 0x20
push ecx
push 0
call sub.bcrypt.dll_BCryptGenRandom
xor edi, edi
cmp eax, 0xc0000000
jb 0x464213
mov esi, eax
push 0x20
push ebx
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x464213
xor esi, 0x80000000
je 0x464213
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x464201
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x46421a
mov dword [0x5da100], eax
push 4
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x46421a
mov edi, eax
mov dword [eax], esi
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 4
call dbg.handle_alloc_error
ud2
Function at 0x468d50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x55e024]
test eax, eax
je 0x468d79
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x468d8e
mov ecx, dword [eax + 4]
add eax, 8
test ecx, ecx
cmove eax, ecx
je 0x468d8e
pop esi
pop ebp
ret
mov ecx, 0x55e024
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x468d69
mov eax, dword [0x55e024]
test eax, eax
je 0x468e1e
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x468e37
mov esi, eax
test eax, eax
jne 0x468dfd
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x468dcf
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x468e48
mov dword [0x5da100], eax
push 0x14
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x468e48
mov dword [eax], 0x55e024
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e024]
test eax, eax
je 0x468e3c
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov word [esi + 0xc], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], 0
pop esi
pop ebp
ret
mov ecx, 0x55e024
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x468dab
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x55e024
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x468df6
mov ecx, 4
mov edx, 0x14
call dbg.handle_alloc_error
ud2
Function at 0x4bdd10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x18
mov eax, dword [0x55e038]
test eax, eax
je 0x4bdd3f
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4bdd54
mov ecx, dword [eax + 4]
add eax, 8
test ecx, ecx
cmove eax, ecx
je 0x4bdd54
add esp, 0x18
pop esi
pop ebp
ret
mov ecx, 0x55e038
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4bdd2c
mov eax, dword [0x55e038]
test eax, eax
je 0x4bddef
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4bde08
mov esi, eax
test eax, eax
jne 0x4bddcb
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x4bdd99
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4bde4e
mov dword [0x5da100], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4bde4e
mov dword [eax], 0x55e038
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e038]
test eax, eax
je 0x4bde10
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, 1
lock xadd dword [0x55e034], ecx
test ecx, ecx
je 0x4bde1c
mov dword [esi + 4], 1
lea eax, [esi + 8]
mov dword [esi + 8], ecx
add esp, 0x18
pop esi
pop ebp
ret
mov ecx, 0x55e038
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4bdd71
xor eax, eax
add esp, 0x18
pop esi
pop ebp
ret
mov ecx, 0x55e038
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x4bddc4
lea ecx, [ebp - 0x1c]
mov edx, 0x56ed1c
mov dword [ebp - 0x1c], 0x56ed14
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], str.Lazy_instance_has_previously_been_poisoned
mov dword [ebp - 0x10], 0
call dbg.panic_fmt
ud2
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
ud2
Function at 0x4d8de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov edi, ecx
sub esi, edx
je 0x4d8e87
js 0x4d8f38
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
mov ebx, edx
test eax, eax
jne 0x4d8e20
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4d8f25
mov dword [0x5da100], eax
push esi
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4d8f25
lea edx, [esi - 8]
xor ecx, ecx
mov dword [ebp - 0x14], edi
cmp edx, 0x48
jb 0x4d8e54
mov dword [ebp - 0x10], edx
and edx, 0xfffffff8
lea edi, [ebx + edx + 8]
cmp eax, edi
jae 0x4d8ea1
lea edx, [eax + edx + 8]
cmp edx, ebx
jbe 0x4d8ea1
mov edx, ebx
mov dword [ebp - 0x10], esi
nop dword [eax]
mov ebx, dword [edx + 4]
mov edi, dword [edx]
cmp edi, ebx
mov esi, ebx
cmovb esi, edi
cmova ebx, edi
add edx, 8
mov dword [eax + ecx*8], esi
mov dword [eax + ecx*8 + 4], ebx
inc ecx
cmp edx, dword [ebp + 8]
jne 0x4d8e60
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
jmp 0x4d8e8e
xor ecx, ecx
mov eax, 4
shr esi, 3
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x10]
movdqa xmm0, xmmword [0x560390]
xor edi, edi
shr ecx, 3
inc ecx
mov dword [ebp - 0x10], ecx
and ecx, 0xfffffffe
lea edx, [ebx + ecx*8]
nop dword [eax + eax]
movdqu xmm1, xmmword [ebx + edi*8]
pshufd xmm3, xmm1, 0xed
pshufd xmm2, xmm1, 0xe8
movdqa xmm5, xmm3
movdqa xmm1, xmm2
movdqa xmm6, xmm2
pxor xmm5, xmm0
pxor xmm1, xmm0
movdqa xmm4, xmm5
pcmpgtd xmm4, xmm1
pcmpgtd xmm1, xmm5
pand xmm6, xmm4
pandn xmm4, xmm3
pand xmm2, xmm1
pandn xmm1, xmm3
por xmm4, xmm6
por xmm1, xmm2
punpckldq xmm4, xmm1
movdqu xmmword [eax + edi*8], xmm4
add edi, 2
cmp ecx, edi
jne 0x4d8ec0
cmp dword [ebp - 0x10], ecx
je 0x4d8e82
jmp 0x4d8e56
mov ecx, esi
mov edx, esi
not ecx
shr ecx, 0x1d
and ecx, 0xfffffffc
call dbg.handle_alloc_error
ud2
call sym.alloc::raw_vec::capacity_overflow::h894971bc65aab54c
ud2
Function at 0x4f8a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4f8a47
test eax, eax
jne 0x4f8ba8
mov edi, dword [0x5da110]
test edi, edi
je 0x4f8ba8
mov dword [ebp - 0x10], 0
jmp 0x4f8a67
mov edi, dword [edi + 8]
test edi, edi
je 0x4f8a96
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4f8be7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4f8a60
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x4f8a60
test byte [ebp - 0x10], 1
je 0x4f8ba8
mov edi, dword [0x5da110]
test edi, edi
je 0x4f8ba8
mov dword [ebp - 0x10], 0
jmp 0x4f8ac7
mov edi, dword [edi + 8]
test edi, edi
je 0x4f8af6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4f8be7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4f8ac0
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x4f8ac0
test byte [ebp - 0x10], 1
je 0x4f8ba8
mov edi, dword [0x5da110]
test edi, edi
je 0x4f8ba8
mov dword [ebp - 0x10], 0
jmp 0x4f8b27
mov edi, dword [edi + 8]
test edi, edi
je 0x4f8b56
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4f8be7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4f8b20
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x4f8b20
test byte [ebp - 0x10], 1
je 0x4f8ba8
mov edi, dword [0x5da110]
test edi, edi
je 0x4f8ba8
mov dword [ebp - 0x10], 0
jmp 0x4f8b77
mov edi, dword [edi + 8]
test edi, edi
je 0x4f8ba2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4f8be7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4f8b70
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x4f8b70
test byte [ebp - 0x10], 1
jne 0x4f8bb2
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x5da110]
jmp 0x4f8bbd
mov edi, dword [edi + 8]
test edi, edi
je 0x4f8ba8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4f8be7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4f8bba
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x4f8bba
mov edx, 0x2b
mov ecx, str.called__Option::unwrap____on_a__None__valueC:UsersTEST.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.5_srcwin.rs
push 0x5bc1ac
call dbg.panic
add esp, 4
ud2
Function at 0x4f95b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x55e074]
test eax, eax
je 0x4f95da
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4f95ef
cmp dword [eax + 4], 0
mov edi, eax
je 0x4f95ef
add edi, 8
jmp 0x4f96ae
mov ecx, 0x55e074
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4f95ca
mov eax, dword [0x55e074]
test eax, eax
je 0x4f9693
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4f96ac
mov esi, eax
test eax, eax
jne 0x4f9662
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x4f9634
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4f96c0
mov dword [0x5da100], eax
push 0x10
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4f96c0
mov dword [eax], 0x55e074
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e074]
test eax, eax
je 0x4f96b4
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi + 0xc]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x4f96ae
test ecx, ecx
je 0x4f96ae
lock dec dword [ecx]
jne 0x4f96ae
call sym.alloc::sync::Arc_LT_T_GT_::drop_slow::h11981ade3ce8ba02
jmp 0x4f96ae
mov ecx, 0x55e074
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4f960c
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x55e074
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x4f965b
mov ecx, 4
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x4f9d30
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4f9d99
lea ebx, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x4f9dcf
cmp dword [ebp - 0x14], 0
je 0x4f9db6
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4f9de3
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x5da110]
nop dword [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x5da110], esi
jne 0x4f9d80
push 0
push 0
push ebx
call sub.kernel32.dll_InitOnceComplete
jmp 0x4f9dc5
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4f9e1f
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x4f9dba
mov edi, dword [ebp - 0x10]
jmp 0x4f9dc5
mov edi, dword [esi]
jmp 0x4f9dc4
mov edi, eax
push dword [ebp - 0x10]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call dbg.assert_failed<i32, i32>
ud2
push 0
push 4
push ebx
call sub.kernel32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x5bc188
mov dword [ebp - 0x2c], 0x5bc180
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.Lazy_instance_has_previously_been_poisoned
mov dword [ebp - 0x20], 0
call dbg.panic_fmt
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x5bc180
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.Lazy_instance_has_previously_been_poisoned
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dbg.assert_failed<u32, u32>
ud2

Function at 0x4fa120
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4fa133
dec eax
jmp 0x4fa13a
mov ecx, esi
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push 1
push eax
call sub.kernel32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x4fa159
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4fa159
lock dec dword [ecx]
jne 0x4fa159
call sym.alloc::sync::Arc_LT_T_GT_::drop_slow::h11981ade3ce8ba02
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov ecx, dword [esi]
test ecx, ecx
je 0x4fa170
dec ecx
jmp 0x4fa179
mov ecx, esi
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
mov ecx, eax
push 0
push ecx
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret