joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f76
Capabilities:
Create raw socket
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4080dd
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x42b02c], eax
cmp eax, 0xffffffff
je 0x4080dd
push ebx
push ebx
push 0x407e7b
mov dword [0x442928], ebx
call fcn.0041106b
add esp, 0xc
cmp eax, 0xffffffff
jne 0x407fdc
push str.can_create_thread_for_ping_Range
push 1
call fcn.00407001
pop ecx
pop ecx
jmp 0x4080dd
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
push 2
mov dword [ebp - 0x14], eax
pop eax
mov word [ebp - 0x18], ax
xor eax, eax
push 0xd8
mov word [ebp - 0x16], ax
mov dword [ebp - 0x48], 8
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x44], ax
xor eax, eax
lea ecx, [eax + 0x20]
mov byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0x20
jl 0x40800f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x4c], ebx
cmp dword [ebp + 8], ebx
jbe 0x4080b9
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [sym.imp.WS2_32.dll_sendto]
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x42], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call edi
mov dword [ebp - 0x3f], eax
xor eax, eax
mov word [ebp - 0x46], ax
lea eax, [ebp - 0x48]
push 0x2d
push eax
call fcn.0040f5de
pop ecx
pop ecx
push 0x10
mov word [ebp - 0x46], ax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2d
lea eax, [ebp - 0x48]
push eax
push dword [0x42b02c]
call ebx
push 5
call esi
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2d
lea eax, [ebp - 0x48]
push eax
push dword [0x42b02c]
call ebx
push dword [ebp - 0x14]
call fcn.00409f41
pop ecx
push eax
call edi
push 0x14
mov dword [ebp - 0x14], eax
call esi
inc dword [ebp - 0x4c]
movzx eax, word [ebp - 0x4c]
cmp eax, dword [ebp + 8]
jb 0x40803a
push 0x1388
call esi
push dword [0x42b02c]
mov dword [0x442928], 1
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [0x42b02c], 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffa3
leave
ret
Function at 0x4099ee
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push 0x4b0
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00412af0
or dword [esi + 0x408], 0xffffffff
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x409abc
mov edi, dword [ebp - 4]
cmp edi, ebx
je 0x409abc
cmp byte [esi + 4], bl
jne 0x409a4a
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x409a4a
lea edx, [esi + 4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x409a40
mov eax, dword [edi + 4]
dec eax
dec eax
je 0x409a7c
sub eax, 0x15
jne 0x409a88
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 0xa
jge 0x409a88
mov dword [esi], ecx
push dword [edi + 0x10]
add eax, eax
push dword [edi + 0x18]
lea eax, [esi + eax*8 + 0x40c]
push eax
call fcn.00412b70
add esp, 0xc
jmp 0x409a88
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov dword [esi + 0x408], eax
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x409a31
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x404]
push dword [ebp - 4]
mov word [esi + 0x4ae], cx
mov ax, word [eax + 0x402]
mov word [esi + 0x4ac], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
inc eax
jmp 0x409ac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x409d22
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.004211b0
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf7c
xor ebx, ebx
lea eax, [ebp - 0x1008]
push ebx
push eax
call fcn.00412af0
add esp, 0xc
push 0x80
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x102c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp dword [0x429e2c], ebx
je 0x409df2
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x1028], 2
call edi
test eax, eax
jne 0x409df2
mov esi, dword [ebp - 0x100c]
jmp 0x409de2
cmp dword [ebp - 0x1008], 0x1e
jae 0x409de6
mov eax, dword [ebp - 0x1008]
push dword [esi + 0x10]
imul eax, eax, 0x84
push dword [esi + 0x18]
inc dword [ebp - 0x1008]
lea eax, [ebp + eax - 0x1004]
push eax
call fcn.00412b70
mov esi, dword [esi + 0x1c]
add esp, 0xc
cmp esi, ebx
jne 0x409dae
push dword [ebp - 0x100c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [0x429e30], ebx
je 0x409eae
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x102c]
push eax
push ebx
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x1028], 0x17
call edi
test eax, eax
jne 0x409eb4
mov esi, dword [ebp - 0x100c]
cmp esi, ebx
je 0x409ea0
cmp dword [ebp - 0x1008], 0x1e
jae 0x409ea0
mov eax, dword [esi + 0x18]
cmp word [eax + 8], bx
jne 0x409e73
cmp word [eax + 0xa], bx
jne 0x409e73
cmp word [eax + 0xc], bx
jne 0x409e73
cmp word [eax + 0xe], bx
jne 0x409e73
cmp word [eax + 0x10], bx
jne 0x409e73
cmp word [eax + 0x12], bx
jne 0x409e73
cmp word [eax + 0x14], bx
jne 0x409e73
mov ecx, 0x100
cmp word [eax + 0x16], cx
je 0x409e99
mov ecx, dword [ebp - 0x1008]
push dword [esi + 0x10]
imul ecx, ecx, 0x84
inc dword [ebp - 0x1008]
lea ecx, [ebp + ecx - 0x1004]
push eax
push ecx
call fcn.00412b70
add esp, 0xc
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x409e32
push dword [ebp - 0x100c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x409eb4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, 0x43d340
mov ecx, 0x3df
mov edi, eax
lea esi, [ebp - 0x1008]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x409ef6
cmp dword [0x428518], 0x11
mov ecx, 0x3df
lea esi, [ebp - 0x1008]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
je 0x409ef6
push ebx
push 0xf7c
push eax
push 0x6d
pop eax
call fcn.0040d1c7
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040ffa3
leave
ret
Function at 0x409fac
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40a02a
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x108], eax
test eax, eax
je 0x40a02a
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40a02a
xor esi, esi
cmp dword [ecx], esi
je 0x40a01e
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, ecx
and eax, edi
mov edx, dword [edx]
mov edx, dword [edx]
and edx, edi
cmp edx, eax
je 0x40a01d
inc esi
lea edx, [ecx + esi*4]
cmp dword [edx], 0
jne 0x40a00a
pop edi
lea ecx, [ecx + esi*4]
cmp dword [ecx], 0
je 0x40a030
mov eax, dword [ecx]
jmp 0x40a046
mov esi, dword [ebp - 0x108]
test esi, esi
jle 0x40a041
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
jmp 0x40a046
mov eax, 0x42a430
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ffa3
leave
ret

Function at 0x40a397
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x444220
push dword [esi + 0x42a138]
push dword [esi + 0x42a13c]
push dword [esi + 0x42a134]
push dword [esi + 0x42a130]
push 0x42a350
call fcn.0040f8d7
add esi, 0x10
add esp, 0x18
cmp esi, 0x220
jb 0x40a3ad
cmp dword [0x429b9c], 0
jne 0x40a3f5
mov dword [0x429b9c], 0x2f
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x42a364
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40a439
lea eax, [ebp - 0x108]
push eax
call fcn.0040eba0
pop ecx
test eax, eax
je 0x40a439
push 0
push 0x429e38
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40a468
push edi
mov edi, 0x429a30
push edi
call fcn.0040eba0
pop ecx
test eax, eax
je 0x40a45b
push 0
push 0x429e38
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40a467
push 0x429e38
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0040ffa3
leave
ret
Function at 0x40aa13
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x427484]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [0x429e2c]
xor edi, edi
cmp eax, edi
je 0x40aa5a
cmp dword [0x429e30], edi
jne 0x40aa62
cmp edx, 0x17
je 0x40aa51
cmp edx, edi
jne 0x40aa78
mov dword [ebp - 0x48], 2
jmp 0x40aa7b
cmp dword [0x429e30], edi
je 0x40aa78
cmp eax, edi
jne 0x40aa78
cmp edx, 2
je 0x40aa6f
cmp edx, edi
jne 0x40aa78
mov dword [ebp - 0x48], 0x17
jmp 0x40aa7b
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x4298d0
push eax
mov dword [ebp - 0x4c], 4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
neg esi
sbb esi, esi
lea eax, [ebp - 0x28]
and esi, eax
cmp byte [ebx], 0
jne 0x40aab0
mov ebx, 0x4298d4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
cmp ebx, edi
jne 0x40ab04
mov eax, dword [ebp - 0x2c]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
push 8
push str.wake_up
push esi
call dword [sym.imp.WS2_32.dll_sendto]
push esi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ebx, edi
pop edi
setg al
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffa3
leave
ret

Function at 0x40ab88
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
imul esi, esi, 0x30
mov eax, dword [esi + 0x4242b0]
xor ebx, ebx
shl edi, 4
cmp eax, 1
jl 0x40abea
push dword [esi + 0x4242c0]
mov ecx, dword [esi + 0x4242b8]
push dword [esi + 0x4242bc]
mov edx, dword [esi + 0x4242b4]
push eax
push dword [esi + 0x4242ac]
mov dword [edi + 0x4441a0], ebx
push dword [esi + 0x424298]
mov ecx, dword [ecx]
call fcn.0040a71d
add esp, 0x14
mov dword [edi + 0x4441ac], eax
cmp eax, 0xffffffff
jne 0x40abf1
xor eax, eax
jmp 0x40ac4d
or dword [edi + 0x4441ac], 0xffffffff
cmp dword [esi + 0x4242c4], ebx
je 0x40ac1d
push ebx
push ebx
push dword [esi + 0x4242a4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x4441a8], eax
cmp eax, 0xffffffff
jne 0x40ac24
mov eax, dword [ebp + 8]
call fcn.0040a9d7
jmp 0x40abe6
or dword [edi + 0x4441a8], 0xffffffff
push ebx
push dword [esi + 0x4242a8]
push dword [esi + 0x4242a0]
call fcn.0041106b
add esp, 0xc
mov dword [edi + 0x4441a4], eax
cmp eax, 0xffffffff
je 0x40ac13
xor eax, eax
inc eax
mov dword [edi + 0x4441a0], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40ac52
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor edi, edi
cmp dword [ebp + 8], 0
jne 0x40ac77
mov eax, edi
imul eax, eax, 0x30
test dword [eax + 0x42429c], 0x7000
jne 0x40ac8a
mov ecx, dword [0x429b9c]
mov eax, edi
imul eax, eax, 0x30
test dword [eax + 0x42429c], ecx
je 0x40ac9c
push edi
call fcn.0040ab88
pop ecx
test edi, edi
jne 0x40ac9c
push 0x1f4
call esi
inc edi
cmp edi, 8
jl 0x40ac60
xor edi, edi
push edi
call esi
cmp dword [0x428518], 0x11
je 0x40acc1
push 0
push 0
push 0
push 0x6e
pop eax
call fcn.0040d1c7
add esp, 0xc
add edi, 0xc8
cmp edi, 0x3e8
jl 0x40aca4
push 0x11
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, 0xffffffff
je 0x40acfa
push str.IPv6_enabled
call fcn.0040e70d
pop ecx
xor eax, eax
pop edi
inc eax
pop esi
pop ecx
pop ebp
ret

Function at 0x40b1bf
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x427484]
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 0x40b1eb
xor eax, eax
inc eax
jmp 0x40b2cf
push edi
cmp ebx, dword [0x43e2f4]
jne 0x40b29e
mov ecx, ebx
mov edi, 0x43e380
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40b29e
push 0x20
mov esi, eax
pop ecx
mov edi, 0x43e300
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40b29e
push eax
call fcn.004109eb
pop ecx
cmp eax, dword [0x43e2f8]
jne 0x40b29e
cmp edx, dword [0x43e2fc]
jne 0x40b29e
mov al, byte [0x44291f]
push 0x27
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x4b]
push 0
push eax
call fcn.00412af0
mov al, byte [0x442930]
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.00407001
add esp, 0x10
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b2cc
push ebx
push dword [ebp - 0x54]
mov dword [0x43e2f4], ebx
push 0x43e380
call fcn.00412b70
mov esi, dword [ebp - 0x50]
push 0x20
pop ecx
mov edi, 0x43e300
push 0x43e2f8
rep movsd dword es:[edi], dword [esi]
call fcn.004109eb
add esp, 0x10
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ffa3
leave
ret
Function at 0x40b69e
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.004102d6
pop ecx
pop ecx
cmp dword [0x443aac], ebx
jne 0x40b6c9
mov dword [0x443aac], eax
jmp 0x40b6cf
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 0x40ce0c
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 0x40b6ac
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx + 0x20], 0xffffffff
jne 0x40b9ac
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, 0x428ae0
cmp dword [0x428ae0], eax
jl 0x40b9e8
mov ecx, dword [edi]
cmp ecx, dword [ebp + 8]
je 0x40b9e4
add edi, 8
cmp dword [edi], eax
jge 0x40b9d6
cmp dword [edi], eax
jge 0x40b9fe
mov eax, dword [ebp + 8]
add eax, 0xffffff9c
push eax
call fcn.00412267
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 0x40ba8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x427484]
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.0040f508
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
push 0x429e38
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 0x40baef
cmp byte [ebp + eax - 0x231], 0x5c
je 0x40baef
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 0x428b38
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc dword [ebp - 0x234]
cmp dword [ebp - 0x234], 0x10
jl 0x40bb39
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.00407001
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ffa3
leave
ret

Function at 0x40bc98
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x427484]
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 0x40bcd8
dec eax
mov eax, dword [esi + 0x4c]
jne 0x40bce1
inc eax
shr eax, 1
jmp 0x40bce1
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 0x40bd12
push str.select
push edi
mov eax, esi
call fcn.0040bc5f
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040ffa3
leave
ret
Function at 0x40c541
Capabilities:
Send data
Send data on socket

Disassembly:
test esi, esi
jne 0x40c55c
push 0x23e
push 0x428e84
push 0x428ebc
call fcn.00410334
add esp, 0xc
add dword [esi + 0x38], 2
push dword [esi + 0x38]
push str.send_OACK__d_bytes
push 0xa
call fcn.00407001
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
je 0x40c59a
push dword [esi + 0x38]
lea ecx, [esi + 0x4064]
push ecx
push 0x80
lea ecx, [esi + 0x4268]
push ecx
push eax
call fcn.0040fe81
add esp, 0x14
jmp 0x40c5af
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 0x40c5bc
cmp eax, dword [esi + 0x38]
jne 0x40c5bc
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.00407001
add esp, 0xc
xor eax, eax
ret
Function at 0x40d655
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x427484]
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 [0x429f40], ax
cmp dword [0x4288bc], esi
jne 0x40d6b6
push 0x429f40
push 0x4288c0
push 2
call fcn.0040dabd
add esp, 0xc
mov dword [0x4288bc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4288bc], esi
jne 0x40d70e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
jne 0x40d6ee
xor eax, eax
push 0x445050
push eax
push 2
mov word [0x445050], ax
call fcn.0040dabd
add esp, 0xc
mov dword [0x4288bc], eax
cmp dword [0x4288bc], esi
jne 0x40d70e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.can_not_create_listening_socket_nError__d
call fcn.004070fa
pop ecx
pop ecx
jmp 0x40d7b2
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 8
push eax
push dword [0x4288bc]
mov dword [ebp - 0x94], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [0x4441a8]
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 0x40d75d
push dword [ebp - 0x94]
call edi
push dword [0x4288bc]
call ebx
jmp 0x40d7c6
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [0x4288bc]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x8c], eax
cmp eax, esi
jne 0x40d794
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.accept_error__d
call fcn.004070fa
pop ecx
pop ecx
push dword [ebp - 0x94]
call edi
push dword [0x4288bc]
call ebx
mov dword [0x4288bc], esi
cmp dword [ebp - 0x8c], esi
jne 0x40d7d5
cmp dword [0x4441a0], 0
je 0x40d812
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4441a0], 0
jne 0x40d68a
jmp 0x40d812
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 0x40d812
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_during_setsockopt_n
call fcn.0040e70d
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.0040ffa3
leave
ret
Function at 0x40dabd
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x427484]
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 0x40db1b
cmp eax, 0x277d
jne 0x40db4d
or dword [ebp - 0x4c], 8
test ebx, ebx
jne 0x40db27
xor eax, eax
jmp 0x40db2a
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 0x40db62
push dword [ebp - 0x28]
push 0xffffffffffffffff
call fcn.0040da86
pop ecx
pop ecx
jmp 0x40dbe4
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 0x40db84
push dword [ebp - 0x28]
push esi
jmp 0x40db56
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 0x40dba2
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
jmp 0x40db56
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, esi
je 0x40db9a
test eax, eax
jne 0x40dbd8
test ebx, ebx
je 0x40dbd8
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
dec eax
dec eax
je 0x40dbc7
sub eax, 0x15
jne 0x40dbd8
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.0040ffa3
leave
ret