joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c9d6
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], esi
cmp ebx, 0x204
jle 0x40ca02
xor eax, eax
inc eax
jmp 0x40cae6
push edi
cmp ebx, dword [0x4409d8]
jne 0x40cab5
mov ecx, ebx
mov edi, 0x440a70
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40cab5
push 0x20
mov esi, eax
pop ecx
mov edi, 0x4409f0
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40cab5
push eax
call fcn.00412615
pop ecx
cmp eax, dword [0x4409e8]
jne 0x40cab5
cmp edx, dword [0x4409ec]
jne 0x40cab5
mov al, byte [0x44500b]
push 0x27
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x4b]
push 0
push eax
call fcn.00414720
mov al, byte [0x445020]
add esp, 0xc
push 7
pop ecx
mov byte [ebp - 0x24], al
xor eax, eax
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
push 0x20
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
push 0x28
lea eax, [ebp - 0x4c]
push eax
push 4
push dword [ebp - 0x50]
call dword [sym.imp.WS2_32.dll_getnameinfo]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x4c]
push eax
push str.Warning_:_received_duplicated_request_from__s:_s
push 1
call fcn.0040764f
add esp, 0x10
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40cae3
push ebx
push dword [ebp - 0x54]
mov dword [0x4409d8], ebx
push 0x440a70
call fcn.004147a0
mov esi, dword [ebp - 0x50]
push 0x20
pop ecx
mov edi, 0x4409f0
push 0x4409e8
rep movsd dword es:[edi], dword [esi]
call fcn.00412615
add esp, 0x10
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411a98
leave
ret
Function at 0x40ceab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp - 4]
push edi
xor ebx, ebx
xor edi, edi
push 0x4588
push 1
call fcn.00411f00
pop ecx
pop ecx
cmp dword [0x44618c], ebx
jne 0x40ced6
mov dword [0x44618c], eax
jmp 0x40cedc
mov dword [esi + 0x4584], eax
push ebx
push ebx
mov esi, eax
push ebx
push ebx
mov dword [esi + 0x4584], ebx
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
lea eax, [esi + 0xc]
push eax
push ebx
push esi
push 0x40e7b0
push 0x2000
inc edi
push ebx
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [esi + 0x24], 0xffffffff
mov dword [esi + 8], eax
cmp edi, 2
jl 0x40ceb9
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx + 0x20], 0xffffffff
jne 0x40d21e
xor eax, eax
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 5
lea esi, [ebx + 0x60]
call edi
push dword [ebp + 8]
mov word [esi], ax
call edi
mov word [esi + 2], ax
xor eax, eax
mov edi, 0x42ab60
cmp dword [0x42ab60], eax
jl 0x40d25a
mov ecx, dword [edi]
cmp ecx, dword [ebp + 8]
je 0x40d256
add edi, 8
cmp dword [edi], eax
jge 0x40d248
cmp dword [edi], eax
jge 0x40d270
mov eax, dword [ebp + 8]
add eax, 0xffffff9c
push eax
call fcn.00413d97
mov dword [edi + 4], eax
xor eax, eax
pop ecx
mov word [esi + 2], ax
push dword [edi + 4]
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov byte [edi + esi + 4], 0
push 0
add edi, 5
push edi
push esi
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_send]
sub eax, edi
neg eax
pop edi
sbb eax, eax
pop esi
pop ebp
ret
Function at 0x40d2fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x451c]
push eax
lea ebx, [esi + 0x4574]
push ebx
call fcn.00411004
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
push 0x42c32c
lea eax, [ebp - 0x230]
push eax
call edi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d361
cmp byte [ebp + eax - 0x231], 0x5c
je 0x40d361
mov byte [ebp + eax - 0x230], 0x5c
inc eax
add esi, 0x42ea
push esi
lea eax, [ebp + eax - 0x230]
push eax
call edi
push str..md5
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
push esi
push 0x8000020
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x234], esi
mov eax, dword [ebp - 0x234]
movzx ecx, byte [ebx + eax]
push ecx
lea eax, [ebp + eax*2 - 0x28]
push 0x42abb8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc dword [ebp - 0x234]
cmp dword [ebp - 0x234], 0x10
jl 0x40d3ab
push esi
lea eax, [ebp - 0x234]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
push eax
push str.MD5_written_into___s_
push 2
call fcn.0040764f
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00411a98
leave
ret

Function at 0x40d50a
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x104], eax
mov eax, dword [esi + 0x3c]
xor ecx, ecx
push edi
xor edi, edi
inc ecx
sub eax, edi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], edi
je 0x40d54a
dec eax
mov eax, dword [esi + 0x4c]
jne 0x40d553
inc eax
shr eax, 1
jmp 0x40d553
mov eax, dword [esi + 0x4c]
add eax, 3
shr eax, 2
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
push eax
push edi
push edi
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x40d584
push str.select
push edi
mov eax, esi
call fcn.0040d4d1
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00411a98
leave
ret
Function at 0x40ddb3
Capabilities:
Send data
Send data on socket

Disassembly:
test esi, esi
jne 0x40ddce
push 0x23e
push 0x42aed8
push 0x42af10
call fcn.00411f5e
add esp, 0xc
add dword [esi + 0x38], 2
push dword [esi + 0x38]
push str.send_OACK__d_bytes
push 0xa
call fcn.0040764f
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
je 0x40de0c
push dword [esi + 0x38]
lea ecx, [esi + 0x4064]
push ecx
push 0x80
lea ecx, [esi + 0x4268]
push ecx
push eax
call fcn.00411976
add esp, 0x14
jmp 0x40de21
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
js 0x40de2e
cmp eax, dword [esi + 0x38]
jne 0x40de2e
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_:_Error__d
push 0
call fcn.0040764f
add esp, 0xc
xor eax, eax
ret
Function at 0x40de4f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [esi + 0x42e8]
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
push eax
call edi
xor ebx, ebx
inc ebx
cmp ax, bx
mov eax, dword [esi + 0x2c]
jne 0x40de80
dec eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0x42af4c
cmp dword [esi + 0x44f8], ebx
ja 0x40dea2
mov dword [ebp - 0x210], 0x445021
mov dword [ebp - 0x20c], 0x42af50
cmp dword [ebp - 0x214], ebx
jg 0x40debe
mov dword [ebp - 0x20c], 0x445022
movzx eax, word [esi + 0x42e8]
push eax
call edi
mov dword [ebp - 0x208], 0x42af54
cmp ax, bx
je 0x40dee1
mov dword [ebp - 0x208], 0x42af5c
xor edi, edi
push edi
call fcn.00412615
push dword [ebp - 0x210]
sub eax, dword [esi + 0x4500]
push dword [esi + 0x44f8]
lea ebx, [esi + 0x42ea]
push eax
push dword [esi + 0x44f4]
mov dword [ebp - 0x218], edx
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
push dword [ebp - 0x208]
push ebx
push 0x42af64
push 2
call fcn.0040764f
add esp, 0x2c
cmp dword [0x42bffc], edi
je 0x40df62
push edi
call fcn.00412615
sub eax, dword [esi + 0x4500]
pop ecx
sbb edx, dword [esi + 0x4504]
mov dword [ebp - 0x218], edx
js 0x40df62
jg 0x40df5a
cmp eax, 0xa
jbe 0x40df62
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov al, byte [0x445023]
push 0x103
mov byte [ebp - 0x204], al
lea eax, [ebp - 0x203]
push edi
push eax
call fcn.00414720
mov al, byte [0x445024]
push 0xf9
mov byte [ebp - 0x100], al
lea eax, [ebp - 0xff]
push edi
push eax
call fcn.00414720
add esp, 0x18
lea eax, [ebp - 0x100]
push eax
push 0xfa
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40e0ad
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x204]
push str._s_tftp_resFile.txt
push eax
call fcn.00412f22
lea eax, [ebp - 0x204]
push 0x42afb0
push eax
call fcn.004136b1
add esp, 0x14
mov dword [ebp - 0x218], eax
cmp eax, edi
je 0x40e0bf
cmp dword [esi + 0x44f8], 1
mov dword [ebp - 0x208], 0x42afb4
ja 0x40e010
mov dword [ebp - 0x208], 0x445025
cmp dword [ebp - 0x214], 1
mov dword [ebp - 0x20c], 0x42afb8
jg 0x40e02d
mov dword [ebp - 0x20c], 0x445026
movzx eax, word [esi + 0x42e8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov dword [ebp - 0x210], 0x42afbc
cmp ax, 1
je 0x40e055
mov dword [ebp - 0x210], 0x42afc4
push edi
call fcn.00412615
push dword [ebp - 0x208]
sub eax, dword [esi + 0x4500]
push dword [esi + 0x44f8]
mov dword [ebp - 0x220], edx
push eax
push dword [esi + 0x44f4]
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push ebx
push str.__s_:__s__d_blk_s___d_bytes_in__d_s.__d_blk_s_resent
push dword [ebp - 0x218]
call fcn.00413e01
push dword [ebp - 0x218]
call fcn.0041377c
add esp, 0x30
jmp 0x40e0bf
push edi
push str.GetCurrentDir
push str.Error_in
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x40f0c3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push esi
or esi, 0xffffffff
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x98], 0x80
mov eax, 0xbb2
mov word [0x42c434], ax
cmp dword [0x42a910], esi
jne 0x40f124
push 0x42c434
push 0x42a914
push 2
call fcn.0040f559
add esp, 0xc
mov dword [0x42a910], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x42a910], esi
jne 0x40f17c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
jne 0x40f15c
xor eax, eax
push 0x447b94
push eax
push 2
mov word [0x447b94], ax
call fcn.0040f559
add esp, 0xc
mov dword [0x42a910], eax
cmp dword [0x42a910], esi
jne 0x40f17c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.can_not_create_listening_socket_nError__d
call fcn.00407736
pop ecx
pop ecx
jmp 0x40f220
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 8
push eax
push dword [0x42a910]
mov dword [ebp - 0x94], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [0x446a68]
push esi
mov dword [ebp - 0x90], eax
push 0
lea eax, [ebp - 0x94]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x40f1cb
push dword [ebp - 0x94]
call edi
push dword [0x42a910]
call ebx
jmp 0x40f234
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [0x42a910]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x8c], eax
cmp eax, esi
jne 0x40f202
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.accept_error__d
call fcn.00407736
pop ecx
pop ecx
push dword [ebp - 0x94]
call edi
push dword [0x42a910]
call ebx
mov dword [0x42a910], esi
cmp dword [ebp - 0x8c], esi
jne 0x40f243
cmp dword [0x446a60], 0
je 0x40f280
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x446a60], 0
jne 0x40f0f8
jmp 0x40f280
push 4
lea eax, [ebp - 0x90]
push eax
push 8
push 0xffff
push dword [ebp - 0x8c]
mov dword [ebp - 0x90], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40f280
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_during_setsockopt_n
call fcn.00410209
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x40f559
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
and dword [ebp - 0x28], 0
push esi
mov esi, dword [sym.imp.WS2_32.dll_getaddrinfo]
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
xor edi, edi
push edx
inc edi
push 0
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 6
mov dword [ebp - 0x4c], edi
call esi
cmp eax, 0x277c
je 0x40f5b7
cmp eax, 0x277d
jne 0x40f5e9
or dword [ebp - 0x4c], 8
test ebx, ebx
jne 0x40f5c3
xor eax, eax
jmp 0x40f5c6
movzx eax, word [ebx]
push eax
lea eax, [ebp - 0x24]
push section..data
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call esi
test eax, eax
je 0x40f5fe
push dword [ebp - 0x28]
push 0xffffffffffffffff
call fcn.0040f522
pop ecx
pop ecx
jmp 0x40f680
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
or esi, 0xffffffff
mov dword [ebp - 0x2c], eax
cmp eax, esi
jne 0x40f620
push dword [ebp - 0x28]
push esi
jmp 0x40f5f2
mov eax, dword [ebp - 0x28]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, esi
jne 0x40f63e
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
jmp 0x40f5f2
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, esi
je 0x40f636
test eax, eax
jne 0x40f674
test ebx, ebx
je 0x40f674
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
dec eax
dec eax
je 0x40f663
sub eax, 0x15
jne 0x40f674
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx], ax
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x40f68f
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, 0x118
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
cmp edi, 0xffffffff
jne 0x40f6bf
or eax, edi
jmp 0x40f78a
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
cmp eax, esi
je 0x40f6f8
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
jne 0x40f6f0
mov dword [ebp - 0x114], esi
lea eax, [ebp - 0x114]
jmp 0x40f6fa
xor eax, eax
push eax
push esi
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jge 0x40f720
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.select_returns_error__d_n
jmp 0x40f77a
jne 0x40f727
push 0xfffffffffffffffe
pop eax
jmp 0x40f789
cmp ebx, esi
je 0x40f786
cmp dword [ebp + 0x10], esi
je 0x40f786
push esi
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f76e
cmp edi, esi
je 0x40f76a
cmp dword [ebp - 0x10c], 0xffffffff
je 0x40f766
push esi
lea eax, [ebp - 0x118]
push eax
push edi
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
jmp 0x40f789
xor eax, eax
jmp 0x40f789
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv_returns_error__d_n
call fcn.00410209
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x40f789
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret

Function at 0x40f798
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 0x40f7f5
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
je 0x40f7c3
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
je 0x40f7ea
test eax, eax
jle 0x40f7ea
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
add esi, eax
cmp esi, edi
jb 0x40f7cc
cmp esi, edi
sbb eax, eax
pop edi
and eax, 0xfffffffe
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40f7f7
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x40f891
cmp ebx, 0x7fff
jbe 0x40f822
push 0xfffffffffffffff7
pop eax
jmp 0x40f891
cmp dword [ebp + 0x14], eax
je 0x40f83a
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.WS2_32.dll_send]
push edi
xor edi, edi
push edi
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x40f870
test eax, eax
jle 0x40f872
push 0
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call esi
add edi, eax
cmp edi, ebx
jb 0x40f854
test eax, eax
jns 0x40f887
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_returns_error__d_n
call fcn.00410209
pop ecx
pop ecx
cmp edi, ebx
sbb eax, eax
and eax, 0xfffffffe
pop edi
inc eax
pop esi
pop ebx
leave
ret

Function at 0x40f913
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
and dword [ebp - 0x28], 0
push esi
mov esi, dword [sym.imp.WS2_32.dll_getaddrinfo]
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
push edx
push ebx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 6
call esi
cmp eax, 0x277c
je 0x40f96e
cmp eax, 0x277d
jne 0x40f998
movzx eax, word [ebp + 0x14]
or dword [ebp - 0x48], 8
push eax
lea eax, [ebp - 0x24]
push 0x429050
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
je 0x40f9aa
push dword [ebp - 0x28]
push 0xffffffffffffffff
call fcn.0040f522
pop ecx
pop ecx
jmp 0x40f9e5
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f99c
mov eax, dword [ebp - 0x28]
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
push dword [ebp - 0x28]
test eax, eax
je 0x40f9dd
push esi
jmp 0x40f9a1
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x40fbc8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4294a4]
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 0x40fbf5
mov eax, 0x429054
jmp 0x40fc05
cmp dword [ebp + 0xc], 2
mov eax, str.DELETE
je 0x40fc05
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.00410209
push 0x1fc
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.00414720
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 0x40fc7b
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 0x40fcaa
call fcn.004104c7
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_in_Shell_NotifyIcon___s__n
call fcn.00410209
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411a98
leave
ret

Function at 0x410209
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4294a4]
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.00412fa6
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
sub esi, eax
lea eax, [ebp + eax - 0x204]
push esi
push eax
call fcn.00413105
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.00411a98
leave
ret

Function at 0x41052e
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 0x410557
push 0x2c
push str._libsmini_tcp4u_tcp4u_exchg.c
push str.nKeyLen___0
call fcn.00411f5e
add esp, 0xc
xor ecx, ecx
cmp dword [ebp + 8], ebx
jle 0x410573
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 0x41055e
mov eax, edi
pop ebx
leave
ret

Function at 0x41069c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
lea eax, [ecx + 1]
and ecx, 0x10
neg eax
sbb eax, eax
and eax, ecx
pop ebp
ret