joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba2d
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x42a43c]
xor eax, esp
mov dword [esp + 0x20], 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 + 0x10], ebp
mov dword [esp + 0x1c], 0x10
mov eax, 0x7ca
push 0x429f9c
push 0x423914
mov word [0x429f9c], ax
call fcn.0040ca52
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
jne 0x40babf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
jne 0x40baaa
xor eax, eax
push 0x44053c
push eax
mov word [0x44053c], ax
call fcn.0040ca52
mov esi, eax
pop ecx
pop ecx
cmp esi, ebp
jne 0x40babf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.can_not_create_listening_socket_nError__d
call fcn.004011d2
pop ecx
pop ecx
jmp 0x40bb37
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 8
push eax
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [0x440c48]
push ebp
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x40bafc
push dword [esp + 0x14]
call edi
push esi
call ebx
jmp 0x40bb4b
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x40bb28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.accept_error__d
call fcn.004011d2
pop ecx
pop ecx
push dword [esp + 0x14]
call edi
push esi
call ebx
cmp dword [esp + 0x10], ebp
jne 0x40bb5a
cmp dword [0x440c40], 0
je 0x40bb91
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x440c40], 0
jne 0x40ba5a
jmp 0x40bb91
push 4
lea eax, [esp + 0x18]
push eax
push 8
push 0xffff
push dword [esp + 0x20]
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40bb91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_during_setsockopt_n
call fcn.0040c685
pop ecx
pop ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e1f0
add esp, 0x24
ret

Function at 0x40bfc0
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], 0x42a2b0
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c013
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 0x40c01a
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x3dc]
sub esp, 0x45c
mov eax, dword [0x42a43c]
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.00410170
pop ecx
pop ecx
test eax, eax
je 0x40c07a
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 0x40c0f8
mov eax, dword [ebp + 0x3f4]
dec eax
je 0x40c0da
sub eax, 3
jne 0x40c1c4
lea eax, [ebp - 0x68]
push eax
call fcn.0040f11b
pop ecx
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
jmp 0x40c1c4
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 0x40c1c4
push dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push ebx
push eax
push 0
push 0
lea eax, [ebp + 0x398]
push eax
call edi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
lea ecx, [ebp - 0x68]
jle 0x40c165
cmp byte [ecx], bl
je 0x40c165
mov edi, dword [ebp - 0x78]
mov eax, ecx
mov dl, byte [eax]
cmp dl, byte [edi]
jne 0x40c13f
test dl, dl
je 0x40c13b
mov dl, byte [eax + 1]
cmp dl, byte [edi + 1]
jne 0x40c13f
inc eax
inc eax
inc edi
inc edi
test dl, dl
jne 0x40c121
xor eax, eax
jmp 0x40c144
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40c165
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c14d
sub eax, edi
lea ecx, [ecx + eax + 1]
mov eax, ecx
lea edx, [ebp - 0x68]
sub eax, edx
cmp eax, esi
jl 0x40c118
mov eax, ecx
lea edx, [ebp - 0x68]
sub eax, edx
cmp eax, esi
jge 0x40c17d
cmp byte [ecx], bl
je 0x40c17d
mov eax, dword [ebp - 0x70]
mov byte [eax], bl
xor esi, esi
jmp 0x40c1c4
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x80]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c1c4
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x70]
push ebx
push ebx
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 0x40c1c4
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.0040e1f0
add ebp, 0x3dc
leave
ret
Function at 0x40c1de
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x42a43c]
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 bind
push eax
mov dword [ebp - 0x490], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40c2a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c
push edi
call fcn.00410170
pop ecx
pop ecx
test eax, eax
je 0x40c242
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 0x40c285
sub eax, 3
jne 0x40c30b
push dword [ebx]
lea eax, [ebp - 0x484]
push 0x42a2bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 0x490]
lea eax, [ebp - 0x484]
push eax
jmp 0x40c28c
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 0x40c30b
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 0x40c30b
cmp dword [ebp + 0x18], 1
jne 0x40c2dc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
jmp 0x40c2df
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.0040e1f0
leave
ret
Function at 0x40c685
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42a43c]
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.0040e061
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
sub esi, eax
lea eax, [ebp + eax - 0x204]
push esi
push eax
call fcn.0040e1d3
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.0040e1f0
leave
ret

Function at 0x40c8e4
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 0x40c8fb
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x42a43c]
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 0x40ca02
test byte [ebp - 0x35c], 0x10
jne 0x40c9ec
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 0x40c95e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e1f0
leave
ret

Function at 0x40ca17
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 0x40ca4d
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40ca4d
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.0040e710
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40ca52
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a43c]
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 0x40ca8b
push 0x42a2e0
push eax
call sub.WS2_32.dll_getservbyname
test eax, eax
je 0x40ca8b
mov ax, word [eax + 8]
jmp 0x40ca94
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 0x40cab0
mov eax, edi
jmp 0x40cb0e
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 0x40cae3
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 0x40caac
push 1
push esi
call sub.WS2_32.dll_listen
cmp eax, edi
je 0x40cacc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x40cb0c
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.0040e1f0
leave
ret

Function at 0x40cb1d
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 0x40cb36
or eax, edi
jmp 0x40cbcf
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], 1
cmp eax, esi
je 0x40cb63
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40cb5e
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
jmp 0x40cb65
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 0x40cb81
or eax, 0xffffffff
jmp 0x40cbce
jne 0x40cb88
push 0xfffffffffffffffe
pop eax
jmp 0x40cbce
cmp dword [ebp + 0xc], esi
je 0x40cbcb
cmp dword [ebp + 0x10], esi
je 0x40cbcb
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 0x40cbce
cmp edi, esi
je 0x40cbc7
cmp dword [ebp + 0x18], eax
je 0x40cbc3
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 0x40cbce
xor eax, eax
jmp 0x40cbce
xor eax, eax
inc eax
pop esi
pop edi
leave
ret
Function at 0x40cbd2
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 0x40cc2e
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x40cbfd
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 0x40cc23
test eax, eax
jle 0x40cc23
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 0x40cc06
cmp esi, edi
sbb eax, eax
pop edi
and eax, 0xfffffffe
pop esi
inc eax
pop ebx
leave
ret

Function at 0x40cc30
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 0x40ccb4
cmp edi, 0x7fff
jbe 0x40cc5a
push 0xfffffffffffffff7
pop eax
jmp 0x40ccb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
cmp dword [ebp + 0x14], eax
je 0x40cc75
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 0x40ccaa
test eax, eax
jle 0x40ccaa
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 0x40cc8d
cmp esi, edi
sbb eax, eax
and eax, 0xfffffffe
pop esi
inc eax
pop ebx
pop edi
leave
ret

Function at 0x40cd35
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 [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x40cd65
push 0x42a2e4
push eax
call sub.WS2_32.dll_getservbyname
test eax, eax
je 0x40cd65
mov ax, word [eax + 8]
jmp 0x40cd6d
push dword [ebp + 0x10]
call sub.WS2_32.dll_htons
push esi
mov word [ebp - 0x12], ax
call fcn.0040ca17
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40cdac
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 0x40cdac
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40cdac
mov eax, esi
jmp 0x40cdaf
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e1f0
leave
ret
Function at 0x40cde8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x42a43c]
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 0x40ce15
mov eax, 0x42a2e8
jmp 0x40ce25
cmp dword [ebp + 0xc], 2
mov eax, str.DELETE
je 0x40ce25
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.0040c685
push 0x1fc
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.0040ed00
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 0x40ce9b
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 0x40ceca
call fcn.0040c61e
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_in_Shell_NotifyIcon___s__n
call fcn.0040c685
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e1f0
leave
ret

Function at 0x40d0b2
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 0x40d0ea
push 0
push esi
push 0x18a
push dword [esp + 0x28]
call edi
add ebx, eax
inc esi
cmp esi, ebp
jl 0x40d0d5
lea ebx, [ebx + ebp*2 + 1]
push ebx
mov dword [esp + 0x18], ebx
call fcn.0040e5ac
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40d10b
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x40d167
xor ebx, ebx
mov esi, eax
test ebp, ebp
jle 0x40d153
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 0x40d14f
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 0x40d11d
mov eax, dword [esp + 0x10]
push eax
mov byte [esi], 0
call fcn.0040cfa2
push dword [esp + 0x14]
call fcn.0040e676
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40d540
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
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
jle 0x40d56d
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 0x40d558
mov eax, edi
pop ebx
leave
ret
Function at 0x40d671
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 0x40df01
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 [0x42a43c]
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 0x40dfb4
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 0x40df58
mov eax, str.setsockopt_error
push edi
push dword [ebp + 8]
push eax
call fcn.0040c685
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.0040c685
add esp, 0xc
test edi, edi
jge 0x40dfc2
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.0040e1f0
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.0040c685
pop ecx
pop ecx
jmp 0x40dfab

Function at 0x40e1f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a43c]
jne 0x40e1fa
repz ret
jmp fcn.00412ec2
Function at 0x418cb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004146ba
and dword [ebp - 4], 0
cmp dword [0x43f5a8], 0
mov ebx, eax
jne 0x418d68
push 0x426078
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x418e19
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x418e19
push eax
call fcn.00414648
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f5a8], eax
call esi
push eax
call fcn.00414648
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f5ac], eax
call esi
push eax
call fcn.00414648
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x43f5b0], eax
call esi
push eax
call fcn.00414648
pop ecx
mov dword [0x43f5b8], eax
test eax, eax
je 0x418d68
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414648
pop ecx
mov dword [0x43f5b4], eax
mov eax, dword [0x43f5b4]
cmp eax, ebx
je 0x418dc0
cmp dword [0x43f5b8], ebx
je 0x418dc0
push eax
call fcn.004146c3
push dword [0x43f5b8]
mov esi, eax
call fcn.004146c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418dc0
test edi, edi
je 0x418dc0
call esi
test eax, eax
je 0x418db7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418db7
test byte [ebp - 0xc], 1
jne 0x418dc0
or dword [ebp + 0x10], 0x200000
jmp 0x418df9
mov eax, dword [0x43f5ac]
cmp eax, ebx
je 0x418df9
push eax
call fcn.004146c3
pop ecx
test eax, eax
je 0x418df9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418df9
mov eax, dword [0x43f5b0]
cmp eax, ebx
je 0x418df9
push eax
call fcn.004146c3
pop ecx
test eax, eax
je 0x418df9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f5a8]
call fcn.004146c3
pop ecx
test eax, eax
je 0x418e19
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418e1b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret