joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x102a8430]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100095bf
cmp word [esp + 0x20], 0
je 0x100095bf
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x10009583
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.100072f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009590
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.100072f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.100093e0
add esp, 4
mov ecx, esi
test al, al
je 0x1000960b
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [esp + 0x10]
push eax
call fcn.10008ac0
jmp 0x10009622
sub esp, 8
mov eax, esp
mov dword [eax], 0x100681e0
mov dword [eax + 4], 3
call fcn.100072f0
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x1000963a
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.10008df0
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret

Function at 0x10009650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x102a8430]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1000974c
cmp eax, 0x104
ja 0x1000974c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.10009810
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.100072f0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x100096e4
mov ecx, dword [eax]
jmp 0x100096e6
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.100072f0
lea ecx, [ebp - 0x240]
call fcn.10007d20
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x1000971a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10008ac0
lea ecx, [ebp - 0x240]
call fcn.10007370
lea ecx, [ebp - 0x258]
call fcn.10007370
lea ecx, [ebp - 0x228]
call fcn.10007370
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret
Function at 0x1000e760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000e780
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000fb60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], 0
mov eax, dword [ecx + 0xc]
push esi
push edi
test eax, eax
je 0x1000fb90
mov dword [ebp - 8], eax
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [ebp - 8]
mov ebx, 1
jmp 0x1000fbba
call fcn.10017190
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, 2
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000fbb7
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [ebp - 4]
mov esi, dword [ebp + 8]
or edi, 0xffffffff
mov eax, dword [ecx]
mov dword [ecx], 0
mov dword [esi], eax
test bl, 2
je 0x1000fc05
mov eax, dword [ebp - 4]
and ebx, 0xfffffffd
test eax, eax
je 0x1000fc05
lea ecx, [eax + 4]
mov eax, edi
lock xadd dword [ecx], eax
sub eax, 1
jne 0x1000fc05
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x100687e4
jne 0x1000fc51
test ecx, ecx
je 0x1000fc05
push 1
call dword [eax + 8]
test bl, 1
je 0x1000fc46
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000fc46
lea ecx, [eax + 4]
lock xadd dword [ecx], edi
sub edi, 1
jne 0x1000fc46
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x100687e4
jne 0x1000fc55
test ecx, ecx
je 0x1000fc46
push 1
call dword [eax + 8]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call edx
jmp 0x1000fc05
call edx
jmp 0x1000fc46

Function at 0x10010260
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x100102bb
mov ecx, esi
jmp 0x100102c0
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x100102e5
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x100102cf
mov eax, dword [eax]
jmp 0x100102b3
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10010300
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x1001037c
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x1001037c
mov ecx, dword [edi]
nop word [eax + eax]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x100103c4
cmp esi, eax
jne 0x10010370
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x100103aa
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x1001042d
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x1001044f
mov edx, dword [ebp + 0x10]
lea edi, [edx + 0xc]
mov dword [esp + 0xc], edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x100103f7
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.10008df0
mov edx, dword [esp + 0xc]
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x1001040d
mov edi, dword [edi]
xor eax, eax
push edx
mov word [edi], ax
call fcn.1003ae25
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x10010435
mov dword [ecx], edi
jmp 0x1001044f
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x1001044f
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.10010470
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10010e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x102a8430]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.100117d0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.10004b30
mov eax, dword [0x102aa0bc]
test eax, eax
je 0x10010ee9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x10010fe8
cmp dword [ebx], 2
jl 0x10010f2d
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.10040782
add esp, 4
push eax
push 1
push esi
push edi
call fcn.10045e0e
push 2
call fcn.10040782
add esp, 0x14
push eax
call fcn.1004514d
add esp, 4
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.10010cd0
test al, al
je 0x10010f5c
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x102aa0c0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x10010fe8
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x10010f94
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.1003c3c0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.10014f90
add esp, 4
cmp dword [0x102aa0c8], 0
je 0x10010fde
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.10004b30
lea eax, [esp + 0x28]
push eax
call dword [0x102aa0c8]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x10010fe8
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10001950
jmp 0x10010fe8
cmp byte [0x102aa130], 0
jne 0x1001103a
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x10011000
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.10001950
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.10002bb0
push esi
mov dword [esi], 0x1006803c
call fcn.1003a259
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003ae2a
mov esp, ebp
pop ebp
ret
push 1
call fcn.10044ba3
int3
Function at 0x10012200
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push esi
mov dword [esp + 8], 0
call fcn.10013310
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
call fcn.10014620
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], 0
test eax, eax
je 0x100122b3
mov byte [eax + 5], 0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], 0
test ecx, ecx
je 0x100122b3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx], eax
sub eax, 1
jne 0x10012295
push ecx
call fcn.1003ae25
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100122b3
lock xadd dword [eax], esi
sub esi, 1
jne 0x100122b3
test eax, eax
je 0x100122b3
push eax
call fcn.1003ae25
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10014570
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.10013310
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi], eax
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], esi
mov dword [esi + 8], 0
pop esi
ret
Function at 0x10016700
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x102aa120]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x1001683f
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x102ab164]
test cl, 1
jne 0x10016767
rdtsc
or ecx, 1
mov dword [0x102ab158], eax
mov dword [0x102ab164], ecx
mov dword [0x102ab15c], edx
test cl, 2
jne 0x10016797
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x102ab164], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x102ab168], eax
mov eax, dword [ebp - 0xc]
mov dword [0x102ab16c], eax
rdtsc
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x102ab168]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x102ab16c]
call fcn.10058b60
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.10058ba0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x10069d78]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x1001681d
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x102ab158]
mov ecx, edi
sbb ebx, dword [0x102ab15c]
mov edx, ebx
call fcn.10058b60
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x102aa120], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test ebx, ebx
je 0x100173f2
cmp dword [0x102ab150], 0
jne 0x100173df
push 0x4c
call fcn.1003adf2
add esp, 4
mov ecx, eax
call fcn.1000e910
mov edx, eax
mov esi, 0x102ab150
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x100173df
test edx, edx
je 0x100173df
push ecx
mov ecx, edx
call fcn.1000e8c0
mov eax, dword [0x102ab150]
cmp dword [eax], 1
jl 0x100173f2
mov dword [ebp - 4], 0x10000
jmp 0x100173f4
xor ebx, ebx
push 0xc
call fcn.1003adf2
add esp, 4
mov esi, eax
push 0
push dword [ebp - 4]
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
push esi
push 0x10017280
setne cl
push ebx
mov byte [esi + 4], cl
mov ecx, dword [ebp + 0xc]
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1001743d
push esi
call fcn.1003ae25
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1001744c
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018f70
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push edx
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10019004
cmp dword [0x102aa0b4], 3
jg 0x10018ff6
sub esp, 8
mov dword [esp + 0x10], 3
lea ecx, [esp + 0x18]
call fcn.10004330
mov dword [esp + 0xac], str.e:zmbase_base_threading_thread_local_win.cc
mov dword [esp + 0xb0], 0x23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x23
push str.e:zmbase_base_threading_thread_local_win.cc
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], eax
call fcn.10011050
lea eax, [esp + 0x10]
push str.Failed_to_TlsSetValue__.
push eax
call fcn.10003ed0
add esp, 8
mov ebx, 1
test bl, 1
je 0x10019004
lea ecx, [esp + 8]
call fcn.10010e80
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019170
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 4], 0x10068a34
mov dword [edi], 0x10068a2c
mov dword [edi + 4], 0x10068a4c
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x240]
mov dword [edi + 0x14], eax
call fcn.10013310
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], edi
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x100191e3
cmp dword [eax], edi
je 0x100191df
add eax, 4
cmp eax, edx
jne 0x100191d4
cmp eax, edx
jne 0x100191ec
lea eax, [ebp + 8]
push eax
call fcn.1000c4f0
call fcn.10017190
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
test esi, esi
je 0x1001920a
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x102ab130]
test eax, eax
jne 0x10019218
call fcn.1002f200
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push str.ThreadLocalEventBuffer
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.1002e880
test esi, esi
je 0x10019268
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x10019268
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x100687e4
jne 0x1001929a
test ecx, ecx
je 0x10019268
push 1
call dword [eax + 8]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x204]
call fcn.1001cf00
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call edx
jmp 0x10019268
Function at 0x100192d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
lea ebx, [edi + 4]
mov dword [ebx], 0x10068a4c
mov dword [edi], 0x10068a2c
call fcn.10013310
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
lea ecx, [eax + 0x54]
call fcn.10013b20
mov eax, dword [0x102ab130]
test eax, eax
jne 0x10019317
call fcn.1002f200
push ecx
push ebx
mov ecx, eax
call fcn.1002e960
mov esi, dword [edi + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0xc], 0
je 0x1001935e
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x240]
cmp dword [edi + 0x14], eax
jne 0x1001935e
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x3c]
mov eax, dword [edi + 0xc]
push ecx
mov edx, esp
mov dword [edi + 0xc], 0
mov dword [edx], eax
mov eax, dword [ecx]
push dword [edi + 0x10]
call dword [eax + 8]
call fcn.10013310
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [edi + 8]
mov dword [esp + 0xc], eax
add ecx, 0x204
lea eax, [esp + 0xc]
push eax
call fcn.1001be20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 8]
xor edx, edx
mov ecx, dword [ecx + 0x1f8]
call fcn.10018f70
mov esi, dword [edi + 0xc]
mov dword [edi + 0xc], 0
test esi, esi
je 0x100193b7
mov ecx, esi
call fcn.1002c560
push esi
call fcn.1003ae25
add esp, 4
mov dword [edi], method.std::_Facet_base.virtual_4
pop edi
pop esi
mov dword [ebx], 0x10068a34
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019e80
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi + 0x1fc]
call edi
test eax, eax
jne 0x10019ee5
call fcn.10013310
push dword [eax]
call edi
test eax, eax
je 0x10019ee5
push dword [esi + 0x1f8]
call edi
mov edx, eax
test edx, edx
je 0x10019ec6
mov ecx, dword [edx + 0x14]
cmp ecx, dword [esi + 0x240]
je 0x10019ee5
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x18
call fcn.1003adf2
add esp, 4
mov ecx, eax
push esi
call fcn.10019170
mov ecx, dword [esi + 0x1f8]
mov edx, eax
call fcn.10018f70
pop edi
pop esi
pop ecx
ret
Function at 0x1001b9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
jne 0x1001b9d5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [edi + 0x1f8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x1001ba2a
push dword [edi + 0x1f8]
call esi
mov ebx, eax
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1001ba2a
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp esi, dword [ecx + 0x1c08]
jne 0x1001ba30
mov eax, edx
and eax, 0x3ffffff
cmp eax, dword [ebx + 0x10]
jne 0x1001ba30
mov eax, edx
shr eax, 0x1a
imul eax, eax, 0x70
add eax, 8
add eax, ecx
je 0x1001ba30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1001ba4f
cmp byte [ebx + 4], 0
jne 0x1001ba4f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov byte [ebx + 4], 1
mov ecx, dword [edi + 0x224]
test ecx, ecx
je 0x1001ba88
mov eax, edx
and eax, 0x3ffffff
cmp eax, dword [edi + 0x228]
jne 0x1001ba88
cmp esi, dword [ecx + 0x1c08]
jne 0x1001b9ca
shr edx, 0x1a
imul eax, edx, 0x70
add eax, 8
add eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001c200
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
mov esi, dword [edi + 0xc]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
mov edx, dword [edi + 4]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edi + 0x18]
and ecx, eax
mov eax, dword [esi + ecx*8]
add ecx, ecx
mov ebx, dword [esi + ecx*4]
lea edi, [esi + ecx*4]
mov esi, dword [ebp + 0xc]
cmp ebx, edx
jne 0x1001c25e
mov ecx, edx
jmp 0x1001c263
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1001c2b2
mov ecx, dword [eax + 8]
cmp ecx, dword [esi]
je 0x1001c272
mov eax, dword [eax]
jmp 0x1001c256
mov esi, dword [esi]
mov ecx, eax
mov dword [ebp + 0xc], esi
nop dword [eax]
cmp ebx, edx
jne 0x1001c288
mov esi, edx
jmp 0x1001c28d
mov esi, dword [edi + 4]
mov esi, dword [esi]
cmp eax, esi
je 0x1001c29d
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax + 8]
jne 0x1001c29d
mov eax, dword [eax]
jmp 0x1001c280
cmp ecx, eax
je 0x1001c2b2
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [edx + 4], eax
mov eax, edx
mov dword [edx], ecx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov dword [eax + 4], edx
pop ebp
ret 8