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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [0x180190088], 0
jne 0x180105ce9
cmp dword [0x1801905e0], 0
jne 0x180105bed
lea rcx, [0x18018fa28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1801905e0], 1
lea rcx, [0x18018f1f8]
call sym.tcl86t.dll_hcl_MutexLock
cmp qword [0x180190088], 0
jne 0x180105cdc
mov ecx, 0x30
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180105d91
lea rcx, [rax + 8]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x30
mov qword [0x180190088], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180105d91
lea rcx, [rax + 8]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [0x180190148], rbx
xor edi, edi
lea rbx, [0x180190208]
nop word [rax + rax]
mov ecx, edi
mov r8d, edi
mov eax, 0x20
mov edx, 1
shl rax, cl
mov ecx, 9
sub cl, dil
mov qword [rbx - 8], rax
shl edx, cl
mov dword [rbx], edx
mov edx, 1
cmp edi, 9
jae 0x180105ca6
mov ecx, 8
sub cl, r8b
shl edx, cl
mov ecx, 0x30
mov dword [rbx + 4], edx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180105d91
lea rcx, [rax + 8]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbx + 8], rsi
inc edi
add rbx, 0x18
cmp edi, 0xa
jb 0x180105c70
mov rcx, qword [0x18018f1f8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.180145250
mov rbx, rax
test rax, rax
jne 0x180105d71
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x1c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180105d84
xor edx, edx
mov r8d, 0x1c0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x180190088]
call sym.tcl86t.dll_hcl_MutexLock
mov rax, qword [0x18018f160]
mov rcx, qword [0x180190088]
mov qword [rbx], rax
mov qword [0x18018f160], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1801905ac]
mov rdx, rbx
mov eax, eax
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180105d9e
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.alloc:_could_not_allocate_new_cache
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.could_not_allocate_lock
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsSetValue_failed_from_TclpSetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x180105db0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rbp
sub rsp, 0x20
cmp dword [0x1801905e4], 0
mov ebp, ecx
jne 0x180105de2
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x180105ee4
jmp 0x180105de8
mov eax, dword [0x1801905ac]
mov ecx, eax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x180105e0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180105ef1
mov qword [rsp + 0x48], r14
test rsi, rsi
jne 0x180105e1d
call fcn.180105bb0
mov rsi, rax
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
cmp rdx, 0x4000
jbe 0x180105e5c
mov edi, 0xa
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x180105e9f
add dword [rsi + 0x28], ebp
jmp 0x180105eb7
xor edi, edi
cmp qword [0x180190200], rdx
jae 0x180105e7f
lea r8, [0x180190200]
nop
inc edi
movsxd rax, edi
lea rcx, [rax + rax*2]
cmp qword [r8 + rcx*8], rdx
jb 0x180105e70
movsxd rax, edi
lea rcx, [rax + rax*4]
cmp dword [rsi + rcx*8 + 0x40], 0
lea rbx, [rsi + rcx*8]
jne 0x180105ea3
mov edx, edi
mov rcx, rsi
call fcn.180106800
test eax, eax
jne 0x180105ea3
xor eax, eax
jmp 0x180105eca
mov rcx, qword [rbx + 0x30]
mov rax, qword [rcx]
dec dword [rbx + 0x40]
inc dword [rbx + 0x44]
add dword [rbx + 0x54], ebp
mov qword [rbx + 0x30], rax
mov byte [rcx + 3], 0xef
lea rax, [rcx + 0x10]
mov byte [rcx], 0xef
mov byte [rcx + 1], dil
mov qword [rcx + 8], rbp
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rbp
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
Function at 0x180105f00
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
test rcx, rcx
je 0x180105fb7
push rbx
sub rsp, 0x20
cmp dword [0x1801905e4], 0
mov rbx, rcx
jne 0x180105f3b
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x180106033
jmp 0x180105f41
mov eax, dword [0x1801905ac]
mov ecx, eax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x180105f64
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180106040
test rdi, rdi
jne 0x180105f71
call fcn.180105bb0
mov rdi, rax
movzx eax, byte [rbx - 0x10]
add rbx, 0xfffffffffffffff0
cmp al, 0xef
jne 0x18010601a
cmp byte [rbx + 3], al
jne 0x18010601a
movzx edx, byte [rbx + 1]
cmp edx, 0xa
jne 0x180105fb8
mov eax, dword [rbx + 8]
sub dword [rdi + 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 rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rax, [rdx + rdx*4]
lea rcx, [rdi + 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 0x180105fde
mov qword [rcx + 0x38], rbx
inc dword [rcx + 0x48]
inc r9d
cmp rdi, qword [0x18018f158]
mov dword [rcx + 0x40], r9d
je 0x180105fad
lea rax, [rdx + rdx*2]
lea rcx, [0x180190200]
cmp r9d, dword [rcx + rax*8 + 8]
jle 0x180105fad
mov r8d, dword [rcx + rax*8 + 0xc]
mov rcx, rdi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp fcn.180106700
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 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 0x180106050
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov ebx, edx
mov rbp, rcx
test rcx, rcx
jne 0x180106075
mov ecx, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
jmp sym.tcl86t.dll_hclpAlloc
cmp dword [0x1801905e4], 0
jne 0x18010609f
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x180106201
jmp 0x1801060a5
mov eax, dword [0x1801905ac]
mov ecx, eax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x1801060c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18010620e
mov qword [rsp + 0x38], rdi
test rsi, rsi
jne 0x1801060da
call fcn.180105bb0
mov rsi, rax
movzx eax, byte [rbp - 0x10]
cmp al, 0xef
jne 0x1801061e7
cmp byte [rbp - 0xd], al
jne 0x1801061e7
movzx r8d, byte [rbp - 0xf]
lea rdx, [rbx + 0x10]
mov qword [rsp + 0x40], r14
mov r14, rbx
cmp r8b, 0xa
je 0x18010616f
movzx ecx, r8b
lea r10, [0x180190200]
test r8b, r8b
je 0x180106121
lea rax, [rcx + rcx*2]
mov r9, qword [r10 + rax*8 - 0x18]
jmp 0x180106124
xor r9d, r9d
cmp rdx, r9
jbe 0x1801061b0
lea rax, [rcx + rcx*2]
cmp rdx, qword [r10 + rax*8]
ja 0x1801061b0
sub ebx, dword [rbp - 8]
lea rax, [rcx + rcx*4]
add dword [rsi + rax*8 + 0x54], ebx
mov rax, rbp
mov byte [rbp - 0xd], 0xef
mov byte [rbp - 0x10], 0xef
mov byte [rbp - 0xf], r8b
mov qword [rbp - 8], r14
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
cmp rdx, 0x4000
jbe 0x1801061b0
sub ebx, dword [rbp - 8]
add dword [rsi + 0x28], ebx
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, ebx
lea r8, [rbp - 0x10]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180106155
mov byte [rax + 3], 0xef
mov word [rax], 0xaef
mov qword [rax + 8], r14
add rax, 0x10
jmp 0x180106155
mov ecx, ebx
call sym.tcl86t.dll_hclpAlloc
mov rsi, rax
test rax, rax
je 0x1801061df
mov rcx, qword [rbp - 8]
mov rdx, rbp
cmp r14, rcx
cmova ebx, ecx
mov rcx, rax
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbp
call sym.tcl86t.dll_hclpFree
mov rax, rsi
jmp 0x180106155
movzx r9d, byte [rbp - 0xd]
lea rdx, [rbp - 0x10]
movzx r8d, al
lea rcx, str.alloc:_invalid_block:__p:__x__x
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 0x180106220
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1801905e4], 0
jne 0x18010624e
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x18010638b
jmp 0x180106254
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 0x180106277
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180106398
test rbx, rbx
jne 0x180106284
call fcn.180105bb0
mov rbx, rax
mov edx, dword [rbx + 0x18]
mov qword [rsp + 0x20], rdi
test edx, edx
jne 0x18010636a
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 0x1801062f1
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 0x1801062d9
nop word [rax + rax]
mov rcx, qword [rcx + 0x20]
sub eax, 1
jne 0x1801062d0
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 0x18010636a
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 0x1801063a5
mov r8, qword [rbx + 0x10]
lea rdx, [r9 + 0x95f0]
add rax, 0x95d0
mov ecx, 0x31f
mov qword [rbx + 0x20], rax
nop dword [rax]
nop dword [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x30]
mov r8, rax
sub rax, 0x30
sub ecx, 1
jns 0x180106350
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
mov rbx, qword [rsp + 0x30]
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 0x1801063c0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [0x1801905e4], 0
mov rdi, rcx
jne 0x1801063ef
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x18010645c
jmp 0x1801063f5
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 0x180106414
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180106469
test rbx, rbx
jne 0x180106421
call fcn.180105bb0
mov rbx, rax
mov rcx, qword [rbx + 0x10]
mov qword [rdi + 0x20], rcx
mov eax, dword [rbx + 0x18]
mov qword [rbx + 0x10], rdi
test eax, eax
jne 0x180106438
mov qword [rbx + 0x20], rdi
inc eax
mov dword [rbx + 0x18], eax
cmp eax, 0x4b0
jle 0x180106451
mov edx, 0x320
mov rcx, rbx
call fcn.180106640
mov rbx, qword [rsp + 0x30]
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
Function at 0x180106a10
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov r15, rcx
cmp dword [rcx + 8], esi
jle 0x180106b4a
mov r14d, esi
lea rbp, [0x180190200]
mov rax, qword [r15]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x180106b3a
cmp dword [0x1801905e4], 0
jne 0x180106a7a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x180106ba4
jmp 0x180106a80
mov eax, dword [0x1801905ac]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x180106a9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180106bb1
test rdi, rdi
jne 0x180106aab
call fcn.180105bb0
mov rdi, rax
movzx eax, byte [rbx - 0x10]
add rbx, 0xfffffffffffffff0
cmp al, 0xef
jne 0x180106b8b
cmp byte [rbx + 3], al
jne 0x180106b8b
movzx edx, byte [rbx + 1]
cmp edx, 0xa
jne 0x180106ae9
mov eax, dword [rbx + 8]
sub dword [rdi + 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]
jmp 0x180106b3a
lea rax, [rdx + rdx*4]
lea rcx, [rdi + 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 0x180106b0f
mov qword [rcx + 0x38], rbx
inc dword [rcx + 0x48]
inc r9d
cmp rdi, qword [0x18018f158]
mov dword [rcx + 0x40], r9d
je 0x180106b3a
lea rax, [rdx + rdx*2]
cmp r9d, dword [rbp + rax*8 + 8]
jle 0x180106b3a
mov r8d, dword [rbp + rax*8 + 0xc]
mov rcx, rdi
call fcn.180106700
inc esi
add r14, 8
cmp esi, dword [r15 + 8]
jl 0x180106a40
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [r15]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
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 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 0x180106bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [0x1801902f8]
mov r14, rcx
mov rbp, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x180106c7d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rbx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180106d49
mov dword [rax + 8], 8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x180106d49
xor edi, edi
mov ecx, edi
cmp dword [rbx + 8], ecx
jle 0x180106c63
mov edx, edi
nop word [rax + rax]
mov rax, qword [rbx]
lea rdx, [rdx + 8]
inc ecx
mov qword [rdx + rax - 8], rdi
cmp ecx, dword [rbx + 8]
jl 0x180106c50
mov rax, qword [0x1801902f8]
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180106d3c
mov eax, dword [r14]
test eax, eax
jne 0x180106cb5
lea rcx, [0x180190308]
call sym.tcl86t.dll_hcl_MutexLock
mov eax, dword [r14]
test eax, eax
jne 0x180106ca8
mov eax, dword [0x180190300]
inc eax
mov dword [0x180190300], eax
mov dword [r14], eax
mov rcx, qword [0x180190308]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [rbx + 8]
mov eax, dword [r14]
mov qword [rsp + 0x30], rsi
cmp eax, ecx
jl 0x180106d17
mov eax, dword [r14]
mov esi, dword [rbx + 8]
add esi, esi
cmp esi, eax
jg 0x180106cd3
lea esi, [rax + 0xa]
lea edi, [rsi*8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
mov r9d, edi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180106d56
movsxd rax, dword [rbx + 8]
movsxd rcx, esi
cmp rax, rcx
jge 0x180106d11
sub rcx, rax
lea rdi, [rdx + rax*8]
xor eax, eax
rep stosq qword [rdi], rax
mov dword [rbx + 8], esi
mov qword [rbx], rdx
movsxd rcx, dword [r14]
mov rax, qword [rbx]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov qword [rax + rcx*8], rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
lea rcx, str.unable_to_set_master_TSD_value
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.unable_to_allocate_TSDTable
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.unable_to_reallocate_TSDTable
call sym.tcl86t.dll_hcl_Panic
int3
Function at 0x180106d70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x180190310]
xor ebx, ebx
test rax, rax
je 0x180106da3
test ecx, ecx
jle 0x180106da3
cmp ecx, dword [rax + 8]
jge 0x180106da3
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x180106e34
mov rax, qword [0x1801902f8]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rcx, dword [0x180190310]
test rax, rax
je 0x180106dd7
test ecx, ecx
jle 0x180106dd7
cmp ecx, dword [rax + 8]
jge 0x180106dd7
mov rax, qword [rax]
mov rbx, qword [rax + rcx*8]
test rbx, rbx
jne 0x180106e10
lea ecx, [rbx + 0x28]
call sym.tcl86t.dll_hclpAlloc
mov rbx, rax
test rax, rax
je 0x180106e3d
xor eax, eax
lea rcx, [0x180190310]
mov qword [rbx], rax
mov rdx, rbx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
call fcn.180106bc0
xor r8d, r8d
lea rdx, [0x1801071a0]
lea rcx, [0x180107100]
call sym.tcl86t.dll_hcl_CreateEventSource
xor edx, edx
lea rcx, [0x180106e50]
call sym.tcl86t.dll_hcl_CreateThreadExitHandler
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov edx, 0x28
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3

Function at 0x180107090
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180106d70
test rbx, rbx
je 0x1801070eb
mov rcx, qword [rax]
xor r8d, r8d
test rcx, rcx
je 0x1801070eb
nop
mov rdx, qword [rcx + 0x20]
cmp qword [rcx + 0x18], rbx
je 0x1801070cb
mov r8, rcx
mov rcx, rdx
test rdx, rdx
jne 0x1801070b0
add rsp, 0x20
pop rbx
ret
test r8, r8
jne 0x1801070dd
mov qword [rax], rdx
add rsp, 0x20
pop rbx
jmp sym.tcl86t.dll_hclpFree
mov qword [r8 + 0x20], rdx
add rsp, 0x20
pop rbx
jmp sym.tcl86t.dll_hclpFree
add rsp, 0x20
pop rbx
ret
Function at 0x180112530
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1801902f8]
mov r15, rcx
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
movsxd rdx, dword [0x180190318]
xor edi, edi
test rax, rax
je 0x18011257c
test edx, edx
jle 0x18011257c
cmp edx, dword [rax + 8]
jge 0x18011257c
mov rax, qword [rax]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
jne 0x1801125a8
lea ecx, [rdi + 4]
call sym.tcl86t.dll_hclpAlloc
mov rdi, rax
test rax, rax
je 0x18011269e
xor eax, eax
lea rcx, [0x180190318]
mov rdx, rdi
mov dword [rdi], eax
call fcn.180106bc0
mov qword [rsp + 0x60], rbx
mov ebx, dword [rsp + 0x80]
test bl, 0x40
je 0x1801125f2
test bl, bl
jns 0x1801125eb
test byte [rsi + 0x1a8], 1
jne 0x1801125eb
lea rax, [sym.tcl86t.dll_hclPrecTraceProc]
mov qword [rsp + 0x28], r15
mov r9d, WSAStartup
mov qword [rsp + 0x20], rax
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call sym.tcl86t.dll_hcl_TraceVar2
xor eax, eax
jmp 0x180112685
test bl, 0x10
je 0x18011261a
mov ecx, dword [rdi]
and ebx, 1
call sym.tcl86t.dll_hcl_NewIntObj
mov r9, rax
mov dword [rsp + 0x20], ebx
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call sym.tcl86t.dll_hcl_SetVar2Ex
xor eax, eax
jmp 0x180112685
test rsi, rsi
je 0x180112631
test byte [rsi + 0x1a8], 0x80
je 0x180112631
lea rax, str.cant_modify_precision_from_a_safe_interpreter
jmp 0x180112685
and ebx, 1
mov r8, rbp
mov r9d, ebx
mov rdx, r14
mov rcx, rsi
call sym.tcl86t.dll_hcl_GetVar2Ex
test rax, rax
je 0x18011267e
lea rcx, [0x180154ac0]
cmp qword [rax + 0x18], rcx
jne 0x18011265c
mov eax, dword [rax + 0x20]
jmp 0x180112673
lea r8, [rsp + 0x30]
mov rdx, rax
xor ecx, ecx
call sym.tcl86t.dll_hcl_GetLongFromObj
test eax, eax
jne 0x18011267e
mov eax, dword [rsp + 0x30]
cmp eax, 0x11
ja 0x18011267e
mov dword [rdi], eax
xor eax, eax
jmp 0x180112685
lea rax, str.improper_value_for_precision
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov edx, 4
lea rcx, str.unable_to_alloc__u_bytes
call sym.tcl86t.dll_hcl_Panic
int3