joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007980
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 0x100079af
mov ecx, dword [ebx + 4]
push 0
push dword [esp + 0x34]
call fcn.10005ab0
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 0x100079d3
mov ecx, dword [ebx + 4]
push 0x2719
push dword [esp + 0x34]
call fcn.10005ab0
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 0x10007a2e
cmp eax, 0x3e5
je 0x10007a2e
push dword [esp + 0x28]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.10005ab0
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 0x10007a86
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x10007a86
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 0x10007a74
mov dword [eax + 0x14], edi
jmp 0x10007a77
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 0x10007a90
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 0x10007abf
mov ecx, dword [edi + 4]
push 0
push dword [esp + 0x34]
call fcn.10005ab0
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 0x10007ae3
mov ecx, dword [edi + 4]
push 0x2719
push dword [esp + 0x34]
call fcn.10005ab0
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 0x10007b25
mov eax, 0x2746
jmp 0x10007b32
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x10007b53
cmp eax, 0x3e5
je 0x10007b53
push dword [esp + 0x28]
mov ecx, dword [edi + 4]
push eax
push esi
call fcn.10005ab0
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 0x10007bab
push esi
push 2
push 0
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x10007bab
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 0x10007b99
mov dword [eax + 0x14], esi
jmp 0x10007b9c
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 0x1000a6d0
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_char__struct_std::char_traits_char__.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 0x1000e7d0
Capabilities:
Set socket configuration

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 0x1006630d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
cmp dword [eax], 0xffffffff
mov esi, dword [esi]
je 0x1000e832
mov esi, 1
call fcn.10003070
mov edi, dword [ebx + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
jmp 0x1000e92f
push 1
push 0
push 0
push 6
push 1
push esi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 0xffffffff
je 0x1000e878
mov edi, dword [ebx + 0x14]
mov dword [edi], 0
cmp esi, 0x17
jne 0x1000e893
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x1b
push 0x29
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x18]
jmp 0x1000e893
call fcn.10002f00
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebx + 0x14]
or ecx, 0xffffffff
mov dword [ebp - 0x18], ecx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
cmp ecx, 0xffffffff
jne 0x1000e8b4
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.10006410
mov esi, dword [ebp - 0x18]
jmp 0x1000e92f
mov eax, dword [ebp - 0x24]
push 0
push 0
mov eax, dword [eax + 0x18]
push dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x1000e8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10002f00
mov dword [edi], esi
mov dword [edi + 4], eax
jmp 0x1000e8ed
mov dword [edi], 0
mov dword [edi + 4], 0x10086b38
cmp dword [edi], 0
jne 0x1000e8a2
mov ecx, dword [ebx + 0xc]
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push ecx
mov dword [ecx], eax
mov byte [ecx + 4], 0x10
add ecx, 8
mov dword [ebp - 0x14], 0xffffffff
call fcn.1000bde0
lea ecx, [ebp - 0x14]
mov dword [edi], 0
mov dword [edi + 4], 0x10086b38
call fcn.10006410
mov dword [ebp - 0x24], 0x10086b38
xor esi, esi
test esi, esi
jne 0x1000e96e
mov ecx, dword [ebx + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebx + 0x10]
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x44], 2
mov eax, dword [eax]
mov dword [ebp - 0x40], esi
movups xmm0, xmmword [ebp - 0x44]
mov dword [ecx + 0x1c], eax
mov byte [ecx + 0x20], 0
movups xmmword [ecx + 0x24], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ecx + 0x34], xmm0
mov dword [ecx + 0x3c], esi
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
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 0x10
Function at 0x1000f800
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 0x10066525
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x1008600c]
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 0x1000f85b
push 0x10010b20
push eax
call ecx
add esp, 0xc
jmp 0x1000f93e
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call fcn.10010330
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 0x1000f8af
mov eax, dword [eax + 4]
test eax, eax
je 0x1000f8af
mov esi, dword [eax + 8]
test esi, esi
je 0x1000f8af
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0xd
jb 0x1000f8a6
mov byte [esi + 0x34], al
jmp 0x1000f8bf
push esi
call fcn.10041b03
add esp, 4
push 0x35
call fcn.10041665
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.10010330
mov dword [esi], 0x10010be0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], 0
call fcn.10010a90
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x1000f912
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1000f912
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1000f912
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 0x1000f93e
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 0x10010120
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 0x1006663d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
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 edi, eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x10]
push esi
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10010190
push fcn.10010bc0
push edi
call eax
add esp, 0xc
jmp 0x10010286
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x38], eax
call fcn.10010b40
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2d]
push dword [0x100895a0]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100101e1
mov eax, dword [eax + 4]
test eax, eax
je 0x100101e1
mov esi, dword [eax + 8]
test esi, esi
je 0x100101e1
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0x10
jb 0x100101d8
mov byte [esi + 0x40], al
jmp 0x100101f1
push esi
call fcn.10041b03
add esp, 4
push 0x41
call fcn.10041665
mov esi, eax
add esp, 4
mov byte [esi + 0x40], 0x10
lea eax, [ebp - 0x80]
mov dword [ebp - 0x3c], 0
lea ecx, [esi + 4]
push eax
call fcn.10010b40
mov dword [esi], 0x10011000
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], 0
call fcn.10010ca0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x10010250
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10010246
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100102bb
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
push edi
call dword [ebp - 0x38]
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10010286
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
call fcn.1004a021
int3
Function at 0x100105e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006670d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
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 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.100100b0
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 [0x10089594]
mov dword [ebp - 0x10], eax
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10010664
cmp dword [eax], esi
je 0x1001072a
mov eax, dword [eax + 8]
test eax, eax
jne 0x10010655
lea eax, [ebp - 0x64]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push 0x6c
call fcn.10004cb0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x100113d0
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.100100b0
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.100081a0
lea ecx, [ebp - 0x1c]
call fcn.10011350
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x10010751
mov ecx, dword [ebp - 0x50]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10010747
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010763
jmp 0x10010747
cmp dword [eax + 4], 0
je 0x10010664
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100114c0
add esp, 8
jmp 0x100106ff
push ecx
push edx
call fcn.10041ac4
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.1004a021
int3
Function at 0x10010770
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 0x10066750
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 0x100107e1
push 0x100110e0
push eax
call ecx
add esp, 0xc
jmp 0x100108fe
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x3c], eax
call fcn.100100b0
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], 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 0x10010847
mov eax, dword [eax + 4]
test eax, eax
je 0x10010847
mov edi, dword [eax + 8]
test edi, edi
je 0x10010847
mov dword [eax + 8], 0
mov al, byte [edi]
cmp al, 0x12
jb 0x1001083e
mov byte [edi + 0x48], al
jmp 0x10010857
push edi
call fcn.10041b03
add esp, 4
push 0x49
call fcn.10041665
mov edi, eax
add esp, 4
mov byte [edi + 0x48], 0x12
lea eax, [ebp - 0x88]
mov dword [ebp - 0x40], 0
push eax
lea ecx, [edi + 4]
call fcn.100100b0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x3c], ecx
lea ecx, [ebp - 0x48]
mov dword [edi + 0x40], eax
mov dword [edi], 0x10011100
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x44], 0
call fcn.10010f50
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x100108d8
mov eax, dword [ebp - 0x7c]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x100108ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010933
push edx
push ecx
call fcn.10041ac4
add esp, 8
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 0x100108fe
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
call fcn.1004a021
int3
Function at 0x10010940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006679d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 eax, dword [esi + 0x20]
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.10010330
mov dword [ebp - 4], 0
lea edi, [esi + 0x1c]
mov ebx, dword [esi + 0x18]
push dword [0x10089594]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100109a7
cmp dword [eax], esi
je 0x10010a63
mov eax, dword [eax + 8]
test eax, eax
jne 0x10010998
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x54
call fcn.10004cb0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [esi + 0x24]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10011250
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.10010330
push esi
push edi
mov ecx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.100081a0
lea ecx, [ebp - 0x18]
call fcn.100111f0
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x10010a51
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10010a51
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10010a51
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 0x100109a7
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100114e0
add esp, 8
jmp 0x10010a29

Function at 0x10010a90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10010acc
mov esi, dword [esi + 0xc]
test esi, esi
je 0x10010ac5
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10010ac4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10010ac4
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 0x10010b12
push dword [0x100895a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10010b02
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10010b02
cmp dword [ecx + 8], 0
jne 0x10010b02
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.10041b03
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10010ca0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10010cf4
mov ecx, dword [esi + 0x20]
cmp ecx, 0x10
jb 0x10010cdb
mov eax, dword [esi + 0xc]
inc ecx
cmp ecx, 0x1000
jb 0x10010cd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010d3d
mov eax, edx
push ecx
push eax
call fcn.10041ac4
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 0x10010d3a
push dword [0x100895a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10010d2a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10010d2a
cmp dword [ecx + 8], 0
jne 0x10010d2a
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.10041b03
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
call fcn.1004a021
int3

Function at 0x10010f50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10010faa
mov eax, dword [esi + 8]
test eax, eax
je 0x10010fa3
mov ecx, dword [esi + 0x10]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10010f84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010ff3
mov eax, edx
push ecx
push eax
call fcn.10041ac4
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 0x10010ff0
push dword [0x100895a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10010fe0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10010fe0
cmp dword [ecx + 8], 0
jne 0x10010fe0
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.10041b03
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
call fcn.1004a021
int3
Function at 0x10019250
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x1008600c]
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.100472b0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x100
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [esi + 0xb4]
lea eax, [esi + 0xb4]
test ebx, ebx
je 0x100192c4
cmp edi, ebx
je 0x100192c4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1004144e
mov esp, ebp
pop ebp
ret 4
mov edx, str.setup_graphics_window:
mov ecx, 0x10088668
call fcn.1000be60
push edi
mov ecx, eax
call fcn.1001a5e0
push eax
call fcn.1000c0f0
add esp, 4
call fcn.1001a9f0
lea edx, [esp + 0x10]
mov ecx, eax
call fcn.1001adb0
push eax
call fcn.1001b050
add esp, 4
cmp ebx, edi
jne 0x10019323
cmp dword [esi + 0xdc], 0
je 0x10019323
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1004144e
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
je 0x10019347
mov ecx, dword [esi + 0xdc]
lea ebx, [esi + 0xb4]
test ecx, ecx
je 0x10019343
mov eax, dword [ebx]
push ecx
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor eax, eax
xchg dword [ebx], eax
push edi
mov ecx, esi
call fcn.10019f00
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004144e
mov esp, ebp
pop ebp
ret 4