joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021a60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x10021ae7
mov eax, dword [eax + 8]
push esi
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x104]
push edx
push ecx
push eax
mov dword [ebp - 0x108], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
jne 0x10021afb
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0xea
je 0x10021b24
test esi, esi
je 0x10021b24
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10021b30
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x104]
push edx
mov ecx, edi
call sym.ACE.dll_public:_void___thiscall_ACE_String_Base_char_::set_char_const___unsigned_int__bool_
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10021b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10021b77
mov al, byte [esi]
cmp al, byte [sym.ACE.dll_char_ACE_Configuration::NULL_String_]
jne 0x10021b77
xor esi, esi
push esi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration::validate_value_name_char_const__
test eax, eax
jne 0x10021bca
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x10021bca
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
inc ecx
push ecx
push eax
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x10021bd2
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
ret 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x10021be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10021bf7
mov al, byte [esi]
cmp al, byte [sym.ACE.dll_char_ACE_Configuration::NULL_String_]
jne 0x10021bf7
xor esi, esi
push esi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration::validate_value_name_char_const__
test eax, eax
jne 0x10021c44
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x10021c44
mov eax, dword [eax + 8]
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x10021c4c
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
ret 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x10021c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10021c77
mov al, byte [esi]
cmp al, byte [sym.ACE.dll_char_ACE_Configuration::NULL_String_]
jne 0x10021c77
xor esi, esi
push esi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration::validate_value_name_char_const__
test eax, eax
jne 0x10021cc6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x10021cc6
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 8]
push edx
push ecx
push 3
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x10021cce
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
ret 0x10
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x10021ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cb68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10021d19
mov al, byte [edi]
cmp al, byte [sym.ACE.dll_char_ACE_Configuration::NULL_String_]
jne 0x10021d19
xor edi, edi
push edi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration::validate_value_name_char_const__
test eax, eax
jne 0x10021d6f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x10021d6f
mov ebx, dword [eax + 8]
lea edx, [ebp + 0xc]
push edx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x10021d86
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x10], 1
je 0x10021daf
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x70c
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
push 0x10115520
push ecx
call fcn.1009ad0c
mov esi, eax
add esp, 8
test esi, esi
jne 0x10021de9
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp + 8], esi
lea edx, [ebp + 0xc]
push edx
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x10021e35
call dword [sym.imp.MSVCR100.dll__errno]
push esi
mov dword [eax], edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
push esi
call fcn.10006670
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10021e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10021e78
mov al, byte [esi]
cmp al, byte [sym.ACE.dll_char_ACE_Configuration::NULL_String_]
jne 0x10021e78
xor esi, esi
push esi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration::validate_value_name_char_const__
test eax, eax
jne 0x10021ed0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x10021ed0
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 8]
lea edx, [ebp + 0xc]
push edx
push ecx
lea edx, [ebp - 4]
push edx
push 0
push esi
push eax
mov dword [ebp + 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x10021eda
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], 4
je 0x10021ef6
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x70c
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10021f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10021f18
mov al, byte [edi]
cmp al, byte [sym.ACE.dll_char_ACE_Configuration::NULL_String_]
jne 0x10021f18
xor edi, edi
push edi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration::validate_value_name_char_const__
test eax, eax
je 0x10021f2c
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x10021f22
push ebx
mov ebx, dword [eax + 8]
push esi
lea edx, [ebp + 0xc]
push edx
push 0
lea eax, [ebp - 4]
push eax
push 0
push edi
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x10021f86
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp - 4], 3
je 0x10021fa4
call dword [sym.imp.MSVCR100.dll__errno]
pop esi
pop ebx
mov dword [eax], 0x70c
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push 0x10115520
push eax
mov dword [ecx], eax
call fcn.1009ad0c
mov esi, eax
add esp, 8
test esi, esi
jne 0x10021fd8
call dword [sym.imp.MSVCR100.dll__errno]
pop esi
pop ebx
mov dword [eax], 0xc
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp + 0xc]
push edx
push esi
lea eax, [ebp - 4]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x10022018
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
call dword [sym.imp.MSVCR100.dll__errno]
push esi
mov dword [eax], edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
push 0
mov dword [edx], esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10022040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10022058
mov al, byte [esi]
cmp al, byte [sym.ACE.dll_char_ACE_Configuration::NULL_String_]
jne 0x10022058
xor esi, esi
push esi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration::validate_value_name_char_const__
test eax, eax
jne 0x100220ae
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x100220ae
mov eax, dword [eax + 8]
lea edx, [ebp + 0xc]
push edx
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x100220b8
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
dec eax
je 0x100220e8
sub eax, 2
je 0x100220d6
dec eax
jne 0x100220ae
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10022100
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10022117
mov al, byte [esi]
cmp al, byte [sym.ACE.dll_char_ACE_Configuration::NULL_String_]
jne 0x10022117
xor esi, esi
push esi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration::validate_value_name_char_const__
test eax, eax
jne 0x1002215a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x1002215a
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
test esi, esi
je 0x10022162
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1002bcf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f3b8
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 edi, ecx
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push eax
call sym.ACE.dll_char____cdecl_ACE::ldname_char_const__
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
mov byte [esp + 0x30], 1
mov eax, dword [edi + 8]
push ebx
test eax, eax
je 0x1002be4d
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1002be74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [ebp + 0xc], 1
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
je 0x1002be74
call sym.ACE.dll_bool___cdecl_ACE::debug_void_
test al, al
je 0x1002be4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x10], esi
test eax, eax
je 0x1002bdb5
mov dword [esp + 0x10], eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
mov edx, dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov byte [esi + 0x13c], 1
mov dword [esi + 0x140], str.DLL_Manager.cpp
mov dword [esi + 0x144], 0x14c
mov dword [esi + 0x148], 0xffffffff
mov dword [esi + 0x14c], edx
call sym.ACE.dll_private:_class_std::auto_ptr_class_ACE_String_Base_char_____thiscall_ACE_DLL_Handle::error_void_
mov byte [esp + 0x30], 2
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
push ebx
push str.ACE___P_t__DLL_Handle::symbol____s____failed_with___s_._n
push 0x80
push esi
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x24]
add esp, 0x14
mov esi, eax
test eax, eax
je 0x1002be48
cmp dword [eax + 8], 0
je 0x1002be3e
cmp byte [eax + 0x10], 0
je 0x1002be3e
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [eax + 0xc]
mov edx, dword [edx + 0x10]
push eax
call edx
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esp + 0x1c]
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 8
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002d750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1cab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10112018]
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], vtable.ACE_TSS_class_ACE_Dynamic_.0
mov dword [ebp - 4], 0
mov al, byte [esi + 0x20]
test al, al
je 0x1002d7e5
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1002d7b9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x1002d7b9
call ebx
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], edi
xor edi, edi
xor ecx, ecx
mov eax, esi
call fcn.1002da20
test edi, edi
je 0x1002d7d0
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esi + 0x24]
push ecx
call sym.ACE.dll_int___cdecl_ACE_OS::thr_key_detach_unsigned_long_int_
mov edx, dword [esi + 0x24]
push edx
call sym.ACE.dll_int___cdecl_ACE_OS::thr_keyfree_unsigned_long_int_
add esp, 8
cmp byte [esi + 0x1c], 0
lea eax, [esi + 4]
jne 0x1002d7f9
push eax
mov byte [eax + 0x18], 1
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
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 0x1002db80
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, eax
mov al, byte [esi + 0x20]
test al, al
jne 0x1002db98
call fcn.1002dc00
cmp eax, 0xffffffff
jne 0x1002db98
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x24]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1002dbf5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x1002dbc4
call ebx
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], edi
jmp 0x1002dbc8
test edi, edi
jne 0x1002dbf5
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edi, eax
test edi, edi
je 0x1002dbef
mov ecx, edi
mov eax, esi
call fcn.1002da20
cmp eax, 0xffffffff
jne 0x1002dbf5
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
ret
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x1002f060
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push eax
or ecx, 1
push ecx
push edi
mov ecx, ebx
call sym.ACE.dll_public:_int___thiscall_ACE_FIFO::open_char_const___int__unsigned_short_int__struct__SECURITY_ATTRIBUTES__
cmp eax, 0xffffffff
je 0x1002f0b5
mov eax, dword [ebx]
lea edx, [ebp + 0x18]
push edx
push 0x8004667e
push eax
mov dword [ebp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1002f0bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 0x14
cmp dword [ebp + 0x14], 0
je 0x1002f13f
push 0
push 0
push 3
push esi
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x1002f130
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.MSVCR100.dll__errno]
mov esi, eax
call edi
mov dword [eax], esi
lea eax, [esi - 3]
cmp eax, 0x4d
ja case.0x1002f100.4
movzx eax, byte [eax + 0x1002f164]
jmp dword [eax*4 + 0x1002f150]
call edi
mov dword [eax], 0xc
jmp case.0x1002f100.4
call edi
mov dword [eax], 0x11
jmp case.0x1002f100.4
call edi
mov dword [eax], 0xd
jmp case.0x1002f100.4
call edi
mov dword [eax], 2
or eax, 0xffffffff
mov dword [ebx + 0x10c], eax
cmp eax, 0xffffffff
je 0x1002f0b5
xor eax, eax
cmp dword [ebx], 0xffffffff
pop edi
setne al
pop esi
pop ebx
dec eax
pop ebp
ret 0x14
Function at 0x1002f260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x408]
push ecx
push 4
lea ebx, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002f29f
mov eax, dword [ebp - 0x408]
jmp 0x1002f2a4
call fcn.1002a850
cmp eax, 4
je 0x1002f2bf
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [ebp - 0x40c], ecx
cmp ecx, eax
mov dword [ebp - 0x408], eax
lea ecx, [ebp - 0x408]
ja 0x1002f2df
lea ecx, [ebp - 0x40c]
mov ecx, dword [ecx]
mov esi, dword [esi + 8]
mov eax, dword [edi]
push 0
lea edx, [ebp - 0x40c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002f304
mov eax, dword [ebp - 0x40c]
jmp 0x1002f309
call fcn.1002a850
cmp eax, 0xffffffff
je 0x1002f2a9
mov esi, dword [ebp - 0x408]
mov dword [ebx], eax
mov ebx, esi
sub esi, eax
mov dword [ebp - 0x408], esi
je case.0x1002f39c.4
mov dword [ebp - 0x40c], 0x400
lea ecx, [ebp - 0x408]
cmp esi, 0x400
jb 0x1002f344
lea ecx, [ebp - 0x40c]
mov ecx, dword [ecx]
mov eax, dword [edi]
push 0
lea edx, [ebp - 0x410]
push edx
push ecx
lea edx, [ebp - 0x404]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002f37b
mov eax, dword [ebp - 0x410]
cmp eax, 0xffffffff
je case.0x1002f39c.4
sub esi, eax
mov dword [ebp - 0x408], esi
jne 0x1002f330
jmp case.0x1002f39c.4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.MSVCR100.dll__errno]
mov esi, eax
call edi
mov dword [eax], esi
lea eax, [esi - 3]
cmp eax, 0x4d
ja case.0x1002f39c.4
movzx eax, byte [eax + 0x1002f400]
jmp dword [eax*4 + 0x1002f3ec]
call edi
mov dword [eax], 0xc
jmp case.0x1002f39c.4
call edi
mov dword [eax], 0x11
jmp case.0x1002f39c.4
call edi
mov dword [eax], 0xd
jmp case.0x1002f39c.4
call edi
mov dword [eax], 2
mov eax, bind
cmp ebx, 0x7fffffff
ja 0x1002f3d8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4

Function at 0x1002f480
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.ACE.dll_public:_int___thiscall_ACE_FIFO_Recv::open_char_const___int__unsigned_short_int__int__struct__SECURITY_ATTRIBUTES__
Function at 0x1002f7b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0
cdq
push 0
push edx
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1002f7f9
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x1002f7f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.MSVCR100.dll__errno]
mov esi, eax
call edi
mov dword [eax], esi
lea eax, [esi - 3]
cmp eax, 0x4d
ja case.0x1002f81a.4
movzx eax, byte [eax + 0x1002f87c]
jmp dword [eax*4 + 0x1002f868]
call edi
mov dword [eax], 0xc
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call edi
mov dword [eax], 0x11
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call edi
mov dword [eax], 0xd
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call edi
mov dword [eax], 2
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret