joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e590
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414d30]
call fcn.00404d60
xor eax, eax
push ebp
push 0x45e6d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x469eb4], 0
jne 0x45e5e3
mov ecx, dword [0x46a11c]
mov dl, 1
mov eax, dword [0x4075fc]
call fcn.0040be40
call fcn.00403e04
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d18
mov eax, ebx
call fcn.00404c30
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45e6e4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405ce4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c40
test eax, eax
jle 0x45e67b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45e674
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404650
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404638
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040843c
test eax, eax
jne 0x45e674
mov ebx, 0x15
jmp 0x45e680
mov ebx, 0x10
jmp 0x45e680
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x469eb4]
call fcn.0045e4e8
mov eax, dword [ebp - 8]
call fcn.0045e4e8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e6db
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004043ec
lea eax, [ebp - 0x10]
mov edx, dword [0x414d30]
call fcn.00404e30
ret
Function at 0x40cbd0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x48c
mov ebx, dword [esp + 0x4a0]
mov dword [esp + 4], 0x41d8ec
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x40ccc9
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea esi, [esp + 0x18]
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
lea ebx, [esp + 0x80]
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
jmp 0x40cc50
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040ca40
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x40cc40
mov dword [esp], esi
lea esi, [esp + 0x70]
call fcn.0040cb00
mov ebx, dword [esp + 0x4a4]
lea ebp, [ebx + 0x20]
lea esi, [esi]
lea edi, [edi]
movzx eax, byte [esi]
mov dword [esp], ebx
add ebx, 2
mov dword [esp + 4], str._02x
add esi, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
cmp ebx, ebp
jne 0x40cc90
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x48c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.fopen__s_failed_n
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
xor eax, eax
jmp 0x40ccbe

Function at 0x40d560
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0040d5c0
Function at 0x40df60
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40df98
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40df8e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40df9a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40df80
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40e260
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40e3c1
mov edx, dword [esp + 0x3c]
lea eax, [edx*4]
cmp edx, 0x1fc00000
mov edx, 0xffffffff
cmova eax, edx
xor ebx, ebx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
jle 0x40e369
nop
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jg 0x40e2c0
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00401ee0
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x40e3ad
mov edx, dword [edi + ebx*4]
test edx, edx
je 0x40e3a4
mov dword [esp], edx
call sub.libstdc_6.dll_operator_delete___void_
add ebx, 1
cmp dword [esp + 0x3c], ebx
jg 0x40e395
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0xffffffff
jmp 0x40e3b7
Function at 0x40153b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call sub.WSOCK32.dll_WSAIsBlocking
test eax, eax
je 0x401558
xor eax, eax
jmp 0x401614
mov eax, dword [ebp + 8]
push eax
call fcn.004010c7
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x401587
mov eax, dword [ebp - 8]
mov ecx, eax
shl eax, 4
add eax, ecx
mov eax, dword [eax*4 + 0x57e390]
jmp 0x401614
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4015ad
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x401614
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4015d5
xor eax, eax
jmp 0x401614
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp dword [eax], ecx
jne 0x4015f0
xor eax, eax
jmp 0x401614
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_ntohl
push eax
call fcn.0040102e
add esp, 8
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_ntohl
jmp 0x401614
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40166a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call sub.WSOCK32.dll_WSAIsBlocking
test eax, eax
je 0x40168a
mov eax, 0xfffffffc
jmp 0x401767
mov eax, dword [ebp + 8]
push eax
call sym.Dynedw.exe__wilIsDotted_4
test eax, eax
jne 0x4016a5
mov eax, 0xfffffffa
jmp 0x401767
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040117a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x401705
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl eax, 4
add eax, ecx
lea eax, [eax*4 + 0x57e390]
add eax, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401450
add esp, 0xc
mov eax, 1
jmp 0x401767
push 2
push 4
lea eax, [ebp - 4]
push eax
call sub.WSOCK32.dll_gethostbyaddr
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40172f
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x401767
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401450
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_ntohl
push eax
call fcn.0040102e
add esp, 8
mov eax, 1
jmp 0x401767
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40196f
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4019a0
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x4019d2
mov eax, dword [ebp - 4]
push eax
call fcn.004019d7
add esp, 4
test eax, eax
jne 0x4019ca
mov eax, dword [ebp - 4]
push eax
call fcn.00401a8a
add esp, 4
mov eax, 0xfffffff7
jmp 0x4019d2
mov eax, dword [ebp - 4]
jmp 0x4019d2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401b3e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [0x57f07c], eax
push 4
push 0x57f07c
push 0x100
push 0xffff
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401b86
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x401b90
mov eax, 1
jmp 0x401b90
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401b97
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call sub.WSOCK32.dll_WSAIsBlocking
test eax, eax
je 0x401bb2
call sub.WSOCK32.dll_WSACancelBlockingCall
cmp dword [ebp + 0xc], 0
jle 0x401be8
mov word [0x57e388], 1
mov eax, dword [ebp + 0xc]
mov word [0x57e38a], ax
push 4
push 0x57e388
push 0x80
push 0xffff
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_setsockopt
mov eax, dword [ebp + 8]
push eax
call fcn.00401a8a
add esp, 4
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_closesocket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401c1a
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x401c24
mov eax, 1
jmp 0x401c24
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401c2b
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x57db88
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x401d93
cmp dword [0x57ee70], 0x40
jae 0x401c6d
mov eax, dword [ebp + 8]
mov ecx, dword [0x57ee70]
mov dword [ecx*4 + 0x57ee74], eax
inc dword [0x57ee70]
mov dword [0x57ef78], 0
mov dword [0x57dbe0], 0
push 0x5531c0
push 0x57dbe0
push 0x57ef78
push 0x57ee70
push 0
call sub.WSOCK32.dll_select
push 0x57ee70
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
mov dword [ebp - 4], eax
jmp 0x401db6
mov dword [0x57ee70], 0
cmp dword [0x57ef78], 0x40
jae 0x401cdf
mov eax, dword [ebp + 8]
mov ecx, dword [0x57ef78]
mov dword [ecx*4 + 0x57ef7c], eax
inc dword [0x57ef78]
mov dword [0x57dbe0], 0
push 0x5531c0
push 0x57dbe0
push 0x57ef78
push 0x57ee70
push 0
call sub.WSOCK32.dll_select
push 0x57ef78
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
mov dword [ebp - 4], eax
jmp 0x401db6
mov dword [0x57ee70], 0
mov dword [0x57ef78], 0
cmp dword [0x57dbe0], 0x40
jae 0x401d51
mov eax, dword [ebp + 8]
mov ecx, dword [0x57dbe0]
mov dword [ecx*4 + 0x57dbe4], eax
inc dword [0x57dbe0]
push 0x5531c0
push 0x57dbe0
push 0x57ef78
push 0x57ee70
push 0
call sub.WSOCK32.dll_select
push 0x57dbe0
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
mov dword [ebp - 4], eax
jmp 0x401db6
mov dword [ebp - 4], 0xfffffffb
jmp 0x401db6
cmp dword [ebp - 8], 1
je 0x401c4a
cmp dword [ebp - 8], 2
je 0x401cb2
cmp dword [ebp - 8], 3
je 0x401d1a
jmp 0x401d82
push 0x57db88
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
jmp 0x401dc9
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401dd0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00401ac9
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x401dfc
mov eax, 0xfffffff7
jmp 0x401e77
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401e7e
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov word [eax], 2
mov eax, dword [ebp + 0x10]
push eax
call sub.WSOCK32.dll_htons
mov ecx, dword [ebp - 4]
mov word [ecx + 2], ax
mov eax, dword [ebp + 0xc]
push eax
call sub.WSOCK32.dll_htonl
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
push 0x10
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_connect
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401e6d
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
je 0x401e6d
xor eax, eax
sub eax, dword [ebp - 8]
jmp 0x401e77
mov eax, 1
jmp 0x401e77
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401fdd
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 2
mov eax, dword [ebp + 8]
push eax
call sym.Dynedw.exe__wilSocketStatus_8
test eax, eax
jne 0x402003
mov eax, 0xffffffff
jmp 0x40204f
push 0
mov eax, dword [ebp + 8]
push eax
call sym.Dynedw.exe__wilDataIsReady_8
test eax, eax
jne 0x40201d
xor eax, eax
jmp 0x40204f
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402047
mov eax, 0xffffffff
jmp 0x40204f
mov eax, dword [ebp - 4]
jmp 0x40204f
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 2
mov eax, dword [ebp + 8]
push eax
call sym.Dynedw.exe__wilSocketStatus_8
test eax, eax
jne 0x40207c
mov eax, 0xffffffff
jmp 0x4020c8
push 0
mov eax, dword [ebp + 8]
push eax
call sym.Dynedw.exe__wilDataIsReady_8
test eax, eax
jne 0x402096
xor eax, eax
jmp 0x4020c8
push 2
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4020c0
mov eax, 0xffffffff
jmp 0x4020c8
mov eax, dword [ebp - 4]
jmp 0x4020c8
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 2
mov eax, dword [ebp + 8]
push eax
call sym.Dynedw.exe__wilSocketStatus_8
test eax, eax
jne 0x4022b2
mov eax, 0xffffffff
jmp 0x4022e4
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4022dc
mov eax, 0xffffffff
jmp 0x4022e4
mov eax, dword [ebp - 4]
jmp 0x4022e4
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 2
mov eax, dword [ebp + 8]
push eax
call sym.Dynedw.exe__wilSocketStatus_8
test eax, eax
jne 0x402311
mov eax, 0xffffffff
jmp 0x402349
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402341
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x402349
mov eax, dword [ebp - 4]
jmp 0x402349
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4023e7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 2
mov eax, dword [ebp + 8]
push eax
call sym.Dynedw.exe__wilSocketStatus_8
test eax, eax
jne 0x40240d
mov eax, 0xffffffff
jmp 0x402445
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40243d
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x402445
mov eax, dword [ebp - 4]
jmp 0x402445
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40264c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402685
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x4026ac
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x4026a2
mov eax, 0xfffffff4
jmp 0x4026ac
mov eax, 1
jmp 0x4026ac
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4026b3
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
push 0x50
lea eax, [ebp - 0x54]
push eax
call sub.WSOCK32.dll_gethostname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4026ea
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x40271a
movsx eax, byte [ebp - 0x54]
test eax, eax
jne 0x402700
mov eax, 0xfffffff4
jmp 0x40271a
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x54]
push eax
call sym.Dynedw.exe__wilGetHostDotted_16
jmp 0x40271a
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x402721
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov byte [ebp - 0x54], 0
push 0x50
lea eax, [ebp - 0x54]
push eax
call sub.WSOCK32.dll_gethostname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402756
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x402768
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x54]
push eax
call sym.Dynedw.exe__wilGetHostAddr_8
jmp 0x402768
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_getsockname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x402961
xor eax, eax
jmp 0x40296f
mov eax, dword [ebp - 0x14]
push eax
call sub.WSOCK32.dll_ntohl
jmp 0x40296f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402976
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_getsockname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4029ac
xor ax, ax
jmp 0x4029ba
mov eax, dword [ebp - 0x16]
push eax
call sub.WSOCK32.dll_ntohs
jmp 0x4029ba
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402fee
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40301f
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x403051
mov eax, dword [ebp - 4]
push eax
call fcn.004019d7
add esp, 4
test eax, eax
jne 0x403049
mov eax, dword [ebp - 4]
push eax
call fcn.00401a8a
add esp, 4
mov eax, 0xfffffff7
jmp 0x403051
mov eax, dword [ebp - 4]
jmp 0x403051
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 8], 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00401ac9
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x403089
mov eax, 0xfffffff7
jmp 0x40311c
mov eax, dword [ebp - 0x18]
push eax
call fcn.00403166
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_recvfrom
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4030d0
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x40311c
cmp dword [ebp - 4], 0
jle 0x403114
cmp dword [ebp + 0x14], 0
je 0x403114
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403123
add esp, 0xc
push 0xf
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sym.Dynedw.exe__wilMakeDotted_12
mov eax, dword [ebp - 4]
jmp 0x40311c
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40319e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00401ac9
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4031d1
mov eax, 0xfffffff7
jmp 0x40327f
cmp dword [ebp + 0x14], 0
jne 0x4031ef
mov eax, dword [ebp - 0x10]
push eax
call fcn.00403166
add esp, 4
mov dword [ebp - 8], eax
jmp 0x403225
mov eax, dword [ebp - 0x10]
push eax
call fcn.00403286
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov word [eax], 2
mov eax, dword [ebp + 0x18]
push eax
call sub.WSOCK32.dll_htons
mov ecx, dword [ebp - 8]
mov word [ecx + 2], ax
mov eax, dword [ebp + 0x14]
push eax
call sub.WSOCK32.dll_htonl
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40325d
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x40327f
cmp dword [ebp - 0xc], 0
jne 0x403277
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x40327f
mov eax, dword [ebp - 0xc]
jmp 0x40327f
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x40331c
Capabilities:
Create raw socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 1
push 3
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40334d
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x4033b5
mov eax, dword [ebp - 4]
push eax
call fcn.004019d7
add esp, 4
test eax, eax
jne 0x403377
mov eax, dword [ebp - 4]
push eax
call fcn.00401a8a
add esp, 4
mov eax, 0xfffffff7
jmp 0x4033b5
push 4
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4033ad
xor ebx, ebx
call sub.WSOCK32.dll_WSAGetLastError
sub ebx, eax
mov eax, ebx
jmp 0x4033b5
mov eax, dword [ebp - 4]
jmp 0x4033b5
pop edi
pop esi
pop ebx
leave
ret