joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a140
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [esp + 0x28], 0
push 0
je 0x1000a16f
mov ecx, dword [ebx + 4]
push 0
push dword [esp + 0x34]
call fcn.100074b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x1000a193
mov ecx, dword [ebx + 4]
push 0x2719
push dword [esp + 0x34]
call fcn.100074b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x34], 0
push ecx
push dword [esp + 0x30]
push dword [esp + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x1000a1ee
cmp eax, 0x3e5
je 0x1000a1ee
push dword [esp + 0x28]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.100074b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov esi, dword [ebx + 4]
lea ecx, [edi + 0x1c]
mov ebx, 1
xor eax, eax
mov edx, ebx
lock cmpxchg dword [ecx], edx
cmp eax, ebx
jne 0x1000a246
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1000a246
lea ebp, [esi + 0x38]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000a234
mov dword [eax + 0x14], edi
jmp 0x1000a237
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
xchg dword [eax], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
Function at 0x1000a250
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [esp + 0x28], 0
push 0
je 0x1000a27f
mov ecx, dword [edi + 4]
push 0
push dword [esp + 0x34]
call fcn.100074b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x1000a2a3
mov ecx, dword [edi + 4]
push 0x2719
push dword [esp + 0x34]
call fcn.100074b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
push esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x1000a2e5
mov eax, 0x2746
jmp 0x1000a2f2
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x1000a313
cmp eax, 0x3e5
je 0x1000a313
push dword [esp + 0x28]
mov ecx, dword [edi + 4]
push eax
push esi
call fcn.100074b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov edi, dword [edi + 4]
lea ecx, [esi + 0x1c]
mov ebx, 1
xor eax, eax
mov edx, ebx
lock cmpxchg dword [ecx], edx
cmp eax, ebx
jne 0x1000a36b
push esi
push 2
push 0
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1000a36b
lea ebp, [edi + 0x38]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x1000a359
mov dword [eax + 0x14], esi
jmp 0x1000a35c
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
xchg dword [eax], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
Function at 0x1000ae20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069b59
mov eax, dword fs:[0]
push eax
sub esp, 8
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 dword [ebp - 0x10], esi
mov dword [esi], method.std::_Facet_base.virtual_4
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
mov dword [esi + 0xc], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.1004914c
mov byte [ebp - 4], 1
lea edi, [esi + 0x40]
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.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 byte [ebp - 4], 2
call fcn.10048f39
add esp, 0x10
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1000e000
mov dword [edi], 0x1007a60c
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov ecx, 1
mov byte [ebp - 4], 4
push ecx
mov eax, 0x80
lea ecx, [edi + 0x3c]
push eax
call fcn.1000ed00
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x3c]
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x3c]
mov dword [eax], ecx
mov eax, dword [edi + 0x20]
mov dword [eax], ecx
mov eax, dword [edi + 0x30]
mov dword [eax], 0x80
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x10]
lea esi, [edi + 0x88]
mov dword [ebp - 0x14], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.10045ee0
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
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 8
Function at 0x1000d5d0
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_char__struct_std::char_traits_char__.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 0x100124d0
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 0x1006a6b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
push dword [ebx + 0xc]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x1001252b
push 0x10013670
push eax
call ecx
add esp, 0xc
jmp 0x1001260e
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call fcn.10013070
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 0x1001257f
mov eax, dword [eax + 4]
test eax, eax
je 0x1001257f
mov esi, dword [eax + 8]
test esi, esi
je 0x1001257f
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0xd
jb 0x10012576
mov byte [esi + 0x34], al
jmp 0x1001258f
push esi
call fcn.1004637e
add esp, 4
push 0x35
call fcn.10045ee0
mov esi, eax
add esp, 4
mov byte [esi + 0x34], 0xd
lea eax, [ebp - 0x58]
mov dword [ebp - 0x20], 0
lea ecx, [esi + 4]
push eax
call fcn.10013070
mov dword [esi], 0x10013730
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], 0
call fcn.100135e0
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x100125e2
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100125e2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100125e2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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 0x1001260e
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 0x10012e40
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 0x1006a7dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
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 - 0x34], 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 - 0x32]
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 edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10012ed8
lea ecx, [ebp - 0x2c]
push fcn.10013710
push ecx
call eax
add esp, 0xc
jmp 0x10012fcd
mov edi, dword [edi + 8]
lea ecx, [ebp - 0x80]
call fcn.10013690
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2d]
push dword [0x10089498]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10012f26
mov eax, dword [eax + 4]
test eax, eax
je 0x10012f26
mov esi, dword [eax + 8]
test esi, esi
je 0x10012f26
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0x10
jb 0x10012f1d
mov byte [esi + 0x40], al
jmp 0x10012f36
push esi
call fcn.1004637e
add esp, 4
push 0x41
call fcn.10045ee0
mov esi, eax
add esp, 4
mov byte [esi + 0x40], 0x10
lea eax, [ebp - 0x80]
mov dword [ebp - 0x40], 0
lea ecx, [esi + 4]
push eax
call fcn.10013690
mov dword [esi], 0x10013cf0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], 0
call fcn.10013990
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x10012f95
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10012f8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013002
push ecx
push edx
call fcn.1004633f
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
call edi
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10012fcd
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
call fcn.1004eae1
int3
Function at 0x10013300
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a8cd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
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 ebx, edx
mov edi, ecx
mov eax, dword [ebx + 0x2c]
lea ecx, [ebp - 0x5c]
mov esi, dword [ebx + 0x30]
push edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], esi
call fcn.10012dd0
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x24]
add ebx, 0x28
push dword [0x1008948c]
mov dword [ebp - 0x10], eax
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10013384
cmp dword [eax], esi
je 0x1001344a
mov eax, dword [eax + 8]
test eax, eax
jne 0x10013375
lea eax, [ebp - 0x64]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push 0x6c
call fcn.100064a0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x100140f0
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 - 0x64]
mov ecx, dword [ebp - 0x60]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x5c]
mov dword [edi + 0x24], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.10012dd0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
push edi
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], edx
mov eax, dword [ebp - 0x20]
push ebx
mov dword [edi + 0x64], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call fcn.1000aa40
lea ecx, [ebp - 0x1c]
call fcn.10014070
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x10013471
mov ecx, dword [ebp - 0x50]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10013467
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013483
jmp 0x10013467
cmp dword [eax + 4], 0
je 0x10013384
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100141e0
add esp, 8
jmp 0x1001341f
push ecx
push edx
call fcn.1004633f
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
call fcn.1004eae1
int3
Function at 0x10013490
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a90d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 + 0x20]
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.10013070
mov dword [ebp - 4], 0
lea edi, [esi + 0x1c]
mov ebx, dword [esi + 0x18]
push dword [0x1008948c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100134f7
cmp dword [eax], esi
je 0x100135b3
mov eax, dword [eax + 8]
test eax, eax
jne 0x100134e8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x54
call fcn.100064a0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [esi + 0x24]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10013f40
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 - 0x48]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x44]
push eax
call fcn.10013070
push esi
push edi
mov ecx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.1000aa40
lea ecx, [ebp - 0x18]
call fcn.10013ee0
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x100135a1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100135a1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100135a1
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 0x100134f7
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.10014200
add esp, 8
jmp 0x10013579

Function at 0x100135e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1001361c
mov esi, dword [esi + 0xc]
test esi, esi
je 0x10013615
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10013614
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10013614
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 0x10013662
push dword [0x10089498]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10013652
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10013652
cmp dword [ecx + 8], 0
jne 0x10013652
mov al, byte [esi + 0x34]
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 0x100137e0
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 0x1006a985
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
push esi
push edi
mov eax, dword [0x10086040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x1001383d
push dword [ebx + 8]
push 0x10013dd0
push eax
call ecx
add esp, 0xc
jmp 0x10013961
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x70]
mov esi, dword [ebx + 8]
push esi
mov dword [ebp - 0x20], eax
call fcn.10012dd0
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x11]
push dword [0x10089498]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100138a7
mov eax, dword [eax + 4]
test eax, eax
je 0x100138a7
mov edi, dword [eax + 8]
test edi, edi
je 0x100138a7
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0x12
jb 0x1001389e
mov byte [edi + 0x48], al
jmp 0x100138b7
push edi
call fcn.1004637e
add esp, 4
push 0x49
call fcn.10045ee0
mov edi, eax
add esp, 4
mov byte [edi + 0x48], 0x12
lea eax, [ebp - 0x70]
mov dword [ebp - 0x24], 0
push eax
lea ecx, [edi + 4]
call fcn.10012dd0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x3c], ecx
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x40], eax
mov dword [edi], 0x10013df0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], 0
call fcn.10013c40
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x10013935
mov eax, dword [ebp - 0x64]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001392b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013977
push edx
push ecx
call fcn.1004633f
add esp, 8
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10013961
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 4
call fcn.1004eae1
int3
Function at 0x10013990
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x100139e4
mov ecx, dword [esi + 0x20]
cmp ecx, 0xf
jbe 0x100139cb
mov eax, dword [esi + 0xc]
inc ecx
cmp ecx, 0x1000
jb 0x100139c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013a2d
mov eax, edx
push ecx
push eax
call fcn.1004633f
add esp, 8
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10013a2a
push dword [0x10089498]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10013a1a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10013a1a
cmp dword [ecx + 8], 0
jne 0x10013a1a
mov al, byte [esi + 0x40]
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
call fcn.1004eae1
int3

Function at 0x10013c40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10013c9a
mov eax, dword [esi + 8]
test eax, eax
je 0x10013c93
mov ecx, dword [esi + 0x10]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10013c74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013ce3
mov eax, edx
push ecx
push eax
call fcn.1004633f
mov dword [esi + 8], 0
add esp, 8
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10013ce0
push dword [0x10089498]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10013cd0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10013cd0
cmp dword [ecx + 8], 0
jne 0x10013cd0
mov al, byte [esi + 0x48]
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
call fcn.1004eae1
int3
Function at 0x1001c730
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x10086040]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push 0x200
push 0
push eax
mov esi, ecx
call fcn.1004b6f0
add esp, 0xc
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [esi + 0xb4]
test ebx, ebx
je 0x1001c79e
cmp edi, ebx
je 0x1001c79e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10045df2
mov esp, ebp
pop ebp
ret 4
mov edx, str.setup_graphics_window:
mov ecx, 0x10088238
call fcn.1000e770
push edi
mov ecx, eax
call fcn.1001db40
push eax
call fcn.1000ea10
add esp, 4
call fcn.1001e170
lea edx, [esp + 0x10]
mov ecx, eax
call fcn.1001e530
push eax
call fcn.1001e7e0
add esp, 4
cmp ebx, edi
jne 0x1001c7fd
cmp dword [esi + 0xdc], 0
je 0x1001c7fd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10045df2
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
je 0x1001c825
mov ecx, dword [esi + 0xdc]
test ecx, ecx
je 0x1001c81b
mov eax, dword [esi + 0xb4]
push ecx
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor edx, edx
lea eax, [esi + 0xb4]
xchg dword [eax], edx
push edi
mov ecx, esi
call fcn.1001d440
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10045df2
mov esp, ebp
pop ebp
ret 4