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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call sym.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x5006c244
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [sym.rtl120.bpl__Rtlconsts__SRegGetDataFailed]
mov dl, 1
mov eax, dword [sym.rtl120.bpl__Registry_ERegistryException_]
call sym.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRecpx14System_TVarRecxi
call sym.rtl120.bpl__System__RaiseExcept_qqrv
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.5006b144
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5006c81c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5006c933
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call sym.rtl120.bpl__Registry_TRegistry_SetCurrentKey_qqrp6HKEY__
xor eax, eax
push ebp
push 0x5006c90e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call sym.rtl120.bpl__Registry_TRegistry_GetKeyInfo_qqrr20Registry_TRegKeyInfo
test al, al
je 0x5006c8f2
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.5006c6fc
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call sym.rtl120.bpl__System__UStrFromPWCharLen_qqrr20System_UnicodeStringpbi
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x5006c8f2
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
test eax, eax
jne 0x5006c8ee
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, eax
lea eax, [ebp - 0x30]
call sym.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.5006c6fc
pop ecx
inc edi
dec ebx
jne 0x5006c8a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5006c915
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call sym.rtl120.bpl__Registry_TRegistry_SetCurrentKey_qqrp6HKEY__
ret
Function at 0x50076878
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x50076901
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x500a904c
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x500768eb
lea edx, [ebp - 0x1c]
mov eax, ebx
call sym.rtl120.bpl__Sysutils_SysErrorMessage_qqrui
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x5007691c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [sym.rtl120.bpl__Rtlconsts__sWindowsSocketError]
mov dl, 1
mov eax, dword [sym.rtl120.bpl__Scktcomp_ESocketError_]
call sym.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRecpx14System_TVarRecxi
call sym.rtl120.bpl__System__RaiseExcept_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50076908
lea eax, [ebp - 0x1c]
call sym.rtl120.bpl__System__UStrClr_qqrpv
ret

Function at 0x50076fac
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x50077008]
cmp al, byte [ebx + 0x28]
je 0x50076fd0
mov esi, 0x401
mov eax, ebx
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_GetHandle_qqrv
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x50077008]
cmp al, byte [ebx + 0x28]
jne 0x50077000
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x500770a0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_DoSetAsyncStyles_qqrv
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call sym.rtl120.bpl__System__CallDynaInst_qqrv
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x50077108
call fcn.500767c0
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x500770f6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call sym.rtl120.bpl__System__CallDynaInst_qqrv
pop esi
pop ebx
ret
Function at 0x50077134
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Lock_qqrv
xor eax, eax
push ebp
push 0x500771b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call sym.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x5007716f
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x500771bc
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x5007719f
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call sym.rtl120.bpl__System__UStrFromPChar_qqrr20System_UnicodeStringpc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500771bc
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Unlock_qqrv
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x500771c4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Lock_qqrv
xor eax, eax
push ebp
push 0x5007723f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call sym.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x50077202
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x50077246
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x50077229
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call sym.rtl120.bpl__System__UStrFromArray_qqrr20System_UnicodeStringpci
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50077246
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Unlock_qqrv
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5007724c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Lock_qqrv
xor eax, eax
push ebp
push 0x500772c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x50077282
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x500772ce
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x500772b1
movzx eax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500772ce
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Unlock_qqrv
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x50077594
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x50077620
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
mov ecx, 0
call sym.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0xc]
call sym.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call sym.rtl120.bpl__System__FillChar_qqrpvib
test ebx, ebx
je 0x50077604
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [ebp - 8], cl
movzx ecx, byte [edx + 1]
mov byte [ebp - 7], cl
movzx ecx, byte [edx + 2]
mov byte [ebp - 6], cl
movzx eax, byte [edx + 3]
mov byte [ebp - 5], al
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50077627
lea eax, [ebp - 0xc]
call sym.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x50077784
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x500777b5
mov ecx, dword [sym.rtl120.bpl__Rtlconsts__sCannotListenOnOpen]
mov dl, 1
mov eax, dword [sym.rtl120.bpl__Scktcomp_ESocketError_]
call sym.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRec
call sym.rtl120.bpl__System__RaiseExcept_qqrv
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x500777e2
mov ecx, dword [sym.rtl120.bpl__Rtlconsts__sCannotCreateSocket]
mov dl, 1
mov eax, dword [sym.rtl120.bpl__Scktcomp_ESocketError_]
call sym.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRec
call sym.rtl120.bpl__System__RaiseExcept_qqrv
xor eax, eax
push ebp
push 0x50077863
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call sym.rtl120.bpl__System__CallDynaInst_qqrv
cmp byte [ebp + 8], 0
je 0x5007783d
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_InitSocket_qqrx20System_UnicodeStringt1t1uso
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_DoListen_qqri
jmp 0x50077859
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_AsyncInitSocket_qqrx20System_UnicodeStringt1t1usio
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50077880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5007788c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x500778bd
mov ecx, dword [sym.rtl120.bpl__Rtlconsts__sSocketAlreadyOpen]
mov dl, 1
mov eax, dword [sym.rtl120.bpl__Scktcomp_ESocketError_]
call sym.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRec
call sym.rtl120.bpl__System__RaiseExcept_qqrv
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x500778ea
mov ecx, dword [sym.rtl120.bpl__Rtlconsts__sCannotCreateSocket]
mov dl, 1
mov eax, dword [sym.rtl120.bpl__Scktcomp_ESocketError_]
call sym.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRec
call sym.rtl120.bpl__System__RaiseExcept_qqrv
xor eax, eax
push ebp
push 0x50077966
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call sym.rtl120.bpl__System__CallDynaInst_qqrv
cmp byte [ebp + 8], 0
je 0x50077942
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_InitSocket_qqrx20System_UnicodeStringt1t1uso
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_DoOpen_qqrv
jmp 0x5007795c
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_AsyncInitSocket_qqrx20System_UnicodeStringt1t1usio
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50077983
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50077bf8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Lock_qqrv
xor eax, eax
push ebp
push 0x50077d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x50077d55
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x50077c44
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x50077c4e
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x50077d72
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sym.rtl120.bpl__Classes_TStream_GetPosition_qqrv
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x50077d4a
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x50077cfd
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x50077cea
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call sym.rtl120.bpl__System__CallDynaInst_qqrv
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.50077bb0
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x50077d80]
cmp dl, byte [eax + 0x28]
je 0x50077d51
call sym.rtl120.bpl__Sysutils_Abort_qqrv
jmp 0x50077d51
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sym.rtl120.bpl__Classes_TStream_SetPosition_qqrxj
jmp 0x50077d51
cmp edi, ebx
jge 0x50077d19
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sym.rtl120.bpl__Classes_TStream_SetPosition_qqrxj
jmp 0x50077c4e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sym.rtl120.bpl__Classes_TStream_GetPosition_qqrv
cmp edx, dword [esp + 4]
jne 0x50077d39
cmp eax, dword [esp]
pop edx
pop eax
jne 0x50077c4e
push ebp
call fcn.50077bb0
pop ecx
jmp 0x50077d51
push ebp
call fcn.50077bb0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50077d72
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Unlock_qqrv
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50077db4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50077ed6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Lock_qqrv
xor eax, eax
push ebp
push 0x50077eb9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x50077e04
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x50077ec0
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x50077ea3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x50077ea3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call sym.rtl120.bpl__System__CallDynaInst_qqrv
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x50077ea3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call sym.rtl120.bpl__Sysutils_SysErrorMessage_qqrui
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x50077ef4
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [sym.rtl120.bpl__Rtlconsts__sWindowsSocketError]
mov dl, 1
mov eax, dword [sym.rtl120.bpl__Scktcomp_ESocketError_]
call sym.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRecpx14System_TVarRecxi
call sym.rtl120.bpl__System__RaiseExcept_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50077ec0
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Unlock_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50077edd
lea eax, [ebp - 0x28]
call sym.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x50077f44
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x500780b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Lock_qqrv
xor eax, eax
push ebp
push 0x50078098
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x50077fa9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x50077fa9
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x50078082
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x50077fbc
call sym.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x5007809f
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x50077fe3
cmp dword [ebp - 0x10], 0
jle 0x50077fe3
cmp ebx, dword [ebp - 0x10]
jle 0x50077fe3
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x50078082
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x50078082
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call sym.rtl120.bpl__System__CallDynaInst_qqrv
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x50078082
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call sym.rtl120.bpl__Sysutils_SysErrorMessage_qqrui
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x500780d4
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [sym.rtl120.bpl__Rtlconsts__sWindowsSocketError]
mov dl, 1
mov eax, dword [sym.rtl120.bpl__Scktcomp_ESocketError_]
call sym.rtl120.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRecpx14System_TVarRecxi
call sym.rtl120.bpl__System__RaiseExcept_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5007809f
mov eax, dword [ebp - 4]
call sym.rtl120.bpl__Scktcomp_TCustomWinSocket_Unlock_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500780bc
lea eax, [ebp - 0x2c]
call sym.rtl120.bpl__System__UStrClr_qqrpv
ret