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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006956d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test ecx, ecx
je 0x1003008c
lock inc dword [ecx + 4]
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
lea edi, [edx + 4]
push dword [0x10089594]
mov ebx, dword [edx]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100300db
nop
cmp dword [eax], esi
je 0x100300f6
mov eax, dword [eax + 8]
test eax, eax
jne 0x100300d0
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], eax
cmp byte [ecx + 0x2d000], 0
jne 0x10030112
mov byte [ecx + 0x2d000], 1
jmp 0x1003011e
cmp dword [eax + 4], 0
je 0x100300db
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10031fb0
add esp, 8
jmp 0x100301be
push 0x40
call fcn.10041665
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0x10031800
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x1c], 0
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 0x1c]
push ecx
mov dword [ecx + 0x38], eax
mov ecx, ebx
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.100081a0
lea ecx, [ebp - 0x18]
call fcn.10031790
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x100301e6
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100301e6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100301e6
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
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100305f0
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 0x100695a5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1003064b
push dword [ebx + 0xc]
push 0x100318e0
push ecx
call eax
add esp, 0xc
jmp 0x1003072a
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x60]
mov esi, dword [ebx + 0xc]
push esi
mov dword [ebp - 0x1c], eax
call fcn.100302c0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x11]
push dword [0x100895a0]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100306af
mov eax, dword [eax + 4]
test eax, eax
je 0x100306af
mov edi, dword [eax + 8]
test edi, edi
je 0x100306af
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0xf
jb 0x100306a6
mov byte [edi + 0x3c], al
jmp 0x100306bf
push edi
call fcn.10041b03
add esp, 4
push 0x3d
call fcn.10041665
mov edi, eax
add esp, 4
mov byte [edi + 0x3c], 0xf
lea eax, [ebp - 0x60]
mov dword [ebp - 0x20], 0
push eax
lea ecx, [edi + 4]
call fcn.100302c0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [edi + 0x34], ecx
lea ecx, [ebp - 0x28]
mov dword [edi + 0x30], eax
mov dword [edi], 0x10031900
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], 0
call fcn.10031720
lea ecx, [ebp - 0x60]
call fcn.1002efe0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push dword [ebx + 8]
call dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003072a
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
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 8
Function at 0x100313d0
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 0x100697a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x2c]
push ecx
push ecx
push eax
call fcn.10010520
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x10]
push esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x10031441
push fcn.10031a50
push eax
call ecx
add esp, 0xc
jmp 0x10031545
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x3c], eax
call fcn.10031020
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2d]
push dword [0x100895a0]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100314a7
mov eax, dword [eax + 4]
test eax, eax
je 0x100314a7
mov edi, dword [eax + 8]
test edi, edi
je 0x100314a7
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0x11
jb 0x1003149e
mov byte [edi + 0x44], al
jmp 0x100314b7
push edi
call fcn.10041b03
add esp, 4
push 0x45
call fcn.10041665
mov edi, eax
add esp, 4
mov byte [edi + 0x44], 0x11
lea eax, [ebp - 0x88]
mov dword [ebp - 0x40], 0
push eax
lea ecx, [edi + 4]
call fcn.10031020
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x38], ecx
lea ecx, [ebp - 0x48]
mov dword [edi + 0x3c], eax
mov dword [edi], 0x10031ff0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x44], 0
call fcn.10031f20
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x1003151f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003151f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003151f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x38]
call dword [ebp - 0x3c]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10031545
mov ecx, dword [eax]
push 0
push eax
call ecx
add esp, 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004144e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x10031580
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 0x100697ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x2c]
push ecx
push ecx
push eax
call fcn.10010520
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x10]
push esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x100315f1
push 0x10031fd0
push eax
call ecx
add esp, 0xc
jmp 0x100316cb
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x3c], eax
call fcn.100319a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2d]
push dword [0x100895a0]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10031642
mov eax, dword [eax + 4]
test eax, eax
je 0x10031642
mov esi, dword [eax + 8]
test esi, esi
je 0x10031642
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0xe
jb 0x10031639
mov byte [esi + 0x38], al
jmp 0x10031652
push esi
call fcn.10041b03
add esp, 4
push 0x39
call fcn.10041665
mov esi, eax
add esp, 4
mov byte [esi + 0x38], 0xe
lea eax, [ebp - 0x78]
mov dword [ebp - 0x40], 0
lea ecx, [esi + 4]
push eax
call fcn.100319a0
mov dword [esi], 0x100320b0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x44], 0
call fcn.10031e90
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x100316a5
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100316a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100316a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x38]
call dword [ebp - 0x3c]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100316cb
mov ecx, dword [eax]
push 0
push eax
call ecx
add esp, 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004144e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8

Function at 0x10031720
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1003173a
add ecx, 4
call fcn.1002efe0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10031780
push dword [0x100895a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10031770
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10031770
cmp dword [ecx + 8], 0
jne 0x10031770
mov al, byte [esi + 0x3c]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.10041b03
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10031a70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100698bd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
test edx, edx
je 0x10031ab6
lock inc dword [edx + 4]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
call fcn.100319a0
mov dword [ebp - 4], 0
lea edi, [esi + 4]
mov ebx, dword [esi]
push dword [0x10089594]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10031af5
cmp dword [eax], esi
je 0x10031bf1
mov eax, dword [eax + 8]
test eax, eax
jne 0x10031ae6
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
push 0x5c
call fcn.10004cb0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [esi + 0x28]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10032350
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.100319a0
push esi
push edi
mov ecx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.100081a0
mov esi, dword [ebp - 0x28]
or edi, 0xffffffff
test esi, esi
je 0x10031bba
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10031bba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10031bba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x10031bdf
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10031bdf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10031bdf
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
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x10031af5
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10032480
add esp, 8
jmp 0x10031b91
Function at 0x10031c10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100698fd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
test edx, edx
je 0x10031c58
lock inc dword [edx + 4]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov al, byte [esi + 0x10]
push edi
mov dword [ebp - 0x58], edx
mov byte [ebp - 0x54], al
call fcn.100302c0
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
lea ebx, [esi + 4]
mov eax, dword [esi]
push dword [0x10089594]
mov esi, dword [ebx]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10031caf
nop dword [eax]
cmp dword [eax], esi
je 0x10031da8
mov eax, dword [eax + 8]
test eax, eax
jne 0x10031ca0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push 0x64
call fcn.10004cb0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [edi + 0x2c]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x10032260
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x5c]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x24], eax
mov al, byte [ebp - 0x54]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov byte [edi + 0x28], al
lea eax, [ebp - 0x50]
push eax
call fcn.100302c0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
push edi
push ebx
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call fcn.100081a0
lea ecx, [ebp - 0x1c]
call fcn.100321f0
lea ecx, [ebp - 0x50]
call fcn.1002efe0
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x10031d96
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10031d96
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10031d96
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
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x10031caf
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100324a0
add esp, 8
jmp 0x10031d66
Function at 0x10031e90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10031ecc
mov esi, dword [esi + 0x24]
test esi, esi
je 0x10031ec5
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10031ec4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10031ec4
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 0x10031f12
push dword [0x100895a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10031f02
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10031f02
cmp dword [ecx + 8], 0
jne 0x10031f02
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.10041b03
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x10031f20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10031f5c
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x10031f55
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10031f54
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10031f54
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 0x10031fa2
push dword [0x100895a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10031f92
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10031f92
cmp dword [ecx + 8], 0
jne 0x10031f92
mov al, byte [esi + 0x44]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.10041b03
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x100330d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069b55
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, str.Creating_capture_thread._FromThreadId:
mov ecx, 0x10088668
call fcn.1000be60
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001fed0
push eax
call fcn.1000c0f0
mov al, byte [edi + 0x90]
lea esi, [edi + 0x90]
add esp, 4
test al, al
jne 0x100331e6
cmp dword [edi + 0x84], 0
je 0x10033179
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 0x84], eax
je 0x100332c0
push 0
push dword [edi + 0x84]
push dword [edi + 0x80]
call fcn.10045fa4
add esp, 0xc
test eax, eax
jne 0x100332d5
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], eax
mov al, 1
xchg byte [esi], al
push 8
call fcn.10041665
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], 1
mov dword [eax + 4], 0x10032e30
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1002a400
push 0
push 0
call fcn.1004ea4f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x100332c7
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x84], 0
jne 0x100332bb
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], eax
mov al, byte [edi + 0x91]
lea esi, [edi + 0x91]
test al, al
jne 0x1003329c
cmp dword [edi + 0x8c], 0
je 0x1003323e
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 0x8c], eax
je 0x100332c0
push 0
push dword [edi + 0x8c]
push dword [edi + 0x88]
call fcn.10045fa4
add esp, 0xc
test eax, eax
jne 0x100332d5
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], eax
mov al, 1
xchg byte [esi], al
push 8
call fcn.10041665
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], 2
mov dword [eax + 4], 0x10032e30
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
push ecx
push 0
push eax
push 0x1002a400
push 0
push 0
call fcn.1004ea4f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x100332ad
cmp dword [edi + 0x8c], 0
jne 0x100332dc
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x88], ecx
mov dword [edi + 0x8c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x1c], 0
call fcn.100447f1
call fcn.10016580
push 5
call fcn.100447f1
push 6
mov dword [ebp - 0x14], 0
call fcn.100447f1
push 2
call fcn.100447f1
call fcn.10016580
int3
Function at 0x10037570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065d50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.10041665
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10044562
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10038280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a20d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x60]
push 0x1006d6a0
push ebx
call fcn.10041afa
mov edi, eax
add esp, 8
test edi, edi
je 0x10038336
push ebx
push 0
push edi
call fcn.100472b0
add esp, 0xc
mov dword [esi + 0x5c], edi
lea ecx, [esi + 4]
mov al, 1
xchg byte [ecx], al
push 8
call fcn.10041665
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], esi
mov dword [eax + 4], 0x10038370
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x100391a0
push 0
push 0
call fcn.1004ea4f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10038354
cmp dword [esi + 0xc], 0
jne 0x1003834f
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10016580
push 6
mov dword [ebp - 0x14], 0
call fcn.100447f1
int3