joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053750
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call sym.ACE.dll_protected:_struct_SC_HANDLE______thiscall_ACE_NT_Service::svc_sc_handle_void_
test eax, eax
jne 0x10053767
or eax, 0xffffffff
pop esi
pop ebp
ret 8
lea ecx, [esi + 0x64]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1005375f
mov edx, dword [ebp + 8]
push edx
push 1
mov ecx, esi
call sym.ACE.dll_protected:_void___thiscall_ACE_NT_Service::wait_for_service_state_unsigned_long_int__class_ACE_Time_Value__
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10053791
mov ecx, dword [esi + 0x68]
mov dword [eax], ecx
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x100537a0
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call sym.ACE.dll_protected:_struct_SC_HANDLE______thiscall_ACE_NT_Service::svc_sc_handle_void_
test eax, eax
jne 0x100537b7
or eax, 0xffffffff
pop esi
pop ebp
ret 8
lea ecx, [esi + 0x64]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100537af
mov edx, dword [ebp + 8]
push edx
push 7
mov ecx, esi
call sym.ACE.dll_protected:_void___thiscall_ACE_NT_Service::wait_for_service_state_unsigned_long_int__class_ACE_Time_Value__
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100537e1
mov ecx, dword [esi + 0x68]
mov dword [eax], ecx
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x100537f0
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call sym.ACE.dll_protected:_struct_SC_HANDLE______thiscall_ACE_NT_Service::svc_sc_handle_void_
test eax, eax
jne 0x10053807
or eax, 0xffffffff
pop esi
pop ebp
ret 8
lea ecx, [esi + 0x64]
push ecx
push 3
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100537ff
mov edx, dword [ebp + 8]
push edx
push 4
mov ecx, esi
call sym.ACE.dll_protected:_void___thiscall_ACE_NT_Service::wait_for_service_state_unsigned_long_int__class_ACE_Time_Value__
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10053831
mov ecx, dword [esi + 0x68]
mov dword [eax], ecx
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x10053860
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call sym.ACE.dll_protected:_struct_SC_HANDLE______thiscall_ACE_NT_Service::svc_sc_handle_void_
test eax, eax
jne 0x1005387a
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x6c]
lea edx, [edi + 0x64]
push edx
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10053870
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100538c6
push esi
mov esi, dword [edi + 0x7c]
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ecx
imul ecx, ecx, 0x3e8
sub esi, ecx
imul esi, esi, 0x3e8
cdq
mov dword [ebx + 8], esi
mov dword [ebx], eax
mov dword [ebx + 4], edx
pop esi
mov eax, dword [edi + 0x68]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], eax
pop ebx
mov dword [edi + 0x6c], edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x10053a50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
lea eax, [esp + 0x24]
push edi
mov esi, ecx
xor ebx, ebx
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 1
call fcn.10001c90
mov edi, dword [ebp + 0xc]
add esp, 4
cmp edi, ebx
je 0x10053ac3
mov eax, dword [edi]
add eax, dword [esp + 0x28]
mov ecx, dword [edi + 4]
adc ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
js 0x10053aa9
jg 0x10053aa4
cmp eax, 0x7fffffff
jbe 0x10053aa9
mov eax, bind
cdq
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 8]
add dword [esp + 0x30], edx
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call sym.ACE.dll_private:_void___thiscall_ACE_Time_Value::normalize_bool_
lea eax, [esi + 0x64]
push eax
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10053c07
lea esp, [esp]
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 0x68]
je 0x10053c07
cmp edi, ebx
je 0x10053b96
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push ebx
add esi, 0x2ac18000
push 0x989680
adc edi, 0xfe624e21
push edi
push esi
call fcn.1009b860
push 0
mov ebx, edx
push 0x989680
mov ecx, eax
cdq
push ebx
push ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
call fcn.1009b800
push 0
sub esi, eax
push 0xa
sbb edi, edx
push edi
push esi
call fcn.1009b860
push 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], eax
call sym.ACE.dll_private:_void___thiscall_ACE_Time_Value::normalize_bool_
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jg 0x10053bfb
mov edx, dword [esp + 0x40]
jl 0x10053b79
cmp edx, dword [esp + 0x28]
ja 0x10053bfb
cmp edx, dword [esp + 0x28]
jne 0x10053b8d
cmp eax, ecx
jne 0x10053b8d
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x48], eax
jg 0x10053bfb
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x10053bb0
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x78]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jmp 0x10053bcf
mov eax, dword [esi + 0x68]
cmp dword [esp + 0x14], eax
je 0x10053bc2
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x78]
jmp 0x10053bcb
mov eax, dword [esi + 0x78]
cmp eax, dword [esp + 0x10]
jbe 0x10053c07
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x80]
lea eax, [esi + 0x64]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10053ae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x89
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10055c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov word [ebp - 4], bx
mov byte [ebp - 2], bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10055d72
test al, 0x10
je 0x10055d72
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10055ca0
sub eax, edx
push edi
mov edi, eax
je 0x10055ce2
mov al, byte [edi + esi - 1]
cmp al, 0x2a
je 0x10055ce2
cmp al, 0x2f
je 0x10055cd1
cmp al, 0x5c
je 0x10055cd1
xor eax, eax
mov cl, byte [eax + 0x100a8eb4]
mov byte [ebp + eax - 4], cl
inc eax
cmp cl, bl
jne 0x10055cc0
jmp 0x10055ce2
xor eax, eax
mov cl, byte [eax + 0x100a8eb8]
mov byte [ebp + eax - 4], cl
inc eax
cmp cl, bl
jne 0x10055cd3
push 0x10115520
push 0x150
call fcn.1009ae46
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10055d21
lea eax, [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10055d00
sub eax, edx
lea eax, [eax + edi + 1]
push 0x10115520
push eax
call fcn.1009ad0c
add esp, 8
mov dword [esi], eax
cmp eax, ebx
jne 0x10055d36
call dword [sym.imp.MSVCR100.dll__errno]
pop edi
pop esi
mov dword [eax], 0xc
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, eax
jmp 0x10055d40
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x10055d40
cmp byte [ebp - 4], bl
je 0x10055d59
mov ecx, dword [esi]
lea eax, [ebp - 4]
call fcn.1002fdd0
pop edi
mov dword [esi + 0x14c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], 0xffffffff
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10055d80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x10055dab
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.MSVCR100.dll_free]
push eax
call edi
mov ecx, dword [esi + 8]
push ecx
call edi
add esp, 8
mov dword [esi + 8], 0
or edi, 0xffffffff
cmp dword [esi + 0x14c], 0
jne 0x10055dd3
mov eax, dword [esi]
lea edx, [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi + 4], eax
mov dword [esi + 0x14c], 1
jmp 0x10055df2
mov edx, dword [esi + 4]
lea ecx, [esi + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10055df2
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 4], edi
cmp dword [esi + 4], edi
je 0x10055e50
push 0xc
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esi + 8], edi
test edi, edi
je 0x10055e49
lea eax, [esi + 0x38]
push ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10055e12
sub eax, edx
inc eax
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov dword [edi + 8], eax
mov edx, dword [esi + 8]
mov edx, dword [edx + 8]
add esp, 4
lea ecx, [esi + 0x38]
pop ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10055e33
mov eax, dword [esi + 8]
mov ecx, 0xc
mov word [eax + 4], cx
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10056000
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], connect
test al, 1
je 0x1005601b
mov dword [ebp - 4], 0x40000000
jmp 0x10056026
test al, 2
je 0x10056026
mov dword [ebp - 4], 0xc0000000
mov ecx, eax
and ecx, 0x500
mov dword [ebp + 0xc], 3
cmp ecx, 0x500
jne 0x10056046
mov dword [ebp + 0xc], 1
jmp 0x1005607d
mov edx, eax
and edx, 0x300
cmp edx, 0x300
jne 0x1005605f
mov dword [ebp + 0xc], 2
jmp 0x1005607d
test eax, 0x100
je 0x1005606f
mov dword [ebp + 0xc], 4
jmp 0x1005607d
test eax, 0x200
je 0x1005607d
mov dword [ebp + 0xc], 5
push ebx
push esi
xor esi, esi
push edi
test al, 0x40
je 0x1005608b
mov esi, 0x4000100
test eax, eax
jns 0x10056095
or esi, 0x80000000
test eax, 0x40000000
je 0x100560a2
or esi, 0x40000000
test eax, 0x20000000
je 0x100560af
or esi, 0x20000000
test eax, 0x10000000
je 0x100560bc
or esi, 0x10000000
test eax, 0x8000000
je 0x100560c9
or esi, 0x8000000
test eax, 0x4000000
je 0x100560d6
or esi, 0x4000000
test eax, 0x2000000
je 0x100560e3
or esi, 0x2000000
test eax, 0x1000000
je 0x100560f0
or esi, 0x1000000
mov edi, eax
xor ebx, ebx
and edi, 8
je 0x10056106
mov ebx, dword [sym.ACE.dll_void___ACE_OS_Object_Manager::preallocated_object]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
movzx edx, word [ebp + 0x10]
push 0
push esi
push eax
mov eax, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
je 0x100561c2
mov dword [ebp + 0x10], 0
cmp esi, 0xffffffff
je 0x100561bb
push 2
lea edx, [ebp + 0x10]
push edx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100561bb
call edi
test eax, eax
je 0x100561bb
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
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.0x100561e4.4
movzx eax, byte [eax + 0x1005621c]
jmp dword [eax*4 + 0x10056208]
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], 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
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0xffffffff
jne 0x100561fd
call edi
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.0x100561e4.4
movzx ecx, byte [eax + 0x10056280]
jmp dword [ecx*4 + 0x1005626c]
call edi
pop edi
pop esi
mov dword [eax], 0x11
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100562d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], connect
test al, 1
je 0x100562eb
mov dword [ebp - 4], 0x40000000
jmp 0x100562f6
test al, 2
je 0x100562f6
mov dword [ebp - 4], 0xc0000000
mov ecx, eax
and ecx, 0x500
mov dword [ebp + 0xc], 3
cmp ecx, 0x500
jne 0x10056316
mov dword [ebp + 0xc], 1
jmp 0x1005634d
mov edx, eax
and edx, 0x300
cmp edx, 0x300
jne 0x1005632f
mov dword [ebp + 0xc], 2
jmp 0x1005634d
test eax, 0x100
je 0x1005633f
mov dword [ebp + 0xc], 4
jmp 0x1005634d
test eax, 0x200
je 0x1005634d
mov dword [ebp + 0xc], 5
push ebx
push esi
xor esi, esi
push edi
test al, 0x40
je 0x1005635b
mov esi, 0x4000100
test eax, eax
jns 0x10056365
or esi, 0x80000000
test eax, 0x40000000
je 0x10056372
or esi, 0x40000000
test eax, 0x20000000
je 0x1005637f
or esi, 0x20000000
test eax, 0x10000000
je 0x1005638c
or esi, 0x10000000
test eax, 0x8000000
je 0x10056399
or esi, 0x8000000
test eax, 0x4000000
je 0x100563a6
or esi, 0x4000000
test eax, 0x2000000
je 0x100563b3
or esi, 0x2000000
test eax, 0x1000000
je 0x100563c0
or esi, 0x1000000
mov edi, eax
xor ebx, ebx
and edi, 8
je 0x100563d6
mov ebx, dword [sym.ACE.dll_void___ACE_OS_Object_Manager::preallocated_object]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
movzx edx, word [ebp + 0x10]
push 0
push esi
push eax
mov eax, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
je 0x10056492
mov dword [ebp + 0x10], 0
cmp esi, 0xffffffff
je 0x1005648b
push 2
lea edx, [ebp + 0x10]
push edx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1005648b
call edi
test eax, eax
je 0x1005648b
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
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.0x100564b4.4
movzx eax, byte [eax + 0x100564ec]
jmp dword [eax*4 + 0x100564d8]
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], 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
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0xffffffff
jne 0x100564cd
call edi
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.0x100564b4.4
movzx ecx, byte [eax + 0x10056550]
jmp dword [ecx*4 + 0x1005653c]
call edi
pop edi
pop esi
mov dword [eax], 0x11
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10056d30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.1009b8d0
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x24
push esi
mov dword [ebp - 0x1010], esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x10056eca
push ebx
push edi
lea esi, [eax + 1]
push str._________._:______t_n_r
push esi
call dword [sym.imp.MSVCR100.dll_strcspn]
mov edi, eax
push edi
lea eax, [ebp - 0x1004]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strncpy]
lea ecx, [ebp - 0x1004]
mov byte [ebp + edi - 0x1004], 0
push ecx
inc edi
call dword [sym.imp.MSVCR100.dll_getenv]
mov ebx, eax
mov eax, dword [ebp - 0x1010]
add esp, 0x18
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10056db1
sub eax, esi
lea edx, [eax + 1]
test ebx, ebx
je 0x10056dd3
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10056dc6
sub eax, esi
sub eax, edi
add edx, eax
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1008], eax
cmp edx, 0x1000
jbe 0x10056e1a
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x1008], eax
test eax, eax
jne 0x10056e1a
call dword [sym.imp.MSVCR100.dll__errno]
pop edi
pop ebx
mov dword [eax], 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1010]
mov esi, dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x1008]
sub esi, eax
push esi
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
mov edx, dword [ebp - 0x1008]
add esp, 0xc
add esi, edx
test ebx, ebx
je 0x10056e5f
mov eax, esi
sub ebx, esi
lea ebx, [ebx]
mov cl, byte [ebx + eax]
mov byte [eax], cl
inc eax
test cl, cl
jne 0x10056e50
lea esi, [eax - 1]
jmp 0x10056e7c
mov edx, dword [ebp - 0x100c]
push edi
push edx
push esi
call dword [sym.imp.MSVCR100.dll_strncpy]
mov edx, dword [ebp - 0x1008]
add esp, 0xc
add esi, edi
mov byte [esi], 0
mov eax, dword [ebp - 0x100c]
add eax, edi
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x10056e86
lea ecx, [ebp - 0x1004]
cmp edx, ecx
jne 0x10056eb7
mov edx, ecx
push edx
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov eax, edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR100.dll__strdup]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.1009acfd
mov esp, ebp
pop ebp
ret
Function at 0x10057870
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0
push ecx
push 2
xor eax, eax
push edi
push 0
lea ecx, [eax + 2]
call fcn.10041e90
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
jne 0x100578a2
pop edi
or eax, eax
pop esi
pop ebp
ret
mov edx, dword [ebp + 8]
push ebx
push 0
push edi
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [sym.imp.MSVCR100.dll__errno]
cmp eax, 0xffffffff
jne 0x100578cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call ebx
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x100578cf
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x100578e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
mov dword [eax], esi
pop ebx
test edi, edi
jle 0x100578f0
mov eax, dword [ebp + 0x10]
add dword [eax], edi
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10057940
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push esi
mov esi, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x10057980
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
pop ebp
ret

Function at 0x10057a40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x10112018]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [sym.ACE.dll_int_ACE_OS::socket_initialized_], 0
jne 0x10057aa6
movzx ecx, byte [ebp + 0xc]
movzx edx, byte [ebp + 8]
shl cx, 8
lea eax, [esp]
push eax
or cx, dx
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10057a9c
push eax
push str.ACE_OS::socket_init__WSAStartup_failed__WSAGetLastError_returned__d_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call sym.ACE.dll_int___cdecl_ACE_OS::fprintf_struct__iobuf___char_const__
add esp, 0xc
mov dword [sym.ACE.dll_int_ACE_OS::socket_initialized_], 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor eax, eax
call fcn.1009acfd
mov esp, ebp
pop ebp
ret
Function at 0x10057b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 8
cmp edx, 1
jne 0x10057b3c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push 0
lea edx, [ebp + 0x10]
push edx
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10057b33
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
call fcn.1002a850
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
xor eax, eax
test edx, edx
jle 0x10057b56
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + eax*8]
test ecx, ecx
js 0x10057b83
inc eax
add esi, ecx
cmp eax, edx
jl 0x10057b45
push ebx
push 0x10115520
push esi
call fcn.1009ad0c
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x10057b8b
call dword [sym.imp.MSVCR100.dll__errno]
pop ebx
mov dword [eax], 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
push 0
lea edx, [ebp - 4]
push edx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10057baa
mov edi, dword [ebp - 4]
mov dword [ebp - 4], edi
jmp 0x10057bb4
call fcn.1002a850
mov dword [ebp - 4], eax
mov edi, eax
cmp edi, 0xffffffff
je 0x10057bf2
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x10057bef
test edi, edi
jle 0x10057bef
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + esi*8]
cmp edi, eax
jg 0x10057bd0
mov eax, edi
mov ecx, dword [ecx + esi*8 + 4]
push eax
push ebx
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + esi*8]
inc esi
add esp, 0xc
add ebx, eax
sub edi, eax
cmp esi, dword [ebp + 0x10]
jl 0x10057bc0
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10057c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
jle 0x10057c60
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov ecx, dword [edi + esi*8]
mov eax, dword [edi + esi*8 + 4]
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10057c6a
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je case.0x10057c8b.4
add dword [ebp - 4], eax
cmp eax, dword [edi + esi*8]
jb 0x10057c60
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x10057c30
mov eax, dword [ebp - 4]
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.0x10057c8b.4
movzx eax, byte [eax + 0x10057cdc]
jmp dword [eax*4 + 0x10057cc8]
call edi
mov dword [eax], 0xc
jmp case.0x10057c8b.4
call edi
mov dword [eax], 0x11
jmp case.0x10057c8b.4
call edi
mov dword [eax], 0xd
jmp case.0x10057c8b.4
call edi
mov dword [eax], 2
cmp dword [ebp - 4], 0
jg 0x10057c60
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret