joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10059100
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d598
mov eax, dword fs:[0]
push eax
sub esp, 8
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 eax, dword [ecx + 0x3300]
lea edi, [ecx + 0x3300]
cmp eax, dword [sym.ACE.dll_unsigned_long_int_ACE_OS::NULL_key]
jne 0x100591c9
mov eax, dword [sym.ACE.dll_class_ACE_OS_Object_Manager__ACE_OS_Object_Manager::instance_]
mov ebx, dword [0x10115c84]
or esi, 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
test eax, eax
je 0x10059173
xor ecx, ecx
cmp dword [eax + 4], 2
setl cl
mov eax, ecx
test eax, eax
jne 0x10059173
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov edx, dword [sym.ACE.dll_unsigned_long_int_ACE_OS::NULL_key]
cmp dword [edi], edx
jne 0x100591b6
push 0x10058db0
push edi
call sym.ACE.dll_int___cdecl_ACE_OS::thr_keycreate_unsigned_long_int___void____cdecl___void___
add esp, 8
test eax, eax
je 0x100591b6
cmp esi, 0xffffffff
je 0x100591a2
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x100591c9
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1005927c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x10059208
call esi
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
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
push 0x10115520
push 0x88
call fcn.1009ae46
add esp, 8
test eax, eax
je 0x10059227
call fcn.10058860
mov esi, eax
jmp 0x10059229
xor esi, esi
test esi, esi
jne 0x1005924d
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
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
mov eax, dword [edi]
push esi
push eax
call sym.ACE.dll_int___cdecl_ACE_OS::thr_setspecific_unsigned_long_int__void__
add esp, 8
cmp eax, 0xffffffff
jne 0x1005927c
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
mov eax, esi
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 0x1005ab90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x1005ac09
push esi
push edi
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.0x1005abc6.4
movzx edx, byte [eax + 0x1005ac24]
jmp dword [edx*4 + 0x1005ac10]
call edi
pop edi
mov dword [eax], 0xc
or eax, 0xffffffff
pop esi
pop ebp
ret
call edi
pop edi
mov dword [eax], 0x11
or eax, 0xffffffff
pop esi
pop ebp
ret
call edi
pop edi
mov dword [eax], 0xd
or eax, 0xffffffff
pop esi
pop ebp
ret
call edi
mov dword [eax], 2
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1005ae80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 1
lea edi, [esp + 0x18]
call fcn.100588d0
mov dword [esp + 0x28], 0
mov ebx, dword [0x10115c98]
or word [esp + 0x18], 2
test ebx, ebx
je 0x1005af1d
mov edi, esi
call fcn.10059090
cmp dword [ebp + 0xc], 0
jne 0x1005aef7
mov ecx, dword [0x10115c98]
push esi
push ecx
call fcn.10058f40
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.10058a80
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.10058a80
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005bbc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov ecx, dword [ebp + 8]
push 0
push 1
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], 0
call sym.ACE.dll_int___cdecl_ACE_OS::argv_to_string_char____char____bool__bool_
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005bc77
push 0x44
lea edx, [ebp - 0x58]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1005bc77
mov eax, dword [ebp - 0x10]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.MSVCR100.dll__errno]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1005bc4a
call ebx
mov esi, eax
call edi
mov dword [eax], esi
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1005bc60
call ebx
mov esi, eax
call edi
mov dword [eax], esi
mov esi, dword [ebp - 0xc]
push 0
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x1005bce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
jne 0x1005bcf1
lea esi, [ebp - 4]
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
test edi, edi
je 0x1005bd31
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi]
push 0
lea edx, [ebp + 0x14]
push edx
mov eax, edi
sub eax, ecx
push eax
mov eax, dword [ebp + 8]
add ecx, ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005bd49
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x1005bd42
test eax, eax
je 0x1005bd42
add dword [esi], eax
cmp dword [esi], edi
jb 0x1005bd01
mov esi, dword [esi]
mov eax, bind
cmp esi, 0x7fffffff
ja 0x1005bd42
mov eax, esi
pop edi
pop esi
pop ebx
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.0x1005bd6a.4
movzx ecx, byte [eax + 0x1005bdd0]
jmp dword [ecx*4 + 0x1005bdbc]
call edi
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call edi
pop edi
pop esi
mov dword [eax], 0x11
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call edi
pop edi
pop esi
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call edi
mov dword [eax], 2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005be20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [sym.ACE.dll_class_ACE_OS_Object_Manager__ACE_OS_Object_Manager::instance_]
mov ecx, dword [sym.ACE.dll_void___ACE_OS_Object_Manager::preallocated_object]
push ebx
push esi
push edi
or edi, 0xffffffff
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x1005be5a
xor edx, edx
cmp dword [eax + 4], 2
setl dl
mov eax, edx
test eax, eax
jne 0x1005be5a
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov dword [esp + 0x20], 0
call ebx
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1005beb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1005beb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
cmp edi, 0xffffffff
je 0x1005beaa
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call ebx
cmp eax, 0xffffffff
jne 0x1005bed9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1005be8a
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005bf37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1005bf63
push 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1005bf63
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
call ebx
cmp eax, 0xffffffff
jne 0x1005bf7d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1005bf7d
call esi
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
cmp edi, 0xffffffff
je 0x1005bf73
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
cmp edi, 0xffffffff
je 0x1005bf91
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005bfa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [sym.ACE.dll_class_ACE_OS_Object_Manager__ACE_OS_Object_Manager::instance_]
push ebx
push esi
mov esi, dword [sym.ACE.dll_void___ACE_OS_Object_Manager::preallocated_object]
or ebx, 0xffffffff
push edi
mov dword [ebp - 0x10], esi
test eax, eax
je 0x1005bfd6
xor ecx, ecx
cmp dword [eax + 4], 2
setl cl
mov eax, ecx
test eax, eax
jne 0x1005bfd6
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov edi, dword [ebp + 8]
push 1
lea edx, [ebp - 4]
push edx
push 0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005c029
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1005c029
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
cmp ebx, 0xffffffff
je 0x1005c01f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
xor eax, eax
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1005c07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1005c010
push 1
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1005c010
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1005c0be
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1005c0be
call esi
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
cmp ebx, 0xffffffff
je 0x1005c0b4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x1005c0d0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005c3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
jne 0x1005c3d1
lea esi, [ebp - 4]
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
test edi, edi
je 0x1005c412
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi]
lea edx, [ecx + ebx]
push 0
mov eax, edi
sub eax, ecx
lea ecx, [ebp + 0x14]
push ecx
push eax
push edx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005c42a
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x1005c423
test eax, eax
je 0x1005c423
add dword [esi], eax
cmp dword [esi], edi
jb 0x1005c3e1
mov esi, dword [esi]
mov eax, bind
cmp esi, 0x7fffffff
ja 0x1005c423
mov eax, esi
pop edi
pop esi
pop ebx
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.0x1005c44b.4
movzx eax, byte [eax + 0x1005c4b0]
jmp dword [eax*4 + 0x1005c49c]
call edi
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call edi
pop edi
pop esi
mov dword [eax], 0x11
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call edi
pop edi
pop esi
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call edi
mov dword [eax], 2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1005c9e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x10115bd0]
xor ebx, ebx
mov dword [esi], vtable.ACE_Pagefile_Memory_Pool.0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
cmp ecx, ebx
jne 0x1005ca15
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov dword [0x10115bd0], ecx
lea eax, [ecx - 1]
not eax
and eax, ecx
mov dword [esi + 0x24], eax
add eax, 0xffff
and eax, 0xffff0000
mov dword [esi + 0xc], eax
lea eax, [esi + 0x28]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp eax, str.Default_ACE_Pagefile_Memory_Pool
je 0x1005ca61
push 0x103
push str.Default_ACE_Pagefile_Memory_Pool
push eax
mov byte [eax], bl
call dword [sym.imp.MSVCR100.dll_strncat]
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov byte [eax + 0x103], bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005cb80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x10115bd0]
xor ebx, ebx
push edi
mov dword [esi], vtable.ACE_Pagefile_Memory_Pool.0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
cmp ecx, ebx
jne 0x1005cbb6
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov dword [0x10115bd0], ecx
lea eax, [ecx - 1]
not eax
and eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
cmp ecx, ebx
je 0x1005cbd4
mov edx, dword [ecx]
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
mov eax, dword [ecx + 4]
jmp 0x1005cbe4
add eax, 0xffff
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
and eax, 0xffff0000
xor ecx, ecx
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
setne cl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp + 0xc], ecx
cmp eax, ebx
jne 0x1005cc06
mov eax, str.Default_ACE_Pagefile_Memory_Pool
lea edi, [esi + 0x28]
cmp edi, eax
je 0x1005cc25
mov byte [edi], bl
cmp eax, ebx
je 0x1005cc2b
push 0x103
push eax
push edi
call dword [sym.imp.MSVCR100.dll_strncat]
add esp, 0xc
jmp 0x1005cc2b
mov byte [edi + 0x103], bl
cmp dword [ebp + 0xc], ebx
je 0x1005cc58
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1005cc35
sub eax, edx
cmp eax, 0x104
jae 0x1005cc58
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1005cc46
mov dx, word [0x100a9178]
mov word [edi], dx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1005cc80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [0x10115bd0]
push edi
test ecx, ecx
jne 0x1005cca7
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov dword [0x10115bd0], ecx
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea eax, [ecx + edx - 1]
dec ecx
not ecx
and eax, ecx
mov dword [edi], eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 8], 0
cmp edx, dword [esi + 0x10]
ja 0x1005cccf
cmp dword [ecx + 0x14], eax
jae 0x1005ccf6
mov ecx, dword [ecx + 0x14]
xor edx, edx
cmp eax, ecx
jbe 0x1005ccdc
sub eax, ecx
mov edx, eax
push edx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call sym.ACE.dll_protected:_int___thiscall_ACE_Pagefile_Memory_Pool::map_int___unsigned_int_
test eax, eax
jns 0x1005ccf6
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x1c]
mov edx, dword [edi]
cmp dword [ecx + 0x14], edx
jb 0x1005ccec
mov eax, dword [esi + 8]
add eax, dword [ecx + 0x10]
add dword [ecx + 0x10], edx
mov edx, dword [edi]
mov ecx, dword [esi + 0x1c]
sub dword [ecx + 0x14], edx
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 0xc]
mov esi, dword [ecx + 8]
mov dword [edx], esi
mov esi, dword [ecx + 0xc]
mov dword [edx + 4], esi
mov esi, dword [ecx + 0x10]
mov dword [edx + 8], esi
mov ecx, dword [ecx + 0x14]
pop edi
mov dword [edx + 0xc], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1005cd40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push edi
mov esi, ecx
call sym.ACE.dll_protected:_int___thiscall_ACE_Pagefile_Memory_Pool::map_int___unsigned_int_
test eax, eax
jns 0x1005cd63
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi], 0
je 0x1005cd7f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call sym.ACE.dll_public:_void____thiscall_ACE_Pagefile_Memory_Pool::acquire_unsigned_int__unsigned_int__
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x10115bd0]
test ecx, ecx
jne 0x1005cd9c
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov dword [0x10115bd0], ecx
lea eax, [ecx - 1]
not eax
add ecx, 0x17
and eax, ecx
add eax, dword [esi + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1005f1a0
Capabilities:
Connect socket

Disassembly:
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1005f1c3
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x1005f200
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x800
lea ecx, [esi + 4]
xor eax, eax
push ebx
push ecx
mov dword [esi], 0xffffffff
mov word [esi + 0x1004], ax
mov byte [esi + 0x1006], bl
call sub.MSVCR100.dll_memset
push 0x800
lea edx, [esi + 0x804]
push ebx
push edx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0x18
push eax
push ecx
push edx
mov ecx, esi
call sym.ACE.dll_public:_int___thiscall_ACE_ICMP_Socket::open_class_ACE_Addr_const___int__int_
cmp eax, 0xffffffff
jne 0x1005f2bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
cmp eax, ebx
je 0x1005f271
mov edi, eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
push str.open
push str.ACE_Ping_Socket::ACE_Ping_Socket:__p_n
push 4
push eax
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.Ping_Socket.cpp
mov dword [eax + 0x144], 0x72
mov dword [eax + 0x148], ebx
mov dword [eax + 0x14c], edi
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
mov eax, dword [esi]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 0x1002
push 0xffff
push eax
mov dword [ebp + 0x10], 0x10000
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1005f30e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [sym.imp.MSVCR100.dll__errno]
mov ebx, eax
call edi
mov dword [eax], ebx
call edi
cmp dword [eax], 0x273d
je 0x1005f306
call edi
cmp dword [eax], 0x273a
jne 0x1005f30e
call edi
mov dword [eax], 0x81
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1005fbf0
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
jne 0x1005fc0f
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
pop edi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push esi
mov ecx, ebx
call edx
xor ecx, ecx
mov word [eax + 2], cx
cmp byte [ebp + 0xc], cl
je 0x1005fc69
cmp byte [edi + 0x1006], cl
jne 0x1005fc69
mov ecx, dword [ebx + 8]
mov edx, dword [edi]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1005fc62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 4
jne 0x1005fd00
mov byte [edi + 0x1006], 1
push 0x800
lea esi, [edi + 4]
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov word [esi], 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov word [esi + 4], ax
mov dx, word [edi + 0x1004]
mov word [esi + 6], dx
inc word [edi + 0x1004]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
push 0x40
xor eax, eax
push esi
mov ecx, edi
mov word [esi + 2], ax
call sym.ACE.dll_protected:_unsigned_short_int___thiscall_ACE_ICMP_Socket::calculate_checksum_unsigned_short_int___int_
mov word [esi + 2], ax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov edi, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, ebx
call eax
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push 0
push 0x40
push esi
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1005fcfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
pop esi
pop ebx
or eax, 0xffffffff
pop edi
pop ebp
ret 8
cmp eax, 0x40
je 0x1005fd0a
pop esi
pop ebx
or eax, 0xffffffff
pop edi
pop ebp
ret 8
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
ret 8