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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov eax, dword [0x462008]
test eax, eax
je 0x410fea
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x410f4c
cmp dword [eax + 4], 0
mov esi, eax
jne 0x410fe5
mov eax, dword [0x462008]
test eax, eax
je 0x411008
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x411021
mov esi, eax
test eax, eax
jne 0x410fac
movzx eax, byte [0x476104]
mov ecx, 0x20
call fcn.0043d720
test eax, eax
je 0x41103a
mov dword [eax], 0x462008
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x462008]
test eax, eax
je 0x41102b
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
lea ecx, [ebp - 0x20]
call fcn.00410510
movsd xmm1, qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x20]
cmp dword [esi + 4], 0
movsd qword [esi + 0xc], xmm1
movsd xmm1, qword [ebp - 0x10]
movsd qword [esi + 0x14], xmm1
mov eax, dword [ebp - 8]
movsd qword [esi + 4], xmm0
mov dword [esi + 0x1c], eax
je 0x410fe5
lock dec dword [0x476050]
add esi, 4
jmp 0x411023
mov ecx, 0x462008
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x410f40
jmp 0x410f4c
mov ecx, 0x462008
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x410f69
xor esi, esi
mov eax, esi
add esp, 0x1c
pop esi
pop ebp
ret
mov ecx, 0x462008
call fcn.004193f0
jmp 0x410fa5
mov ecx, 4
mov edx, 0x20
call fcn.004068b0
nop dword [eax]
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x411066
dec eax
jmp 0x41106d
mov ecx, esi
call fcn.004193f0
push 1
push eax
call sub.kernel32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x411082
lock dec dword [0x476050]
push edi
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
mov eax, dword [esi]
test eax, eax
je 0x411099
dec eax
jmp 0x4110a0
mov ecx, esi
call fcn.004193f0
push 0
push eax
call sub.kernel32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x411050
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov eax, dword [0x462008]
test eax, eax
je 0x410fea
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x410f4c
cmp dword [eax + 4], 0
mov esi, eax
jne 0x410fe5
mov eax, dword [0x462008]
test eax, eax
je 0x411008
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x411021
mov esi, eax
test eax, eax
jne 0x410fac
movzx eax, byte [0x476104]
mov ecx, 0x20
call fcn.0043d720
test eax, eax
je 0x41103a
mov dword [eax], 0x462008
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x462008]
test eax, eax
je 0x41102b
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
lea ecx, [ebp - 0x20]
call fcn.00410510
movsd xmm1, qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x20]
cmp dword [esi + 4], 0
movsd qword [esi + 0xc], xmm1
movsd xmm1, qword [ebp - 0x10]
movsd qword [esi + 0x14], xmm1
mov eax, dword [ebp - 8]
movsd qword [esi + 4], xmm0
mov dword [esi + 0x1c], eax
je 0x410fe5
lock dec dword [0x476050]
add esi, 4
jmp 0x411023
mov ecx, 0x462008
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x410f40
jmp 0x410f4c
mov ecx, 0x462008
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x410f69
xor esi, esi
mov eax, esi
add esp, 0x1c
pop esi
pop ebp
ret
mov ecx, 0x462008
call fcn.004193f0
jmp 0x410fa5
mov ecx, 4
mov edx, 0x20
call fcn.004068b0
nop dword [eax]
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x411066
dec eax
jmp 0x41106d
mov ecx, esi
call fcn.004193f0
push 1
push eax
call sub.kernel32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x411082
lock dec dword [0x476050]
push edi
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
mov eax, dword [esi]
test eax, eax
je 0x411099
dec eax
jmp 0x4110a0
mov ecx, esi
call fcn.004193f0
push 0
push eax
call sub.kernel32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x418700
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
movzx eax, byte [0x4760c4]
test al, al
je 0x418888
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x418726
cmp eax, 3
jne 0x418888
mov edi, dword [0x4760c8]
test edi, edi
je 0x418888
mov dword [ebp - 0x10], 0
jmp 0x418747
mov edi, dword [edi + 8]
test edi, edi
je 0x418776
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4188c7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x418740
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 0x418740
test byte [ebp - 0x10], 1
je 0x418888
mov edi, dword [0x4760c8]
test edi, edi
je 0x418888
mov dword [ebp - 0x10], 0
jmp 0x4187a7
mov edi, dword [edi + 8]
test edi, edi
je 0x4187d6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4188c7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4187a0
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 0x4187a0
test byte [ebp - 0x10], 1
je 0x418888
mov edi, dword [0x4760c8]
test edi, edi
je 0x418888
mov dword [ebp - 0x10], 0
jmp 0x418807
mov edi, dword [edi + 8]
test edi, edi
je 0x418836
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4188c7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x418800
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 0x418800
test byte [ebp - 0x10], 1
je 0x418888
mov edi, dword [0x4760c8]
test edi, edi
je 0x418888
mov dword [ebp - 0x10], 0
jmp 0x418857
mov edi, dword [edi + 8]
test edi, edi
je 0x418882
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4188c7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x418850
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 0x418850
test byte [ebp - 0x10], 1
jne 0x418892
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x4760c8]
jmp 0x41889d
mov edi, dword [edi + 8]
test edi, edi
je 0x418888
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4188c7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x41889a
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x41889a
mov ecx, 0x46786c
call fcn.00408ba0
ud2
Function at 0x4193f0
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 0x419460
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 0x419496
cmp dword [ebp - 0x14], 0
je 0x41947d
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4194a8
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x4760c8]
nop dword [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x4760c8], esi
jne 0x419440
mov byte [0x4760c4], 1
push 0
push 0
push ebx
call sub.kernel32.dll_InitOnceComplete
jmp 0x41948c
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4194e2
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x419481
mov edi, dword [ebp - 0x10]
jmp 0x41948c
mov edi, dword [esi]
jmp 0x41948b
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 fcn.00419880
push 0
push 4
push ebx
call sub.kernel32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x467838
mov dword [ebp - 0x2c], 0x4677fc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.Index_out_of_bounds
mov dword [ebp - 0x20], 0
call fcn.00407170
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4677fc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.Index_out_of_bounds
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.004198c0

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x462058]
test eax, eax
je 0x4197aa
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x4197bf
cmp dword [eax + 4], 0
mov edi, eax
je 0x4197bf
add edi, 8
jmp 0x419850
mov ecx, 0x462058
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x41979a
mov eax, dword [0x462058]
test eax, eax
je 0x419839
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x41984e
mov esi, eax
test eax, eax
jne 0x41980f
movzx eax, byte [0x476104]
mov ecx, 0xc
call fcn.0043d720
test eax, eax
je 0x419862
mov dword [eax], 0x462058
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x462058]
test eax, eax
je 0x419856
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x419850
test ecx, ecx
je 0x419850
lock dec dword [ecx]
jne 0x419850
call fcn.00441120
jmp 0x419850
mov ecx, 0x462058
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4197d4
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x462058
call fcn.004193f0
jmp 0x419808
mov ecx, 4
mov edx, 0xc
call fcn.004068b0
nop word cs:[eax + eax]
nop dword [eax + eax]
Function at 0x419880
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0x467494
lea esi, [ebp - 0xc]
lea edx, [ebp - 8]
xor ecx, ecx
push 0x467848
push eax
push 0x465c1c
push esi
push 0x465c1c
call fcn.00407dd0
nop word cs:[eax + eax]
nop dword [eax + eax]

Function at 0x4198c0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0x467858
lea esi, [ebp - 0xc]
lea edx, [ebp - 8]
mov ecx, 1
push 0x46785c
push eax
push 0x465bfc
push esi
push 0x465bfc
call fcn.00407dd0
nop word cs:[eax + eax]
nop
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x419916
dec eax
jmp 0x41991d
mov ecx, esi
call fcn.004193f0
push 1
push eax
call sub.kernel32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x41993f
mov eax, dword [edi + 8]
test eax, eax
je 0x41993f
lock dec dword [eax]
jne 0x41993f
mov ecx, dword [edi + 8]
call fcn.00441120
push edi
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
mov eax, dword [esi]
test eax, eax
je 0x419956
dec eax
jmp 0x41995d
mov ecx, esi
call fcn.004193f0
push 0
push eax
call sub.kernel32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x41a060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
test edx, edx
je 0x41a090
mov eax, dword [ecx + 8]
mov esi, ecx
mov edi, eax
sub edi, edx
jb 0x41a094
mov dword [esi + 8], 0
je 0x41a090
mov eax, dword [esi + 4]
add edx, eax
push edi
push edx
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [esi + 8], edi
pop esi
pop edi
pop ebp
ret
mov ecx, edx
mov edx, eax
push 0x465c4c
call fcn.00407aa0
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x41aac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x462048]
test eax, eax
je 0x41aae5
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x41aafa
cmp dword [eax + 4], 0
je 0x41aafa
add eax, 8
pop esi
pop ebp
ret
mov ecx, 0x462048
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x41aad9
mov eax, dword [0x462048]
test eax, eax
je 0x41ab62
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x41ab77
mov esi, eax
test eax, eax
jne 0x41ab4a
movzx eax, byte [0x476104]
mov ecx, 0x10
call fcn.0043d720
test eax, eax
je 0x41ab88
mov dword [eax], 0x462048
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x462048]
test eax, eax
je 0x41ab7c
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
pop esi
pop ebp
ret
mov ecx, 0x462048
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x41ab0f
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x462048
call fcn.004193f0
jmp 0x41ab43
mov ecx, 4
mov edx, 0x10
call fcn.004068b0
nop word [eax + eax]
Function at 0x41eec0
Capabilities:
Enumerate process modules
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push eax
call fcn.0041aac0
test eax, eax
je 0x41eed8
cmp dword [eax], 0
sete al
add esp, 4
pop ebp
ret
lea eax, [ebp - 1]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov edx, 0x46
push 0x4666dc
push 0x465acc
push eax
call fcn.00408b30
nop word cs:[eax + eax]
nop
Function at 0x43b9c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x434
mov esi, ecx
lea ecx, [ebp - 0x440]
push dword [ebp + 8]
call fcn.0041b100
add esp, 4
mov eax, dword [ebp - 0x440]
cmp eax, 0x80000000
jne 0x43ba02
lea ecx, [ebp - 0x440]
call fcn.0041b3b0
mov dword [esi], 0x80000000
jmp 0x43bba2
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x20], esi
mov esi, 0x200
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x1c], ecx
cmp esi, 0x201
jae 0x43ba70
jmp 0x43ba5e
jbe 0x43baeb
cmp esi, 0x201
jae 0x43ba70
mov dword [ebp - 0x10], 0x200
lea ebx, [ebp - 0x440]
mov edi, esi
jmp 0x43ba9a
mov edi, dword [ebp - 0x14]
sub esi, edi
je 0x43ba8e
mov edx, edi
lea ecx, [ebp - 0x30]
push esi
call fcn.0041b540
add esp, 4
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 0
call sub.kernel32.dll_SetLastError
push edi
push ebx
push dword [ebp - 0x1c]
call sub.kernel32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x43babe
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x43bbad
cmp esi, edi
jne 0x43ba50
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x43bbca
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x43ba5e
jmp 0x43ba70
mov edx, dword [ebp - 0x10]
cmp esi, edx
ja 0x43bbe3
mov edx, ebx
lea ecx, [ebp - 0x40]
push esi
call fcn.0041def0
add esp, 4
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x43bb29
push dword [ebp - 0x18]
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
cmp esi, 0x80000000
jne 0x43bb7b
mov eax, dword [ebp - 0x20]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x43bb8c
mov ebx, dword [edi]
mov esi, edi
mov edi, dword [edi + 4]
mov eax, dword [edi]
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x43bb6b
cmp dword [edi + 8], 9
jb 0x43bb5d
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
jmp 0x43bb8c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0x24], 0
je 0x43bba2
push dword [ebp - 0x1c]
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
add esp, 0x434
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov esi, 0x80000000
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp dword [ebp - 0x14], 0
jne 0x43bb19
jmp 0x43bb29
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_code_home_fifix_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_runtime_blocking_schedule.rs
push 0x4679bc
call fcn.00407d90
add esp, 4
jmp 0x43bbf2
mov ecx, esi
push 0x4679ac
call fcn.00407aa0
add esp, 4
ud2
Function at 0x43ce30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov esi, ecx
test ecx, ecx
jne 0x43ce47
movzx eax, byte [0x476060]
test al, al
je 0x43ce64
mov byte [0x476060], 1
call fcn.0043ceb0
test eax, eax
je 0x43ce68
mov ecx, dword [eax]
mov dword [eax], esi
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
jmp 0x43ce5b
test esi, esi
je 0x43ce78
lock dec dword [esi]
jne 0x43ce78
mov ecx, esi
call fcn.00443080
lea eax, [ebp - 9]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov edx, 0x46
push 0x4666dc
push 0x465acc
push eax
call fcn.00408b30
mov edi, eax
test esi, esi
je 0x43cea7
lock dec dword [esi]
jne 0x43cea7
mov ecx, esi
call fcn.00443080
push edi
call fcn.004558c0
nop dword [eax]

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x462078]
test eax, eax
je 0x43ceda
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x43ceef
cmp dword [eax + 4], 0
mov edi, eax
je 0x43ceef
add edi, 8
jmp 0x43cf80
mov ecx, 0x462078
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x43ceca
mov eax, dword [0x462078]
test eax, eax
je 0x43cf69
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x43cf7e
mov esi, eax
test eax, eax
jne 0x43cf3f
movzx eax, byte [0x476104]
mov ecx, 0xc
call fcn.0043d720
test eax, eax
je 0x43cf92
mov dword [eax], 0x462078
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x462078]
test eax, eax
je 0x43cf86
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x43cf80
test ecx, ecx
je 0x43cf80
lock dec dword [ecx]
jne 0x43cf80
call fcn.00443080
jmp 0x43cf80
mov ecx, 0x462078
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x43cf04
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x462078
call fcn.004193f0
jmp 0x43cf38
mov ecx, 4
mov edx, 0xc
call fcn.004068b0
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x43cfc6
dec eax
jmp 0x43cfcd
mov ecx, esi
call fcn.004193f0
push 1
push eax
call sub.kernel32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x43cfef
mov eax, dword [edi + 8]
test eax, eax
je 0x43cfef
lock dec dword [eax]
jne 0x43cfef
mov ecx, dword [edi + 8]
call fcn.00443080
push edi
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
mov eax, dword [esi]
test eax, eax
je 0x43d006
dec eax
jmp 0x43d00d
mov ecx, esi
call fcn.004193f0
push 0
push eax
call sub.kernel32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x43cfb0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x462078]
test eax, eax
je 0x43ceda
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x43ceef
cmp dword [eax + 4], 0
mov edi, eax
je 0x43ceef
add edi, 8
jmp 0x43cf80
mov ecx, 0x462078
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x43ceca
mov eax, dword [0x462078]
test eax, eax
je 0x43cf69
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x43cf7e
mov esi, eax
test eax, eax
jne 0x43cf3f
movzx eax, byte [0x476104]
mov ecx, 0xc
call fcn.0043d720
test eax, eax
je 0x43cf92
mov dword [eax], 0x462078
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x462078]
test eax, eax
je 0x43cf86
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x43cf80
test ecx, ecx
je 0x43cf80
lock dec dword [ecx]
jne 0x43cf80
call fcn.00443080
jmp 0x43cf80
mov ecx, 0x462078
call fcn.004193f0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x43cf04
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x462078
call fcn.004193f0
jmp 0x43cf38
mov ecx, 4
mov edx, 0xc
call fcn.004068b0
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x43cfc6
dec eax
jmp 0x43cfcd
mov ecx, esi
call fcn.004193f0
push 1
push eax
call sub.kernel32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x43cfef
mov eax, dword [edi + 8]
test eax, eax
je 0x43cfef
lock dec dword [eax]
jne 0x43cfef
mov ecx, dword [edi + 8]
call fcn.00443080
push edi
push 0
push dword [0x4760c0]
call sub.kernel32.dll_HeapFree
mov eax, dword [esi]
test eax, eax
je 0x43d006
dec eax
jmp 0x43d00d
mov ecx, esi
call fcn.004193f0
push 0
push eax
call sub.kernel32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret

Function at 0x43d5e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x43d625
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x4674b0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 0x43c2f0
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x28]
mov edx, 0x4674e0
call fcn.00407170
ud2