joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10058818
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x10058973
mov word [ebp - 0x18], 2
mov eax, dword [ebp + 8]
mov ax, word [eax - 4]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100588a5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x10058883
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x100588a8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.100587c8
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
jmp 0x10058973
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.100587c8
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x100588dd
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
jmp 0x10058973
push 0
push ebx
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_send
mov ebx, eax
inc ebx
jne 0x10058903
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
jmp 0x10058973
xor eax, eax
push ebp
push 0x1005896c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1000
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x1005894c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_send
push 0
push 0x1000
push esi
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jg 0x10058928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10058973
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_closesocket
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10058a90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
mov esi, eax
push 0
push 0x1000
lea eax, [ebp - 0x1000]
push eax
push esi
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jg 0x10058ac0
push esi
call sub.wsock32.dll_closesocket
jmp 0x10058b04
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0x50
push ebp
lea eax, [ebp - 0x1000]
mov edx, ebx
call fcn.1005897c
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x10058af0
push esi
call sub.wsock32.dll_closesocket
jmp 0x10058b04
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1000]
mov ecx, esi
mov edx, ebx
call fcn.10058818
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10059c44
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 0x10059ccd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1007db44
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x10059cb7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.1000b66c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x10059ce4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x1007ac8c]
mov dl, 1
mov eax, dword [0x10058c70]
call fcn.1000bf90
call fcn.10003abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10059cd4
lea eax, [ebp - 0x1c]
call fcn.10004104
ret

Function at 0x1005a398
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.1005a2bc
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.10003544
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x1005a3fc
call fcn.10059b8c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x1005a3ee
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 fcn.10003544
pop esi
pop ebx
ret

Function at 0x1005a420
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 fcn.1005a140
xor eax, eax
push ebp
push 0x1005a49f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.10004104
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x1005a459
call fcn.10003b68
jmp 0x1005a4a6
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 0x1005a489
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.100042fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005a4a6
mov eax, dword [ebp - 4]
call fcn.1005a14c
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005a4ac
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 fcn.1005a140
xor eax, eax
push ebp
push 0x1005a525
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.10004104
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x1005a4e8
call fcn.10003b68
jmp 0x1005a52c
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x1005a50f
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, 0x100
call fcn.10004374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005a52c
mov eax, dword [ebp - 4]
call fcn.1005a14c
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1005a534
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 fcn.1005a140
xor eax, eax
push ebp
push 0x1005a5af
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 0x1005a56a
call fcn.10003b68
jmp 0x1005a5b6
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 0x1005a599
mov ax, 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 0x1005a5b6
mov eax, dword [ebp - 4]
call fcn.1005a14c
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x1005a6f0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.100045c4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.10002cf0
test ebx, ebx
je 0x1005a73b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x1005a818
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 0x1005a849
mov ecx, dword [0x1007ad84]
mov dl, 1
mov eax, dword [0x10058c70]
call fcn.1000bf54
call fcn.10003abc
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 0x1005a876
mov ecx, dword [0x1007ab50]
mov dl, 1
mov eax, dword [0x10058c70]
call fcn.1000bf54
call fcn.10003abc
xor eax, eax
push ebp
push 0x1005a8f7
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 fcn.10003544
cmp byte [ebp + 8], 0
je 0x1005a8d1
mov eax, dword [ebp + 0x14]
push eax
mov ax, 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 fcn.1005a780
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 fcn.1005a318
jmp 0x1005a8ed
mov eax, dword [ebp + 0x14]
push eax
mov ax, 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 fcn.10059e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1005a914
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1005a920
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 0x1005a951
mov ecx, dword [0x1007abbc]
mov dl, 1
mov eax, dword [0x10058c70]
call fcn.1000bf54
call fcn.10003abc
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 0x1005a97e
mov ecx, dword [0x1007ab50]
mov dl, 1
mov eax, dword [0x10058c70]
call fcn.1000bf54
call fcn.10003abc
xor eax, eax
push ebp
push 0x1005a9fa
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 fcn.10003544
cmp byte [ebp + 8], 0
je 0x1005a9d6
mov eax, dword [ebp + 0x10]
push eax
mov ax, 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 fcn.1005a780
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 fcn.1005a398
jmp 0x1005a9f0
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.10059e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1005aa17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1005abf8
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
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.1005a140
xor eax, eax
push ebp
push 0x1005ad69
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 0x1005ad53
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x1005ac43
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x1005ac4d
call fcn.10003b68
jmp 0x1005ad70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.100192e4
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 0x1005ad48
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 ecx, eax
cmp ecx, 0xffffffff
jne 0x1005acfb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x1005ace8
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.10003544
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.1005abb0
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x1005ad7c]
cmp dl, byte [eax + 0x28]
je 0x1005ad4f
call fcn.1000be78
jmp 0x1005ad4f
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.10019304
jmp 0x1005ad4f
cmp ecx, ebx
jge 0x1005ad17
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.10019304
jmp 0x1005ac4d
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 fcn.100192e4
cmp edx, dword [esp + 4]
jne 0x1005ad37
cmp eax, dword [esp]
pop edx
pop eax
jne 0x1005ac4d
push ebp
call fcn.1005abb0
pop ecx
jmp 0x1005ad4f
push ebp
call fcn.1005abb0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005ad70
mov eax, dword [ebp - 4]
call fcn.1005a14c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005ad80
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 0x1005aea2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.1005a140
xor eax, eax
push ebp
push 0x1005ae85
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 0x1005add0
call fcn.10003b68
jmp 0x1005ae8c
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 0x1005ae6f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x1005ae6f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.10003544
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 0x1005ae6f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.1000b66c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x1005aebc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x1007ac8c]
mov dl, 1
mov eax, dword [0x10058c70]
call fcn.1000bf90
call fcn.10003abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005ae8c
mov eax, dword [ebp - 4]
call fcn.1005a14c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005aea9
lea eax, [ebp - 0x28]
call fcn.10004104
ret
Function at 0x1005af08
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1005b052
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.1005a140
xor eax, eax
push ebp
push 0x1005b035
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x1005af6d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x1005af6d
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 0x1005b01f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x1005af80
call fcn.10003b68
jmp 0x1005b03c
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 0x1005b01f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x1005b01f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.10003544
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 0x1005b01f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.1000b66c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x1005b06c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x1007ac8c]
mov dl, 1
mov eax, dword [0x10058c70]
call fcn.1000bf90
call fcn.10003abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005b03c
mov eax, dword [ebp - 4]
call fcn.1005a14c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005b059
lea eax, [ebp - 0x28]
call fcn.10004104
ret
Function at 0x1005cc00
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x1005cc18
add esp, 0xfffffff0
call fcn.10003654
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x1005cd45
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.1001d7d8
mov byte [ebx + 0x10210], 0
mov eax, 0x400
call fcn.100026dc
mov dword [ebx + 0x10068], eax
push ebx
push 0x1005d4a4
call fcn.1004cfc8
mov dword [ebx + 0x10060], eax
mov dword [ebx + 0x10208], 1
mov byte [ebx + 0x1006c], 0
push 0x1005cd6c
push 0
push 0xffffffffffffffff
push 0
call sub.user32.dll_DestroyCursor
mov dword [ebx + 0x10248], eax
mov ecx, 0x1005cd78
mov dl, 8
mov eax, ebx
call fcn.1005d424
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x1005cd15
xor eax, eax
push ebp
push 0x1005ccff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1024c], esi
inc esi
jne 0x1005ccd8
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.1005d260
push 4
push 0x1005cd90
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_setsockopt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1005cd23
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.1005d260
mov byte [ebx + 0x10210], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005cd4c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.10004128
ret

Function at 0x1005cde4
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1005ceb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1024c]
test eax, eax
je 0x1005ce13
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x1005ce7f
xor eax, eax
push ebp
push 0x1005ce69
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1024c], esi
inc esi
jne 0x1005ce5f
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.1005d260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1005ce8d
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.1005d260
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1003c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005cebf
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.10004128
ret
Function at 0x1005d0c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, ecx
test ebx, ebx
js 0x1005d0d8
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x1005d0d1
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor esi, esi
cmp dword [ebp + 8], 0
jne 0x1005d173
test esi, esi
jle 0x1005d10a
mov ecx, 0x1005d21c
mov dl, 1
mov eax, dword [0x100074f4]
call fcn.1000be98
call fcn.10003abc
jmp 0x1005d169
cmp word [ebx + 0x10242], 0
jne 0x1005d12c
mov ecx, 0x1005d21c
mov dl, 1
mov eax, dword [0x100074f4]
call fcn.1000be98
call fcn.10003abc
jmp 0x1005d169
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 9]
mov eax, dword [ebx + 0x10244]
call dword [ebx + 0x10240]
cmp byte [ebp - 9], 0
jne 0x1005d168
mov ecx, 0x1005d21c
mov dl, 1
mov eax, dword [0x100074f4]
call fcn.1000be98
call fcn.10003abc
jmp 0x1005d169
inc esi
cmp dword [ebp + 8], 0
je 0x1005d0ee
mov byte [ebx + 0x1006c], 0
mov eax, ebx
call fcn.1005cf54
cmp dword [ebx + 0x10044], 0
jne 0x1005d1a0
mov ecx, 0x1005d234
mov dl, 1
mov eax, dword [0x1005c7d0]
call fcn.1000be98
call fcn.10003abc
mov ecx, 0x1005d250
mov dl, 2
mov eax, ebx
call fcn.1005d424
mov word [ebx + 0x10040], 2
mov ax, word [ebx + 0x10038]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x10042], ax
mov eax, 0x10
push eax
lea eax, [ebx + 0x10040]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0x1022a], 0
je 0x1005d206
mov edx, ebx
mov eax, dword [ebx + 0x1022c]
call dword [ebx + 0x10228]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1005d5ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xffff
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x10030], eax
cmp word [ebx + 0x10222], 0
je 0x1005d5d6
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x1005d600
call fcn.100094ec
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x10030]
mov edx, ebx
mov eax, dword [ebx + 0x10224]
call dword [ebx + 0x10220]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1005d5f3
lea eax, [ebp - 8]
call fcn.10004104
ret