joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002fe20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0xffffffff
mov ebx, ecx
jne 0x1002ff2e
push edi
lea esi, [ebx + 0xc]
push esi
push 0xf5
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1002fe56
call edi
test eax, eax
jne 0x1002fe62
jmp 0x1002feba
cmp eax, 0xf5
jg 0x1002fe62
cmp eax, 0xffffffff
jne 0x1002feba
call edi
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
test eax, eax
je 0x1002fe74
mov edi, eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
push str.Temporary_path_too_long__defaulting_to_current_directory_n
push 0x80
push eax
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.FILE_Addr.cpp
mov dword [eax + 0x144], 0x29
mov dword [eax + 0x148], 0xffffffff
mov dword [eax + 0x14c], edi
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0xc
mov byte [esi], 0
lea eax, [esi - 1]
pop edi
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002fec0
mov ecx, dword [str.ace_fileXXXXXX]
mov dword [eax], ecx
mov edx, dword [0x100a6c24]
mov dword [eax + 4], edx
mov ecx, dword [0x100a6c28]
mov dword [eax + 8], ecx
mov dx, word [0x100a6c2c]
mov word [eax + 0xc], dx
mov cl, byte [0x100a6c2e]
push esi
mov byte [eax + 0xe], cl
call dword [sym.imp.MSVCR100.dll__mktemp]
add esp, 4
test eax, eax
jne 0x1002ff0d
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ff12
sub eax, edx
inc eax
mov dword [ebx + 8], eax
pop esi
mov dword [ebx + 4], 0x22
xor eax, eax
pop ebx
pop ebp
ret 4
mov ecx, dword [esi + 8]
lea eax, [ebx + 0xc]
lea edx, [esi + 0xc]
test ecx, ecx
je 0x1002ff6c
cmp eax, edx
je 0x1002ff67
mov byte [eax], 0
test edx, edx
je 0x1002ff6c
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.MSVCR100.dll_strncat]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
add esp, 0xc
mov dword [ebx + 8], eax
pop esi
mov dword [ebx + 4], edx
xor eax, eax
pop ebx
pop ebp
ret 4
mov byte [ecx + eax - 1], 0
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [ebx + 8], eax
pop esi
mov dword [ebx + 4], edx
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x10030510
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebx + 4], 0
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x10030563
mov esi, eax
test eax, eax
je 0x10030590
push 0x10115520
push esi
call fcn.1009ad0c
add esp, 8
mov dword [ebx + 4], eax
test eax, eax
jne 0x10030578
call dword [sym.imp.MSVCR100.dll__errno]
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or esi, 0xffffffff
jmp 0x10030538
mov edi, dword [edi]
push 0
push esi
push eax
push edi
call sym.ACE.dll_int___cdecl_ACE_OS::read_n_void___void___unsigned_int__unsigned_int__
add esp, 0x10
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 4
cmp eax, 0x7fffffff
jbe 0x1003059c
mov eax, bind
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x100305b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cwde
dec eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, ecx
je 0x100305e0
dec eax
jne 0x10030617
mov eax, dword [esi + 0x18]
push 0
push eax
call edi
cmp eax, 0xffffffff
je 0x100305fb
cmp eax, 0xffffffff
je 0x10030644
add dword [ebx], eax
jmp 0x10030617
push 1
lea edx, [esp + 0xc]
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10030611
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 8]
add dword [ebx], ecx
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0
cmp dword [eax], 0
jne 0x10030644
mov esi, dword [esi + 0x18]
push 0
push esi
call edi
cmp eax, 0xffffffff
je 0x100305fb
cmp eax, 0xffffffff
je 0x10030644
sub eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10032750
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1720
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
mov dword [sym.ACE.dll_int_ACE_Framework_Repository::shutting_down_], 1
cmp dword [esi], ebx
je 0x100327df
mov edi, dword [esi + 4]
dec edi
js 0x100327ce
lea ebx, [ebx]
mov eax, dword [esi]
cmp dword [eax + edi*4], ebx
lea eax, [eax + edi*4]
je 0x100327cb
mov ecx, dword [eax]
mov dword [eax], ebx
cmp ecx, ebx
je 0x100327cb
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
dec edi
jns 0x100327b0
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
call sym.ACE.dll_public:_static_class_ACE_Recursive_Thread_Mutex____cdecl_ACE_Static_Object_Lock::instance_void_
mov esi, eax
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x30], 1
mov ecx, dword [sym.ACE.dll_class_ACE_DLL_Manager__ACE_DLL_Manager::instance_]
mov edi, ecx
cmp ecx, ebx
je 0x10032815
call sym.ACE.dll_protected:_void___thiscall_ACE_DLL_Manager::destructor_void_
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [sym.ACE.dll_class_ACE_DLL_Manager__ACE_DLL_Manager::instance_], ebx
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10034c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x10112018]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
mov edx, ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [edx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [edx]
mov edx, dword [edx + 0xc]
push edi
cmp edx, eax
jb 0x10034c5a
ja 0x10034c52
cmp esi, ecx
jbe 0x10034c5a
sub esi, ecx
sbb edx, eax
mov edi, edx
jmp 0x10034c6a
not ecx
add esi, ecx
not eax
adc eax, edx
add esi, 1
adc eax, 0
mov edi, eax
call sym.ACE.dll_public:_static_unsigned_int___cdecl_ACE_High_Res_Timer::global_scale_factor_void_
mov ecx, eax
xor edx, edx
mov eax, 0xfa000
div ecx
push edi
push esi
push 0
push eax
call fcn.1009b800
mov esi, edx
push 0
mov edi, eax
shrd edi, esi, 0xa
push 0x3b9aca00
shr esi, 0xa
push esi
push edi
call fcn.1009b860
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], edx
mov edx, ecx
imul edx, edx, 0x3b9aca00
mov ebx, edi
sub ebx, edx
mov dword [esp + 0x18], ecx
cmp eax, 1
jle 0x10034d0a
push 0
push eax
push esi
push edi
call fcn.1009b860
push 0
add eax, 0x1f4
push 0x3e8
adc edx, 0
push edx
push eax
call fcn.1009b860
mov ecx, dword [ebp + 0xc]
push eax
add ebx, 0x1f4
mov eax, 0x10624dd3
mul ebx
mov eax, dword [esp + 0x1c]
shr edx, 6
push edx
push eax
push ecx
lea edx, [esp + 0x30]
push str._count___d__total__secs__lu__usecs__u___avg_usecs___lu_n
push edx
call sym.ACE.dll_int___cdecl_ACE_OS::sprintf_char___char_const__
add esp, 0x18
jmp 0x10034d2e
add ebx, 0x1f4
mov eax, 0x10624dd3
mul ebx
shr edx, 6
push edx
push ecx
lea eax, [esp + 0x28]
push str._total__3lu._06lu_secs_n
push eax
call sym.ACE.dll_int___cdecl_ACE_OS::sprintf_char___char_const__
add esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10034d37
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, esi
mov esi, dword [esp + 0x18]
push eax
push edx
push esi
call edi
test eax, eax
jne 0x10034d5f
call fcn.1002a850
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10034d66
sub eax, edx
push 0
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call edi
test eax, eax
jne 0x10034d88
call fcn.1002a850
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10034da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x10112018]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi]
cmp edx, eax
jb 0x10034dea
ja 0x10034de2
cmp esi, ecx
jbe 0x10034dea
sub esi, ecx
sbb edx, eax
mov ebx, edx
jmp 0x10034dfa
not ecx
add esi, ecx
not eax
adc eax, edx
add esi, 1
adc eax, 0
mov ebx, eax
call sym.ACE.dll_public:_static_unsigned_int___cdecl_ACE_High_Res_Timer::global_scale_factor_void_
mov ecx, eax
xor edx, edx
mov eax, 0xfa000
div ecx
push ebx
push esi
push 0
push eax
call fcn.1009b800
push 0
mov esi, eax
shrd esi, edx, 0xa
push 0x3b9aca00
shr edx, 0xa
push edx
push esi
call fcn.1009b860
mov ebx, eax
mov dword [esp + 0x1c], edx
mov edx, ebx
imul edx, edx, 0x3b9aca00
sub esi, edx
mov eax, esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
cmp esi, 1
jle 0x10034e9b
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push 0
push esi
push eax
push ecx
call fcn.1009b860
push 0
add eax, 0x1f4
push 0x3e8
adc edx, 0
push edx
push eax
call fcn.1009b860
mov edx, dword [esp + 0x18]
push eax
add edx, 0x1f4
mov eax, 0x10624dd3
mul edx
shr edx, 6
push edx
push ebx
push esi
lea eax, [esp + 0x30]
push str._count___d__total__secs__lu__usecs__u___avg_usecs___lu_n
push eax
call sym.ACE.dll_int___cdecl_ACE_OS::sprintf_char___char_const__
add esp, 0x18
jmp 0x10034ebf
lea ecx, [eax + 0x1f4]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push ebx
lea edx, [esp + 0x28]
push str._total__3lu._06u_secs_n
push edx
call sym.ACE.dll_int___cdecl_ACE_OS::sprintf_char___char_const__
add esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10034ec8
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, esi
mov esi, dword [esp + 0x18]
push eax
push edx
push esi
call edi
test eax, eax
jne 0x10034ef0
call fcn.1002a850
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10034ef7
sub eax, edx
push 0
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call edi
test eax, eax
jne 0x10034f19
call fcn.1002a850
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10034f30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10034f5f
push eax
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x10034f5f
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
test eax, eax
jle 0x10034f5f
mov dword [sym.ACE.dll_unsigned_int_ACE_High_Res_Timer::global_scale_factor_], eax
xor eax, eax
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x10035290
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
mov edx, dword [esi]
push edi
mov edi, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x100352ed
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [sym.imp.MSVCR100.dll__errno]
mov edi, eax
call ebx
mov dword [eax], edi
call ebx
cmp dword [eax], 0x2738
pop ebx
jne 0x100352f9
test byte [ebp + 0x14], 2
je 0x100352f9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
pop edi
mov dword [esi + 8], ecx
or eax, 0xffffffff
pop esi
pop ebp
ret 0x10

Function at 0x10035cd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
jne 0x10035cf3
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 0x10
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [ebp + 0xc]
push ecx
mov eax, 2
push edi
mov dword [esi + 4], 2
mov word [esi + 0xc], ax
call sym.ACE.dll_int___cdecl_ACE_OS::inet_aton_char_const___struct_in_addr__
add esp, 8
cmp eax, 1
je 0x10035d68
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10035d51
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.MSVCR100.dll__errno]
mov edi, eax
call esi
mov dword [eax], edi
call esi
mov edi, dword [eax]
call esi
mov dword [eax], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 0x10
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp + 0xc]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10035d97
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edi, ecx
shr edi, 0x10
and eax, 0xff0000
or eax, edi
mov edi, ecx
and edi, 0xff00
shl ecx, 0x10
or edi, ecx
shr eax, 8
shl edi, 8
or eax, edi
jmp 0x10035d9a
mov eax, dword [ebp + 0xc]
push 0
push edx
mov edx, dword [ebp + 8]
push eax
push edx
mov ecx, esi
call sym.ACE.dll_public:_int___thiscall_ACE_INET_Addr::set_unsigned_short_int__unsigned_int__int__int_
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x10035e30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.10035db0
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x10035e61
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x81
or eax, 0xffffffff
pop esi
pop ebp
ret 0xc
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10035e7e
call dword [sym.imp.MSVCR100.dll__errno]
pop edi
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop ebp
ret 0xc
xor eax, eax
mov dword [esi + 0xc], eax
push ebx
mov dword [esi + 0x10], eax
lea edx, [ebp + 0x10]
mov dword [esi + 0x14], eax
mov ebx, 2
push edx
mov dword [esi + 0x18], eax
mov ecx, ebx
push edi
mov dword [esi + 4], ebx
mov word [esi + 0xc], cx
call sym.ACE.dll_int___cdecl_ACE_OS::inet_aton_char_const___struct_in_addr__
add esp, 8
cmp eax, 1
jne 0x10035ed7
mov eax, dword [ebp + 0x10]
cmp dword [esi + 4], ebx
jne 0x10035ec6
mov dword [esi + 4], ebx
mov word [esi + 0xc], bx
mov dword [esi + 8], 0x10
mov dword [esi + 0x10], eax
mov ax, word [ebp + 8]
pop ebx
mov word [esi + 0xe], ax
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10035f06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.MSVCR100.dll__errno]
mov edi, eax
call esi
mov dword [eax], edi
call esi
mov edi, dword [eax]
call esi
pop ebx
mov dword [eax], edi
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret 0xc
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp + 0x10]
push ecx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp dword [esi + 4], ebx
jne 0x10035f36
mov dword [esi + 4], ebx
mov word [esi + 0xc], bx
mov dword [esi + 8], 0x10
mov dword [esi + 0x10], eax
mov dx, word [ebp + 8]
pop ebx
pop edi
mov word [esi + 0xe], dx
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x100386a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f232
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp byte [sym.ACE.dll_bool_ACE_Log_Msg::key_created_], 0
jne 0x10038779
mov eax, dword [sym.ACE.dll_class_ACE_OS_Object_Manager__ACE_OS_Object_Manager::instance_]
mov edi, dword [0x10115c88]
mov esi, 2
test eax, eax
je 0x10038709
xor ecx, ecx
cmp dword [eax + 4], esi
setl cl
cmp ecx, 1
je 0x10038709
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [sym.ACE.dll_bool_ACE_Log_Msg::key_created_], 0
jne 0x1003875c
call fcn.10038580
push fcn.10038630
push 0x10115c14
call sym.ACE.dll_int___cdecl_ACE_OS::thr_keycreate_unsigned_long_int___void____cdecl___void___
add esp, 8
test eax, eax
je 0x10038755
mov eax, dword [sym.ACE.dll_class_ACE_OS_Object_Manager__ACE_OS_Object_Manager::instance_]
test eax, eax
je 0x10038741
xor edx, edx
cmp dword [eax + 4], esi
setl dl
cmp edx, 1
je 0x10038741
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [sym.ACE.dll_bool_ACE_Log_Msg::key_created_], 1
mov eax, dword [sym.ACE.dll_class_ACE_OS_Object_Manager__ACE_OS_Object_Manager::instance_]
test eax, eax
je 0x10038779
xor ecx, ecx
cmp dword [eax + 4], esi
setl cl
cmp ecx, 1
je 0x10038779
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x10115c14]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1003882e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x100387bc
call edi
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1003882e
push 0x10115520
push 0x150
call fcn.1009ae46
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], esi
test eax, eax
je 0x100387e7
mov ecx, eax
call sym.ACE.dll_public:_void___thiscall_ACE_Log_Msg::constructor_void_
jmp 0x100387e9
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov esi, eax
test eax, eax
jne 0x10038817
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [0x10115c14]
push eax
call sym.ACE.dll_int___cdecl_ACE_OS::thr_setspecific_unsigned_long_int__void__
add esp, 8
test eax, eax
jne 0x10038741
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100388e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10115c28]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp eax, ebx
je 0x1003890a
cmp byte [eax + 0x18], bl
jne 0x10038900
push eax
mov byte [eax + 0x18], 1
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [0x10115c1c]
mov dword [0x10115c28], ebx
cmp ecx, ebx
je 0x10038922
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x10115c1c], ebx
mov dword [0x10115c20], ebx
cmp byte [sym.ACE.dll_bool_ACE_Log_Msg::key_created_], bl
je 0x100389bf
mov edi, dword [0x10115c88]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [sym.ACE.dll_bool_ACE_Log_Msg::key_created_], bl
je 0x100389b8
mov eax, dword [0x10115c14]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
jne 0x10038979
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x100389a3
call esi
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
jmp 0x100389a3
push eax
call fcn.10038630
mov ecx, dword [0x10115c14]
add esp, 4
push ebx
push ecx
call sym.ACE.dll_int___cdecl_ACE_OS::thr_setspecific_unsigned_long_int__void__
add esp, 8
test eax, eax
je 0x100389a3
push str.ACE_Log_Msg::close_failed_to_ACE_Thread::setspecific_to_0_n
call sym.ACE.dll_int___cdecl_ACE_OS::printf_char_const__
add esp, 4
mov edx, dword [0x10115c14]
push edx
call sym.ACE.dll_int___cdecl_ACE_OS::thr_keyfree_unsigned_long_int_
add esp, 4
mov byte [sym.ACE.dll_bool_ACE_Log_Msg::key_created_], bl
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret
Function at 0x1003a9d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
cmp byte [sym.ACE.dll_bool_ACE_Log_Msg::key_created_], 0
je 0x1003aa77
mov edx, dword [0x10115c14]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1003aa1c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1003aa77
call esi
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
pop esi
pop ebp
ret
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
mov ecx, dword [eax + 0x11c]
mov dword [esi], ecx
test ecx, ecx
je 0x1003aa4b
mov ecx, dword [eax + 0x120]
test ecx, ecx
je 0x1003aa4b
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [eax + 0x120]
mov dword [esi + 4], ecx
jmp 0x1003aa52
mov dword [esi + 4], 0
mov edx, dword [eax + 0x134]
mov dword [esi + 8], edx
movzx ecx, byte [eax + 0x12d]
mov dword [esi + 0xc], ecx
mov dl, byte [eax + 0x118]
mov byte [esi + 0x10], dl
mov eax, dword [eax + 0x128]
mov dword [esi + 0x14], eax
pop esi
pop ebp
ret