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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6610d050]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x660486bd
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x74
push 1
call fcn.66001e61
mov esi, eax
add esp, 8
test esi, esi
je 0x66048705
mov ecx, dword [0x6610d050]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x66048705
push esi
call fcn.6600205b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.660ef6a1
add esp, 4
jmp 0x660168a8

Function at 0x6601768d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
lea eax, [ebp - 0x268]
push esi
push eax
lea eax, [ebp - 0x68]
push eax
push 0x20
call fcn.66013369
xor esi, esi
push esi
push eax
call fcn.660133df
pop ecx
cmp eax, esi
pop ecx
jne 0x660465ee
push edi
mov edi, dword [ebp + 8]
push ebx
push 1
push edi
call fcn.66015256
push esi
push edi
call fcn.66015256
mov eax, dword [edi + 4]
push dword [0x6610feb0]
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x66017728
mov eax, dword [ebp - 8]
cmp dword [esi + 0x14], eax
jne 0x6601778a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x660465f8
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call fcn.660177d3
mov esi, dword [ebp - 4]
test esi, esi
jne 0x6601778a
mov esi, dword [ebx + 0x48]
test esi, esi
jne 0x6601778a
cmp dword [0x6610feb4], 0
jne 0x66046603
mov eax, dword [edi + 0x14]
cmp dword [eax + 0xc], 0
je 0x6601775a
push 0
push edi
call fcn.660177ec
cmp dword [0x6610feb4], 0
jne 0x6604660f
mov eax, dword [edi + 0x14]
and dword [eax + 0xc], 0
xor esi, esi
cmp word [edi + 0x2a], si
jbe 0x6601777e
push esi
mov ecx, edi
call fcn.66017843
test eax, eax
je 0x66017775
push esi
push edi
call fcn.6601786d
movzx eax, word [edi + 0x2a]
inc esi
cmp esi, eax
jb 0x66017762
call fcn.660138ac
pop ebx
pop edi
pop esi
leave
ret 4
mov dword [ebp - 4], esi
mov esi, dword [esi + 0x18]
jmp 0x660176ea
call fcn.660138ac
jmp 0x66017785
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x18], ecx
jmp 0x6601770b
mov ecx, edi
call fcn.660de036
jmp 0x66017738
mov ecx, edi
call fcn.660de036
jmp 0x66017756
Function at 0x66017930
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x660442f6
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x660442f6
mov eax, dword [ecx + 0x10]
xor edx, edx
test eax, eax
je 0x660442f6
mov esi, dword [eax + 0xc]
mov edi, dword [esp + 0xc]
cmp edi, dword [esi + 8]
jne 0x660442ed
test eax, eax
je 0x660442f6
test edx, edx
jne 0x660442fd
mov edx, dword [eax]
mov dword [ecx + 0x10], edx
push eax
call fcn.66017991
push 1
pop eax
pop edi
pop esi
ret 4
mov edx, eax
mov eax, dword [eax]
jmp 0x66017956
xor eax, eax
jmp 0x6601798c
mov ecx, dword [eax]
mov dword [edx], ecx
jmp 0x66017983

Function at 0x66017991
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x660179d2
test byte [esi + 0x14], 1
push edi
push ebx
je 0x66044236
mov eax, dword [esi + 8]
test eax, eax
je 0x660179ca
add eax, 0x248
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call fcn.660177d3
pop ebx
pop edi
pop esi
leave
ret 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x66044250
mov eax, dword [eax + 0xc]
test eax, eax
je 0x66044250
push eax
mov eax, dword [esi + 8]
push dword [eax + 0xc]
call fcn.660177ec
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
mov ax, word [eax + 0x2a]
test ax, ax
jbe 0x66044277
lea edi, [esi + 0x20]
movzx ebx, ax
mov eax, dword [edi]
test eax, eax
je 0x66044271
push eax
call fcn.660177d3
add edi, 0x14
dec ebx
jne 0x66044265
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x660442d7
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x20
call fcn.66013369
push 0
push eax
call fcn.660133df
mov esi, dword [ebp + 8]
pop ecx
test eax, eax
pop ecx
jne 0x660442cd
mov eax, dword [esi + 0x10]
test eax, eax
je 0x660442cd
push eax
mov eax, dword [esi + 8]
push 0x660ddf32
mov ecx, dword [eax + 0x24c]
call fcn.66013869
push dword [esi + 0x10]
call fcn.660177d3
call fcn.660138ac
jmp 0x660179ae
mov eax, dword [esi + 0x10]
test eax, eax
je 0x660179ae
push eax
call fcn.660177d3
jmp 0x660179ae
Function at 0x660188a3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x6610f788], 1
mov esi, eax
mov ebx, 0x6610fd20
jne 0x660188c9
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp esi, edi
je 0x66018943
mov eax, dword [esp + 0x10]
not eax
and word [esi + 0x30], ax
cmp word [esi + 0x30], di
jne 0x66018943
push esi
call fcn.66018959
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x660188f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x66018905
push eax
call fcn.66018a05
mov dword [esi + 0x1c], edi
mov eax, dword [0x6610feac]
mov ecx, dword [0x66110328]
add ecx, eax
test ecx, ecx
jne 0x6601891b
call fcn.66018a11
mov ecx, esi
call fcn.66018a95
cmp dword [0x6610feb4], edi
jne 0x66018930
mov dword [0x6610feb8], edi
push esi
call fcn.660177d3
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x6610f788], 1
jne 0x66018953
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 4]
lea eax, [esi + 0x68]
push eax
call fcn.6600355f
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp byte [ebp + 0x10], bl
je 0x66019765
cmp dword [esi + 0x20], edi
je 0x6603ba3e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
dec dword [esi + 8]
mov eax, dword [esi + 8]
dec dword [esi + 0x10]
cmp eax, 1
je 0x6603ba46
cmp byte [ebp + 0xc], bl
je 0x660197a6
xor eax, eax
cmp dword [edi + 0x2c], 2
sete al
test al, al
jne 0x6603ba87
mov ecx, edi
call fcn.660197b7
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, edi
jne 0x66019799
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp edi, ebx
je 0x660197a6
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x20]
lea ecx, [ebp - 4]
call fcn.66003592
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
mov dword [esi + 0x20], ebx
jmp 0x6601974c
cmp byte [esi], bl
jne 0x66019765
cmp dword [esi + 0xc], 0xffffffff
jne 0x66019765
xor eax, eax
cmp dword [edi + 0x2c], 1
sete al
test al, al
jne 0x66019765
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x14]
call dword [eax + 0x10]
push ebx
push ebx
push 0x1069
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x66019765
cmp dword [edi + 0x30], 4
jne 0x6601977b
mov ecx, dword [edi + 0xf8]
cmp ecx, ebx
je 0x6603baab
mov edx, dword [edi + 0xf4]
lea eax, [edi + 0xf4]
mov dword [ecx], edx
mov dword [eax], ebx
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x6601977b
Function at 0x6601b258
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
call fcn.6601b29a
mov esi, eax
test esi, esi
jl 0x6604710f
cmp byte [0x661101a4], 0
jne 0x66047170
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
cmp dword [ebp - 4], 0
push esi
jne 0x6604711b
call fcn.66025592
call fcn.6600fd75
test eax, eax
je 0x6604716c
push esi
call fcn.6600fd75
mov edi, eax
or edi, 0x800a0000
push dword [0x6610feb0]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
add eax, 0x78
push eax
push edi
call fcn.660255f4
push dword [0x6610feb0]
call esi
mov ecx, dword [ebp - 4]
push dword [0x6610feb0]
mov dword [eax + 0x80], ecx
call esi
add eax, 0x78
push eax
call fcn.66024cb8
xor edi, edi
jmp 0x66047132
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.660d8d77
jmp 0x6601b291
Function at 0x6601bcc2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6603bf20
push eax
call fcn.6601bd76
test eax, eax
mov dword [ebp - 8], eax
jne 0x6601bd2d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x110]
push edi
push eax
push 0
push dword [ebp - 4]
call esi
test eax, eax
je 0x6601bd51
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call fcn.6601bd76
test eax, eax
jne 0x6603bf31
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push eax
call fcn.6601bd76
test eax, eax
jne 0x6603bf39
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.6601bcc2
test eax, eax
jne 0x6603bf28
lea eax, [ebp - 0x110]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x6601bd10
mov dword [ebp - 4], esi
jmp 0x6601bceb
mov dword [ebp - 8], eax
inc ebx
jmp 0x6601bd68
mov dword [ebp - 8], eax
jmp 0x6601bd2d
mov dword [ebp - 8], eax
jmp 0x6601bd47
Function at 0x6601be2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6601c058
push 0x660eeead
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x25c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x16c], esi
push 0x6601c010
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xfa
lea eax, [ebp - 0x266]
push eax
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x64]
push eax
call fcn.6601bc33
push 0x6601c044
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x26c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, esi
jne 0x6603bf5c
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x164], 0x104
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x6603bf5c
mov dword [ebp - 0x158], esi
mov dword [ebp - 4], esi
push 8
push esi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x16c], eax
cmp eax, esi
je 0x6603bf67
mov dword [ebp - 0x160], 0x34
xor eax, eax
cmp dword [ebx + 0x48], esi
sete al
inc eax
mov dword [ebp - 0x15c], eax
push dword [ebp + 0xc]
call fcn.6601b75a
mov dword [ebp - 0x158], eax
lea esi, [ebx + 0x10]
lea edi, [ebp - 0x154]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x30]
lea edi, [ebp - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ax, word [ebx + 0x58]
mov word [ebp - 0x134], ax
mov ax, word [ebx + 0x5a]
mov word [ebp - 0x132], ax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x130], eax
cmp dword [ebp + 0x10], 0
mov eax, 0x6601c030
jne 0x6601bf99
mov eax, 0x6601c018
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x6603bf95
lea ecx, [ebp - 0x160]
push ecx
call eax
mov dword [ebp - 0x274], eax
test eax, eax
jl 0x6603bf73
xor eax, eax
mov dword [ebp - 0x20], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x16c], 0
je 0x6601bfe6
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x158], 0
je 0x6601bffb
push dword [ebp - 0x158]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
push edi
call fcn.6601bd76
jmp 0x6601bffe
or dword [ebp - 4], 0xffffffff
push 0x30
pop eax
jmp 0x6601bffe
push eax
call fcn.6607268f
jmp 0x6601bfca
mov dword [ebp - 0x20], 0x30
jmp 0x6601bfcd
Function at 0x6601d62b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
mov esi, dword [ebp + 0xc]
jne 0x6604554f
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x66045563
pop edi
pop esi
pop ebx
leave
ret 8
pop edi
leave
ret 0x20
test esi, esi
je 0x66045559
push esi
call fcn.66018aad
push 0x9c68
call fcn.66025592
cmp eax, 0x80020009
mov ebx, 0x1b8
jne 0x66045602
cmp esi, edi
jne 0x66045594
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
lea esi, [ebp - 0x20]
push eax
call fcn.660de785
mov dword [ebp - 4], 0x800a01b8
cmp dword [esi + 0x1c], 0x800a9c68
jne 0x660455a4
mov dword [esi + 0x1c], 0x800a01b8
xor edi, edi
cmp word [esi], di
jne 0x660455b0
cmp dword [esi + 0x1c], edi
jge 0x660455f6
mov eax, dword [esi + 0x1c]
cmp eax, edi
jge 0x660455f0
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0xa0000
je 0x660455f0
push eax
call fcn.66024c30
cmp eax, ebx
je 0x660455f0
cmp dword [esi + 8], edi
jne 0x660455f0
cmp dword [esi + 0xc], edi
jne 0x660455f0
cmp dword [esi + 0x10], edi
jne 0x660455f0
mov ecx, eax
or eax, 0x800a0000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x1c], ecx
push esi
call fcn.66024cb8
push esi
call fcn.66018aad
push ebx
call fcn.66025592
cmp esi, edi
je 0x6604560c
push esi
call fcn.66018aad
push dword [ebp + 8]
call fcn.66024c30
cmp eax, 0x9c68
jne 0x66045624
mov eax, ebx
mov dword [ebp + 0xc], 0x800a01b8
cmp eax, ebx
je 0x6604562e
push eax
call fcn.66025592
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.66024cb8
mov eax, 0x800a005b
jmp 0x6602876d
Function at 0x6601dc83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x8000
test dword [ebp + 0xc], edi
mov dword [ebp - 4], 1
jne 0x66033c18
mov esi, dword [ebp + 8]
push esi
call fcn.6601dcdc
mov ax, word [esi + 0x10]
and ax, 0xff00
cmp ax, 0x600
jne 0x66033c36
mov eax, dword [esi + 0x24]
shl eax, 0x1f
sar eax, 0x1f
test al, al
jne 0x66033c25
and dword [esi + 0x24], 0xfffffffb
and dword [esi + 0x14], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
and byte [ebp + 0xd], 0x7f
and dword [ebp - 4], 0
jmp 0x6601dc9f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 4], eax
jmp 0x6601dccb
cmp ax, 0x800
jne 0x66033c4a
push dword [ebp + 0xc]
push esi
call fcn.66073f3a
jmp 0x6601dcd5
cmp ax, 0x200
jne 0x66033c58
push dword [esi + 0xc]
call fcn.66074a3b
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
or eax, edi
xor edi, edi
push eax
push ebx
push edi
call fcn.6607479a
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x66033c87
mov ecx, dword [esi + 0xc]
call fcn.66074a8e
push eax
push dword [ebx]
call fcn.6607261d
jmp 0x6601dcd5
cmp dword [ebp - 4], edi
je 0x6601dcd3
cmp dword [ebp + 0xc], edi
jne 0x6601dcd3
push esi
call fcn.66073be0
mov ebx, eax
cmp ebx, edi
jge 0x6601dcd3
push esi
call fcn.6601dcdc
mov eax, ebx
jmp 0x6601dcd5
Function at 0x66024429
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [eax + 0x98], 0
add eax, 0x78
push eax
call fcn.66018aad
mov eax, dword fs:[0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0xfffffffd
je 0x66046d3d
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
leave
ret 4
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0xfffffffd
jmp 0x66024464

Function at 0x66024563
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push dword [0x6610feb0]
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x40], eax
mov dword [esi + 4], 0x6601a1f0
lea eax, [esi + 0x30]
mov dword [esi + 8], 0x6601a1d8
mov dword [esi], 0x6602f830
mov dword [esi + 4], 0x6602f820
mov dword [esi + 8], 0x6602f808
mov dword [esi + 0x5c], 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x60], eax
mov eax, esi
pop esi
ret

Function at 0x66024919
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x66046e94
push dword [ebp + 0x10]
push eax
call sym.MSVBVM60.DLL_rtcLeftBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
je 0x66046e82
mov word [ebp - 0x10], 1
jmp 0x6602495e

Function at 0x66024ade
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
jne 0x66045923
mov eax, dword [esp + 4]
test eax, eax
jge 0x66045937
cmp eax, 0x800a9c68
je 0x6604592d
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
call fcn.66024b22
jmp 0x66045937
push 0x9c68
call fcn.66025592
mov eax, 0x800a01b8
jmp 0x66024b0b
ret 0x10
Function at 0x66024d58
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
cmp dword [eax], 0xc00000fd
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0xc]
je 0x66046c89
mov eax, dword [edi + 8]
cmp eax, edi
ja 0x66024e7f
lea ecx, [ebp - 4]
cmp eax, ecx
jb 0x66024e7f
test esi, esi
je 0x66024e7f
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x66024e7f
mov ax, word [esi + 2]
cmp ax, 4
jb 0x66024e7f
cmp ax, 0x14
ja 0x66024e7f
mov ecx, dword [ebp + 8]
test byte [ecx + 4], 6
jne 0x66024e84
mov ax, word [esi]
test al, 0x30
je 0x66024e98
cmp dword [edi + 0x14], 0
je 0x66024e98
test byte [edi + 0x10], 2
jne 0x66024e98
push ecx
call fcn.66024ead
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call fcn.66024ef0
test eax, eax
je 0x66024e7f
cmp dword [ebp + 0xc], 0
jne 0x66024ea2
push edi
call fcn.6610018c
call fcn.66024f2d
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x66046d26
test byte [esi], 0x30
je 0x66046cdf
cmp dword [edi + 0x14], eax
je 0x66046cdf
test byte [edi + 0x10], 2
jne 0x66046cdf
push eax
push 1
push eax
push esi
push edi
call fcn.66024f44
test byte [esi], 0x40
push dword [0x6610feb0]
jne 0x66046ca6
call ebx
and dword [eax + 0x98], 0
mov eax, dword [edi + 0x14]
cmp eax, 0xfffffffe
je 0x66046cd1
cmp eax, 0xffffffff
jne 0x66046cbe
push dword [edi + 0x1c]
push edi
call fcn.66024fe8
push 1
pop eax
jmp 0x66024e93
push 1
pop ebx
push ebx
push ebx
push ebx
push esi
push edi
call fcn.66024f44
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
test al, 1
jne 0x66024ded
jmp 0x66024e7f
test byte [esi], 1
jne 0x66024e0c
jmp 0x66024e7f
test byte [eax + 4], 6
jne 0x66024d7a
push dword [0x6610feb0]
call ebx
lea ecx, [ebp - 4]
mov dword [eax + 0x44], ecx
jmp 0x66024d7a
call ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi + 0x18]
movzx ecx, word [edx + ecx*2 + 2]
mov dword [eax + 0x98], ecx
jmp 0x66024e61
test eax, eax
je 0x66024e7f
push edi
call fcn.660e8504
jmp 0x66024e7f
push dword [edi + 0x1c]
push edi
call fcn.660e84da
jmp 0x66024e7f
cmp dword [ebp + 0xc], eax
jne 0x66046d26
test byte [edi + 0x10], 1
je 0x66046d26
test byte [esi], 0x80
jne 0x66046d26
push dword [0x6610feb0]
call ebx
push eax
call fcn.66014520
push eax
call fcn.6602daac
push eax
push 0x13
call fcn.66015452
push dword [0x6610feb0]
call ebx
add eax, 0x78
push eax
call fcn.6602e73d
push 0x9c68
call fcn.66025592
push 1
push 1
push eax
push esi
push edi
call fcn.66024f44
push edi
call fcn.660e856d
jmp 0x66024e7f

Function at 0x66024ead
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax], 0xc000008f
jne 0x66024ee6
cmp dword [eax + 0x10], 2
jne 0x66024ee6
mov ecx, 0xdeadcafe
cmp dword [eax + 0x14], ecx
jne 0x66024ee6
cmp dword [eax + 0x18], ecx
jne 0x66024ee6
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x94], 0x800a9c68
je 0x66024eeb
xor eax, eax
ret 4
push 1
pop eax
jmp 0x66024ee8