joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ce150
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644555
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
test eax, eax
je 0x5ce182
lock inc dword [eax]
jmp 0x5ce184
xor eax, eax
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
push 0x5c
push 0x2f
call fcn.005acc00
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.005a44c0
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
test ecx, ecx
je 0x5ce1c2
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x5ce1c2
push ecx
call fcn.005a47b0
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.005b43d0
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x5ce1e9
mov eax, dword [esi + 0xc]
jmp 0x5ce1ee
mov eax, 0x651f68
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x5ce235
test esi, esi
je 0x5ce20e
mov eax, edi
lock xadd dword [esi], eax
dec eax
jne 0x5ce20e
push ecx
mov ecx, esi
call fcn.005a47b0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5ce222
lock xadd dword [ecx], edi
dec edi
jne 0x5ce222
push ecx
call fcn.005a47b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push str.RmDir
lea ecx, [ebp - 0x1c]
call fcn.005d1470
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x24]
call fcn.0041aad0
push 0x6a3c84
lea eax, [ebp - 0x24]
push eax
call fcn.006089ec
int3

Function at 0x5d1740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644b90
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xc]
or edx, 0xffffffff
mov dword [esi], vtable.CMaaConnectionInTimeCharacteristics.0
test eax, eax
push 0
cmovns edx, eax
lea eax, [edx + 1]
mov dword [esi + 8], eax
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.005ddad0
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x5d17c4
mov eax, dword [esi + 0x14]
shl eax, 2
push eax
push 0
push ecx
call fcn.00608810
add esp, 0xc
push 0
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.005d18f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5d3940
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644d07
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc
push esi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 6
push 1
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.005d2ec0
mov dword [ebp - 4], 0
mov dword [esi], vtable.CMaaTcpSocket.0
mov dword [esi + 0x11d], 0
mov dword [esi + 0x121], 0
mov byte [esi + 0x125], 0
mov dword [esi + 0x126], 0x7d0
mov dword [esi + 0x12a], 0
mov dword [esi + 0x12e], 0
mov dword [esi + 0x132], 0
mov dword [esi + 0x136], 0
mov dword [esi + 0x13a], 0
mov dword [esi + method.CMaaTcpSocket::CCloseTimer.virtual_0], vtable.CMaaTcpSocket::CCloseTimer.0
mov dword [esi + 0x142], 0
lea ecx, [esi + 0x14a]
push esi
call fcn.005d15a0
lea ecx, [esi + 0x1b5]
push esi
call fcn.005d15a0
push 0x40
mov byte [ebp - 4], 3
lea eax, [esi + 0xd9]
push 0
push eax
mov dword [esi + 0x220], 0
mov dword [esi + 0x99], esi
mov dword [esi + 0x146], 0
call fcn.00608810
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 0xc9], 0
mov ecx, esi
mov dword [esi + 0xcd], 0
mov dword [esi + 0xc1], 0
mov eax, dword [eax + 0x54]
mov dword [esi + 0xc5], 0
mov dword [esi + 0xb9], 0
mov dword [esi + 0xbd], 0
mov dword [esi + 0xb1], 0
mov dword [esi + 0xb5], 0
mov dword [esi + 0xd5], 0xffffffff
mov dword [esi + 0xd1], 0xffffffff
push 0
cmp eax, fcn.005d3de0
jne 0x5d3aca
call fcn.005d3de0
jmp 0x5d3acc
call eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 8
xorps xmm0, xmm0
push 0xffff
movups xmmword [esi + 0x224], xmm0
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5d3b12
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.setsockopt___
mov ecx, esi
call fcn.005d3010
int3
Function at 0x5d40b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644d90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x5d421d
or eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov ebx, dword [0x6b0dcc]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x5d4106
mov dword [ebx + 8], edi
jmp 0x5d410a
test eax, eax
jne 0x5d4113
inc dword [ebx + 0xc]
inc dword [ebx + 8]
inc dword [ebx + 4]
cmp dword [esi + 0x152], 0
mov ebx, dword [ebp + 0xc]
je 0x5d412e
lea ecx, [esi + 0x14a]
push ebx
call fcn.005d8a20
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x6b0dcc]
call fcn.005e0810
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5d421d
push 0
cmovg ebx, eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
js 0x5d4239
cmp edi, ebx
jge 0x5d417b
and dword [esi + 0x95], 0xfffffffd
push 3
mov ecx, esi
call fcn.005d2b10
mov ecx, dword [esi + 0xb1]
mov eax, ecx
mov ebx, dword [esi + 0xb5]
and eax, ebx
cmp eax, 0xffffffff
jne 0x5d41a7
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, edi
cdq
add eax, ecx
mov dword [esi + 0xb1], eax
adc edx, ebx
mov dword [esi + 0xb5], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x6b0dcc]
push 0xffffffffffffffff
call fcn.005e07d0
cmp dword [esi + 0x152], 0
je 0x5d41ed
add dword [esi + 0x162], edi
mov ecx, dword [esi + 0x152]
test ecx, ecx
je 0x5d41ed
push edi
call fcn.005d9240
mov ecx, dword [0x6b0dcc]
call fcn.005e0810
test edi, edi
jg 0x5d4201
cmp edi, 0xffffffff
jg 0x5d421d
test dword [esi + 0x95], 0xfffffffd
jne 0x5d4214
and dword [esi + 8], 0xfffdffff
xor eax, eax
test edi, edi
cmovg eax, edi
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
cmovge eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0xffffffff
jne 0x5d417b
cmp eax, 0x2733
jne 0x5d4254
and dword [esi + 0x95], 0xfffffffd
or edi, edi
jmp 0x5d4201
push str.send__
mov ecx, esi
call fcn.005d3100
int3
Function at 0x5d42a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644d90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0xc], edi
jle 0x5d444f
or eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov ebx, dword [0x6b0dcc]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x5d42fa
mov dword [ebx + 8], edi
jmp 0x5d42fe
test eax, eax
jne 0x5d4307
inc dword [ebx + 0xc]
inc dword [ebx + 8]
inc dword [ebx + 4]
cmp dword [esi + 0x1bd], 0
mov ebx, dword [ebp + 0xc]
je 0x5d4324
lea ecx, [esi + 0x1b5]
push ebx
call fcn.005d8a20
mov dword [ebp - 0x14], eax
jmp 0x5d432c
mov al, byte [0x6ac616]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x6b0dcc]
call fcn.005e0810
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5d4442
push 0
cmovg ebx, eax
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test ebx, ebx
js 0x5d4414
cmp ebx, dword [ebp + 0xc]
jge 0x5d4414
and dword [esi + 0x95], 0xfffffffe
test ebx, ebx
je 0x5d443f
push 2
mov ecx, esi
call fcn.005d2b10
mov ecx, dword [esi + 0xb9]
mov edi, ebx
mov edx, dword [esi + 0xbd]
mov eax, ecx
and eax, edx
mov dword [ebp + 0xc], edx
cmp eax, 0xffffffff
jne 0x5d43bf
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov eax, ebx
cdq
add eax, ecx
mov dword [esi + 0xb9], eax
adc edx, dword [ebp + 0xc]
mov dword [esi + 0xbd], edx
test ebx, ebx
jle 0x5d4442
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x6b0dcc]
push 0xffffffffffffffff
call fcn.005e07d0
cmp dword [esi + 0x1bd], 0
je 0x5d4400
lea ecx, [esi + 0x1b5]
push ebx
call fcn.005d8ae0
mov ecx, dword [0x6b0dcc]
call fcn.005e0810
and dword [esi + 8], 0xfffeffff
jmp 0x5d4442
mov eax, dword [esi + 0x95]
and eax, 0xfffffffe
mov dword [esi + 0x95], eax
cmp ebx, 0xffffffff
jne 0x5d4383
cmp ecx, 0x2733
jne 0x5d4465
and eax, 0xfffffffe
mov dword [esi + 0x95], eax
jmp 0x5d4442
or edi, 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x5d444f
xor eax, eax
test edi, edi
cmovs edi, eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.recv__
mov ecx, esi
call fcn.005d3100
int3
Function at 0x5d49d0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x91], 0x17
je 0x5d4a80
cmp byte [ebp + 0x10], 0
lea ebx, [esi + 0x224]
mov eax, 2
mov word [ebx], ax
mov ax, word [ebp + 8]
mov ch, al
mov cl, ah
mov eax, dword [ebp + 0xc]
bswap eax
mov word [esi + 0x226], cx
mov dword [esi + 0x228], eax
je 0x5d4a3b
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 4
push 0xffff
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
push ebx
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x5d4a8a
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push eax
push ebx
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5d4a96
pop edi
mov dword [esi + 0x89], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.Bind___on_IPv6_socket_called
call fcn.005d3010
push str.bind___
mov ecx, esi
call fcn.005d3010
push str.getsockname__
mov ecx, esi
call fcn.005d3010
int3

Function at 0x5d4ab0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x91], 0x17
jne 0x5d4ba0
mov dword [esi + 0x238], 0
lea edi, [esi + 0x234]
mov dword [esi + 0x23c], 0
mov eax, 0x17
mov dword [esi + 0x240], 0
mov dword [esi + 0x244], 0
mov dword [esi + 0x248], 0
mov dword [esi + 0x24c], 0
mov word [edi], ax
mov ax, word [ebp + 8]
mov ch, al
mov cl, ah
mov eax, dword [ebp + 0xc]
mov word [esi + 0x236], cx
test eax, eax
je 0x5d4b34
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x23c], xmm0
cmp byte [ebp + 0x10], 0
je 0x5d4b5c
push 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
push 4
push 0xffff
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1c
push edi
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x5d4baa
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x1c
push eax
push edi
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5d4bb6
pop edi
mov dword [esi + 0x89], 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.Bind___on_not_IPv6_socket_called
call fcn.005d3010
push str.bind___
mov ecx, esi
call fcn.005d3010
push str.getsockname__
mov ecx, esi
call fcn.005d3010
int3
Function at 0x5d4bd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x91], 0x17
mov ecx, dword [esi + 0x8d]
jne 0x5d4c23
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
lea eax, [esi + 0x234]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5d4c5b
movzx ecx, word [esi + 0x236]
mov eax, ecx
shl ecx, 8
movzx ecx, cx
shr eax, 8
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x10
push eax
lea eax, [esi + 0x224]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5d4c67
movzx ecx, word [esi + 0x226]
mov eax, ecx
shl ecx, 8
movzx ecx, cx
shr eax, 8
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push str.getsockname__
mov ecx, esi
call fcn.005d3010
push str.getsockname__
mov ecx, esi
call fcn.005d3010
int3

Function at 0x5d5200
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, ecx
mov eax, 2
push 0x10
lea esi, [edi + 0xb1]
mov word [esi], ax
mov ax, word [ebp + 0x14]
push esi
push 0
push dword [ebp + 0xc]
mov dh, al
push dword [ebp + 8]
mov dl, ah
mov eax, dword [ebp + 0x10]
push dword [edi + 0x8d]
bswap eax
mov word [edi + 0xb3], dx
mov dword [edi + 0xb5], eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, edi
cmp eax, 0xffffffff
je 0x5d525f
push 3
call fcn.005d2b10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.sendto__
call fcn.005d3010
int3

Function at 0x5d52e0
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644dbd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0x11
push 2
push 2
push dword [ebx + 8]
call fcn.005d2ec0
xorps xmm0, xmm0
lea edi, [esi + 0xb1]
movups xmmword [edi], xmm0
movups xmmword [esi + 0xc1], xmm0
movq qword [esi + 0xd1], xmm0
mov dword [esi + 0xd9], 0
cmp byte [ebx + 0x14], 0
mov eax, 2
mov dword [ebp - 4], 0
mov dword [esi], vtable.CMaaUdpServer.0
movups xmmword [edi], xmm0
mov word [edi], ax
mov ax, word [ebx + 0xc]
mov ch, al
mov cl, ah
mov eax, dword [ebx + 0x10]
bswap eax
mov word [esi + 0xb3], cx
mov dword [esi + 0xb5], eax
je 0x5d53ab
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 4
push 0xffff
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
push edi
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, esi
cmp eax, 0xffffffff
je 0x5d53de
call fcn.005d3170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push str.bind__
call fcn.005d3010
int3
Function at 0x5d54c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
bswap eax
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
bswap eax
push 8
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push 0xc
push 0
push dword [ecx + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5d54fc
mov esp, ebp
pop ebp
ret 8
mov ecx, str.setsockopt_for_IPPROTO_IP__IP_ADD_MEMBERSHIP__failed
call fcn.005d3070
int3

Function at 0x5d5510
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
bswap eax
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
bswap eax
push 8
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push 0xd
push 0
push dword [ecx + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5d554c
mov esp, ebp
pop ebp
ret 8
mov ecx, str.setsockopt_for_IPPROTO_IP__IP_DROP_MEMBERSHIP__failed
call fcn.005d3070
int3

Function at 0x5d5560
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
bswap eax
push 4
mov dword [esp + 0xc], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
push 9
push 0
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5d55bb
mov eax, dword [ebp + 0xc]
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5d55c5
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, str.setsockopt_for_IPPROTO_IP__IP_MULTICAST_IF__failed
call fcn.005d3070
mov ecx, str.setsockopt_for_IPPROTO_IP__IP_MULTICAST_TTL__failed
call fcn.005d3070
int3

Function at 0x5d55d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [esp + 0xc], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
push 9
push 0x29
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5d5629
mov eax, dword [ebp + 0xc]
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0xa
push 0x29
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5d5633
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, str.setsockopt_for_IPPROTO_IPV6__IPV6_MULTICAST_IF__failed
call fcn.005d3070
mov ecx, str.setsockopt_for_IPPROTO_IPV6__IPV6_MULTICAST_HOPS__failed
call fcn.005d3070
int3
Function at 0x5d5640
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0x10
lea ecx, [esp + 0xc]
xorps xmm0, xmm0
push ecx
lea eax, [esi + 0xdd]
push eax
push 0
push dword [ebp + 0xc]
movups xmmword [eax], xmm0
push dword [ebp + 8]
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_recvfrom]
and dword [esi + 0x95], 0xfffffffe
mov edi, eax
mov ecx, esi
cmp edi, 0xffffffff
je 0x5d56a3
push 2
call fcn.005d2b10
and dword [esi + 8], 0xfffeffff
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push str.recvfrom__
call fcn.005d3010
int3

Function at 0x5d67c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644f13
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 0
mov dword [edi + 0x19d], 1
mov dword [edi + 0x195], 0
mov dword [edi + 0x199], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x191], eax
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [0x6ac1e0]
test eax, eax
jne 0x5d6843
push 0x48
call fcn.00606edf
mov ecx, eax
call fcn.005e1a80
mov dword [0x6ac1e0], eax
push eax
lea ecx, [edi + 0x1a8]
mov byte [ebp - 4], 0
call fcn.005e19c0
lea ecx, [edi + 0x1f0]
call fcn.005db310
mov byte [ebp - 4], 2
cmp dword [0x6af4e0], 0
jne 0x5d6886
mov esi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call esi
mov dword [0x6af4e0], eax
call esi
push eax
mov dword [0x6af4e4], eax
call dword [sym.imp.WS2_32.dll_WSASetEvent]
push edi
push 0x202
mov byte [edi + 0x190], 0
mov dword [0x6ac6bc], 0
mov dword [edi + 0x245], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x5d68f1
push 0x9a
call fcn.00606edf
mov dword [ebp - 0x14], eax
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.005e3c00
test eax, eax
mov dword [edi + 0x245], eax
setne al
mov byte [edi + 0x190], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0xffffffffffffffff
push 0
push 0
push str.WSAStartup_failed
lea ecx, [ebp - 0x18]
call fcn.005d0f20
push 0x6a3d78
lea eax, [ebp - 0x18]
push eax
call fcn.006089ec
int3
Function at 0x5d6f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645000
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x38], edi
mov eax, dword [edi + 0x91]
xor esi, esi
mov dword [ebp - 0x3c], eax
cmp eax, 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 4], esi
push eax
jne 0x5d6f78
lea eax, [ebp - 0x24]
push eax
call fcn.005d5060
jmp 0x5d6f81
lea eax, [ebp - 0x40]
push eax
call fcn.005d4f70
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xae]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x5d6faf
mov ecx, dword [ebp - 0x38]
push dword [edi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
call eax
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x5d6fd5
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
je 0x5d709b
mov eax, dword [edi]
mov ecx, edi
jmp 0x5d7097
push ecx
mov ecx, dword [esi + 4]
push esi
call fcn.005d58f0
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x1f00
call dword [eax + 8]
mov eax, dword [esi + 0x8d]
cmp eax, 0xffffffff
je 0x5d6fff
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x8d], eax
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x5d7016
mov dword [esi + 0x91], eax
mov ecx, esi
mov dword [esi + 0x7d], 0xffffffff
call fcn.005d3170
push 1
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.005d2b10
cmp dword [ebp - 0x3c], 0x17
mov eax, dword [esi]
push dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
jne 0x5d704e
mov eax, dword [eax + 0x2c]
lea ecx, [ebp - 0x24]
push ecx
jmp 0x5d7054
mov eax, dword [eax + 0x24]
push dword [ebp - 0x40]
mov ecx, esi
call eax
push 0
push eax
mov ecx, esi
call dword [ebp - 0x38]
lea eax, [edi + 0x10]
push eax
push 0
push edi
push 0x5e0ec0
push 0
push 0
call fcn.0061408e
add esp, 0x18
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x5d70de
jmp 0x5d709b
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00606a47
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, str.Cant_create_thread
mov dword [ebp - 0x2c], 0
call fcn.005d3070
int3
Function at 0x5d8620
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x29]
test eax, eax
je 0x5d86dd
cmp dword [eax + 4], 0
je 0x5d8647
test byte [eax + 8], 0x10
jne 0x5d86e2
push 2
push 1
lea ecx, [esp + 0x17]
mov byte [esp + 0x17], 0
push ecx
push dword [eax + 0x8d]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x5d8671
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x5d8673
xor ebx, ebx
mov ecx, esi
call fcn.005d7970
cmp eax, 2
jne 0x5d8691
test edx, edx
jne 0x5d8691
push edx
push edx
push 0x7d0
mov ecx, esi
call fcn.005d79f0
test edi, edi
je 0x5d86ba
jns 0x5d86ba
cmp ebx, 0x2733
je 0x5d86e2
mov byte [esi + 0xc], 0
mov esi, dword [esi + 0x29]
mov ecx, esi
mov edi, dword [esi]
call dword [edi + 0x1c]
push eax
mov ecx, esi
call dword [edi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x29]
cmp dword [edi + 4], 0
je 0x5d86e2
test byte [edi + 8], 1
je 0x5d86e2
mov esi, dword [edi]
mov ecx, edi
call dword [esi + 0x14]
push eax
mov ecx, edi
call dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005d7d10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret