joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039880
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x128
test eax, eax
jne 0x10039897
xor al, al
add esp, 0x128
ret
push ebx
push ebp
push 0
push 0xa
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1003991d
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10039916
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 0x13c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10039905
mov eax, dword [esp + 0x18]
mov bl, 1
push eax
push 0
push 0x1f0fff
call esi
test eax, eax
je 0x10039905
push 1
push eax
call edi
test eax, eax
setne bl
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100398d0
pop edi
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x10039ce0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x110]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x10], 0
and ecx, 3
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0x10051650
call esi
call fcn.10038140
test eax, eax
je 0x10039d6a
mov al, byte [esp + 0x120]
test al, al
je 0x10039d6a
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x10051660
call esi
lea edx, [esp + 0x10]
push edx
push 0x10051674
push ebx
push ebp
call fcn.1002d190
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x1003a6d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1003a6f7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1003a6ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x1003a700
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1003a73f
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003a76e
mov dword [ebp - 4], 0
push esi
call fcn.1003a6d0
push esi
call fcn.1003a370
add esp, 8
jmp 0x1003a767
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1003a82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1003a81a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x16]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1e]
and edx, 0xffff
push edx
push esi
push str._s._x_x_x_x_x
push 0x103
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
push 3
lea ecx, [ebp - 0x128]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
push 4
push 0
lea edx, [ebp - 0x128]
push edx
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003a890
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jle 0x1003a907
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1003a8fa
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0x100519ac
push ebx
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1003a90f
test ebx, ebx
je 0x1003a907
push ebx
call fcn.100463e2
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 8]
push edi
mov ecx, 0xd
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
pop edi
je 0x1003a907
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x18]
shr ecx, 0x10
mov dword [edx], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push ebx
mov dword [ecx], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x24]
shr edx, 0x10
mov dword [eax], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
and ecx, 0xffff
mov dword [edx], ecx
call fcn.100463e2
add esp, 4
mov eax, 1
pop esi
pop ebx
add esp, 8
ret

Function at 0x1003b0b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x1003b0fb
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
mov ecx, 2
cmp eax, ecx
jne 0x1003b127
mov eax, dword [esp + 0xc]
cmp eax, 5
jb 0x1003b127
jne 0x1003b127
cmp dword [esp + 0x10], ecx
jae 0x1003b127
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
Function at 0x1003c220
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003c258
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x1003c260
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2808
call fcn.100465c0
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [edx]
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x2800
push eax
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2828]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
test ebp, ebp
jne 0x1003c2f0
mov esi, dword [esp + 0x281c]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
test eax, eax
jbe 0x1003c2c9
cmp eax, ecx
jbe 0x1003c2cb
mov dword [esi], ecx
mov eax, dword [esi]
test eax, eax
jbe 0x1003c2f0
mov edi, dword [esp + 0x2818]
dec eax
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esi]
add esp, 0xc
mov byte [ecx + edi - 1], 0
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x2808
ret 0xc

Function at 0x1003c320
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [ecx]
lea edx, [esp + 8]
push 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1003c350
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [edx]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x1003ef50
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret
Function at 0x1003f5f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
call dword [eax + 0x1c]
test eax, eax
jne 0x1003f6c7
cmp dword [esi + 0x10], 0xffffffff
je 0x1003f6c7
mov ecx, dword [esi + 8]
push ebx
mov dword [esi + 0x54], edi
call fcn.100441a0
mov ecx, dword [esi + 8]
mov ebx, eax
call fcn.10043df0
mov ecx, dword [esi + 8]
add ebx, eax
mov dword [esp + 0x18], ebx
call fcn.10043df0
mov ecx, dword [esi + 8]
mov ebx, eax
call fcn.10043cf0
sub eax, ebx
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], eax
push edi
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
mov edx, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, edi
mov dword [esi + 0x50], eax
je 0x1003f696
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 8]
push edx
call fcn.10043e70
mov eax, dword [esi + 0x24]
push eax
call ebx
cmp dword [esi + 0x50], edi
jne 0x1003f6bc
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x3e5
je 0x1003f6bc
mov dword [esi + 0xc], 1
call edi
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x54], eax
push ecx
call ebx
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
add esp, 0x10
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
Function at 0x1003f820
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 0
mov eax, dword [esi]
call dword [eax + 0x1c]
test eax, eax
jne 0x1003f935
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x1003f935
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea edi, [esi + 0x14]
mov dword [esp + 0x10], edx
push 0
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x20]
push 1
push ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x1003f899
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1003f8c4
mov edx, dword [esi + 0x24]
mov dword [esp + 8], 0xfffffffe
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1003f8fc
cmp eax, 0x102
jne 0x1003f91f
mov edx, dword [esi + 0x24]
mov dword [esp + 8], 0xfffffffc
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x1003f91f
mov dword [esp + 8], 0xfffffffd
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0xc
Function at 0x1003f940
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], 0
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1003fa53
test ecx, ecx
jbe 0x1003fa53
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x1003fa53
test eax, eax
je 0x1003fa53
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x1003f99f
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret 0xc
lea edi, [esi + 0x28]
push 0
push edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 1
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1003fa24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1003f9dd
mov dword [esi + 0xc], 1
mov dword [esp + 8], 0xfffffffe
jmp 0x1003fa24
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1003fa01
cmp eax, 0x102
jne 0x1003fa24
mov dword [esp + 8], 0xfffffffc
jmp 0x1003fa24
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x1003fa24
mov dword [esp + 8], 0xfffffffd
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x1003fa49
mov edi, dword [esi + 0x48]
mov eax, ecx
cdq
add edi, eax
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x4c]
adc eax, edx
mov dword [esi + 0x4c], eax
pop edi
mov eax, ecx
pop esi
add esp, 0x10
ret 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0xc

Function at 0x10040630
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
lea eax, [esp + 0x9c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0xb4], 1
je 0x100406ca
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
pop edi
jne 0x10040693
lea edx, [esp + 4]
mov dword [esp + 4], 0x94
push edx
call esi
mov eax, 1
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x100406ca
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x100406ca
jne 0x100406ca
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x100406ca
cmp word [esp + 0x98], cx
jae 0x100406ca
mov eax, 1
pop esi
add esp, 0xc0
ret
xor eax, eax
pop esi
add esp, 0xc0
ret
Function at 0x10042940
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x10047a14
call fcn.10042ad0
lea ecx, [esi + 0x94]
call fcn.10045320
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [esi], 0x100475f4
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x100429d4
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100429d4
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x100429d4
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x100429d4
cmp esi, ebx
je 0x100429d4
mov ecx, esi
call fcn.1000d1e0
push esi
call fcn.100463e2
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x100429e7
push eax
call edi
mov dword [esi + 0x90], ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10042a00
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
push edi
push 0x10052a48
lea edi, [esi + 0x94]
push eax
mov ecx, edi
call fcn.10044a30
lea ebx, [esi + 0xe]
mov ecx, edi
push ebx
mov dword [esi + 0x520], eax
call fcn.10044900
mov al, byte [esi + 0xc]
test al, al
jne 0x10042a9d
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push 0
push esi
push 0x10001380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], eax
test eax, eax
mov dword [esi + 4], edx
jne 0x10042aae
push eax
call fcn.10024ef0
add esp, 4
lea ecx, [esp + 0xc]
push eax
push ebx
push str._comm__create_thread__s__failed:__s
push 0x1004c140
call fcn.10024c50
push eax
call fcn.10024c60
mov ecx, dword [esi + 0x520]
add esp, 0x10
xor eax, eax
test ecx, ecx
pop edi
pop esi
setg al
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0x90]
test eax, eax
je 0x10042aae
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x520]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setg al
pop ebx
pop ecx
ret 4
Function at 0x100449d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10044a2a
xor ecx, ecx
lea edx, [esp + 4]
mov dword [esp + 0xa], ecx
push edx
mov dword [esp + 0x12], ecx
mov word [esp + 0xc], 0
mov dword [esp + 0x16], ecx
mov dword [esp + 8], 0x10
mov word [esp + 0x1a], cx
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10044a2a
mov edx, dword [esp + 0xa]
push edx
call dword [sym.imp.WS2_32.dll_htons]
and eax, 0xffff
mov dword [esi + 0x88], eax
pop esi
add esp, 0x14
ret

Function at 0x10044bd4
Capabilities:
Connect socket

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi], 0xffffffff
jne 0x10044bec
call fcn.10044930
cmp eax, 0xffffffff
je 0x10044c92
push 0
mov ecx, esi
call fcn.100449a0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.100335a0
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x12], edx
add esp, 8
mov dword [esp + 0xe], edx
mov word [esp + 8], 0
mov dword [esp + 0x12], edx
test eax, eax
mov word [esp + 0x16], dx
jne 0x10044c2e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 8]
push ecx
push eax
push edx
call fcn.10044850
mov ecx, dword [esi]
add esp, 0xc
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x10044c60
mov ecx, esi
call fcn.100449d0
mov bl, 1
jmp 0x10044c66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10044c92
mov al, byte [ecx - 1]
test al, al
je 0x10044c88
cmp al, 0xff
je 0x10044c88
dec al
pop esi
mov byte [ecx - 1], al
mov al, bl
pop ebx
add esp, 0x20
ret 8
dec ecx
push ecx
call fcn.100463e2
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x20
ret 8
Function at 0x10044ca0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, ecx
cmp dword [ebp], 0xffffffff
jne 0x10044cc4
mov eax, dword [ebp + 0x88]
add ebp, 5
push eax
push ebp
push str._comm__Socket__s:_d_::send_error:_Invalid_Socket.
push 0x10052e90
lea ecx, [esp + 0x18]
jmp 0x10044ce5
mov eax, dword [esp + 8]
test eax, eax
jne 0x10044cfa
mov ecx, dword [ebp + 0x88]
add ebp, 5
push ecx
push ebp
push str._comm__Socket__s:_d_::send_error:_NULL_buffer.
push 0x10052ecc
lea ecx, [esp + 0x18]
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x10
or eax, 0xffffffff
pop ebp
ret 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
xor esi, esi
test edi, edi
jbe 0x10044d6f
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp]
push 0
push edi
lea eax, [ebx + edx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
je 0x10044d36
test esi, esi
je 0x10044d31
sub edi, esi
add ebx, esi
test edi, edi
ja 0x10044d09
cmp esi, 0xffffffff
jne 0x10044d6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10024ef0
mov edx, dword [ebp + 0x88]
add esp, 4
add ebp, 5
lea ecx, [esp + 0x14]
push eax
push edx
push ebp
push str._comm__Socket__s:_d_::send_error:__s.
push 0x10052f04
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x14
test edi, edi
mov eax, ebx
je 0x10044d75
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10045030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x10045055
mov eax, dword [edi + 0x88]
add edi, 5
push eax
push edi
push str._comm__Socket__s:_d_::recv_error:_Invalid_Socket.
push 0x10052fdc
lea ecx, [esp + 0x1c]
jmp 0x10045076
mov edx, dword [esp + 8]
test edx, edx
jne 0x1004508b
mov ecx, dword [edi + 0x88]
add edi, 5
push ecx
push edi
push str._comm__Socket__s:_d_::recv_error:_NULL_buffer.
push 0x10053018
lea ecx, [esp + 0x1c]
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x10
or eax, 0xffffffff
pop edi
ret 0xc
mov cl, byte [edi + 4]
push ebx
test cl, cl
push esi
je 0x100450b0
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov ecx, ebx
jg 0x100450a3
mov ecx, 1
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x100450dc
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x10
test ebx, ebx
mov ecx, ebx
jg 0x100450c7
mov ecx, 1
lea esi, [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10045122
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10024ef0
mov edx, dword [edi + 0x88]
add esp, 4
add edi, 5
lea ecx, [esp + 0x14]
push eax
push edx
push edi
push str._comm__Socket__s:_d_::recv_error:__s.
push 0x10053050
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x14
mov eax, esi
pop esi
pop ebx
pop edi
ret 0xc
test esi, esi
jne 0x10045151
test ebx, ebx
jle 0x10045151
mov eax, dword [edi + 0x88]
add edi, 5
push eax
push edi
push str._comm__Socket__s:_d_::recv_info:_The_connection_has_been_gracefully_closed.
push 0x10053080
lea ecx, [esp + 0x24]
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x10
mov eax, esi
pop esi
pop ebx
pop edi
ret 0xc
Function at 0x10045160
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx], 0xffffffff
jne 0x10045184
mov eax, dword [ebx + 0x88]
add ebx, 5
push eax
push ebx
push str._comm__Socket__s:_d_::recv_all_error:_Invalid_Socket.
push 0x100530d4
lea ecx, [esp + 0x1c]
jmp 0x100451a5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x100451bb
mov ecx, dword [ebx + 0x88]
add ebx, 5
push ecx
push ebx
push str._comm__Socket__s:_d_::recv_all_error:_NULL_buffer.
push 0x10053114
lea ecx, [esp + 0x1c]
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x10
or eax, 0xffffffff
pop ebx
pop ecx
ret 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
xor esi, esi
test ebp, ebp
mov dword [esp + 0x10], 0x10
jle 0x10045262
jmp 0x100451dc
mov eax, dword [esp + 0x18]
mov cl, byte [ebx + 4]
test cl, cl
je 0x100451f8
mov ecx, dword [ebx]
mov edx, ebp
sub edx, esi
push 0
add eax, esi
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x10045215
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
mov edx, ebp
push ecx
mov ecx, dword [ebx]
sub edx, esi
push 0
add eax, esi
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
je 0x10045226
cmp edi, 0xffffffff
je 0x1004522b
add esi, edi
cmp esi, ebp
jl 0x100451d8
cmp edi, 0xffffffff
jne 0x10045262
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10024ef0
mov edx, dword [ebx + 0x88]
add esp, 4
add ebx, 5
lea ecx, [esp + 0x18]
push eax
push edx
push ebx
push str._comm__Socket__s:_d_::recv_all_error:__s.
push 0x10053150
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x14
cmp esi, ebp
mov eax, esi
je 0x1004526a
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc