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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x408aad
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x42d6ac], eax
cmp eax, 0xffffffff
je 0x408aad
push ebx
push ebx
push 0x40884b
mov dword [0x445018], ebx
call fcn.00412e7b
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4089ac
push str.can_create_thread_for_ping_Range
push 1
call fcn.0040764f
pop ecx
pop ecx
jmp 0x408aad
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 0x4089df
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x4c], ebx
cmp dword [ebp + 8], ebx
jbe 0x408a89
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.004110da
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 [0x42d6ac]
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 [0x42d6ac]
call ebx
push dword [ebp - 0x14]
call fcn.0040b07e
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 0x408a0a
push 0x1388
call esi
push dword [0x42d6ac]
mov dword [0x445018], 1
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [0x42d6ac], 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x408abc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push ebx
movzx ebx, word [esi + 2]
push edi
jne 0x408ad6
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 4], eax
mov edi, dword [sym.imp.WS2_32.dll_sendto]
push 0x10
push esi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x42d774
push 0xf
call fcn.0040764f
mov eax, dword [ebp + 0x14]
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jge 0x408b2c
call fcn.004104c7
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42d790
push 1
call fcn.0040764f
add esp, 0x10
cmp dword [0x42c2d8], 0
je 0x408b95
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], eax
jne 0x408b55
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], eax
je 0x408b95
push 0x42d7a4
push str.bootpc
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x408b6f
movsx eax, word [eax + 8]
jmp 0x408b7a
push 0x44
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push 0x10
push esi
push 0
push dword [ebp + 0x10]
mov word [esi + 2], ax
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov dword [ebp + 0x14], eax
mov word [esi + 2], bx
mov eax, dword [ebp + 0x14]
pop edi
pop ebx
pop ebp
ret
Function at 0x408b9c
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
movzx eax, word [esi + 2]
push 0
push 2
push 2
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x408bd2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or eax, 0xffffffff
jmp 0x408c3c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push edi
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
mov edi, 0xffff
push edi
push eax
call ebx
push 0x42d7b0
push 0x42d7b4
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x408c05
movsx eax, word [eax + 8]
jmp 0x408c10
push 0x43
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov ecx, dword [ebp + 8]
push 0x10
push ecx
push dword [ebp - 4]
mov word [ecx + 2], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x408c3f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop ebx
pop esi
leave
ret
push 4
lea eax, [ebp - 0xc]
push eax
push 0x20
push edi
push dword [ebp - 4]
call ebx
cmp eax, 0xffffffff
jne 0x408c68
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or esi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
jmp 0x408c3a
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0xffffffffffffffff
call ebx
mov edi, dword [sym.imp.WS2_32.dll_sendto]
push 0x10
push esi
push 0
push dword [ebp + 0x10]
mov dword [esi + 4], eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.Thread_0x_X:_send__d_bytes
push 0xf
call fcn.0040764f
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jge 0x408ccb
call fcn.004104c7
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.sendto_error__d:__s
push 1
call fcn.0040764f
add esp, 0x10
cmp dword [0x42c2d8], 0
je 0x408d30
push 0
call ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], eax
jne 0x408cec
push 0xffffffffffffffff
call ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], eax
je 0x408d30
push 0x42d7ec
push str.bootps
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x408d06
movsx eax, word [eax + 8]
jmp 0x408d11
push 0x44
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push 0x10
push esi
push 0
push dword [ebp + 0x10]
mov word [esi + 2], ax
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x10]
mov word [esi + 2], ax
mov esi, dword [ebp - 8]
jmp 0x408c5b
Function at 0x408d38
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x420], 0xffffffff
push ebx
mov dword [ebp - 0x41c], eax
push esi
push edi
mov eax, 0x6f1f
mov word [ebp - 0x414], ax
xor eax, eax
mov edi, edx
mov dword [ebp - 0x428], edi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
push 0x10
mov esi, ecx
mov dword [ebp - 0x418], 0xf689d7c8
mov dword [ebp - 0x412], 0x538a436b
mov dword [ebp - 0x40e], 0x51e34fe5
mov word [ebp - 0x40a], 0x22c3
mov dword [ebp - 0x42c], ebx
pop edi
cmp dword [0x43cc18], ebx
jne 0x408df5
push ebx
push ebx
lea eax, [ebp - 0x42c]
push eax
push 4
push 0x43cc18
push edi
lea eax, [ebp - 0x418]
push eax
push 0xc8000006
push dword [0x446ab4]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x408df5
push 0x276c
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x408f52
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x440], eax
push ebx
lea eax, [ebp - 0x408]
mov dword [ebp - 0x434], eax
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x448]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x450], 0x5b2
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x43c], 1
mov dword [ebp - 0x438], 0x400
mov dword [ebp - 0x430], ebx
call dword [0x43cc18]
cmp eax, 0xffffffff
jne 0x408e72
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x408ded
mov ecx, dword [ebp - 0x438]
cmp ecx, 0xc
sbb esi, esi
not esi
and esi, dword [ebp - 0x434]
je 0x408f4c
cmp dword [esi + 8], 0x13
je 0x408ebb
mov eax, dword [esi]
mov edi, dword [ebp - 0x434]
add eax, 3
mov edx, eax
and edx, 0xfffffffc
lea edx, [edx + esi + 0xc]
add edi, ecx
cmp edx, edi
ja 0x408f4c
and eax, 0xfffffffc
add esi, eax
jne 0x408e8b
jmp 0x408f4c
cmp esi, ebx
je 0x408f4c
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [ebp - 0x424]
push eax
push ebx
push ebx
push 0x14
push 2
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x424], ebx
call edi
cmp eax, 0x6f
jne 0x408efb
push dword [ebp - 0x424]
call fcn.00413122
pop ecx
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x41c]
push ebx
push 0x14
push 2
call edi
test eax, eax
jne 0x408f4c
mov eax, dword [ebp - 0x41c]
cmp eax, ebx
je 0x408f40
mov esi, dword [esi + 0x10]
cmp dword [eax + 4], esi
je 0x408f2c
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x408f20
cmp eax, ebx
je 0x408f40
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x428]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x41c]
call fcn.00411ec6
pop ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x40aa69
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.00414720
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 0x40ab37
mov edi, dword [ebp - 4]
cmp edi, ebx
je 0x40ab37
cmp byte [esi + 4], bl
jne 0x40aac5
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x40aac5
lea edx, [esi + 4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40aabb
mov eax, dword [edi + 4]
dec eax
dec eax
je 0x40aaf7
sub eax, 0x15
jne 0x40ab03
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 0xa
jge 0x40ab03
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.004147a0
add esp, 0xc
jmp 0x40ab03
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov dword [esi + 0x408], eax
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x40aaac
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 0x40ab3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40ad94
Capabilities:
Get local ipv4 addresses
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb78
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb6c
xor ebx, ebx
lea eax, [ebp - 0xb70]
push ebx
push eax
call fcn.00414720
mov eax, 0x178
push eax
mov dword [ebp - 0xb78], eax
call fcn.00413122
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
add esp, 0x10
lea eax, [ebp - 0xb78]
push eax
mov eax, dword [0x42c324]
neg eax
push edi
sbb eax, eax
push ebx
and eax, 0xfffffffe
push 0x10
add eax, 2
push eax
mov dword [ebp - 0xb74], edi
call esi
cmp eax, 0x6f
jne 0x40ae1d
push edi
call fcn.00411ec6
push dword [ebp - 0xb78]
call fcn.00413122
pop ecx
pop ecx
mov dword [ebp - 0xb74], eax
mov edi, eax
cmp edi, ebx
je 0x40af56
lea eax, [ebp - 0xb78]
push eax
mov eax, dword [0x42c324]
neg eax
push edi
sbb eax, eax
push ebx
and eax, 0xfffffffe
push 0x14
add eax, 2
push eax
call esi
test eax, eax
jne 0x40af49
mov dword [ebp - 0xb70], eax
mov dword [ebp - 0xb6c], ebx
cmp eax, 0xc
jge 0x40aeff
push dword [edi + 0x24]
imul eax, eax, 0x85
lea eax, [ebp + eax - 0x640]
push 0x42c9c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0xb70]
mov ecx, dword [edi + 0x44]
add esp, 0xc
imul eax, eax, 0x85
mov dword [ebp + eax - 0x5bf], ecx
mov esi, dword [edi + 0x10]
jmp 0x40aee3
mov eax, dword [ebp - 0xb6c]
cmp eax, 0x1e
jge 0x40aee7
push 2
imul eax, eax, 0x2c
push ebx
push ebx
push 0x28
lea eax, [ebp + eax - 0xb64]
push eax
push dword [esi]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x40aee0
mov eax, dword [ebp - 0xb6c]
mov ecx, dword [ebp - 0xb70]
imul eax, eax, 0x2c
mov dword [ebp + eax - 0xb68], ecx
inc dword [ebp - 0xb6c]
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x40ae99
mov eax, dword [ebp - 0xb70]
mov edi, dword [edi + 8]
inc eax
mov dword [ebp - 0xb70], eax
cmp edi, ebx
jne 0x40ae56
mov eax, 0x43fe68
mov ecx, 0x2db
mov edi, eax
lea esi, [ebp - 0xb70]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40af38
push ebx
push 0xb6c
push eax
mov edi, eax
push 0x6d
mov ecx, 0x2db
lea esi, [ebp - 0xb70]
pop eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040eb9b
add esp, 0xc
push dword [ebp - 0xb74]
call fcn.00411ec6
xor eax, eax
pop ecx
inc eax
jmp 0x40af58
push edi
call fcn.00411ec6
pop ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x40af67
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, 0x178
push esi
xor ebx, ebx
push eax
mov byte [edi], bl
mov dword [ebp - 0x90], eax
call fcn.00413122
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
pop ecx
lea ecx, [ebp - 0x90]
push ecx
push eax
push ebx
push 0x10
push 2
mov dword [ebp - 0x8c], eax
call esi
cmp eax, 0x6f
jne 0x40afd0
push dword [ebp - 0x8c]
call fcn.00411ec6
push dword [ebp - 0x90]
call fcn.00413122
pop ecx
pop ecx
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], ebx
jne 0x40afe9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
lea eax, [ebp - 0x90]
push eax
mov eax, dword [0x42c324]
push dword [ebp - 0x8c]
neg eax
sbb eax, eax
push ebx
and eax, 0xfffffffe
push 0x10
add eax, 2
push eax
call esi
test eax, eax
jne 0x40b04f
mov esi, dword [ebp - 0x8c]
push dword [esi + 0x24]
lea eax, [ebp - 0x88]
push 0x42c9c4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x42c004
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40b048
cmp dword [esi + 0x10], ebx
jne 0x40b054
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x40b015
or ebx, 0xffffffff
jmp 0x40b06b
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x8c]
call fcn.00411ec6
pop ecx
mov eax, ebx
jmp 0x40afdb

Function at 0x40b0ff
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40b17e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x108], eax
test eax, eax
je 0x40b17e
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40b17e
xor eax, eax
cmp dword [ecx], eax
je 0x40b172
push esi
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
push edi
mov edi, dword [ebp + 8]
mov edi, dword [edi]
mov edx, ecx
and edi, esi
mov edx, dword [edx]
mov edx, dword [edx]
and edx, esi
cmp edx, edi
je 0x40b170
inc eax
lea edx, [ecx + eax*4]
cmp dword [edx], 0
jne 0x40b15d
pop edi
pop esi
lea ecx, [ecx + eax*4]
cmp dword [ecx], 0
je 0x40b184
mov eax, dword [ecx]
jmp 0x40b1a4
mov eax, dword [ebp - 0x108]
cmp dword [ebp + 0x10], 0
je 0x40b18e
xor eax, eax
jmp 0x40b1a4
test eax, eax
jle 0x40b19f
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
jmp 0x40b1a4
mov eax, 0x42c96c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411a98
leave
ret
Function at 0x40b4fb
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4294a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x446b20
push dword [esi + 0x42c668]
push dword [esi + 0x42c66c]
push dword [esi + 0x42c664]
push dword [esi + 0x42c660]
push 0x42c64c
call fcn.004113cc
add esi, 0x10
add esp, 0x18
cmp esi, 0x240
jb 0x40b511
cmp dword [0x42c088], 0
jne 0x40b559
mov dword [0x42c088], 0x2f
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x42c8a0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40b59d
lea eax, [ebp - 0x108]
push eax
call fcn.0041069c
pop ecx
test eax, eax
je 0x40b59d
push 0
push 0x42c32c
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40b5cc
push edi
mov edi, 0x42bec0
push edi
call fcn.0041069c
pop ecx
test eax, eax
je 0x40b5bf
push 0
push 0x42c32c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40b5cb
push 0x42c32c
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
pop edi
mov al, byte [0x42c004]
xor esi, esi
inc esi
test al, al
je 0x40b5ee
movsx eax, al
push eax
call fcn.00412b57
pop ecx
test eax, eax
jne 0x40b5ee
mov dword [0x42c438], esi
jmp 0x40b5f5
and dword [0x42c438], 0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00411a98
leave
ret

Function at 0x40b65f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
push 0x42c8e8
mov edi, reloc.WS2_32.dll_bind
push edi
call esi
push 0x42c900
push edi
call esi
cmp byte [0x446b20], 0
mov esi, eax
je 0x40b6b0
push 0x42c914
lea eax, [ebp - 4]
push 0x446b20
push eax
call fcn.004136c8
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x40b6b0
push dword [ebp - 4]
call fcn.0041377c
pop ecx
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
leave
ret
Function at 0x40bbc7
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4294a4]
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 [0x42c320]
test eax, eax
je 0x40bc0d
cmp dword [0x42c324], 0
jne 0x40bc16
cmp edx, 0x17
je 0x40bc04
test edx, edx
jne 0x40bc2c
mov dword [ebp - 0x48], 2
jmp 0x40bc2f
cmp dword [0x42c324], 0
je 0x40bc2c
test eax, eax
jne 0x40bc2c
cmp edx, 2
je 0x40bc23
test edx, edx
jne 0x40bc2c
mov dword [ebp - 0x48], 0x17
jmp 0x40bc2f
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x42bc1c
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
test ebx, ebx
je 0x40bc63
cmp byte [ebx], 0
jne 0x40bc68
mov ebx, 0x42bc80
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 edi, eax
test edi, edi
jne 0x40bcbc
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 edi, 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
test edi, edi
pop edi
setg al
pop esi
xor ecx, ebp
pop ebx
call fcn.00411a98
leave
ret
Function at 0x40bd40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
imul edi, edi, 0x18
xor ebx, ebx
cmp dword [edi + 0x446a60], ebx
je 0x40bd62
xor eax, eax
jmp 0x40be5e
imul esi, esi, 0x38
mov eax, dword [esi + 0x4262d0]
cmp eax, 1
jl 0x40bdb2
push dword [esi + 0x4262dc]
mov ecx, dword [esi + 0x4262d8]
mov edx, dword [esi + 0x4262e0]
mov dword [edi + 0x446a60], ebx
push dword [ecx]
mov ecx, dword [esi + 0x4262d4]
push eax
push dword [esi + 0x4262cc]
push dword [esi + 0x4262b8]
call fcn.0040b8dc
add esp, 0x14
mov dword [edi + 0x446a6c], eax
cmp eax, 0xffffffff
jne 0x40bdb9
jmp 0x40bd5b
or dword [edi + 0x446a6c], 0xffffffff
cmp dword [esi + 0x4262e4], ebx
je 0x40bde8
push ebx
push ebx
push dword [esi + 0x4262c4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x446a68], eax
cmp eax, 0xffffffff
jne 0x40bdef
mov eax, dword [ebp + 8]
call fcn.0040bb84
jmp 0x40bd5b
or dword [edi + 0x446a68], 0xffffffff
push ebx
push dword [esi + 0x4262c8]
mov dword [edi + 0x446a70], ebx
push dword [esi + 0x4262c0]
call fcn.00412e7b
add esp, 0xc
mov dword [edi + 0x446a64], eax
cmp eax, 0xffffffff
je 0x40bddb
mov dword [edi + 0x446a60], 1
cmp dword [esi + 0x4262ec], ebx
je 0x40be49
mov eax, dword [esi + 0x4262bc]
push ebx
mov dword [ebp - 0xc], eax
push 8
lea eax, [ebp - 0xc]
push eax
push 0x71
pop eax
mov dword [ebp - 8], 4
call fcn.0040eb9b
add esp, 0xc
cmp dword [ebp + 8], 2
jle 0x40be5b
push dword [0x446a98]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40be63
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov ebx, 0x4262bc
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov esi, ebx
cmp dword [ebp + 8], 0
jne 0x40be8e
test dword [esi], 0x7000
jne 0x40be97
mov eax, dword [0x42c088]
test dword [esi], eax
je 0x40bea2
push edi
call fcn.0040bd40
inc dword [esp + 0x14]
pop ecx
add esi, 0x38
inc edi
cmp esi, 0x42647c
jl 0x40be80
mov esi, 0x446a74
inc dword [esp + 0xc]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov eax, esi
cmp dword [eax], 0
je 0x40bec9
inc ecx
add eax, 0x18
cmp eax, 0x446b34
jl 0x40bec3
cmp ecx, dword [esp + 0x10]
jge 0x40bee0
cmp dword [esp + 0xc], 0x1e
jl 0x40beb3
cmp dword [esp + 0xc], 0x1e
jl 0x40bf25
mov edi, ebx
cmp dword [ebp + 8], 0
jne 0x40bef7
test dword [edi], 0x7000
jne 0x40bf01
mov eax, dword [edi]
test dword [0x42c088], eax
je 0x40bf15
cmp dword [esi], 0
jne 0x40bf15
push dword [edi - 4]
push str.service__s_not_started
call fcn.00410209
pop ecx
pop ecx
add esi, 0x18
add edi, 0x38
cmp esi, 0x446b34
jl 0x40bee9
jmp 0x40bf30
push str.____all_services_started__init_done
call fcn.00410209
pop ecx
xor edi, edi
push edi
push edi
push edi
push 0x6e
pop eax
call fcn.0040eb9b
add esp, 0xc
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 0x40bf6b
push str.IPv6_enabled
call fcn.00410209
pop ecx
mov esi, ebx
xor eax, eax
cmp dword [esi + 0x30], eax
je 0x40bf9d
cmp dword [edi + 0x446a60], eax
je 0x40bf9d
mov ecx, dword [esi]
push eax
push 8
lea eax, [esp + 0x18]
push eax
push 0x71
pop eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 4
call fcn.0040eb9b
add esp, 0xc
add edi, 0x18
add esi, 0x38
cmp edi, 0xc0
jb 0x40bf6d
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret