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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d0e5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x1002bd71
mov eax, dword [edi]
push dword [0x100894c8]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x1002bd71
cmp dword [eax], esi
je 0x1002bdb4
mov eax, dword [eax + 8]
test eax, eax
jne 0x1002bd66
push dword [0x100894c8]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x1002be83
mov eax, dword [eax + 4]
test eax, eax
je 0x1002be83
mov esi, dword [eax]
test esi, esi
je 0x1002be83
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xb
jb 0x1002be7a
mov byte [esi + 0x2c], al
jmp 0x1002be93
cmp dword [eax + 4], 0
je 0x1002bd71
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.1002c570
add esp, 8
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1002bf5f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1002bf5f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1002bf5f
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 4
push esi
call fcn.10046862
add esp, 4
push 0x2d
call fcn.100463c4
mov esi, eax
add esp, 4
mov byte [esi + 0x2c], 0xb
mov ecx, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x1002c480
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 [ecx]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x24], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1002bf49
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x1002bf32
mov dword [eax + 0x14], esi
jmp 0x1002bf35
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.1002c160
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c160
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1002c19c
mov esi, dword [esi + 0x24]
test esi, esi
je 0x1002c195
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002c194
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002c194
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 0x1002c1e0
push dword [0x100894c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002c1d0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002c1d0
cmp dword [ecx], 0
jne 0x1002c1d0
mov al, byte [esi + 0x2c]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.10046862
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x1002c770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d245
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x1002c7d1
mov eax, dword [edi]
push dword [0x100894c8]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x1002c7d1
cmp dword [eax], esi
je 0x1002c814
mov eax, dword [eax + 8]
test eax, eax
jne 0x1002c7c6
push dword [0x100894c8]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x1002c8ab
mov eax, dword [eax + 4]
test eax, eax
je 0x1002c8ab
mov esi, dword [eax]
test esi, esi
je 0x1002c8ab
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xa
jb 0x1002c8a2
mov byte [esi + 0x28], al
jmp 0x1002c8bb
cmp dword [eax + 4], 0
je 0x1002c7d1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov dword [ecx], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.1002cc70
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
test eax, eax
je 0x1002c96c
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
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.10046862
add esp, 4
push 0x29
call fcn.100463c4
mov esi, eax
add esp, 4
mov byte [esi + 0x28], 0xa
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x1002cbc0
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 [ecx]
mov dword [esi + 0x20], eax
mov dword [ecx], 0
mov eax, dword [edi]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1002c956
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x1002c93f
mov dword [eax + 0x14], esi
jmp 0x1002c942
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.1002c990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a530
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
mov eax, dword [edi + 8]
test eax, eax
je 0x1002c9dc
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1002c9d5
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1002ca18
push dword [0x100894c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002ca08
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002ca08
cmp dword [ecx], 0
jne 0x1002ca08
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x1002ca11
push esi
call fcn.10046862
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002d370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d375
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_overlay_thread._FromThreadId:
mov ecx, 0x10088268
call fcn.1000e860
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.100237a0
push eax
call fcn.1000eb00
mov al, byte [edi + 0x70]
lea ebx, [edi + 0x70]
add esp, 4
test al, al
jne 0x1002d43a
cmp dword [edi + 0x64], 0
je 0x1002d3da
lea ecx, [edi + 0x60]
call fcn.1002cfa0
mov al, 1
xchg byte [ebx], al
push 8
call fcn.100463c4
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov dword [eax + 4], 0x1002d190
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1002e300
push 0
push 0
call fcn.10053bdf
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1002d4ce
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x64], 0
jne 0x1002d4c4
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov al, byte [edi + 0x71]
lea ebx, [edi + 0x71]
test al, al
jne 0x1002d4a4
cmp dword [edi + 0x6c], 0
lea esi, [edi + 0x68]
je 0x1002d454
mov ecx, esi
call fcn.1002cfa0
mov al, 1
xchg byte [ebx], al
push 8
call fcn.100463c4
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov dword [eax + 4], 0x1002d190
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
push ecx
push 0
push eax
push 0x1002e300
push 0
push 0
call fcn.10053bdf
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x1002d4b6
cmp dword [esi + 4], 0
jne 0x1002d4c9
mov eax, dword [ebp - 0x1c]
mov dword [esi], ecx
mov dword [esi + 4], 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.10048443
call fcn.1002cd20
call fcn.1002cd20
push 6
mov dword [ebp - 0x14], 0
call fcn.10048443
int3
Function at 0x1002e730
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
mov eax, dword [0x10086040]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
mov ebx, ecx
mov al, dl
mov ecx, dword [esp + 0x124]
mov byte [esp + 0xb], al
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [esp + 0x138]
push edi
cmp ebx, 0xffffffff
jne 0x1002e7bd
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008816c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10088e60]
cmp eax, dword [ecx + 4]
jle 0x1002e7b2
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], ebx
jne 0x1002e7b2
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov dword [esi], 0x2719
jmp 0x1002e955
cmp byte [esp + 0x138], 0
je 0x1002e7d6
test al, 0x10
je 0x1002e7d6
mov dword [esi], 0
jmp 0x1002e95c
push esi
push ecx
push dword [esp + 0x138]
mov edx, ecx
mov ecx, ebx
call fcn.10008460
add esp, 0xc
test eax, eax
jns 0x1002e95e
test byte [esp + 0x13], 1
mov ecx, dword [0x1008816c]
mov eax, dword fs:[0x2c]
lea ebp, [eax + ecx*4]
jne 0x1002e95c
mov edi, dword [ebp]
mov ecx, dword [0x10088e60]
cmp ecx, dword [edi + 4]
jle 0x1002e856
push 0x10088e60
call fcn.10046360
mov ecx, dword [0x10088e60]
add esp, 4
cmp ecx, 0xffffffff
jne 0x1002e856
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
mov ecx, dword [0x10088e60]
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bfc]
jne 0x1002e86c
cmp dword [esi], 0x2733
je 0x1002e8c2
cmp ecx, dword [edi + 4]
jle 0x1002e8a4
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x1002e8a4
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x10086bfc]
jne 0x1002e95c
cmp dword [esi], 0x4d5
jne 0x1002e95c
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ebx
push eax
push 0
lea eax, [ebx + 1]
mov dword [esp + 0x28], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1002e90e
mov edx, dword [esp + 0x14]
push esi
push ecx
push dword [esp + 0x138]
mov ecx, ebx
mov dword [esi], 0
call fcn.10008460
add esp, 0xc
test eax, eax
js 0x1002e80d
jmp 0x1002e95e
mov eax, dword [0x10088e60]
mov ecx, edi
cmp eax, dword [ecx + 4]
jle 0x1002e94d
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x1002e94d
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], 0x10086bf8
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100462d6
add esp, 0x118
ret
Function at 0x10034200
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006dd95
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x10034261
mov eax, dword [edi]
push dword [0x100894c8]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x10034261
cmp dword [eax], esi
je 0x100342a4
mov eax, dword [eax + 8]
test eax, eax
jne 0x10034256
push dword [0x100894c8]
lea eax, [edi + 4]
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x10034373
mov eax, dword [eax + 4]
test eax, eax
je 0x10034373
mov esi, dword [eax]
test esi, esi
je 0x10034373
mov dword [eax], 0
mov al, byte [esi]
cmp al, 0xb
jb 0x1003436a
mov byte [esi + 0x2c], al
jmp 0x10034383
cmp dword [eax + 4], 0
je 0x10034261
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.10034780
add esp, 8
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1003444f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003444f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003444f
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 4
push esi
call fcn.10046862
add esp, 4
push 0x2d
call fcn.100463c4
mov esi, eax
add esp, 4
mov byte [esi + 0x2c], 0xb
mov ecx, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10034630
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 [ecx]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x24], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x10034439
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x10034422
mov dword [eax + 0x14], esi
jmp 0x10034425
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.1002c160
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10034470
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006dddd
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 0x100344b9
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 [0x100894bc]
mov ebx, dword [edx]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1003450b
nop
cmp dword [eax], esi
je 0x10034526
mov eax, dword [eax + 8]
test eax, eax
jne 0x10034500
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], eax
cmp byte [ecx + 0x2d000], 0
jne 0x10034542
mov byte [ecx + 0x2d000], 1
jmp 0x1003454e
cmp dword [eax + 4], 0
je 0x1003450b
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10036490
add esp, 8
jmp 0x100345e6
push 0x40
call fcn.100463c4
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0x10035cf0
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.1000ab40
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x1003460e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003460e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003460e
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 0x100348e0
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 0x1006de15
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 0x1003493b
push dword [ebx + 0xc]
push 0x10035dd0
push ecx
call eax
add esp, 0xc
jmp 0x10034a1a
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x60]
mov esi, dword [ebx + 0xc]
push esi
mov dword [ebp - 0x1c], eax
call fcn.100346f0
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 [0x100894c8]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1003499f
mov eax, dword [eax + 4]
test eax, eax
je 0x1003499f
mov edi, dword [eax + 8]
test edi, edi
je 0x1003499f
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0xf
jb 0x10034996
mov byte [edi + 0x3c], al
jmp 0x100349af
push edi
call fcn.10046862
add esp, 4
push 0x3d
call fcn.100463c4
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.100346f0
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], 0x10035df0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], 0
call fcn.10035c10
lea ecx, [ebp - 0x60]
call fcn.10033340
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 0x10034a1a
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 0x10035860
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 0x1006e010
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.100133e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100358f8
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push fcn.10035f40
push ecx
call eax
add esp, 0xc
jmp 0x10035a01
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x88]
mov esi, dword [ebp - 0x38]
push esi
mov dword [ebp - 0x30], eax
call fcn.10035450
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 [0x100894c8]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10035962
mov eax, dword [eax + 4]
test eax, eax
je 0x10035962
mov edi, dword [eax + 8]
test edi, edi
je 0x10035962
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0x11
jb 0x10035959
mov byte [edi + 0x44], al
jmp 0x10035972
push edi
call fcn.10046862
add esp, 4
push 0x45
call fcn.100463c4
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.10035450
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], 0x100364d0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], 0
call fcn.10036400
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x100359da
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100359da
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100359da
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 0x10035a01
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.100462d6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8