joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f600
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x1004f659
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1004f646
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1004f640
shr eax, 8
cmp al, 2
je 0x1004f659
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
call fcn.1007b010
test eax, eax
jne 0x1004f7ef
push esi
push edi
push 0x100bc128
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x1004f686
mov dword [0x100dcfb4], esi
jmp 0x1004f7c5
push ebx
push str.LoadLibraryExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100bc144
push str.iphlpapi.dll
mov ebx, eax
call fcn.1009ff46
add esp, 8
test eax, eax
je 0x1004f6d3
test ebx, ebx
je 0x1004f6c1
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x1004f79d
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x1004f79d
test ebx, ebx
je 0x1004f6fc
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004f6fc
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x1004f79d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x1004f79d
lea ecx, [eax + 0xd]
push ecx
call dword [0x100dbe38]
mov edi, eax
add esp, 4
test edi, edi
je 0x1004f793
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004f793
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f740
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 0x1004f757
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 0x1004f770
test ebx, ebx
je 0x1004f78a
push 8
push 0
push edi
call ebx
jmp 0x1004f791
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x100dbe3c]
add esp, 4
mov dword [0x100dcfb4], esi
pop ebx
test esi, esi
je 0x1004f7c5
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x100dcfb0]
test eax, eax
cmovne ecx, eax
mov dword [0x100dcfb0], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.10079f10
add esp, 0x14
test al, al
setne byte [0x100ddd30]
push 0x100ddd38
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
Function at 0x10052be0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100dbe80]
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 0x10052c26
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.1008c2f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret

Function at 0x10052d50
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10052d65
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 0x10052d7a
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret
Function at 0x10060be0
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.100520b0
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.100a3db0
push dword [ebp + 0xc]
mov edi, eax
call fcn.100a3db0
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 0x10060c67
lea eax, [ebp - 0x20]
push eax
call fcn.100520b0
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.10052160
add esp, 0x20
test edx, edx
ja 0x10060c8a
jb 0x10060c55
cmp eax, 0x3e8
ja 0x10060c8a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10060c20
test edi, edi
je 0x10060c74
push edi
call fcn.10097b18
add esp, 4
test esi, esi
je 0x10060c81
push esi
call fcn.10097b18
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10060c97
push edi
call fcn.10097b18
add esp, 4
test esi, esi
je 0x10060ca4
push esi
call fcn.10097b18
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10060de0
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 [0x100dbe80]
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 0x10060fb1
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 0x10060f9f
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10060f9f
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 0x10060f9f
cmp dword [ebp - 0x28], 0x10
jl 0x10060f9f
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10060f9f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x10060f9f
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10060f9f
push 1
push esi
call fcn.10079b70
add esp, 8
test eax, eax
js 0x10060f9f
push 0
push 0x2710
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push 1
push eax
mov dword [ebp - 0x30], 0x300
call fcn.1005c310
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 0x10060f9f
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 0x10060f9f
cmp dword [ebp - 0x28], 0x10
jl 0x10060f9f
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 0x10060f9f
cmp dword [ebp - 0x28], 0x10
jl 0x10060f9f
mov ax, word [ebp - 0x14]
cmp ax, word [ebp - 0x24]
jne 0x10060f9f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x10060f9f
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x22]
jne 0x10060f9f
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.1008c2f5
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.1008c2f5
mov esp, ebp
pop ebp
ret
Function at 0x10061000
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 0x10061197
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10061183
push ebx
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1006105e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10061050
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10061060
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x10061072
mov eax, 0x10
jmp 0x10061080
cmp eax, 0x17
jne 0x10061125
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x10061125
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10061125
cmp edx, eax
jb 0x10061125
add ecx, 0x20
add eax, ecx
push eax
call dword [0x100dbe38]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10061175
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.1008db40
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x10061113
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.1008db40
add esp, 0xc
mov eax, dword [ebp - 0x10]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x10061122
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10061040
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop ebx
test eax, eax
je 0x10061142
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x1006117f
test edi, edi
je 0x10061166
nop word [eax + eax]
mov esi, dword [edi + 0x1c]
push edi
call dword [0x100dbe3c]
add esp, 4
mov edi, esi
test esi, esi
jne 0x10061150
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 0x10061133
test edi, edi
jne 0x1006118f
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 0x10061390
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100dbe80]
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 0x100613d9
push ebx
push esi
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.100611a0
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
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 0x1006140a
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push 0x17
call fcn.100611a0
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret

Function at 0x10061580
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.100a1118
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x100615a7
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret
Function at 0x10065250
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 [0x100dbe40]
mov edi, eax
add esp, 8
test edi, edi
je 0x100652aa
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 0x100652c6
cmp esi, ebx
je 0x100652c6
cmp esi, 0x8000
ja 0x100652c6
cmp esi, ebx
jb 0x100652bd
push esi
push edi
call dword [0x100dbe40]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10065270
mov ebx, dword [ebp - 4]
push ebx
call dword [0x100dbe3c]
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 [0x100dbe3c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10066340
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 0x10066387
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1004c930
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x100664b0
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 0x10066611
lea edx, [ecx + 0x1cb4]
push edi
lea edi, [ecx + 0x1eb4]
mov eax, edx
mov dword [edi], edx
cmp edx, edi
jae 0x100664f0
lea eax, [edx + 1]
mov byte [edx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x10066504
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10066504
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 0x10066570
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10066570
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10066570
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10066570
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10066570
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10066570
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.100662b0
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 0x100665ce
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1004c930
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.10066390
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 0x10066610
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1004c930
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100674a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], edi
mov esi, dword [eax + 0x440]
cmp dword [esi], 0
sete al
movzx eax, al
push eax
push 0
push dword [esi + 0x10]
call fcn.1004e120
add esp, 0xc
test edx, edx
jg 0x10067504
jl 0x100674f2
test eax, eax
jae 0x10067504
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x10067cc9
lea eax, [ebp - 0x250]
push eax
call fcn.10096dd4
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x28]
cdq
add esp, 4
add eax, dword [edi]
adc edx, dword [edi + 4]
cmp dword [ebp - 0x24c], edx
jl 0x10067cc3
jg 0x10067539
cmp dword [ebp - 0x250], eax
jbe 0x10067cc3
push edi
mov ebx, 7
call fcn.10096dd4
mov eax, dword [ebp - 0x258]
add esp, 4
mov byte [eax], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x254], edx
cmp eax, 3
ja case.default.0x10067564
jmp dword [eax*4 + 0x10067d68]
xor edi, edi
mov eax, str.netascii
cmp byte [edx + 0xd0b], 0
mov ebx, str.octet
cmovne ebx, eax
mov eax, 7
jmp dword [eax*4 + 0x10067d78]
mov eax, 4
jmp dword [eax*4 + 0x10067d98]
push ebx
push esi
call fcn.10068ca0
mov edi, eax
add esp, 8
test edi, edi
jne 0x10067cb0
cmp dword [esi], 3
mov edx, dword [ebp - 0x258]
sete al
mov byte [edx], al
jne 0x10067d52
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x25c]
jmp 0x10067d4a
push str.Internal_state_machine_error
push 0x100bb03c
push edx
call fcn.1004c930
add esp, 0xc
mov edi, 0x47
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x258]
push 0
push 0
mov ecx, edi
xor al, al
push 0xffffffffffffffff
push 0xffffffffffffffff
mov byte [ecx], al
push dword [esi + 0x14]
call fcn.1005c6d0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10067d14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [ebp - 0x244]
push ecx
push eax
call fcn.100798a0
push eax
push 0x100bb03c
push ebx
call fcn.1004c930
mov dword [esi + 0xc], 5
jmp 0x10067d4f
test eax, eax
je 0x10067d52
push ebx
call fcn.10068080
add esp, 4
test eax, eax
jne 0x10067d54
push dword [esi + 0xc]
push esi
call fcn.10068b30
add esp, 8
test eax, eax
jne 0x10067d54
cmp dword [esi], 3
sete al
mov byte [edi], al
jne 0x10067d52
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.1005a1e0
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
Function at 0x10068080
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov esi, dword [eax + 0x440]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x13c]
push 0
add eax, 4
push eax
push dword [esi + 0x148]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x130], 0
mov dword [esi + 0x134], eax
jne 0x1006810c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xb0]
push eax
call fcn.1008db40
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x130], eax
mov ebx, dword [esi + 0x134]
cmp ebx, 4
jge 0x1006813f
push str.Received_too_short_packet
push edi
call fcn.1004c930
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1006815e.1
jmp dword [ecx*4 + 0x1006826c]
cmp ebx, 4
jle case.0x1006815e.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1006815e.4
lea eax, [ebx - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push edi
call fcn.1004c880
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x100681c5
push 5
push esi
call fcn.10068b30
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x134]
sub eax, 4
cdq
add dword [edi + 0x90], eax
adc dword [edi + 0x94], edx
push dword [edi + 0x94]
push dword [edi + 0x90]
push edi
call fcn.1005b100
jmp 0x10068237
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
mov dword [esi + 8], ecx
jmp case.0x1006815e.4
lea eax, [ebx - 2]
push eax
lea eax, [edx + 2]
push eax
push esi
call fcn.10067e90
add esp, 0xc
test eax, eax
je case.0x1006815e.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x100bb03c
push edi
call fcn.1004c930
add esp, 0xc
push edi
call fcn.1005b4e0
add esp, 4
test eax, eax
je 0x1006812c
push 5
push esi
call fcn.10068b30
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
Function at 0x10068b30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov edx, dword [ecx]
mov esi, dword [ecx + 0x10]
cmp edx, 3
ja case.default.0x10068b43
jmp dword [edx*4 + 0x10068b84]
pop esi
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10068550
pop esi
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10068290
pop esi
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10068ca0
push str.Internal_state_machine_error
push 0x100bb03c
push esi
call fcn.1004c930
add esp, 0xc
mov eax, 0x47
pop esi
pop ebp
ret
Function at 0x1006e6c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
or esi, 0xffffffff
push ecx
mov ebx, dword [edi + 0xc]
mov eax, dword [ebx + 0x154]
push eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1006e734
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x8c]
push ebx
push edi
call fcn.1004d350
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1006e76d
push str.Error_accept__ing_server_connect
push edi
call fcn.1004c930
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
push 1
push esi
mov byte [ebx + 0x26d], 0
mov dword [ebx + 0x154], esi
call fcn.10079b70
add esp, 8
mov byte [ebx + 0x280], 1
cmp dword [edi + 0x1b0], 0
je 0x1006e7df
push 1
push edi
call fcn.1003d9c0
mov eax, dword [edi + 0x1b0]
push 1
push esi
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.1003d9c0
add esp, 0x1c
test esi, esi
je 0x1006e7df
push ebx
push edi
call fcn.1006ec10
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret