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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push esi
mov esi, 0x178
push edi
mov edx, dword [ecx + 0x154]
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x150]
mov eax, dword [eax + ecx]
mov dword [ebp - 0x108], eax
mov eax, 0x188
cmove esi, eax
mov eax, dword [ecx + 0x2a8]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x1004d1c1
xor eax, eax
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x168]
cmp dword [eax + ecx], 0x1004cd50
jne 0x1004d1c1
cmp dword [esi], 0
je 0x1004d152
test edi, edi
je 0x1004d1c1
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x108]
call fcn.1005c930
add esp, 0x14
cmp eax, 0xffffffff
je 0x1004d1c1
test al, 1
je 0x1004d1c1
mov ecx, dword [esi]
test ecx, ecx
jne 0x1004d1a5
mov eax, dword [ebx + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100dcd74]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x1004d1f8
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1004d1c1
add dword [esi + 8], eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x1004d246
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1004d21a
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x1004d246
mov ecx, dword [ebp - 0x10c]
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c563
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.10079b20
push eax
push str.Send_failure:__s
push ebx
call fcn.1004cb90
add esp, 0x18
mov dword [ebx + 0x948], esi
mov eax, 0x37
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c563
mov esp, ebp
pop ebp
ret

Function at 0x1004d690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1a4], 0
je 0x1004d6b0
push eax
call fcn.10047420
add esp, 4
test eax, eax
je 0x1004d6d1
mov al, 1
pop ebp
ret
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x1004d6d1
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x1004d930
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.1008e330
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1004d9ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.10079b20
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x1004d9f0
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.1004d500
add esp, 0x10
test al, al
jne 0x1004d9f9
call fcn.10091af9
mov esi, dword [eax]
call fcn.10091af9
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.10079b20
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1004cb90
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c563
mov esp, ebp
pop ebp
ret

Function at 0x1004e1d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100ddeec]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x1004e222
push 3
push 2
push eax
push eax
push 6
call fcn.1007a180
add esp, 0x14
test al, al
je 0x1004e216
mov dword [0x100ddeec], 2
mov esp, ebp
pop ebp
ret
mov dword [0x100ddeec], 1
jmp 0x1004e227
cmp eax, 2
je 0x1004e267
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1004e24e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x1004e267
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x1004f450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a4549

Function at 0x1004f6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x100bd158
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004f6f0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x100bd174
push esi
mov dword [ebp - 8], ebx
call fcn.100a01b6
add esp, 8
test eax, eax
je 0x1004f73c
test ebx, ebx
je 0x1004f72c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1004f765
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004f765
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x1004f810
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f781
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x100dcd74]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004f806
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004f806
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f7b2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f7d0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1004f7e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004f7fd
push 8
push 0
push ebx
call eax
jmp 0x1004f804
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x100dcd78]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1004f860
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x1004f8b9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1004f8a6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1004f8a0
shr eax, 8
cmp al, 2
je 0x1004f8b9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c563
mov esp, ebp
pop ebp
ret
call fcn.1007b280
test eax, eax
jne 0x1004fa4f
push esi
push edi
push 0x100bd158
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x1004f8e6
mov dword [0x100ddef4], esi
jmp 0x1004fa25
push ebx
push str.LoadLibraryExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100bd174
push str.iphlpapi.dll
mov ebx, eax
call fcn.100a01b6
add esp, 8
test eax, eax
je 0x1004f933
test ebx, ebx
je 0x1004f921
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x1004f9fd
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x1004f9fd
test ebx, ebx
je 0x1004f95c
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004f95c
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x1004f9fd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x1004f9fd
lea ecx, [eax + 0xd]
push ecx
call dword [0x100dcd74]
mov edi, eax
add esp, 4
test edi, edi
je 0x1004f9f3
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004f9f3
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f9a0
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1004f9b7
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1004f9d0
test ebx, ebx
je 0x1004f9ea
push 8
push 0
push edi
call ebx
jmp 0x1004f9f1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x100dcd78]
add esp, 4
mov dword [0x100ddef4], esi
pop ebx
test esi, esi
je 0x1004fa25
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x100ddef0]
test eax, eax
cmovne ecx, eax
mov dword [0x100ddef0], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.1007a180
add esp, 0x14
test al, al
setne byte [0x100dec70]
push 0x100dec78
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c563
mov esp, ebp
pop ebp
ret
Function at 0x10052e40
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10052e86
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c563
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1008c563
mov esp, ebp
pop ebp
ret

Function at 0x10052fb0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10052fc5
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10052fda
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret
Function at 0x10060e40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10052310
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.100a4020
push dword [ebp + 0xc]
mov edi, eax
call fcn.100a4020
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x10060ec7
lea eax, [ebp - 0x20]
push eax
call fcn.10052310
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.100523c0
add esp, 0x20
test edx, edx
ja 0x10060eea
jb 0x10060eb5
cmp eax, 0x3e8
ja 0x10060eea
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10060e80
test edi, edi
je 0x10060ed4
push edi
call fcn.10097d88
add esp, 4
test esi, esi
je 0x10060ee1
push esi
call fcn.10097d88
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10060ef7
push edi
call fcn.10097d88
add esp, 4
test esi, esi
je 0x10060f04
push esi
call fcn.10097d88
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10061040
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x14]
push 6
push 1
push 2
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x2c], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10061211
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
xor eax, eax
push 4
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x100611ff
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100611ff
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x100611ff
cmp dword [ebp - 0x28], 0x10
jl 0x100611ff
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x100611ff
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x100611ff
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100611ff
push 1
push esi
call fcn.10079df0
add esp, 8
test eax, eax
js 0x100611ff
push 0
push 0x2710
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push 1
push eax
mov dword [ebp - 0x30], 0x300
call fcn.1005c570
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x100611ff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x100611ff
cmp dword [ebp - 0x28], 0x10
jl 0x100611ff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x100611ff
cmp dword [ebp - 0x28], 0x10
jl 0x100611ff
mov ax, word [ebp - 0x14]
cmp ax, word [ebp - 0x24]
jne 0x100611ff
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x100611ff
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x22]
jne 0x100611ff
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c563
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.1008c563
mov esp, ebp
pop ebp
ret
Function at 0x10061260
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x100613f7
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100613e3
push ebx
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100612be
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100612b0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x100612c0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x100612d2
mov eax, 0x10
jmp 0x100612e0
cmp eax, 0x17
jne 0x10061385
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x10061385
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10061385
cmp edx, eax
jb 0x10061385
add ecx, 0x20
add eax, ecx
push eax
call dword [0x100dcd74]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100613d5
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.1008ddb0
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x10061373
mov eax, dword [ebx + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1008ddb0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x10061382
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100612a0
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop ebx
test eax, eax
je 0x100613a2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x100613df
test edi, edi
je 0x100613c6
nop word [eax + eax]
mov esi, dword [edi + 0x1c]
push edi
call dword [0x100dcd78]
add esp, 4
mov edi, esi
test esi, esi
jne 0x100613b0
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x10061393
test edi, edi
jne 0x100613ef
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100615f0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x10061639
push ebx
push esi
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.10061400
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c563
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1006166a
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push 0x17
call fcn.10061400
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c563
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c563
mov esp, ebp
pop ebp
ret

Function at 0x100617e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.100a1388
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x10061807
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret
Function at 0x100654b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x100dcd7c]
mov edi, eax
add esp, 8
test edi, edi
je 0x1006550a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10065526
cmp esi, ebx
je 0x10065526
cmp esi, 0x8000
ja 0x10065526
cmp esi, ebx
jb 0x1006551d
push esi
push edi
call dword [0x100dcd7c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x100654d0
mov ebx, dword [ebp - 4]
push ebx
call dword [0x100dcd78]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x100dcd78]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov byte [ebp + 9], al
mov al, byte [ebp + 0x10]
push 0
mov ecx, dword [esi + 0xc]
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
push 3
push eax
mov byte [ebp + 8], 0xff
push dword [ecx + 0x150]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100665e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1004cb90
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x10066710
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x134]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jne 0x10066871
lea edx, [ecx + 0x1cb4]
push edi
lea edi, [ecx + 0x1eb4]
mov eax, edx
mov dword [edi], edx
cmp edx, edi
jae 0x10066750
lea eax, [edx + 1]
mov byte [edx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x10066764
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10066764
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ecx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 8]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x100667d0
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100667d0
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100667d0
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100667d0
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100667d0
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100667d0
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [ebp - 4]
mov dword [esi + 0x1eb8], eax
lea ecx, [esi + 0x1cb4]
sub eax, ecx
mov dword [edi], ecx
sub eax, 2
push eax
lea eax, [esi + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.10066510
add esp, 0x10
lea eax, [esi + 0x1cb4]
push 0
push 3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x1006682e
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1004cb90
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.100665f0
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x10066870
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1004cb90
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret