joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea210
Capabilities:
Hash data using sha1
Hash data using sha224
Hash data using sha256

Disassembly:
mov edx, ecx
mov eax, dword [edx + 8]
cmp eax, 0x100
jg 0x4ea2ac
je 0x4ea265
sub eax, 0xa0
je 0x4ea233
sub eax, 0x40
je 0x4ea36c
ret
mov dword [edx + 0xc], 0x67452301
mov dword [edx + 0x10], 0xefcdab89
mov dword [edx + 0x14], 0x98badcfe
mov dword [edx + 0x18], 0x10325476
mov dword [edx + 0x1c], 0xc3d2e1f0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
ret
mov dword [edx + 0xc], 0x6a09e667
mov dword [edx + 0x10], 0xbb67ae85
mov dword [edx + 0x14], 0x3c6ef372
mov dword [edx + 0x18], 0xa54ff53a
mov dword [edx + 0x1c], 0x510e527f
mov dword [edx + 0x20], 0x9b05688c
mov dword [edx + 0x24], 0x1f83d9ab
mov dword [edx + 0x28], 0x5be0cd19
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
ret
cmp eax, 0x180
je 0x4ea3b3
cmp eax, 0x200
jne 0x4ea45d
mov eax, dword [0x690f10]
mov ecx, dword [0x690f14]
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], ecx
mov eax, dword [0x690f18]
mov ecx, dword [0x690f1c]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov eax, dword [0x690f20]
mov ecx, dword [0x690f24]
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], ecx
mov eax, dword [0x690f28]
mov ecx, dword [0x690f2c]
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], ecx
mov eax, dword [0x690f30]
mov ecx, dword [0x690f34]
mov dword [edx + 0x58], eax
mov dword [edx + 0x5c], ecx
mov eax, dword [0x690f38]
mov ecx, dword [0x690f3c]
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], ecx
mov eax, dword [0x690f40]
mov ecx, dword [0x690f44]
mov dword [edx + 0x68], eax
mov dword [edx + 0x6c], ecx
mov eax, dword [0x690f48]
mov ecx, dword [0x690f4c]
mov dword [edx + 0x70], eax
mov dword [edx + 0x74], ecx
mov dword [edx + 0x78], 0
mov dword [edx + 0x7c], 0
mov dword [edx + 0x80], 0
mov dword [edx + 0x84], 0
mov dword [edx + 0xc], 0xc1059ed8
mov dword [edx + 0x10], 0x367cd507
mov dword [edx + 0x14], 0x3070dd17
mov dword [edx + 0x18], 0xf70e5939
mov dword [edx + 0x1c], 0xffc00b31
mov dword [edx + 0x20], 0x68581511
mov dword [edx + 0x24], 0x64f98fa7
mov dword [edx + 0x28], 0xbefa4fa4
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
ret
mov eax, dword [0x690c50]
mov ecx, dword [0x690c54]
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], ecx
mov eax, dword [0x690c58]
mov ecx, dword [0x690c5c]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov eax, dword [0x690c60]
mov ecx, dword [0x690c64]
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], ecx
mov eax, dword [0x690c68]
mov ecx, dword [0x690c6c]
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], ecx
mov eax, dword [0x690c70]
mov ecx, dword [0x690c74]
mov dword [edx + 0x58], eax
mov dword [edx + 0x5c], ecx
mov eax, dword [0x690c78]
mov ecx, dword [0x690c7c]
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], ecx
mov eax, dword [0x690c80]
mov ecx, dword [0x690c84]
mov dword [edx + 0x68], eax
mov dword [edx + 0x6c], ecx
mov eax, dword [0x690c88]
mov ecx, dword [0x690c8c]
mov dword [edx + 0x70], eax
mov dword [edx + 0x74], ecx
mov dword [edx + 0x78], 0
mov dword [edx + 0x7c], 0
mov dword [edx + 0x80], 0
mov dword [edx + 0x84], 0
ret
Function at 0x4ec020
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x154], ebx
xor esi, esi
lea edx, [ebx + 0x88]
movzx ecx, byte [edx]
lea edx, [edx + 4]
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jl 0x4ec046
lea eax, [ebp - 0x13c]
mov edx, 0x40
nop
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x4ec080
mov eax, dword [ebx + 0xc]
mov ecx, eax
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], edx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x14c], eax
mov edx, ecx
mov eax, esi
and eax, edi
rol edx, 5
mov ecx, edi
not ecx
and ecx, ebx
or ecx, eax
mov eax, dword [ebp - 0x148]
add edx, ecx
add edx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x14c]
add eax, 0x5a827999
mov dword [ebp - 0x14c], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 0x148]
mov esi, edi
mov edi, dword [ebp - 0x150]
inc eax
ror esi, 2
mov ecx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], eax
cmp eax, 0x14
jl 0x4ec0c8
mov dword [ebp - 0x148], 0x14
nop dword [eax]
mov eax, ebx
rol edx, 5
xor eax, esi
xor eax, edi
add edx, eax
mov eax, dword [ebp - 0x148]
add edx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x14c]
add eax, 0x6ed9eba1
mov dword [ebp - 0x14c], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 0x148]
mov esi, edi
inc eax
ror esi, 2
mov dword [ebp - 0x148], eax
mov edi, ecx
mov ecx, edx
cmp eax, 0x28
jl 0x4ec130
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], 0x28
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 0x148]
add edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0x150]
add ecx, dword [ebp + eax*4 - 0x144]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], eax
cmp eax, 0x3c
jl 0x4ec188
mov dword [ebp - 0x148], 0x3c
mov ecx, dword [ebp - 0x148]
mov eax, ebx
xor eax, esi
rol edx, 5
add edx, dword [ebp - 0x14c]
xor eax, edi
add eax, 0xca62c1d6
mov dword [ebp - 0x14c], ebx
add eax, dword [ebp + ecx*4 - 0x144]
mov ebx, esi
add edx, eax
mov esi, edi
mov edi, dword [ebp - 0x150]
mov eax, ecx
inc eax
ror esi, 2
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], eax
cmp eax, 0x50
jl 0x4ec1e1
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
add eax, edx
add dword [ecx + 0x10], edi
add dword [ecx + 0x14], esi
add dword [ecx + 0x18], ebx
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x14c]
add dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
Function at 0x4f7fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx edx, byte [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edx*8 - 1]
mov byte [edi + edx*8 + 0xcf], 0
lea esi, [edi + 8]
movzx eax, byte [edi + 0x198]
mov byte [eax + edi + 0xd0], 6
or byte [edi + edx*8 + 0xcf], 0x80
mov al, byte [edi + 0x198]
inc al
movzx ecx, al
cmp ecx, ebx
jge 0x4f8041
nop dword [eax]
nop dword [eax + eax]
inc al
mov byte [ecx + edi + 0xd0], 0
movzx ecx, al
cmp ecx, ebx
jl 0x4f8030
cmp byte [ebp + 0xc], 0
jbe 0x4f806a
mov eax, esi
nop dword [eax]
mov ecx, dword [eax + 0xc8]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + 0xc4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x4f8050
push esi
call fcn.004f63c0
mov al, byte [ebp + 0x10]
add esp, 4
test al, al
je 0x4f8090
mov ecx, dword [ebp + 8]
sub esi, ecx
movzx edx, al
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x4f8082
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4f80a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov cl, byte [esi + 0x198]
mov byte [ebp - 1], cl
test cl, cl
je 0x4f816f
mov al, byte [ebp + 0x10]
shl al, 3
sub al, cl
movzx edx, bl
movzx ecx, al
movzx eax, al
cmp ecx, ebx
cmovbe edx, eax
movzx eax, byte [ebp - 1]
mov dword [ebp - 8], edx
add eax, 0xd0
xor dl, dl
add eax, esi
cmp byte [ebp - 8], dl
jbe 0x4f810a
mov ebx, dword [ebp - 8]
mov esi, eax
movzx ecx, dl
inc dl
mov al, byte [ecx + edi]
mov byte [ecx + esi], al
cmp dl, bl
jb 0x4f80f5
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
add byte [esi + 0x198], dl
movzx eax, dl
movzx edx, byte [ebp + 0x10]
add edi, eax
sub ebx, eax
movzx eax, byte [esi + 0x198]
lea ecx, [edx*8]
cmp eax, ecx
jne 0x4f816f
cmp byte [ebp + 0x10], 0
jbe 0x4f815a
lea ecx, [esi + 8]
nop word [eax + eax]
mov eax, dword [ecx + 0xc8]
lea ecx, [ecx + 8]
xor dword [ecx - 8], eax
mov eax, dword [ecx + 0xc4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x4f8140
mov eax, esi
add eax, 8
push eax
call fcn.004f63c0
add esp, 4
mov byte [esi + 0x198], 0
mov cl, byte [ebp + 0x10]
movzx eax, cl
mov dword [ebp + 0xc], eax
shl eax, 3
cmp ebx, eax
jb 0x4f81cd
lea eax, [esi + 8]
mov dword [ebp + 8], eax
test cl, cl
je 0x4f81a9
mov esi, dword [ebp + 0xc]
mov edx, edi
nop
mov ecx, dword [edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [edx + 4]
add edx, 8
xor dword [eax - 4], ecx
sub esi, 1
jne 0x4f8190
mov eax, dword [ebp + 8]
push eax
call fcn.004f63c0
mov ecx, dword [ebp + 0xc]
add esp, 4
lea eax, [ecx*8]
mov cl, byte [ebp + 0x10]
sub ebx, eax
add edi, eax
cmp ebx, eax
mov eax, dword [ebp + 8]
jae 0x4f8185
mov esi, dword [ebp - 0xc]
xor dl, dl
test ebx, ebx
je 0x4f81f3
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + edi]
inc dl
mov byte [ecx + esi + 0xd0], al
movzx ecx, dl
cmp ecx, ebx
jb 0x4f81e0
add byte [esi + 0x198], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fbfc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x298], 2
jne 0x4fbfd2
pop ebp
jmp fcn.004fce00
pop ebp
jmp fcn.004fcf20
Function at 0x4fc780
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x4fc7b1
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 8], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0
je 0x4fc814
push 0
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], 1
push ecx
push 0
push 0
push 0xc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x7148
push ecx
push 0x98000004
push eax
mov dword [ebp - 0x18], 0x1d0d8
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
push dword [esi + 0x294]
jmp 0x4fc822
push 4
lea ecx, [ebp - 0x10]
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 8

Function at 0x4fce00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1a7d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x68cc00]
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 esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv4
push edi
mov dword [ebp - 0x34], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.00447ef0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004349e0
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x4fcedd
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x10
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4fcebd
test eax, eax
js 0x4fcebd
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, ebx
call fcn.00431720
push dword [ebp - 0x2e]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x34]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x4fceeb
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.004ff220
add esp, 0xc
jmp 0x4fcee9
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.00447ff0
mov al, bl
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.005af5a8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fcf20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1abd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x68cc00]
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 esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv6
push edi
mov dword [ebp - 0x40], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.00447ef0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004349e0
mov eax, dword [ebp - 0x40]
mov dword [eax], 0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x4fd000
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1c
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4fcfe0
test eax, eax
js 0x4fcfe0
mov ecx, ebx
call fcn.004349e0
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.004fe550
add esp, 8
push dword [ebp - 0x3a]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x4fd00e
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname_ipv6
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.004ff220
add esp, 0xc
jmp 0x4fd00c
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.00447ff0
mov al, bl
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.005af5a8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4feff0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1c70
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x68cc00]
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, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov edi, dword [ebp + 0xc]
call fcn.0046d400
push edi
mov ecx, esi
call fcn.0046d560
test al, al
je 0x4ff050
mov byte [esi + 0x15], 1
mov ecx, edi
mov eax, dword [edi]
push str.Wait_for_data_on_socket_aborted_by_app
call dword [eax + 0x14]
xor al, al
jmp 0x4ff126
cmp dword [ebx + 0x294], 0xffffffff
jne 0x4ff070
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
call dword [eax + 0x14]
mov byte [esi + 0x16], 1
xor al, al
jmp 0x4ff126
lea ecx, [ebp - 0x86c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00429fb0
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x864], 0x3004bc8d
mov dword [ebp - 0x1c], 0x3004bc8d
push 0x40
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x860], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x864], 0x3004bc8d
je 0x4ff0db
push 0
call fcn.004014f0
add esp, 4
cmp dword [ebp - 0x1c], 0x3004bc8d
je 0x4ff0ee
push 0
call fcn.004014f0
add esp, 4
mov edx, dword [ebx + 0x294]
test edx, edx
jns 0x4ff144
mov byte [esi + 0x16], 1
xor bl, bl
lea ecx, [ebp - 0x86c]
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x1c], 0
call fcn.0042a050
mov al, bl
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.005af5a8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x860]
xor eax, eax
test ecx, ecx
je 0x4ff15e
cmp dword [ebp + eax*4 - 0x85c], edx
je 0x4ff15e
inc eax
cmp eax, ecx
jb 0x4ff150
cmp eax, ecx
jne 0x4ff177
cmp ecx, 0x200
jae 0x4ff177
mov dword [ebp + eax*4 - 0x85c], edx
inc dword [ebp - 0x860]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
lea eax, [ebp - 0x860]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4ff0fc
test eax, eax
js 0x4ff0fc
jne 0x4ff1aa
mov byte [esi + 0x14], 1
jmp 0x4ff0fc
mov bl, 1
jmp 0x4ff0fe

Function at 0x4ff830
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x294], 0xffffffff
je 0x4ff8a0
cmp byte [ebp + 8], 0
mov al, byte [ecx + 0x129]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
je 0x4ff87c
test al, al
je 0x4ff877
mov eax, dword [ecx]
push str.Turning_on_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 8]
jmp 0x4ff88d
test al, al
je 0x4ff88a
mov eax, dword [ecx]
push str.Turning_off_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 0xc]
push 4
push eax
push 1
push 6
push dword [esi + 0x294]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 8
Function at 0x4ff950
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0xd0], 0x4901fb2a
je 0x4ff981
mov ecx, dword [ebp + 0xc]
push str.Internal_error:_Socket_object_already_deleted.
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0
call fcn.004014f0
add esp, 4
pop esi
pop ebp
ret 8
cmp dword [esi + 0xd8], edx
push edi
lea edi, [esi + 0xd8]
je 0x4ff9f7
test edx, edx
je 0x4ff9f7
cmp edx, 0x1000
jb 0x4ff9f7
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp dword [esi + 0x294], 0xffffffff
mov dword [edi], eax
je 0x4ff9f7
push ebx
mov ebx, dword [ebp + 0xc]
cmp byte [ebx + 0x129], 0
je 0x4ff9dd
mov eax, dword [ebx]
mov ecx, ebx
push str.Setting_SO_SNDBUF_size
call dword [eax + 0x18]
push dword [edi]
mov ecx, ebx
push str.sendBufSize
call fcn.00448710
push 4
push edi
push 0x1001
push 0xffff
push dword [esi + 0x294]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x4ffa00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1ced
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x294]
lea eax, [esi + 0x290]
mov edi, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x4ffa43
mov byte [eax], 0
cmp byte [eax], 0
je 0x4ffa93
cmp byte [esi + 0xd6], 0
jne 0x4ffa93
cmp byte [esi + 0xd5], 0
jne 0x4ffb01
cmp byte [esi + 0xd4], 0
jne 0x4ffb01
cmp byte [edi + 0x133], 0
jne 0x4ffb01
push 2
push 1
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4ffab2
push edi
mov ecx, esi
call fcn.004fee60
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xffffffff
je 0x4ffabb
test eax, eax
jns 0x4ffb01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4ffb01
push str.isConnected_recv_peek
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push edi
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.00447ef0
push edi
push 0
mov dword [ebp - 4], 0
call fcn.004ff690
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.00447ff0
jmp 0x4ffa93
mov al, 1
jmp 0x4ffa95
Function at 0x500be0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x68a5c0], 0
push edi
mov edi, dword [ebp + 8]
jne 0x500c11
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
push ebx
push 0x190
lea eax, [ebp - 0x224]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x224]
add esp, 0xc
push eax
push 0x909
call ebx
mov dword [ebp - 0x8c], eax
cmp eax, 0x276c
jne 0x500d18
mov edx, 5
mov ecx, 2
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ecx
push esi
cmp edx, 1
jl 0x500cd6
add ecx, 0xffffffff
mov dword [ebp - 0x90], ecx
jns 0x500c87
dec edx
mov dword [ebp - 0x90], 9
mov dword [ebp - 0x94], edx
mov cl, 9
test edx, edx
je 0x500cd6
movzx ecx, cl
movzx eax, dl
shl cx, 8
or cx, ax
lea eax, [ebp - 0x224]
push 0x190
push 0
push eax
movzx esi, cx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push esi
call ebx
mov dword [ebp - 0x8c], eax
cmp eax, 0x276c
jne 0x500cd6
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
jmp 0x500c64
pop esi
test eax, eax
jne 0x500d1c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push eax
push str.Using_ws2_32.dll_version__d__d
lea eax, [ebp - 0x88]
push 0x50
push eax
call fcn.00446c00
mov eax, dword [edi]
lea ecx, [ebp - 0x88]
add esp, 0x14
push ecx
push str.ws2_32_DLL_Version
mov ecx, edi
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x500d8d
cmp eax, 0x276b
jne 0x500d2a
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
jmp 0x500d80
cmp eax, 0x276c
jne 0x500d38
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
jmp 0x500d80
cmp eax, 0x2734
jne 0x500d46
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
jmp 0x500d80
cmp eax, 0x2753
jne 0x500d54
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
jmp 0x500d80
cmp eax, 0x271e
jne 0x500d62
push str.The_lpWSAData_is_not_a_valid_pointer.
jmp 0x500d80
lea eax, [ebp - 0x8c]
push eax
push str.WSAStartup_error:_0x_x
lea eax, [ebp - 0x38]
push 0x32
push eax
call fcn.00446b40
add esp, 0x10
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 4]
test eax, eax
pop ebx
sete al
mov byte [0x68a5c0], 0
xor ecx, ebp
pop edi
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
Function at 0x52a420
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0
push 2
push 2
mov dword [esi + 4], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x52a470
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_create_a_UDP_socket.
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
lea ecx, [esi + 0x14]
mov eax, 2
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call fcn.0042f3c0
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x35
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x52a4de
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_specify_a_UDP_socket_destination_address.
call dword [eax + 0x14]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov dword [esi], 0xffffffff
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005af5a8
mov esp, ebp
pop ebp
ret