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

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, qword [rcx + 0x70]
mov rbp, rcx
test rsi, rsi
je 0x1800d0092
mov edx, dword [rsi]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
lea eax, [rdx - 1]
mov dword [rsi], eax
cmp edx, 1
jg 0x1800d0080
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1800cff03
cmp rcx, qword [0x18018f080]
je 0x1800cfefb
call sym.tcl86t.dll_hclpFree
mov qword [rsi + 8], 0
mov rax, qword [rsi + 0x18]
mov dword [rsi + 0x10], 0xffffffff
test rax, rax
je 0x1800cfff8
cmp qword [rax + 8], 0
je 0x1800cfff8
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fec0]
xor edi, edi
test rax, rax
je 0x1800cff4f
test ecx, ecx
jle 0x1800cff4f
cmp ecx, dword [rax + 8]
jge 0x1800cff4f
mov rax, qword [rax]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
jne 0x1800cff80
lea ecx, [rdi + 0x10]
call sym.tcl86t.dll_hclpAlloc
mov rdi, rax
test rax, rax
je 0x1800d009d
xor eax, eax
lea rcx, [0x18018fec0]
mov qword [rdi], rax
mov rdx, rdi
mov qword [rdi + 8], rax
call fcn.180106bc0
mov eax, dword [rdi]
test eax, eax
jle 0x1800cff94
mov rax, qword [rdi + 8]
mov qword [rsi + 8], rax
mov qword [rdi + 8], rsi
jmp 0x1800d0000
inc eax
mov rcx, rsi
mov dword [rdi], eax
mov rax, qword [rsi + 0x18]
call qword [rax + ioctlsocket]
dec dword [rdi]
mov rcx, rsi
call fcn.1801063c0
inc dword [rdi]
mov rbx, qword [rdi + 8]
mov eax, dword [rdi]
test rbx, rbx
je 0x1800cfff2
nop dword [rax]
mov rax, qword [rbx + 8]
mov qword [rdi + 8], rax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x1800cffdf
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800cffdf
mov rcx, rbx
call rdx
mov rcx, rbx
call fcn.1801063c0
mov rbx, qword [rdi + 8]
test rbx, rbx
jne 0x1800cffc0
mov eax, dword [rdi]
dec eax
mov dword [rdi], eax
jmp 0x1800d0000
mov rcx, rsi
call fcn.1801063c0
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018ff28]
xor ebx, ebx
test rax, rax
je 0x1800d002d
test ecx, ecx
jle 0x1800d002d
cmp ecx, dword [rax + 8]
jge 0x1800d002d
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x1800d0056
lea ecx, [rbx + 8]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x1800d00af
xor eax, eax
lea rcx, [0x18018ff28]
mov rdx, rbx
mov qword [rbx], rax
call fcn.180106bc0
mov rax, qword [rbx]
test rax, rax
je 0x1800d0080
mov rdx, rsi
mov rcx, rax
call qword [rax + 0x40]
mov rbx, rax
test rax, rax
je 0x1800d0080
mov rcx, qword [rax + 0x18]
call sym.tcl86t.dll_hclpFree
mov rcx, rbx
call sym.tcl86t.dll_hcl_DeleteHashEntry
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov qword [rbp + 0x70], 0
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov edx, reloc.WS2_32.dll_recv
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, 8
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1800e1900
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov edx, dword [rcx + 8]
lea eax, [rdx - 1]
mov dword [rcx + 8], eax
cmp edx, 1
jg 0x1800e1920
call sym.tcl86t.dll_hclProcCleanupProc
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1800e192f
mov rcx, qword [rbx + 0x18]
call rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.tcl86t.dll_hclpFree

Function at 0x1800e2730
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018ff28]
xor edi, edi
mov ebx, edi
test rax, rax
je 0x1800e2769
test ecx, ecx
jle 0x1800e2769
cmp ecx, dword [rax + 8]
jge 0x1800e2769
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x1800e2796
lea ecx, [rbx + 8]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x1800e2820
xor eax, eax
lea rcx, [0x18018ff28]
mov rdx, rbx
mov qword [rbx], rax
call fcn.180106bc0
cmp qword [rbx], rdi
jne 0x1800e2812
mov ecx, 0x58
call sym.tcl86t.dll_hclpAlloc
mov rcx, rax
test rax, rax
je 0x1800e2832
mov qword [rbx], rax
xor edx, edx
add rax, 8
mov qword [rcx], rax
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x20], rdi
mov qword [rax], rdi
lea rax, [fcn.18009de20]
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x40], rax
lea rax, [fcn.18009de40]
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x28], 4
mov dword [rcx + 0x30], reloc.WS2_32.dll_inet_ntoa
mov dword [rcx + 0x34], 0x1c
mov dword [rcx + 0x38], 3
mov dword [rcx + 0x3c], 1
lea rcx, [0x1800e2a00]
call sym.tcl86t.dll_hcl_CreateThreadExitHandler
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 8
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, 0x58
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1800e2cc0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1801905e4], 0
jne 0x1800e2cee
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x1800e2e41
jmp 0x1800e2cf4
mov eax, dword [0x1801905ac]
mov ecx, eax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1800e2d17
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800e2e4e
test rbx, rbx
jne 0x1800e2d24
call fcn.180105bb0
mov rbx, rax
mov edx, dword [rbx + 0x18]
mov qword [rsp + 0x20], rdi
test edx, edx
jne 0x1800e2e0a
mov rcx, qword [0x180190148]
call sym.tcl86t.dll_hcl_MutexLock
mov rdx, qword [0x18018f158]
mov edi, 0x320
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x1800e2d91
mov rcx, qword [rdx + 0x10]
cmp eax, edi
mov r8, rcx
cmovg eax, edi
add dword [rbx + 0x18], eax
sub dword [rdx + 0x18], eax
sub eax, 1
je 0x1800e2d79
nop word [rax + rax]
mov rcx, qword [rcx + 0x20]
sub eax, 1
jne 0x1800e2d70
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x10], rax
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x20], rcx
mov qword [rcx + 0x20], rax
mov qword [rbx + 0x10], r8
mov rcx, qword [0x180190148]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rbx + 0x18]
test edx, edx
jne 0x1800e2e0a
mov dword [rbx + 0x18], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x9600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9, rax
test rax, rax
je 0x1800e2e5b
mov r8, qword [rbx + 0x10]
lea rdx, [r9 + 0x95f0]
add rax, 0x95d0
mov ecx, 0x31f
mov qword [rbx + 0x20], rax
nop dword [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x30]
mov r8, rax
sub rax, 0x30
sub ecx, 1
jns 0x1800e2df0
mov edx, dword [rbx + 0x18]
mov qword [rbx + 0x10], r9
mov rax, qword [rbx + 0x10]
mov rdi, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
mov qword [rbx + 0x10], rcx
lea ecx, [rdx - 1]
mov dword [rbx + 0x18], ecx
xor edx, edx
mov rcx, qword [0x18018f080]
mov rbx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
mov dword [rax], edx
mov dword [rax + 0x10], edx
mov qword [rax + 0x18], rdx
add rsp, 0x28
ret
lea rcx, str.could_not_allocate_thread_local_storage
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsGetValue_failed_from_TclpGetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, edi
lea rcx, str.alloc:_could_not_allocate__d_new_objects
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1800e3420
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x20
mov rsi, rcx
xor r14d, r14d
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1800e344c
cmp rcx, qword [0x18018f080]
je 0x1800e3448
call sym.tcl86t.dll_hclpFree
mov qword [rsi + 8], r14
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov dword [rsi + 0x10], 0xffffffff
test rax, rax
je 0x1800e3548
cmp qword [rax + 8], r14
je 0x1800e3548
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018fec0]
mov rdi, r14
test rax, rax
je 0x1800e34a2
test ecx, ecx
jle 0x1800e34a2
cmp ecx, dword [rax + 8]
jge 0x1800e34a2
mov rax, qword [rax]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
jne 0x1800e34d3
lea ecx, [rdi + 0x10]
call sym.tcl86t.dll_hclpAlloc
mov rdi, rax
test rax, rax
je 0x1800e35e5
xor eax, eax
lea rcx, [0x18018fec0]
mov qword [rdi], rax
mov rdx, rdi
mov qword [rdi + 8], rax
call fcn.180106bc0
mov eax, dword [rdi]
test eax, eax
jle 0x1800e34e7
mov rax, qword [rdi + 8]
mov qword [rsi + 8], rax
mov qword [rdi + 8], rsi
jmp 0x1800e3550
inc eax
mov rcx, rsi
mov dword [rdi], eax
mov rax, qword [rsi + 0x18]
call qword [rax + ioctlsocket]
dec dword [rdi]
mov rcx, rsi
call fcn.1801063c0
inc dword [rdi]
mov rbx, qword [rdi + 8]
mov eax, dword [rdi]
test rbx, rbx
je 0x1800e3542
nop dword [rax]
mov rax, qword [rbx + 8]
mov qword [rdi + 8], rax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x1800e352f
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800e352f
mov rcx, rbx
call rdx
mov rcx, rbx
call fcn.1801063c0
mov rbx, qword [rdi + 8]
test rbx, rbx
jne 0x1800e3510
mov eax, dword [rdi]
dec eax
mov dword [rdi], eax
jmp 0x1800e3550
mov rcx, rsi
call fcn.1801063c0
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x18018ff28]
test rax, rax
je 0x1800e357b
test ecx, ecx
jle 0x1800e357b
cmp ecx, dword [rax + 8]
jge 0x1800e357b
mov rax, qword [rax]
mov r14, qword [rax + rcx*8]
test r14, r14
jne 0x1800e35a5
lea ecx, [r14 + 8]
call sym.tcl86t.dll_hclpAlloc
mov r14, rax
test rax, rax
je 0x1800e35f7
xor eax, eax
lea rcx, [0x18018ff28]
mov rdx, r14
mov qword [r14], rax
call fcn.180106bc0
mov rax, qword [r14]
test rax, rax
je 0x1800e35cf
mov rdx, rsi
mov rcx, rax
call qword [rax + 0x40]
mov rbx, rax
test rax, rax
je 0x1800e35cf
mov rcx, qword [rax + 0x18]
call sym.tcl86t.dll_hclpFree
mov rcx, rbx
call sym.tcl86t.dll_hcl_DeleteHashEntry
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, reloc.WS2_32.dll_recv
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, 8
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1800e37f0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [0x1801905e4], 0
mov edi, ecx
jne 0x1800e3822
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x1800e3977
jmp 0x1800e3828
mov eax, dword [0x1801905ac]
mov ecx, eax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1800e384b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800e3984
test rbx, rbx
jne 0x1800e3858
call fcn.180105bb0
mov rbx, rax
mov edx, dword [rbx + 0x18]
mov qword [rsp + 0x38], rsi
test edx, edx
jne 0x1800e393a
mov rcx, qword [0x180190148]
call sym.tcl86t.dll_hcl_MutexLock
mov rdx, qword [0x18018f158]
mov esi, 0x320
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x1800e38c1
mov rcx, qword [rdx + 0x10]
cmp eax, esi
mov r8, rcx
cmovg eax, esi
add dword [rbx + 0x18], eax
sub dword [rdx + 0x18], eax
sub eax, 1
je 0x1800e38a9
nop
mov rcx, qword [rcx + 0x20]
sub eax, 1
jne 0x1800e38a0
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x10], rax
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x20], rcx
mov qword [rcx + 0x20], rax
mov qword [rbx + 0x10], r8
mov rcx, qword [0x180190148]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rbx + 0x18]
test edx, edx
jne 0x1800e393a
mov dword [rbx + 0x18], esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x9600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9, rax
test rax, rax
je 0x1800e3991
mov r8, qword [rbx + 0x10]
lea rdx, [r9 + 0x95f0]
add rax, 0x95d0
mov ecx, 0x31f
mov qword [rbx + 0x20], rax
nop dword [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x30]
mov r8, rax
sub rax, 0x30
sub ecx, 1
jns 0x1800e3920
mov edx, dword [rbx + 0x18]
mov qword [rbx + 0x10], r9
mov rax, qword [rbx + 0x10]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
mov qword [rbx + 0x10], rcx
lea ecx, [rdx - 1]
mov dword [rbx + 0x18], ecx
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
test edi, edi
mov dword [rax], ecx
mov qword [rax + 8], rcx
setne cl
mov dword [rax + 0x20], ecx
lea rcx, [0x180154ac0]
mov qword [rax + 0x18], rcx
add rsp, 0x20
pop rdi
ret
lea rcx, str.could_not_allocate_thread_local_storage
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsGetValue_failed_from_TclpGetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, esi
lea rcx, str.alloc:_could_not_allocate__d_new_objects
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1800e39b0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 1
mov r14d, edx
mov rdi, rcx
jg 0x1800e3b54
mov qword [rsp + 0x30], rbx
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x38], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rsi
test rbx, rbx
je 0x1800e3a8f
cmp rbx, qword [0x18018f080]
je 0x1800e3a8b
cmp dword [0x1801905e4], ebp
jne 0x1800e3a1e
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x1800e3b68
jmp 0x1800e3a24
mov eax, dword [0x1801905ac]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x1800e3a42
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800e3b75
test rsi, rsi
jne 0x1800e3a4f
call fcn.180105bb0
mov rsi, rax
movzx eax, byte [rbx - 0x10]
add rbx, 0xfffffffffffffff0
cmp al, 0xef
jne 0x1800e3b3b
cmp byte [rbx + 3], al
jne 0x1800e3b3b
movzx edx, byte [rbx + 1]
cmp edx, 0xa
jne 0x1800e3ad6
mov eax, dword [rbx + 8]
sub dword [rsi + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi + 8], rbp
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1800e3aa6
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800e3aa6
mov rcx, rdi
call rdx
mov rbx, qword [rsp + 0x30]
lea rax, [0x180154ac0]
mov rsi, qword [rsp + 0x40]
test r14d, r14d
mov qword [rdi + 0x18], rax
setne bpl
mov dword [rdi + 0x20], ebp
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rax, [rdx + rdx*4]
lea rcx, [rsi + rax*8]
mov eax, dword [rbx + 8]
sub dword [rcx + 0x54], eax
mov rax, qword [rcx + 0x30]
mov qword [rbx], rax
mov r9d, dword [rcx + 0x40]
mov qword [rcx + 0x30], rbx
test r9d, r9d
jne 0x1800e3afc
mov qword [rcx + 0x38], rbx
inc dword [rcx + 0x48]
inc r9d
cmp rsi, qword [0x18018f158]
mov dword [rcx + 0x40], r9d
je 0x1800e3a8b
lea rax, [rdx + rdx*2]
lea rcx, [0x180190200]
cmp r9d, dword [rcx + rax*8 + 8]
jle 0x1800e3a8b
mov r8d, dword [rcx + rax*8 + 0xc]
mov rcx, rsi
call fcn.180106700
jmp 0x1800e3a8b
movzx r9d, byte [rbx + 3]
lea rcx, str.alloc:_invalid_block:__p:__x__x
movzx r8d, al
mov rdx, rbx
call sym.tcl86t.dll_hcl_Panic
int3
lea rdx, str.Tcl_SetBooleanObj
lea rcx, str._s_called_with_shared_object
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.could_not_allocate_thread_local_storage
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsGetValue_failed_from_TclpGetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1800e40d0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
sub rsp, 0x38
cmp dword [0x1801905e4], 0
movaps xmmword [rsp + 0x20], xmm6
movaps xmm6, xmm0
jne 0x1800e4106
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x1800e4258
jmp 0x1800e410c
mov eax, dword [0x1801905ac]
mov ecx, eax
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1800e412f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800e4265
test rbx, rbx
jne 0x1800e413c
call fcn.180105bb0
mov rbx, rax
mov edx, dword [rbx + 0x18]
mov qword [rsp + 0x30], rdi
test edx, edx
jne 0x1800e421a
mov rcx, qword [0x180190148]
call sym.tcl86t.dll_hcl_MutexLock
mov rdx, qword [0x18018f158]
mov edi, 0x320
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x1800e41a3
mov rcx, qword [rdx + 0x10]
cmp eax, edi
mov r8, rcx
cmovg eax, edi
add dword [rbx + 0x18], eax
sub dword [rdx + 0x18], eax
sub eax, 1
je 0x1800e418b
mov rcx, qword [rcx + 0x20]
sub eax, 1
jne 0x1800e4182
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x10], rax
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x20], rcx
mov qword [rcx + 0x20], rax
mov qword [rbx + 0x10], r8
mov rcx, qword [0x180190148]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rbx + 0x18]
test edx, edx
jne 0x1800e421a
mov dword [rbx + 0x18], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x9600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9, rax
test rax, rax
je 0x1800e4272
mov r8, qword [rbx + 0x10]
lea rdx, [r9 + 0x95f0]
add rax, 0x95d0
mov ecx, 0x31f
mov qword [rbx + 0x20], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x30]
mov r8, rax
sub rax, 0x30
sub ecx, 1
jns 0x1800e4200
mov edx, dword [rbx + 0x18]
mov qword [rbx + 0x10], r9
mov rax, qword [rbx + 0x10]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rax + 0x20]
mov qword [rbx + 0x10], rcx
lea ecx, [rdx - 1]
mov dword [rbx + 0x18], ecx
xor ecx, ecx
mov rbx, qword [rsp + 0x40]
mov dword [rax], ecx
mov qword [rax + 8], rcx
lea rcx, str.double
movsd qword [rax + 0x20], xmm6
movaps xmm6, xmmword [rsp + 0x20]
mov qword [rax + 0x18], rcx
add rsp, 0x38
ret
lea rcx, str.could_not_allocate_thread_local_storage
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsGetValue_failed_from_TclpGetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, edi
lea rcx, str.alloc:_could_not_allocate__d_new_objects
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1800e42a0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [rcx], 1
mov rsi, rcx
movaps xmmword [rsp + 0x20], xmm6
movaps xmm6, xmm1
jg 0x1800e442f
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x1800e437d
cmp rdi, qword [0x18018f080]
je 0x1800e4375
cmp dword [0x1801905e4], 0
jne 0x1800e4308
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x1800e4443
jmp 0x1800e430e
mov eax, dword [0x1801905ac]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1800e432c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800e4450
test rbx, rbx
jne 0x1800e4339
call fcn.180105bb0
mov rbx, rax
movzx eax, byte [rdi - 0x10]
add rdi, 0xfffffffffffffff0
cmp al, 0xef
jne 0x1800e4416
cmp byte [rdi + 3], al
jne 0x1800e4416
movzx edx, byte [rdi + 1]
mov eax, dword [rdi + 8]
cmp edx, 0xa
jne 0x1800e43b9
sub dword [rbx + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 8], 0
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1800e4394
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800e4394
mov rcx, rsi
call rdx
mov rbx, qword [rsp + 0x40]
lea rax, str.double
mov rdi, qword [rsp + 0x48]
movsd qword [rsi + 0x20], xmm6
movaps xmm6, xmmword [rsp + 0x20]
mov qword [rsi + 0x18], rax
add rsp, 0x30
pop rsi
ret
lea rcx, [rdx + rdx*4]
sub dword [rbx + rcx*8 + 0x54], eax
mov rax, qword [rbx + rcx*8 + 0x30]
mov qword [rdi], rax
mov eax, dword [rbx + rcx*8 + 0x40]
mov qword [rbx + rcx*8 + 0x30], rdi
test eax, eax
jne 0x1800e43db
mov qword [rbx + rcx*8 + 0x38], rdi
inc dword [rbx + rcx*8 + 0x48]
inc eax
cmp rbx, qword [0x18018f158]
mov dword [rbx + rcx*8 + 0x40], eax
je 0x1800e4375
lea rcx, [rdx + rdx*2]
lea r8, [0x180190200]
cmp eax, dword [r8 + rcx*8 + 8]
jle 0x1800e4375
mov r8d, dword [r8 + rcx*8 + 0xc]
mov rcx, rbx
call fcn.180106700
jmp 0x1800e4375
movzx r9d, byte [rdi + 3]
lea rcx, str.alloc:_invalid_block:__p:__x__x
movzx r8d, al
mov rdx, rdi
call sym.tcl86t.dll_hcl_Panic
int3
lea rdx, str.Tcl_SetDoubleObj
lea rcx, str._s_called_with_shared_object
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.could_not_allocate_thread_local_storage
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsGetValue_failed_from_TclpGetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x1800e4750
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [0x1801905e4], 0
mov edi, ecx
jne 0x1800e4782
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x1800e48d2
jmp 0x1800e4788
mov eax, dword [0x1801905ac]
mov ecx, eax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1800e47ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800e48df
test rbx, rbx
jne 0x1800e47b8
call fcn.180105bb0
mov rbx, rax
mov edx, dword [rbx + 0x18]
mov qword [rsp + 0x38], rsi
test edx, edx
jne 0x1800e489a
mov rcx, qword [0x180190148]
call sym.tcl86t.dll_hcl_MutexLock
mov rdx, qword [0x18018f158]
mov esi, 0x320
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x1800e4821
mov rcx, qword [rdx + 0x10]
cmp eax, esi
mov r8, rcx
cmovg eax, esi
add dword [rbx + 0x18], eax
sub dword [rdx + 0x18], eax
sub eax, 1
je 0x1800e4809
nop
mov rcx, qword [rcx + 0x20]
sub eax, 1
jne 0x1800e4800
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x10], rax
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x20], rcx
mov qword [rcx + 0x20], rax
mov qword [rbx + 0x10], r8
mov rcx, qword [0x180190148]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rbx + 0x18]
test edx, edx
jne 0x1800e489a
mov dword [rbx + 0x18], esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x9600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9, rax
test rax, rax
je 0x1800e48ec
mov r8, qword [rbx + 0x10]
lea rdx, [r9 + 0x95f0]
add rax, 0x95d0
mov ecx, 0x31f
mov qword [rbx + 0x20], rax
nop dword [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x30]
mov r8, rax
sub rax, 0x30
sub ecx, 1
jns 0x1800e4880
mov edx, dword [rbx + 0x18]
mov qword [rbx + 0x10], r9
mov rax, qword [rbx + 0x10]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
mov qword [rbx + 0x10], rcx
lea ecx, [rdx - 1]
mov dword [rbx + 0x18], ecx
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
mov dword [rax], ecx
mov qword [rax + 8], rcx
lea rcx, [0x180154ac0]
mov qword [rax + 0x18], rcx
mov dword [rax + 0x20], edi
add rsp, 0x20
pop rdi
ret
lea rcx, str.could_not_allocate_thread_local_storage
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsGetValue_failed_from_TclpGetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3
mov edx, esi
lea rcx, str.alloc:_could_not_allocate__d_new_objects
call sym.tcl86t.dll_hcl_Panic
int3