joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100267c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
push edi
push 3
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.100206f0
lea ebx, [esi + 0x10478]
mov dword [ebx], vtable.g65ddc_demux_callback.0
lea ecx, [esi + 0x1048c]
mov dword [esi], vtable.g65ddc_device_hw_net.0
mov dword [ebx], vtable.g65ddc_device_hw_net.1.0
call fcn.1001daa0
cmp dword [0x100db790], 0
jne 0x10026831
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetQueuedCompletionStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100db790], eax
test eax, eax
jne 0x10026831
mov dword [0x100db790], 0x10026770
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [ebp + 0x14]
push edi
mov dword [esi + 0x1047c], 0xffffffff
mov dword [esi + 0x104f4], 0
mov dword [esi + 0x104f8], 0
mov byte [esi + 0x10488], 0
mov dword [esi + 0x104fc], 0
mov byte [esi + 0x10500], 0
mov dword [esi + 0x350], 2
mov dword [esi + 0x10484], edi
call fcn.1009c863
add esp, 4
mov dword [esi + 0x10480], eax
test eax, eax
je 0x100268a9
push edi
push dword [ebp + 0x10]
push eax
call fcn.100a8ab0
add esp, 0xc
pop edi
mov dword [esi + 0x104bc], ebx
mov eax, esi
mov word [esi + 0x10501], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10026ec0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push 0
push 0
mov dword [esp + 0x14], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x1047c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x10026f06
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push dword [esp + 8]
lea ecx, [esi + 0x378]
call fcn.10013b50
mov eax, dword [esp + 0xc]
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x100276f0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 1
mov edi, ecx
push 0
push 0
push 0x11
mov eax, dword [edi + 0x10480]
push 2
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 0x1047c], eax
cmp eax, 0xffffffff
jne 0x10027727
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x20000
push ecx
push 0x1001
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x400000
push eax
push 0x1002
push 0xffff
push dword [edi + 0x1047c]
call dword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100285c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [ebp + 0xc], ebx
jbe 0x10028605
mov esi, dword [ebp + 8]
add esi, 0xc
lea esp, [esp]
cmp dword [esi - 0xc], 0
je 0x1002878b
mov edx, dword [esi - 8]
inc ebx
mov eax, dword [esi]
add esi, 0x10
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x800], eax
mov byte [edx + 0x24], 1
cmp ebx, dword [ebp + 0xc]
jb 0x100285e0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov eax, dword [esi + 0x14]
sub esi, 4
cmp eax, dword [edi + 0xc05b4]
jne 0x10028779
lea ecx, [ecx]
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebx + 0x800]
test eax, eax
je 0x10028702
push 0
lea ecx, [edi + 0x378]
push eax
call fcn.10013b50
add esp, 8
cmp byte [ebx], 0x87
je 0x10028784
cmp dword [ebx + 0x800], 4
jb 0x10028702
movzx eax, byte [ebx + 1]
mov byte [ebx + 0x804], al
movzx eax, byte [ebx + 2]
mov byte [ebx + 0x805], al
movzx eax, byte [ebx + 3]
mov byte [ebx + 0x806], al
mov byte [ebx + 0x807], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x808], eax
mov ecx, dword [edi + 0x1055c]
push ebx
call fcn.10028c30
test eax, eax
jne 0x10028702
mov edx, dword [edi + 0x1055c]
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x100286f6
mov ecx, edx
mov eax, dword [ecx + 4]
lea edx, [ecx + 4]
test eax, eax
je 0x100286c1
mov eax, dword [eax + 0x804]
push edx
mov dword [edx + 8], eax
call fcn.100289d0
mov edx, dword [edi + 0x1055c]
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x100286f6
mov ecx, edx
mov eax, dword [ecx + 0x14]
lea edx, [ecx + 0x14]
test eax, eax
je 0x100286e9
mov eax, dword [eax + 0x804]
push edx
mov dword [edx + 8], eax
call fcn.100289d0
mov edx, dword [edi + 0x1055c]
mov eax, dword [edx + 0x24]
test eax, eax
je 0x100286ff
mov ecx, dword [eax + 0x80c]
mov dword [edx + 0x24], ecx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x20]
push 0
mov dword [esi + 0x24], eax
lea eax, [esi + 4]
push eax
push esi
lea eax, [esp + 0x18]
mov dword [ecx], 0x800
push eax
push 1
push ecx
mov byte [esi + 0x28], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
push dword [edi + 0x1047c]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10028752
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10028752
test eax, eax
jne 0x1002878b
mov eax, dword [edi + 0xc05b4]
lea esi, [edi + 0x105b4]
inc eax
and eax, 0x3fff
mov dword [edi + 0xc05b4], eax
imul eax, eax, 0x2c
add esi, eax
cmp byte [esi + 0x28], 0
jne 0x10028620
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [edi + 0x10488], 0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100287a0
Capabilities:
Get thread local storage value
Receive data
Receive data on socket
Set socket configuration
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x100da820
push 0x40000
mov esi, ecx
call fcn.1009c33f
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x1002892c
mov ebx, dword [esi + 0x1055c]
lea eax, [ebp - 0x10]
push 4
push eax
push 0x1002
push 0xffff
push dword [esi + 0x1047c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0xc], 0
lea edi, [esi + 0x105d8]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x10028811
mov eax, dword [ecx + 0x80c]
mov dword [ebx + 0x24], eax
push 0
mov dword [edi - 8], ecx
lea eax, [edi - 0x20]
push eax
mov dword [edi], ecx
lea eax, [ebp - 0x18]
lea ecx, [edi - 0x24]
mov dword [edi - 4], 0x800
push ecx
push eax
lea edx, [edi - 4]
mov byte [edi + 4], 0
push 1
push edx
mov dword [edi - 0x10], 0
mov dword [ecx], 0
push dword [esi + 0x1047c]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x1002886d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x3e5
je 0x1002886a
test ebx, ebx
jne 0x10028936
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add edi, 0x2c
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x4000
jl 0x10028801
mov edi, dword [esi + 8]
push dword [0x100db8a4]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [esi + 0x10500], 0
mov dword [esi + 0xc05b4], 0
jne 0x1002891a
mov ebx, dword [ebp - 4]
mov edi, edi
cmp byte [esi + 0x10488], 0
je 0x1002891a
push 0
push 0x1f40
lea eax, [ebp - 0x14]
push eax
push 0x4000
push ebx
push dword [esi + 0x105b0]
call dword [0x100db790]
test eax, eax
je 0x10028913
push dword [ebp - 0x14]
mov ecx, esi
push ebx
call fcn.100285c0
test al, al
jne 0x1002891a
cmp byte [esi + 0x10500], al
je 0x100288c0
push dword [ebp - 4]
call fcn.1009c380
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x10488], 0
push dword [ebp - 4]
call fcn.1009c380
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0xe
call fcn.100145e0
push dword [ebp - 4]
call fcn.1009c380
mov ecx, dword [esi + 8]
add esp, 4
push ebx
call fcn.100145e0
int3
Function at 0x100295a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b04f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, ecx
mov dword [esp + 0x28], 0
mov byte [esp + 0x30], 1
mov dword [esp + 0x38], 0xbb8
mov dword [esp + 0x24], vtable.g65ddc_device_hw_net_udp::request_signaled_3_.0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], 3
mov dword [esp + 0x44], 0
cmp byte [esi + 0x358], 0
je 0x10029642
lea eax, [esp + 0xc]
mov word [esi + 0x10501], 0
push eax
mov ecx, esi
call fcn.10020d90
test al, al
je 0x10029631
mov edi, dword [esp + 0xc]
jmp 0x1002963a
mov ecx, esi
call fcn.10020c40
mov edi, eax
test edi, edi
jne 0x1002973e
mov al, byte [esi + 0x358]
mov byte [esp + 0x36], al
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x3c], 5
call fcn.10029460
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x1002973e
cmp dword [esi + 0x350], 2
jne 0x1002969d
movzx eax, byte [esi + 0x358]
mov ecx, esi
mov edx, dword [esi]
neg eax
sbb eax, eax
and eax, 0xff99
add eax, 0x33
push eax
call dword [edx + 0x128]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x358], 0
je 0x10029763
lea eax, [esp + 0xc]
mov byte [esi + 0x10514], 1
push eax
mov ecx, esi
call fcn.10021410
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call dword [eax + 0x11c]
mov edi, eax
test edi, edi
jne 0x100296fe
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.10021830
mov edi, eax
test edi, edi
jne 0x100296fe
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.100215c0
mov edi, eax
test edi, edi
je 0x1002976a
push ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x3a], 0
push eax
mov ecx, esi
call fcn.10029460
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x350], 2
jne 0x10029731
mov eax, dword [esi]
mov ecx, esi
push 0x33
call dword [eax + 0x128]
mov byte [esi + 0x10514], 0
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
push dword [esp + 0x2c]
mov dword [esp + 0x18], vtable.g65ddc_device_hw_net_udp::request_signaled_3_.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x10514], 0
mov ecx, esi
call fcn.100210a0
mov edi, eax
test edi, edi
jne 0x100296fe
cmp byte [esi + 0x358], al
je 0x100297c9
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xc]
mov eax, dword [esi]
push 2
push ecx
mov ecx, esi
mov dword [esp + 0x14], 0xcd80009c
call dword [eax + 0x44]
mov edi, eax
test edi, edi
jne 0x100296fe
mov eax, dword [esi + 0x1055c]
lea ecx, [esi + 0x1048c]
mov byte [eax + 0x10], 1
push dword [esi + 0x103c0]
call fcn.1001e540
mov edi, eax
test edi, edi
je 0x100297d4
jmp 0x100296fe
lea ecx, [esi + 0x1048c]
call fcn.1001e610
xor edi, edi
jmp 0x1002973e
Function at 0x1002a240
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push dword [0x100db8a4]
mov esi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002a26e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
mov eax, dword [ebx]
push edi
push 0
push ebx
call dword [eax + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebx + 0x2c]
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebx + 0x28], 0
call esi
lea eax, [ebx + 0xc]
push eax
call edi
mov ecx, dword [ebx + 8]
pop edi
test ecx, ecx
je 0x1002a2ad
mov eax, dword [ecx]
call dword [eax + 0x64]
mov dword [ebx + 8], 0
lea eax, [ebx + 0xc]
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x1002a6c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002a6ee
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
push ebx
lea ebx, [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002a718
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [ecx]
call dword [eax + 0x38]
cmp dword [ebp + 0xc], 0
mov ecx, dword [edi + 8]
setne al
movzx eax, al
push eax
call fcn.1001f1a0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop ebx
pop edi
sete al
pop esi
pop ebp
ret 8

Function at 0x1002a750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002a77e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002a7a6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebp + 0xc]
push esi
test ecx, ecx
jne 0x1002a7c9
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [edi + 8]
movzx eax, byte [eax + 0x358]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x1002a9e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002aa0e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
push ebx
lea ebx, [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002aa38
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
mov eax, dword [ecx]
call dword [eax + 0x38]
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 8]
movzx eax, ax
push eax
call fcn.1001f2d0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop ebx
pop edi
sete al
pop esi
pop ebp
ret 0xc

Function at 0x1002aa70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002aa9e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002aac6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [edi + 8]
call fcn.1001f470
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x1002ab50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002ab7e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
push ebx
lea ebx, [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002aba8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [ecx]
call dword [eax + 0x38]
push dword [ebp + 0xc]
mov ecx, dword [edi + 8]
call fcn.1001f530
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop ebx
pop edi
sete al
pop esi
pop ebp
ret 8
Function at 0x1002abe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002ac0e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002ac36
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebp + 0xc]
push esi
test ecx, ecx
jne 0x1002ac59
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x370]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, 1
pop esi
pop ebp
ret 8

Function at 0x1002ac80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002acae
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
push ebx
lea ebx, [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002acd8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [ecx]
call dword [eax + 0x38]
mov edx, dword [ebp + 0xc]
push ebx
test edx, edx
jne 0x1002acfc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov esi, dword [edi + 8]
mov ecx, 0x51
add esi, 0x1c8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x1002ad30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002ad5e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002ad86
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x25
jae 0x1002adc6
mov eax, dword [edi + 8]
mov ecx, dword [eax + ecx*4 + 0xc]
test ecx, ecx
je 0x1002adc6
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1002adc6
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x1002ade0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [0x100db8a4]
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x1002ae0e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1002ae36
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x25
jae 0x1002ae8c
mov eax, dword [edi + 8]
mov ecx, dword [eax + ecx*4 + 0xc]
test ecx, ecx
je 0x1002ae8c
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1002ae5a
mov eax, dword [ecx + 0x44]
mov dword [edx], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1002ae72
mov eax, dword [ecx + 0x48]
mov dword [edx], eax
mov eax, dword [ecx + 0x4c]
mov dword [edx + 4], eax
mov eax, dword [ecx + 0x50]
mov dword [edx + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10