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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d83d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x100342b9
lock inc dword [eax + 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
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 [0x1008948c]
mov ebx, dword [edx]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1003430b
nop
cmp dword [eax], esi
je 0x10034326
mov eax, dword [eax + 8]
test eax, eax
jne 0x10034300
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], eax
cmp byte [ecx + 0x2d000], 0
jne 0x10034342
mov byte [ecx + 0x2d000], 1
jmp 0x1003434e
cmp dword [eax + 4], 0
je 0x1003430b
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100362a0
add esp, 8
jmp 0x100343ee
push 0x40
call fcn.10045ee0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0x10035af0
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.1000aa40
lea ecx, [ebp - 0x18]
call fcn.10035a80
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x10034416
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10034416
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10034416
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 0x100346e0
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 0x1006d875
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x10086040]
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 0x1003473b
push dword [ebx + 0xc]
push 0x10035bd0
push ecx
call eax
add esp, 0xc
jmp 0x1003481a
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x60]
mov esi, dword [ebx + 0xc]
push esi
mov dword [ebp - 0x1c], eax
call fcn.100344f0
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 [0x10089498]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1003479f
mov eax, dword [eax + 4]
test eax, eax
je 0x1003479f
mov edi, dword [eax + 8]
test edi, edi
je 0x1003479f
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0xf
jb 0x10034796
mov byte [edi + 0x3c], al
jmp 0x100347af
push edi
call fcn.1004637e
add esp, 4
push 0x3d
call fcn.10045ee0
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.100344f0
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], 0x10035bf0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], 0
call fcn.10035a10
lea ecx, [ebp - 0x60]
call fcn.100330e0
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 0x1003481a
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 0x10035660
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 0x1006da70
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x10086040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
sub esp, 0x1c
mov dword [ebp - 0x38], eax
mov edi, esp
mov dword [ebp - 0x30], edi
mov eax, dword [ecx + 0x14]
push ecx
mov esi, dword [eax + 0x20]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0xc]
call eax
add esp, 4
lea ecx, [ebp - 0x2e]
push ecx
push eax
push edi
call esi
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.10013260
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100356f8
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push fcn.10035d40
push ecx
call eax
add esp, 0xc
jmp 0x10035801
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x88]
mov esi, dword [ebp - 0x38]
push esi
mov dword [ebp - 0x30], eax
call fcn.10035250
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 - 0x31]
push dword [0x10089498]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10035762
mov eax, dword [eax + 4]
test eax, eax
je 0x10035762
mov edi, dword [eax + 8]
test edi, edi
je 0x10035762
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0x11
jb 0x10035759
mov byte [edi + 0x44], al
jmp 0x10035772
push edi
call fcn.1004637e
add esp, 4
push 0x45
call fcn.10045ee0
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.10035250
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], 0x100362e0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], 0
call fcn.10036210
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x100357da
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100357da
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100357da
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x30]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10035801
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.10045df2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x10035840
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 0x1006dabd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x10086040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
sub esp, 0x1c
mov dword [ebp - 0x38], eax
mov edi, esp
mov dword [ebp - 0x30], edi
mov eax, dword [ecx + 0x14]
push ecx
mov esi, dword [eax + 0x20]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0xc]
call eax
add esp, 4
lea ecx, [ebp - 0x2e]
push ecx
push eax
push edi
call esi
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.10013260
push dword [ebp - 0x38]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100358d8
lea eax, [ebp - 0x2c]
push 0x100362c0
push eax
call ecx
add esp, 0xc
jmp 0x100359b3
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x30], eax
call fcn.10035c90
mov byte [ebp - 4], 1
lea eax, [ebp - 0x31]
push dword [0x10089498]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10035929
mov eax, dword [eax + 4]
test eax, eax
je 0x10035929
mov esi, dword [eax + 8]
test esi, esi
je 0x10035929
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0xe
jb 0x10035920
mov byte [esi + 0x38], al
jmp 0x10035939
push esi
call fcn.1004637e
add esp, 4
push 0x39
call fcn.10045ee0
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.10035c90
mov dword [esi], 0x100363a0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], 0
call fcn.10036180
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x1003598c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003598c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003598c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x30]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x100359b3
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.10045df2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x10035a10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10035a2a
add ecx, 4
call fcn.100330e0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10035a70
push dword [0x10089498]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10035a60
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10035a60
cmp dword [ecx + 8], 0
jne 0x10035a60
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.1004637e
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x10035d60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006db8d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x10035da3
lock inc dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0xc]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
call fcn.10035c90
mov dword [ebp - 4], 0
lea edi, [esi + 4]
mov ebx, dword [esi]
push dword [0x1008948c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10035de5
cmp dword [eax], esi
je 0x10035ee1
mov eax, dword [eax + 8]
test eax, eax
jne 0x10035dd6
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
push 0x5c
call fcn.100064a0
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], 0x10036640
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.10035c90
push esi
push edi
mov ecx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.1000aa40
mov esi, dword [ebp - 0x28]
or edi, 0xffffffff
test esi, esi
je 0x10035eaa
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10035eaa
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10035eaa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x10035ecf
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10035ecf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10035ecf
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 0x10035de5
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10036770
add esp, 8
jmp 0x10035e81
Function at 0x10035f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006dbcd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
test eax, eax
je 0x10035f45
lock inc dword [eax + 4]
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x58], eax
mov al, byte [esi + 0x10]
push edi
mov byte [ebp - 0x54], al
call fcn.100344f0
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 [0x1008948c]
mov esi, dword [ebx]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10035f9f
nop dword [eax]
cmp dword [eax], esi
je 0x10036098
mov eax, dword [eax + 8]
test eax, eax
jne 0x10035f90
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push 0x64
call fcn.100064a0
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], 0x10036550
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.100344f0
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.1000aa40
lea ecx, [ebp - 0x1c]
call fcn.100364e0
lea ecx, [ebp - 0x50]
call fcn.100330e0
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x10036086
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10036086
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10036086
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 0x10035f9f
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10036790
add esp, 8
jmp 0x10036056
Function at 0x10036180
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x100361bc
mov esi, dword [esi + 0x24]
test esi, esi
je 0x100361b5
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100361b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x100361b4
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 0x10036202
push dword [0x10089498]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100361f2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100361f2
cmp dword [ecx + 8], 0
jne 0x100361f2
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.1004637e
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x10036210
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1003624c
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x10036245
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10036244
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10036244
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 0x10036292
push dword [0x10089498]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10036282
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10036282
cmp dword [ecx + 8], 0
jne 0x10036282
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.1004637e
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10037450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006cdc5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10086040]
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, 0x10088238
call fcn.1000e770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.100234d0
push eax
call fcn.1000ea10
mov al, byte [edi + 0x90]
lea ebx, [edi + 0x90]
add esp, 4
test al, al
jne 0x1003755c
cmp dword [edi + 0x84], 0
lea esi, [edi + 0x80]
je 0x100374f9
cmp dword [esi + 4], 0
je 0x1003764c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x10037637
push 0
push dword [esi + 4]
push dword [esi]
call fcn.1004a679
add esp, 0xc
test eax, eax
jne 0x10037653
mov dword [esi], eax
mov dword [esi + 4], eax
mov al, 1
xchg byte [ebx], al
push 8
call fcn.10045ee0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], 1
mov dword [eax + 4], 0x100371b0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1002e070
push 0
push 0
call fcn.1005355f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1003763e
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 4], 0
jne 0x10037632
mov eax, dword [ebp - 0x14]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov al, byte [edi + 0x91]
lea esi, [edi + 0x91]
test al, al
jne 0x10037612
cmp dword [edi + 0x8c], 0
je 0x100375b4
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 0x8c], eax
je 0x10037637
push 0
push dword [edi + 0x8c]
push dword [edi + 0x88]
call fcn.1004a679
add esp, 0xc
test eax, eax
jne 0x10037653
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], eax
mov al, 1
xchg byte [esi], al
push 8
call fcn.10045ee0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], 2
mov dword [eax + 4], 0x100371b0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
push ecx
push 0
push eax
push 0x1002e070
push 0
push 0
call fcn.1005355f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10037624
cmp dword [edi + 0x8c], 0
jne 0x1003765a
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
pop ebx
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x1c], 0
call fcn.10047e12
call fcn.1002ca90
push 5
call fcn.10047e12
push 6
mov dword [ebp - 0x14], 0
call fcn.10047e12
push 1
call fcn.10047e12
push 2
call fcn.10047e12
call fcn.1002ca90
int3
Function at 0x1003b560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069ed0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10045ee0
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10048f39
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1000e000
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003cda0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e45d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x60]
push 0x10071618
push ebx
call fcn.10046375
mov edi, eax
add esp, 8
test edi, edi
je 0x1003ce56
push ebx
push 0
push edi
call fcn.1004b6f0
add esp, 0xc
mov dword [esi + 0x5c], edi
lea ecx, [esi + 4]
mov al, 1
xchg byte [ecx], al
push 8
call fcn.10045ee0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], esi
mov dword [eax + 4], 0x1003ce90
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1003dce0
push 0
push 0
call fcn.1005355f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1003ce74
cmp dword [esi + 0xc], 0
jne 0x1003ce6f
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.1002ca90
push 6
mov dword [ebp - 0x14], 0
call fcn.10047e12
int3