joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fd80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537ff8
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
push str.BlockTitle
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.0041fb10
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.00406ec0
lea ecx, [ebp - 0x90]
call fcn.00406e80
push str.ServerID
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0041fb10
add esp, 0xc
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x18
call fcn.00406ec0
lea ecx, [ebp - 0xa8]
call fcn.00406e80
push str.Version
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.0041fb10
add esp, 0xc
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x30
call fcn.00406ec0
lea ecx, [ebp - 0xc0]
call fcn.00406e80
push str.Status
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0041fb10
add esp, 0xc
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x48
call fcn.00406ec0
lea ecx, [ebp - 0xd8]
call fcn.00406e80
push str.SortWeight
mov eax, dword [ebp + 8]
push eax
call fcn.0041fb50
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x60], eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x64
call fcn.00420b40
push str.GateListInfo
mov ecx, dword [ebp + 8]
call fcn.00421740
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
call fcn.00420d30
movzx edx, al
test edx, edx
je 0x41ff23
mov dword [ebp - 0x64], 0
jmp 0x41fed2
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x68]
call fcn.004109b0
cmp dword [ebp - 0x64], eax
jae 0x41ff23
lea ecx, [ebp - 0x5c]
call fcn.0041ff40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.00420d10
push eax
lea ecx, [ebp - 0x5c]
call fcn.0041fcf0
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x60]
add ecx, 0x64
call fcn.00420bc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0041ff70
jmp 0x41fec9
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret 4
Function at 0x445550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x10]
cmp edx, dword [ecx + 0xc]
jae 0x445579
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], ecx
jmp 0x445614
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x445614
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call fcn.004bb45c
add esp, 0x10
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
lea eax, [eax + edx - 1]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0x14]
cmp ecx, dword [eax + 8]
jae 0x445614
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov byte [edx + eax], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x1c], 1
mov esp, ebp
pop ebp
ret
Function at 0x45d260
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x45d2a9
mov al, byte [esi]
push eax
call fcn.00469240
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x45d287
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x4665f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x466634
push esi
push 1
push edi
call fcn.004593c0
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004593c0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x46666a
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x5491c0
push 2
push eax
call fcn.004bafeb
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004bafeb
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x420]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x108], ecx
call fcn.00466f40
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x466aba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x466a7c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.004580b0
push eax
mov eax, dword [ebp - 0x108]
push str.Send_failure:__s
push dword [eax]
call fcn.00466670
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xd94], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x466f40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x548]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x466ffd
cmp dword [ebx + ecx*4 + 0x438], 0x466910
jne 0x466ffd
cmp dword [esi], 0
je 0x466f8f
test edi, edi
je 0x466ffd
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00474400
add esp, 0x14
cmp eax, 0xffffffff
je 0x466ffd
test al, 1
je 0x466ffd
cmp dword [esi], 0
jne 0x466fe4
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5be010]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x466fe4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x466ffd
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x470], 0
je 0x467193
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x46718f
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

Function at 0x467b90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c3ab8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x467be1
push 3
push 2
push eax
push 6
call fcn.0048ad40
add esp, 0x10
test al, al
je 0x467bd5
mov dword [0x5c3ab8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5c3ab8], 1
jmp 0x467be6
cmp eax, 2
je 0x467c26
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 0x467c0d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x467c26
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 0x467e60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x2f8], 3
jne 0x468081
cmp byte [esi + 0x502], 0
jne 0x468081
cmp byte [esi + 0x515], 0
jne 0x468081
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x208]
mov ebx, dword [esi]
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x467f03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.004580b0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00466670
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x20c], 0x80
push 0
push eax
call fcn.004aeae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x467f77
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.004580b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00466670
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
call fcn.00467010
add esp, 0x10
test al, al
jne 0x467fe1
call fcn.004b97ed
mov esi, eax
call fcn.004b97ed
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push dword [esi]
call fcn.004580b0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00466670
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [ebp - 0x20c]
lea eax, [ebp - 0x184]
push eax
call fcn.00467010
add esp, 0x10
test al, al
jne 0x468081
call fcn.004b97ed
mov esi, eax
call fcn.004b97ed
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push dword [esi]
call fcn.004580b0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00466670
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
push esi
call fcn.00467ab0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x468b50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0xb4f], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x468bad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00466750
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
push dword [esi + 0xae8]
mov dword [ebp - 0x10], 1
call fcn.00468df0
push dword [esi + 0xaec]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00468df0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x468c1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00466750
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004951c6
mov esp, ebp
pop ebp
ret

Function at 0x468c30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x108], 1
mov esi, dword [eax]
lea eax, [ebp - 0x108]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x468c94
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004580b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00466750
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004951c6
mov esp, ebp
pop ebp
ret

Function at 0x468dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c7919
Function at 0x469030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x549614
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x469050
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 0x549630
push esi
mov dword [ebp - 8], ebx
call fcn.004c12e5
add esp, 8
test eax, eax
je 0x46909c
test ebx, ebx
je 0x46908c
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 0x4690c5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4690c5
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 0x469170
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4690e1
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x5be010]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x469166
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x469166
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469112
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 0x469130
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x469140
mov eax, dword [ebp - 8]
test eax, eax
je 0x46915d
push 8
push 0
push ebx
call eax
jmp 0x469164
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x5be014]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x469180
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4691d9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4691c6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4691c0
shr eax, 8
cmp al, 2
je 0x4691d9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.00469030
add esp, 4
mov dword [0x5c3ac0], eax
test eax, eax
je 0x46920c
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x5c3abc]
test eax, eax
cmovne ecx, eax
mov dword [0x5c3abc], ecx
push 3
push 2
push 0
push 6
call fcn.0048ad40
add esp, 0x10
test al, al
setne byte [0x5c6308]
push 0x5c6310
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x46b6d0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x550], 2
jne 0x46b6e8
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0046b670
mov al, 1
pop ebp
ret

Function at 0x46b870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46b891
cmp dword [esi + 0x80], 0
je 0x46b891
push 2
push 3
push esi
call fcn.00469810
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0046b270
add esp, 4
test esi, esi
je 0x46b8b4
cmp dword [esi + 0x80], 0
je 0x46b8b4
push 3
push esi
call fcn.00469850
add esp, 8
pop esi
pop ebp
ret
Function at 0x470dd0
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
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x470fa0
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x2c], xmm0
push 0x7f000001
mov word [ebp - 0x2c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x28], eax
xor eax, eax
push 4
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x30]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x470f8e
push 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x470f8e
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x470f8e
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x470f8e
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x470f8e
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x470f8e
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x470f8e
push ebx
push 0x5a5c00
lea eax, [ebp - 0x1c]
push 0xc
push eax
call fcn.004699a0
lea esi, [ebp - 0x1c]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x470ef5
push 0
sub esi, ecx
lea eax, [ebp - 0x1c]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x470f8e
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x470f8e
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x10]
sub esi, 4
jb 0x470f42
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x470f47
add ecx, 4
add edx, 4
sub esi, 4
jae 0x470f31
cmp esi, 0xfffffffc
je 0x470f74
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x470f8e
cmp esi, 0xfffffffd
je 0x470f74
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x470f8e
cmp esi, 0xfffffffe
je 0x470f74
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x470f8e
cmp esi, 0xffffffff
je 0x470f74
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x470f8e
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x474290
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4742aa
cmp dword [eax], 0
jne 0x4742c4
test ebx, ebx
je 0x4742b3
cmp dword [ebx], 0
jne 0x4742c4
test edi, edi
je 0x4743a4
cmp dword [edi], 0
je 0x4743a4
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push esi
lea esi, [ebp - 8]
test edx, edx
jg 0x4742e9
jl 0x4742d8
test ecx, ecx
jae 0x4742df
xor esi, esi
jmp 0x47436d
test edx, edx
jl 0x47435f
jg 0x4742e9
test ecx, ecx
je 0x47435f
push 0
push 0x3e8
push edx
push ecx
call fcn.00495950
push 0
push 0x3e8
mov esi, edx
mov dword [ebp - 4], eax
push esi
push eax
call fcn.00495a00
mov ecx, dword [ebp + 0x18]
sub ecx, eax
mov eax, dword [ebp + 0x1c]
push 0
push 0x3e8
sbb eax, edx
push eax
push ecx
call fcn.00495a00
mov ecx, eax
test esi, esi
jl 0x47434e
jg 0x474334
mov eax, dword [ebp - 4]
cmp eax, 0x7fffffff
jbe 0x474351
mov eax, accept
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
lea esi, [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x47436d
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea esi, [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x47436d
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
test edi, edi
je 0x474376
cmp dword [edi], 0
jne 0x474378
xor edi, edi
test ebx, ebx
je 0x474381
cmp dword [ebx], 0
jne 0x474383
xor ebx, ebx
test eax, eax
je 0x47438c
cmp dword [eax], 0
jne 0x47438e
xor eax, eax
push esi
push edi
push ebx
push eax
mov eax, dword [ebp + 8]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov eax, ecx
mov edx, dword [ebp + 0x1c]
or eax, edx
mov dword [ebp - 4], edx
je 0x4743ef
test edx, edx
jg 0x4743dc
jl 0x4743bd
test ecx, ecx
jae 0x4743d1
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x4743e8
jg 0x4743dc
cmp ecx, 0xffffffff
jb 0x4743e8
mov ecx, 0xfffffffe
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret