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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111035
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x34]
mov dword [edx], 0
push eax
mov dword [edx + 4], 0
call fcn.100b7ca6
add esp, 8
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x100568d4
mov ecx, dword [esi + 0x14]
or edi, 0xffffffff
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1005677d
lea ecx, [ebp - 0x3c]
push ecx
push fcn.10057cf0
push esi
call eax
add esp, 0xc
jmp 0x1005688d
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.100b7ca6
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x1017537c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100567cc
mov ecx, dword [eax + 4]
jmp 0x100567ce
xor ecx, ecx
push ecx
push dword [ebp - 0x20]
mov edx, 0x18
call fcn.1002b430
mov esi, eax
mov dword [ebp - 0x24], 0
mov dword [esi + 4], 0
lea eax, [esi + 0xc]
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x50]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.100b7ca6
add esp, 0x10
mov dword [esi], 0x10058790
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0
call fcn.100579e0
lea eax, [ebp - 0x48]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x4c]
add esp, 4
test esi, esi
je 0x10056867
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10056867
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10056867
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005688d
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea eax, [ebp - 0x34]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x38]
add esp, 4
test esi, esi
je 0x100568be
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100568be
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100568be
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea ecx, [ebp - 0x2c]
call fcn.10027870
mov byte [ebp - 4], 4
call fcn.10029eb0
int3
Function at 0x100568f0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111035
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x34]
mov dword [edx], 0
push eax
mov dword [edx + 4], 0
call fcn.100b7ca6
add esp, 8
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x10056ae4
mov ecx, dword [esi + 0x14]
or edi, 0xffffffff
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1005698d
lea ecx, [ebp - 0x3c]
push ecx
push fcn.10057d10
push esi
call eax
add esp, 0xc
jmp 0x10056a9d
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.100b7ca6
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x1017537c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100569dc
mov ecx, dword [eax + 4]
jmp 0x100569de
xor ecx, ecx
push ecx
push dword [ebp - 0x20]
mov edx, 0x18
call fcn.1002b430
mov esi, eax
mov dword [ebp - 0x24], 0
mov dword [esi + 4], 0
lea eax, [esi + 0xc]
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x50]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.100b7ca6
add esp, 0x10
mov dword [esi], 0x10058940
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0
call fcn.100579e0
lea eax, [ebp - 0x48]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x4c]
add esp, 4
test esi, esi
je 0x10056a77
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10056a77
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10056a77
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056a9d
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea eax, [ebp - 0x34]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x38]
add esp, 4
test esi, esi
je 0x10056ace
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10056ace
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10056ace
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea ecx, [ebp - 0x2c]
call fcn.10027870
mov byte [ebp - 4], 4
call fcn.10029eb0
int3
Function at 0x10056b00
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111035
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x34]
mov dword [edx], 0
push eax
mov dword [edx + 4], 0
call fcn.100b7ca6
add esp, 8
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x10056cf4
mov ecx, dword [esi + 0x14]
or edi, 0xffffffff
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10056b9d
lea ecx, [ebp - 0x3c]
push ecx
push fcn.10057d30
push esi
call eax
add esp, 0xc
jmp 0x10056cad
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.100b7ca6
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x1017537c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10056bec
mov ecx, dword [eax + 4]
jmp 0x10056bee
xor ecx, ecx
push ecx
push dword [ebp - 0x20]
mov edx, 0x18
call fcn.1002b430
mov esi, eax
mov dword [ebp - 0x24], 0
mov dword [esi + 4], 0
lea eax, [esi + 0xc]
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x50]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.100b7ca6
add esp, 0x10
mov dword [esi], 0x10058af0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0
call fcn.100579e0
lea eax, [ebp - 0x48]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x4c]
add esp, 4
test esi, esi
je 0x10056c87
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10056c87
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10056c87
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056cad
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea eax, [ebp - 0x34]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x38]
add esp, 4
test esi, esi
je 0x10056cde
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10056cde
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10056cde
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea ecx, [ebp - 0x2c]
call fcn.10027870
mov byte [ebp - 4], 4
call fcn.10029eb0
int3
Function at 0x10056d10
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111035
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x34]
mov dword [edx], 0
push eax
mov dword [edx + 4], 0
call fcn.100b7ca6
add esp, 8
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x10056f04
mov ecx, dword [esi + 0x14]
or edi, 0xffffffff
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10056dad
lea ecx, [ebp - 0x3c]
push ecx
push fcn.10057d50
push esi
call eax
add esp, 0xc
jmp 0x10056ebd
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.100b7ca6
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x1017537c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10056dfc
mov ecx, dword [eax + 4]
jmp 0x10056dfe
xor ecx, ecx
push ecx
push dword [ebp - 0x20]
mov edx, 0x18
call fcn.1002b430
mov esi, eax
mov dword [ebp - 0x24], 0
mov dword [esi + 4], 0
lea eax, [esi + 0xc]
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x50]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.100b7ca6
add esp, 0x10
mov dword [esi], 0x10058ca0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0
call fcn.100579e0
lea eax, [ebp - 0x48]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x4c]
add esp, 4
test esi, esi
je 0x10056e97
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10056e97
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10056e97
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056ebd
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea eax, [ebp - 0x34]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x38]
add esp, 4
test esi, esi
je 0x10056eee
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10056eee
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10056eee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea ecx, [ebp - 0x2c]
call fcn.10027870
mov byte [ebp - 4], 4
call fcn.10029eb0
int3
Function at 0x10057160
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111035
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x34]
mov dword [edx], 0
push eax
mov dword [edx + 4], 0
call fcn.100b7ca6
add esp, 8
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x10057354
mov ecx, dword [esi + 0x14]
or edi, 0xffffffff
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100571fd
lea ecx, [ebp - 0x3c]
push ecx
push fcn.10057d70
push esi
call eax
add esp, 0xc
jmp 0x1005730d
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.100b7ca6
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x1017537c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1005724c
mov ecx, dword [eax + 4]
jmp 0x1005724e
xor ecx, ecx
push ecx
push dword [ebp - 0x20]
mov edx, 0x18
call fcn.1002b430
mov esi, eax
mov dword [ebp - 0x24], 0
mov dword [esi + 4], 0
lea eax, [esi + 0xc]
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x50]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.100b7ca6
add esp, 0x10
mov dword [esi], 0x10058e70
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0
call fcn.100579e0
lea eax, [ebp - 0x48]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x4c]
add esp, 4
test esi, esi
je 0x100572e7
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100572e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100572e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005730d
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea eax, [ebp - 0x34]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x38]
add esp, 4
test esi, esi
je 0x1005733e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1005733e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1005733e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea ecx, [ebp - 0x2c]
call fcn.10027870
mov byte [ebp - 4], 4
call fcn.10029eb0
int3
Function at 0x10057370
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111035
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
lea eax, [edx + 8]
push eax
lea eax, [ebp - 0x34]
mov dword [edx], 0
push eax
mov dword [edx + 4], 0
call fcn.100b7ca6
add esp, 8
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x10057564
mov ecx, dword [esi + 0x14]
or edi, 0xffffffff
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1005740d
lea ecx, [ebp - 0x3c]
push ecx
push fcn.10057d90
push esi
call eax
add esp, 0xc
jmp 0x1005751d
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.100b7ca6
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x1017537c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1005745c
mov ecx, dword [eax + 4]
jmp 0x1005745e
xor ecx, ecx
push ecx
push dword [ebp - 0x20]
mov edx, 0x18
call fcn.1002b430
mov esi, eax
mov dword [ebp - 0x24], 0
mov dword [esi + 4], 0
lea eax, [esi + 0xc]
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x50]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.100b7ca6
add esp, 0x10
mov dword [esi], 0x10059020
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0
call fcn.100579e0
lea eax, [ebp - 0x48]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x4c]
add esp, 4
test esi, esi
je 0x100574f7
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100574f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100574f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005751d
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea eax, [ebp - 0x34]
push eax
call fcn.100b7dce
mov esi, dword [ebp - 0x38]
add esp, 4
test esi, esi
je 0x1005754e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1005754e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1005754e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea ecx, [ebp - 0x2c]
call fcn.10027870
mov byte [ebp - 4], 4
call fcn.10029eb0
int3
Function at 0x100579e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10057a28
lea eax, [esi + 0xc]
push eax
call fcn.100b7dce
mov esi, dword [esi + 8]
add esp, 4
test esi, esi
je 0x10057a21
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10057a20
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10057a20
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10057a6f
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10057a5f
mov edx, dword [eax + 4]
test edx, edx
je 0x10057a5f
mov eax, 4
nop dword [eax + eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10057a72
inc eax
cmp eax, 6
jl 0x10057a50
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x18]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x10057a90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10057acc
mov esi, dword [esi + 8]
test esi, esi
je 0x10057ac5
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10057ac4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10057ac4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10057b0f
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10057aff
mov edx, dword [eax + 4]
test edx, edx
je 0x10057aff
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10057b12
inc eax
cmp eax, 6
jl 0x10057af0
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x18]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x10057b30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10057b6c
mov esi, dword [esi + 8]
test esi, esi
je 0x10057b65
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10057b64
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10057b64
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10057baf
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10057b9f
mov edx, dword [eax + 4]
test edx, edx
je 0x10057b9f
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10057bb2
inc eax
cmp eax, 6
jl 0x10057b90
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret