joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003b130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
mov ecx, dword [sym.ACE.dll_struct_HINSTANCE____ACE_OS::win32_resource_module_]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003b17e
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003b187
push ebx
sub eax, edx
push esi
lea ebx, [eax + 1]
test edi, edi
jne 0x1003b19f
mov edi, dword [sym.ACE.dll_char_const__const_ACE_Log_Msg::program_name_]
xor eax, eax
mov cl, byte [eax + str.SYSTEMCurrentControlSetServicesEventLogApplication_]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x1003b1a1
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003b1c0
sub eax, edx
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_strncat]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x108]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push 0
push str.TypesSupported
push ecx
mov dword [ebp - 0x218], 7
call esi
mov eax, dword [ebp - 0x210]
push ebx
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push str.EventMessageFile
push eax
call esi
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
mov dword [edx + 4], eax
neg eax
sbb eax, eax
pop esi
neg eax
pop ebx
xor ecx, ebp
dec eax
pop edi
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4
Function at 0x1003b2c0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.1009b8d0
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 0x18]
mov eax, edi
mov dword [ebp - 0x200c], ecx
mov esi, 0x1001
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003b2f0
sub eax, edx
inc eax
cmp eax, 0x1001
jae 0x1003b312
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003b306
sub eax, edx
lea esi, [eax + 1]
xor edx, edx
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x1003b34d
mov bl, 0xa
mov edi, edi
mov dl, byte [ecx + edi]
cmp dl, bl
jne 0x1003b33b
mov byte [ebp + eax - 0x2008], 0xd
mov byte [ebp + eax - 0x2007], bl
add eax, 2
jmp 0x1003b343
mov byte [ebp + eax - 0x2008], dl
inc eax
inc ecx
mov edx, eax
cmp ecx, esi
jb 0x1003b320
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
pop edi
dec eax
pop esi
mov byte [ebp + edx - 0x2008], 0
pop ebx
cmp eax, 0x3f
ja case.0x1003b368.3
movzx eax, byte [eax + 0x1003b3d8]
jmp dword [eax*4 + 0x1003b3cc]
mov eax, 4
jmp 0x1003b382
mov eax, 2
jmp 0x1003b382
mov eax, 1
push 0
lea edx, [ebp - 0x2010]
push edx
push 0
push 1
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 0x200c]
lea ecx, [ebp - 0x2008]
mov dword [ebp - 0x2010], ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
dec eax
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4

Function at 0x1003c030
Capabilities:
Move file

Disassembly:
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1003c0a0
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.0x1003c061.4
movzx edx, byte [eax + 0x1003c0b8]
jmp dword [edx*4 + 0x1003c0a4]
call edi
pop edi
mov dword [eax], 0xc
or eax, 0xffffffff
pop esi
ret
call edi
pop edi
mov dword [eax], 0x11
or eax, 0xffffffff
pop esi
ret
call edi
pop edi
mov dword [eax], 0xd
or eax, 0xffffffff
pop esi
ret
call edi
mov dword [eax], 2
pop edi
or eax, 0xffffffff
pop esi
ret
xor eax, eax
ret
Function at 0x1003cae0
Capabilities:
Access peb ldr_data
Get common file path
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c098
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_Event_Handler.0
mov eax, 1
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], vtable.ACE_Event_Handler::Reference_Counting_Policy.0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], vtable.ACE_Shared_Object.0
mov dword [ebp - 4], ebx
mov dword [esi], vtable.ACE_Logging_Strategy.0
mov dword [esi + 0x18], vtable.ACE_Logging_Strategy.1.0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov word [esi + 0x34], bx
mov byte [esi + 0x36], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0x258
mov dword [esi + 0x44], ebx
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
push 0x10115520
push 0x105
mov dword [esi + 0x48], eax
call fcn.1009ad0c
add esp, 8
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x1003cbac
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
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
push eax
push 0xfd
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1003cbca
call edi
test eax, eax
jne 0x1003cbd6
jmp 0x1003cc30
cmp eax, 0xfd
jg 0x1003cbd6
cmp eax, 0xffffffff
jne 0x1003cc30
call edi
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
cmp eax, ebx
je 0x1003cbe8
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.Logging_Strategy.cpp
mov dword [eax + 0x144], 0x100
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__
mov eax, dword [esi + 0x28]
add esp, 0xc
mov byte [eax], bl
mov eax, dword [esi + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x1003cc34
mov ecx, dword [str.logfile]
mov dword [eax], ecx
mov edx, dword [0x100a79b8]
mov dword [eax + 4], edx
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 0x1003d2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003d2b0
mov dword [eax], 0x1003d280
push 0x4c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x1003d2c7
mov ecx, eax
pop ebp
jmp sym.ACE.dll_public:_void___thiscall_ACE_Logging_Strategy::constructor_void_
xor eax, eax
pop ebp
ret
Function at 0x1003e170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x1003e2c8
cmp byte [edi + 0x49], 0
je 0x1003e2c8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x1003e2bc
lea esi, [ebp - 0x2c]
call fcn.1003df60
mov dword [ebp - 4], 0
mov ebx, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp eax, ebx
jae 0x1003e21b
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1003e220
dec eax
je 0x1003e224
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x1003e2c3
call fcn.1003d2d0
xor al, al
jmp 0x1003e2ca
mov eax, dword [ebp - 0x2c]
jmp 0x1003e1e5
mov byte [edi + 0x49], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ecx, ebx
jae 0x1003e233
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x1003e258
mov eax, edx
cmp ecx, ebx
jae 0x1003e243
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1003e2b4
cmp byte [edi + 0x49], 0
je 0x1003e2c0
test esi, esi
jne 0x1003e1d6
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, eax
cmp edx, 8
jbe 0x1003e2e5
lea esi, [eax + 8]
lea eax, [ebp - 0x2c]
call fcn.1003e370
test al, al
je 0x1003e1d6
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x1003e291
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], ebx
jae 0x1003e2ab
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x1003e1d6
lea esi, [ebp - 0x2c]
call fcn.1003d2d0
xor al, al
jmp 0x1003e2ca
lea esi, [ebp - 0x2c]
call fcn.1003d2d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x1003f730
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.ACE.dll_public:_int___thiscall_ACE_SOCK_Acceptor::accept_class_ACE_SOCK_Stream___class_ACE_Addr___class_ACE_Time_Value___bool__bool_const
Function at 0x1003f770
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c988
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, ecx
mov ecx, 2
mov edx, 0x10
mov edi, vtable.ACE_INET_Addr.0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
cmp ecx, ecx
jne 0x1003f7d0
mov eax, ecx
mov word [ebp - 0x20], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], edx
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x2c]
call edx
mov esi, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1003f805
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
mov dx, word [ebp - 0x1e]
rol dx, 8
movzx eax, dx
rol ax, 8
movzx eax, ax
mov word [ebx + 0x1a], ax
mov word [ebx + 0x36], ax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4
Function at 0x1003ff10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 ebx, ecx
cmp dword [ebp + 0x1c], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], esi
je 0x1003ffb4
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov esi, eax
mov eax, dword [esi]
lea ecx, [ebp + 0x1c]
push ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x8004667e
push eax
mov dword [ebp + 0x1c], 0
call ebx
cmp eax, 0xffffffff
jne 0x1003ff85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
call edi
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
push 0x8004667e
push ecx
mov dword [ebp + 0x1c], 0
call ebx
cmp eax, 0xffffffff
jne 0x1003ffac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call edi
mov dword [eax], ebx
mov edx, dword [ebp - 0x18]
mov dword [esi], edx
mov esi, dword [ebp - 0x10]
cmp byte [ebp + 0x20], 0
je 0x1003ffc5
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
cmp esi, edi
jne 0x1003fff4
test ecx, ecx
je 0x1003ffde
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
test ecx, ecx
je 0x10040000
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
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 0x1c

Function at 0x100406d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x101
lea eax, [ebp - 0x108]
push eax
mov esi, ecx
mov dword [ebp - 0x10c], 0x101
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x1004074a
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
jne 0x1004074a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp + 8]
push 0
push 1
lea eax, [ebp - 0x108]
push eax
push edi
lea ecx, [esi + 0xc]
call sym.ACE.dll_public:_int___thiscall_ACE_INET_Addr::set_unsigned_short_int__char_const__const__int__int_
push 0
push 1
push str.localhost
push edi
lea ecx, [esi + 0x28]
call sym.ACE.dll_public:_int___thiscall_ACE_INET_Addr::set_unsigned_short_int__char_const__const__int__int_
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4
Function at 0x10042120
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
call sym.ACE.dll_public:_int___thiscall_ACE_Mem_Map::unmap_int_
test eax, eax
jne 0x10042238
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, dword [ebp + 8]
push 0
push eax
mov dword [esi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1004215a
mov ecx, eax
jmp 0x1004216d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], edi
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov byte [ebp + 0x1b], 0
cmp edi, 0xffffffff
jne 0x10042191
sub ecx, dword [ebp + 0x1c]
js 0x10042189
cmp ecx, edi
seta al
test al, al
je 0x10042189
or ecx, edi
mov dword [esi + 0x10c], ecx
jmp 0x100421fe
mov eax, dword [ebp + 0x1c]
cdq
xor ebx, ebx
add edi, eax
adc ebx, edx
mov dword [ebp - 4], ebx
jne 0x100421a8
cmp edi, 0x7fffffff
jbe 0x100421b4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
lea edi, [ebx + edx]
cmp edi, ecx
jle 0x100421cc
mov ecx, esi
call sym.ACE.dll_public:_int___thiscall_ACE_Mem_Map::close_filemapping_handle_void_
mov al, 1
jmp 0x100421cf
mov al, byte [ebp + 0x1b]
mov dword [esi + 0x10c], ebx
test al, al
je 0x100421fe
xor eax, eax
test edi, edi
jle 0x100421e2
lea eax, [edi - 1]
push eax
mov eax, dword [esi + 0x110]
push 1
push 0x100a4a6b
push eax
call sym.ACE.dll_int___cdecl_ACE_OS::pwrite_void___void_const___unsigned_int__long_int_
add esp, 0x10
cmp eax, 0xffffffff
je 0x100421a8
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esi + 0x10c]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 0x110]
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x114]
call fcn.10041e90
xor edx, edx
add esp, 0x14
cmp eax, 0xffffffff
setne dl
mov dword [esi], eax
lea eax, [edx - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10044f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp byte [ebx + 0x140], 0
push esi
push edi
je 0x10044f82
mov eax, dword [ebx]
mov edx, dword [eax + 0x84]
push 1
call edx
jmp 0x10044f85
mov eax, dword [ebp + 8]
cmp dword [ebp + 8], 0
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jbe 0x1004513a
mov edi, dword [sym.imp.MSVCR100.dll__errno]
nop
mov eax, dword [ebx + 0x128]
push 2
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
dec ecx
push ecx
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10045026
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10045026
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
mov dword [eax], esi
lea eax, [esi - 3]
cmp eax, 0x4d
ja case.0x10044feb.4
movzx edx, byte [eax + 0x10045160]
jmp dword [edx*4 + 0x1004514c]
call edi
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x10045039
call edi
mov dword [eax], 0x11
or eax, 0xffffffff
jmp 0x10045039
call edi
mov dword [eax], 0xd
or eax, 0xffffffff
jmp 0x10045039
call edi
mov dword [eax], 2
or eax, 0xffffffff
jmp 0x10045039
mov eax, esi
test esi, esi
js 0x10045039
cmp esi, 0xffffffff
seta cl
test cl, cl
je 0x10045039
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp eax, 0xffffffff
je case.0x100450a5.4
mov eax, dword [ebx + 0x128]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0x100a4a6b
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004508a
cmp dword [ebp - 0x10], 0xffffffff
je case.0x100450a5.4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 8]
jb 0x10044fa0
inc dword [esi]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
mov dword [eax], esi
lea eax, [esi - 3]
cmp eax, 0x4d
ja case.0x100450a5.4
movzx edx, byte [eax + 0x100451c4]
jmp dword [edx*4 + 0x100451b0]
call edi
mov dword [eax], 0xc
jmp case.0x100450a5.4
call edi
mov dword [eax], 0x11
jmp case.0x100450a5.4
call edi
mov dword [eax], 0xd
jmp case.0x100450a5.4
call edi
mov dword [eax], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
mov eax, dword [eax]
test eax, eax
je 0x100450e4
mov esi, eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
add ebx, 0x148
push ebx
push str.__P_t___p_n
push 0x80
push eax
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.MMAP_Memory_Pool.cpp
mov dword [eax + 0x144], 0xf7
mov dword [eax + 0x148], 0xffffffff
mov dword [eax + 0x14c], esi
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0x10
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
inc dword [esi]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1004cc60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a16e6
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
push 0x101
lea edi, [esi + 0x24]
push edi
mov dword [ebp - 0x10], 0x101
call dword [sym.imp.WS2_32.dll_gethostname]
mov ebx, dword [sym.imp.MSVCR100.dll__errno]
test eax, eax
je 0x1004cccb
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
jne 0x1004cccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 8]
mov dword [esi + 0x128], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0x12c], ecx
mov al, byte [eax + 2]
test al, al
jne 0x1004cd9d
mov edi, dword [ebp + 8]
cmp edi, 2
jne 0x1004cd50
mov ecx, esi
call sym.ACE.dll_private:_int___thiscall_ACE_Naming_Context::local_void_
test eax, eax
jne 0x1004cd50
push 0x10115520
push 0x28
call fcn.1009ae46
add esp, 8
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1004cd33
movzx ecx, word [esi + 0x12c]
mov edx, dword [esi + 0x128]
push ecx
push edx
mov ecx, eax
call sym.ACE.dll_public:_void___thiscall_ACE_Remote_Name_Space::constructor_char_const___unsigned_short_int_
jmp 0x1004cd35
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], eax
test eax, eax
jne 0x1004cd9d
call ebx
mov dword [eax], 0xc
jmp 0x1004ce18
push 0x10115520
push 0x220
call fcn.1009ae46
add esp, 8
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], eax
je 0x1004cd84
mov dword [ebp - 4], 1
test eax, eax
je 0x1004cd33
mov ecx, dword [esi + 0x1c]
push ecx
push eax
mov ecx, edi
call fcn.1004e020
jmp 0x1004cd35
mov dword [ebp - 4], 2
test eax, eax
je 0x1004cd33
mov edx, dword [esi + 0x1c]
push edx
push eax
mov ecx, edi
call fcn.1004f370
jmp 0x1004cd35
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
cmp dword [eax], 0
jne 0x1004cdc3
cmp dword [esi + 0x20], 0
je 0x1004cdc3
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 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
mov eax, dword [eax]
test eax, eax
je 0x1004cdd5
mov esi, eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
push str.NAME_SPACE::NAME_SPACE_n
push 0x80
push eax
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.Naming_Context.cpp
mov dword [eax + 0x144], 0x73
mov dword [eax + 0x148], 0xffffffff
mov dword [eax + 0x14c], esi
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 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 8
Function at 0x1004da90
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.MSVCR100.dll__strdup]
push str.localhost
mov word [esi], 0
mov byte [esi + 2], 0
mov dword [esi + 4], 0x4e22
call edi
push str.localnames
mov dword [esi + 8], eax
mov dword [esi + 0x10], 0
call edi
push 0x105
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0x4000000
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 0xc
push eax
push 0x104
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004dafe
call edi
test eax, eax
jne 0x1004db0a
pop edi
mov eax, esi
pop esi
ret
cmp eax, 0x104
jg 0x1004db0a
cmp eax, 0xffffffff
jne 0x1004db86
call edi
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
test eax, eax
je 0x1004db1c
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.Naming_Context.cpp
mov dword [eax + 0x144], 0x1b7
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__
mov edx, dword [esi + 0xc]
add esp, 0xc
mov ecx, 0x100a88d8
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1004db67
mov edi, dword [esi + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004db75
mov ax, word [0x100a5fec]
mov word [edi], ax
pop edi
mov eax, esi
pop esi
ret