joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aadd
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 2
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
mov byte [ebp - 0x10], al
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, word [0x42b81c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x42b80c
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0x38]
push 0
add eax, 4
push eax
lea eax, [esi + 0x60]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040e92f
leave
ret

Function at 0x40ab86
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x108], eax
mov eax, dword [esi + 0x3c]
xor ecx, ecx
push edi
xor edi, edi
inc ecx
sub eax, edi
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], edi
je 0x40abb9
dec eax
mov eax, dword [esi + 0x4c]
jne 0x40abc2
inc eax
shr eax, 1
jmp 0x40abc2
mov eax, dword [esi + 0x4c]
add eax, 3
shr eax, 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x40abed
push str.select
push edi
mov eax, esi
call fcn.0040ab4f
pop ecx
pop ecx
pop edi
leave
ret
Function at 0x40b2ee
Capabilities:
Send data
Send data on socket

Disassembly:
test esi, esi
jne 0x40b309
push 0x24e
push str.._services_tftpd_thread.c
push str.pTftp_NULL
call fcn.0040fbb1
add esp, 0xc
add dword [esi + 0x38], 2
push dword [esi + 0x38]
push str.send_OACK__d_bytes
push 0xa
call fcn.004010eb
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
je 0x40b342
push dword [esi + 0x38]
lea ecx, [esi + 0x4064]
push ecx
lea ecx, [esi + 0x4268]
push ecx
push eax
call fcn.0040e84c
add esp, 0x10
jmp 0x40b357
push 0
push dword [esi + 0x38]
lea eax, [esi + 0x4064]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x40b364
cmp eax, dword [esi + 0x38]
jne 0x40b364
xor eax, eax
inc eax
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_:_Error__d
push 0
call fcn.004010eb
add esp, 0xc
xor eax, eax
ret
Function at 0x40c326
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42a2e4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
push esi
or ebp, 0xffffffff
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], 0x10
mov eax, 0x7ca
push 0x42b964
push 0x42619c
mov word [0x42b964], ax
call fcn.0040d385
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
jne 0x40c3b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
jne 0x40c3a3
xor eax, eax
push 0x442b24
push eax
mov word [0x442b24], ax
call fcn.0040d385
mov esi, eax
pop ecx
pop ecx
cmp esi, ebp
jne 0x40c3b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.can_not_create_listening_socket_nError__d
call fcn.004011e3
pop ecx
pop ecx
jmp 0x40c430
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 8
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [0x443228]
push ebp
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x40c3f5
push dword [esp + 0x18]
call edi
push esi
call ebx
jmp 0x40c444
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x40c421
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.accept_error__d
call fcn.004011e3
pop ecx
pop ecx
push dword [esp + 0x18]
call edi
push esi
call ebx
cmp dword [esp + 0x14], ebp
jne 0x40c453
cmp dword [0x443220], 0
je 0x40c48a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x443220], 0
jne 0x40c353
jmp 0x40c48a
push 4
lea eax, [esp + 0x1c]
push eax
push 8
push 0xffff
push dword [esp + 0x24]
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40c48a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_during_setsockopt_n
call fcn.0040cc99
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e92f
add esp, 0x2c
ret

Function at 0x40c8d6
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push str.Tftpd32
push 0
mov dword [ebp - 8], 0x42a004
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c929
push esi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
movzx eax, word [ebp + 0xc]
push 2
push 0
push eax
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x40cc99
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.Th_5d_:
mov esi, 0x1ff
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.0040e9bb
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
sub esi, eax
lea eax, [ebp + eax - 0x204]
push esi
push eax
call fcn.0040eb2d
add esp, 0x20
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e92f
leave
ret
Function at 0x40cd03
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x3dc]
sub esp, 0x45c
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp + 0x3d8], eax
mov eax, dword [ebp + 0x3ec]
or dword [ebp - 0x6c], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x3f8]
push esi
mov esi, dword [ebp + 0x3e4]
push edi
mov edi, dword [ebp + 0x3e8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x3f0]
push 0x5c
push esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], ebx
call fcn.00410620
pop ecx
pop ecx
test eax, eax
je 0x40cd63
lea esi, [eax + 1]
push 0x40
push esi
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x68]
push eax
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp + 0x398]
push eax
mov byte [ebp + 0x3d7], 0
call edi
mov esi, eax
test esi, esi
jle 0x40cde1
mov eax, dword [ebp + 0x3f4]
dec eax
je 0x40cdc3
sub eax, 3
jne 0x40cea4
lea eax, [ebp - 0x68]
push eax
call fcn.0040f43c
pop ecx
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
jmp 0x40cea4
push dword [ebp - 0x74]
mov edi, dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x74]
mov byte [eax + edi - 1], 0
jmp 0x40cea4
push dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push ebx
push eax
push 0
push 0
lea eax, [ebp + 0x398]
push eax
call edi
xor esi, esi
cmp eax, esi
lea edx, [ebp - 0x68]
jle 0x40ce4d
cmp byte [edx], 0
je 0x40ce4d
mov edi, dword [ebp - 0x78]
mov ecx, edx
mov bl, byte [ecx]
cmp bl, byte [edi]
jne 0x40ce27
test bl, bl
je 0x40ce23
mov bl, byte [ecx + 1]
cmp bl, byte [edi + 1]
jne 0x40ce27
inc ecx
inc ecx
inc edi
inc edi
test bl, bl
jne 0x40ce09
xor ecx, ecx
jmp 0x40ce2c
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, esi
je 0x40ce4d
mov ecx, edx
lea edi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x40ce35
sub ecx, edi
lea edx, [edx + ecx + 1]
mov ecx, edx
lea edi, [ebp - 0x68]
sub ecx, edi
cmp ecx, eax
jl 0x40cdff
mov ecx, edx
lea edi, [ebp - 0x68]
sub ecx, edi
cmp ecx, eax
jge 0x40ce5d
cmp byte [edx], 0
jne 0x40cea4
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push esi
push dword [ebp - 0x80]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cea4
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x70]
push esi
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x6c], 0xffffffff
je 0x40cea4
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x3d8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e92f
add ebp, 0x3dc
leave
ret
Function at 0x40cebe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
mov dword [ebp - 0x488], eax
mov eax, dword [ebp + 0x1c]
push accept
push eax
mov dword [ebp - 0x490], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40cf83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c
push edi
call fcn.00410620
pop ecx
pop ecx
test eax, eax
je 0x40cf22
lea edi, [eax + 1]
push edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
dec eax
je 0x40cf65
sub eax, 3
jne 0x40cfeb
push dword [ebx]
lea eax, [ebp - 0x484]
push 0x42a01c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 0x490]
lea eax, [ebp - 0x484]
push eax
jmp 0x40cf6c
push dword [ebp - 0x490]
push ebx
push dword [ebp - 0x488]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, eax
jmp 0x40cfeb
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x48c]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cfeb
cmp dword [ebp + 0x18], 1
jne 0x40cfbc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
jmp 0x40cfbf
mov eax, dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x18]
push 0
push dword [ebp - 0x488]
push dword [ebp - 0x48c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x48c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e92f
leave
ret

Function at 0x40d217
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc eax
and ecx, 0x10
neg eax
sbb eax, eax
and eax, ecx
ret
Function at 0x40d22e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
push eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0x19], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str..
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d335
test byte [ebp - 0x35c], 0x10
jne 0x40d31f
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 9
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x374]
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push dword [ebp - 0x33c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x21c]
push str._s_t_s_t_d
push eax
mov byte [ebp - 8], 0
mov byte [ebp - 0x2f2], 0
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x35c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d291
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e92f
leave
ret

Function at 0x40d34a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40d380
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40d380
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.004118a0
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40d385
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x18], 0x10
test eax, eax
je 0x40d3be
push 0x42a0c0
push eax
call sub.WS2_32.dll_getservbyname
test eax, eax
je 0x40d3be
mov ax, word [eax + 8]
jmp 0x40d3c7
movzx eax, word [ebx]
push eax
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40d3e3
mov eax, edi
jmp 0x40d441
and dword [ebp - 0x10], 0
push 2
pop eax
push dword [ebp - 0x18]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_bind
cmp eax, edi
jne 0x40d416
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call sub.WS2_32.dll_closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40d3df
push 1
push esi
call sub.WS2_32.dll_listen
cmp eax, edi
je 0x40d3ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x40d43f
push dword [ebp - 0x12]
call sub.WS2_32.dll_htons
mov word [ebx], ax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e92f
leave
ret

Function at 0x40d450
Capabilities:
Download and write a file
Get socket status
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x40d469
or eax, edi
jmp 0x40d502
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], 1
cmp eax, esi
je 0x40d496
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40d491
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
jmp 0x40d498
xor eax, eax
push eax
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [edi + 1]
push eax
call sub.WS2_32.dll_select
cmp eax, esi
jge 0x40d4b4
or eax, 0xffffffff
jmp 0x40d501
jne 0x40d4bb
push 0xfffffffffffffffe
pop eax
jmp 0x40d501
cmp dword [ebp + 0xc], esi
je 0x40d4fe
cmp dword [ebp + 0x10], esi
je 0x40d4fe
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call sub.WS2_32.dll_recv
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40d501
cmp edi, esi
je 0x40d4fa
cmp dword [ebp + 0x18], eax
je 0x40d4f6
push esi
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
jmp 0x40d501
xor eax, eax
jmp 0x40d501
xor eax, eax
inc eax
pop esi
pop edi
leave
ret
Function at 0x40d505
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x40d561
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x40d530
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
xor esi, esi
inc eax
test edi, edi
jbe 0x40d556
test eax, eax
jle 0x40d556
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_send
add esi, eax
cmp esi, edi
jb 0x40d539
cmp esi, edi
sbb eax, eax
pop edi
and eax, 0xfffffffe
pop esi
inc eax
pop ebx
leave
ret

Function at 0x40d563
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 0x10]
push edi
call sub.WS2_32.dll_htons
movzx eax, ax
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x40d5e7
cmp edi, 0x7fff
jbe 0x40d58d
push 0xfffffffffffffff7
pop eax
jmp 0x40d5e7
push ebx
mov ebx, dword [ebp + 0xc]
push esi
cmp dword [ebp + 0x14], eax
je 0x40d5a8
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
push esi
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_send
xor eax, eax
inc eax
test edi, edi
jbe 0x40d5dd
test eax, eax
jle 0x40d5dd
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_send
add esi, eax
cmp esi, edi
jb 0x40d5c0
cmp esi, edi
sbb eax, eax
and eax, 0xfffffffe
pop esi
inc eax
pop ebx
pop edi
leave
ret

Function at 0x40d668
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x40d698
push 0x42a0c4
push eax
call sub.WS2_32.dll_getservbyname
test eax, eax
je 0x40d698
mov ax, word [eax + 8]
jmp 0x40d6a0
push dword [ebp + 0x10]
call sub.WS2_32.dll_htons
push esi
mov word [ebp - 0x12], ax
call fcn.0040d34a
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40d6df
push 2
pop eax
push 0
push 1
push eax
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x40d6df
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40d6df
mov eax, esi
jmp 0x40d6e2
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e92f
leave
ret
Function at 0x40d71b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x204], eax
jne 0x40d748
mov eax, 0x42a0c8
jmp 0x40d758
cmp dword [ebp + 0xc], 2
mov eax, str.DELETE
je 0x40d758
mov eax, str.OTHER
push ebx
mov ebx, dword [ebp + 0x14]
push ebx
push edi
push eax
push dword [ebp + 0xc]
push str.TrayMessage_Call_:_msg__d___s___wnd__d__id__d_n
call fcn.0040cc99
push 0x1fc
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.00411820
add esp, 0x20
cmp dword [ebp + 0xc], 2
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x200], 0x1fc
mov dword [ebp - 0x1fc], edi
pop ebx
je 0x40d7ce
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x1ec], eax
push 0x7f
lea eax, [ebp - 0x1e8]
push eax
push edi
mov dword [ebp - 0x1f4], 7
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
pop edi
test eax, eax
jne 0x40d7fd
call fcn.0040cc32
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_in_Shell_NotifyIcon___s__n
call fcn.0040cc99
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e92f
leave
ret

Function at 0x40d9e5
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
push esi
push esi
push 0x18b
push dword [esp + 0x28]
call edi
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x40da1d
push 0
push esi
push 0x18a
push dword [esp + 0x28]
call edi
add ebx, eax
inc esi
cmp esi, ebp
jl 0x40da08
lea ebx, [ebx + ebp*2 + 1]
push ebx
mov dword [esp + 0x18], ebx
call fcn.0040f0fc
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40da3e
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x40da9a
xor ebx, ebx
mov esi, eax
test ebp, ebp
jle 0x40da86
mov ecx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
push 0
push ebx
push 0x18a
push dword [esp + 0x28]
call edi
add eax, esi
cmp eax, dword [esp + 0x14]
jae 0x40da82
push esi
push ebx
push 0x189
push dword [esp + 0x28]
call edi
add esi, eax
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
inc esi
inc ebx
cmp ebx, ebp
jl 0x40da50
mov eax, dword [esp + 0x10]
push eax
mov byte [esi], 0
call fcn.0040d8d5
push dword [esp + 0x14]
call fcn.0040ed04
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40de73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebx, ebx
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x40de9c
push 0x2b
push str...mini_tcp4u_tcp4u_exchg.c
push str.nKeyLen___0
call fcn.0040fbb1
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 8], ebx
jle 0x40deb8
mov eax, ebx
cdq
idiv dword [ebp - 4]
add ebx, 0xd
mov al, byte [edx + esi]
xor byte [ecx + edi], al
inc ecx
cmp ecx, dword [ebp + 8]
jl 0x40dea3
mov eax, edi
pop ebx
leave
ret
Function at 0x40dfbc
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40e84c
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0x11
push 2
push 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
call sub.WS2_32.dll_socket
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x40e8ff
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
test eax, eax
mov eax, str.UdpSend:_Port__d_may_be_reused
je 0x40e8a3
mov eax, str.setsockopt_error
push edi
push dword [ebp + 8]
push eax
call fcn.0040cc99
pop ecx
pop ecx
push 2
pop eax
push 0
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htonl
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_bind
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.UdpSend_bind_returns__d__error__d_
call fcn.0040cc99
add esp, 0xc
test edi, edi
jge 0x40e90d
push 0xfffffffffffffff8
pop edi
push esi
call sub.WS2_32.dll_closesocket
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e92f
leave
ret
push 0x10
push ebx
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
push esi
call sub.WS2_32.dll_sendto
mov edi, eax
push edi
push str.sendto_returns__d
call fcn.0040cc99
pop ecx
pop ecx
jmp 0x40e8f6

Function at 0x40e92f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a2e4]
jne 0x40e939
repz ret
jmp fcn.00411c05