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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
mov ebx, ecx
mov dword [ebp - 8], ebx
test ecx, ecx
jle 0x1003ac03
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0xb0]
add ecx, 0x40
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jmp 0x1003aa96
mov ebx, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
cmp ebx, eax
jl 0x1003aa9f
mov ebx, eax
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
call fcn.100372c0
test eax, eax
je 0x1003aad1
mov esi, dword [ebp - 4]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], eax
jmp 0x1003ab10
mov edi, dword [esi + 0xa4]
mov edx, dword [esi + 0x94]
lea ecx, [edi + 0x38]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x38
mov esi, eax
push 0
push esi
call fcn.10120090
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0x94
mov dword [esi + 0x14], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], eax
mov dword [ebp - 4], esi
test ebx, ebx
jns 0x1003ab1c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
jmp 0x1003ab1f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
lea edi, [esi + 0x1c]
push ebx
mov dword [edi], eax
mov eax, dword [esi + 0x20]
push edx
push eax
call fcn.1011fc70
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x88]
xor eax, eax
push eax
push esi
push eax
lea edx, [ebp - 0x14]
push edx
push 1
mov dword [ebp - 0x14], eax
mov dword [esi + 0x34], ecx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x34]
push edi
mov dword [esi + 0x18], 3
push eax
mov dword [esi + 0x28], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1003ab83
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1003ab86
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp eax, 0x3e5
jne 0x1003ab97
mov dword [ebp - 4], 0
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
je 0x1003abab
cmp dword [ebp - 4], 0
je 0x1003abd2
mov edi, dword [ebp + 8]
push esi
add edi, 0xb0
call fcn.10041140
test eax, eax
jne 0x1003abcc
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
jne 0x1003abf1
mov eax, dword [ebp - 8]
add dword [ebp + 0x10], ebx
sub eax, ebx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1003aa90
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0xc]
neg ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003aed0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
sub esp, 8
xor eax, eax
cmp dword [ebx + 0x90], ecx
jle 0x1003afd6
push esi
push edi
jmp 0x1003aef2
xor ecx, ecx
mov esi, dword [ebx + 0x94]
cmp esi, dword [ebx + 0x98]
je 0x1003af0e
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x94], eax
mov dword [eax + 0x30], ecx
jmp 0x1003af1e
cmp esi, ecx
je 0x1003af2e
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
cmp esi, ecx
je 0x1003af2e
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
dec dword [ebx + 0x90]
mov eax, dword [esi + 0x1c]
sub dword [ebx + 0x40], eax
lea edi, [esi + 0x1c]
push eax
lea eax, [ebx + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [ebx + 0x88]
xor eax, eax
push eax
push esi
push eax
lea edx, [ebp - 8]
push edx
push 1
mov dword [ebp - 8], eax
mov dword [esi + 0x34], ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x34]
push edi
mov dword [esi + 0x18], 3
push eax
mov dword [esi + 0x28], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1003af83
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
je 0x1003af9f
mov eax, dword [ebp - 4]
test eax, eax
je 0x1003afc7
cmp eax, 0x3e5
je 0x1003afc3
mov edi, dword [ebp + 8]
push esi
add edi, 0xb0
call fcn.10041140
test eax, eax
jne 0x1003afc0
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1003afd4
cmp dword [ebx + 0x90], 0
jg 0x1003aef0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1003b650
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xc8]
call edx
test eax, eax
je 0x1003b75f
lea ebx, [esi + 0x144]
call fcn.10006de0
mov eax, dword [esi + 0x44]
cmp eax, 3
jne 0x1003b747
push edi
xor edi, edi
mov dword [esi + 0x44], edi
mov dword [ebx], edi
mov edx, dword [esi]
mov eax, dword [edx + 0xcc]
mov ecx, esi
call eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
xor edx, edx
push eax
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], cx
mov ecx, dword [ebp + 0xc]
mov word [ebp - 0x3c], dx
push ecx
lea edx, [ebp - 0x20]
push edx
push eax
lea ecx, [ebp - 0x3c]
mov edx, esi
mov dword [esi + 8], 1
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
call fcn.1003b8c0
test eax, eax
je 0x1003b7ad
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.1003baa0
test eax, eax
je 0x1003b79e
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov edx, dword [edx + 0x90]
push eax
mov ecx, esi
call edx
cmp eax, 2
je 0x1003b786
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20]
call fcn.1003bb80
test eax, eax
je 0x1003b777
lea ecx, [esi + 0x38]
push ecx
push edi
push esi
push 0x1003bc70
push edi
push edi
call fcn.1011d9a7
add esp, 0x18
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x1003b769
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x139f
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebx], 0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [esi + 0x3c], 8
push 0x65f
jmp 0x1003b7c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x3c], 0xb
jmp 0x1003b7c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x1003b795
mov eax, 0x4c7
mov dword [esi + 0x3c], 5
jmp 0x1003b7c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x3c], 4
jmp 0x1003b7ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x3c], 3
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push edi
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1003b8c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101b2070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
call fcn.10033c60
mov word [ebx], ax
test ax, ax
je 0x1003b909
mov edi, dword [ebp + 0x10]
mov edx, esi
push edx
mov esi, ebx
call fcn.10033da0
mov edi, dword [ebp - 0x1c]
jmp 0x1003b917
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
push eax
mov esi, ebx
call fcn.10033eb0
add esp, 4
test eax, eax
je 0x1003b9a9
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1003b9be
cmp word [esi], 0
je 0x1003b9be
call fcn.10033c60
mov esi, dword [ebp - 0x14]
mov word [esi], ax
cmp ax, 2
je 0x1003b96e
cmp ax, 0x17
je 0x1003b975
push 0x2741
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 0x10
jmp 0x1003b97a
mov ecx, 0x1c
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
movzx edx, ax
mov eax, dword [ebp - 0x20]
push 0
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x1003b9a9
mov cx, word [ebx]
cmp cx, word [esi]
je 0x1003b9be
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret 0x10
movzx edx, word [ebx]
push 6
push 1
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
je 0x1003b9a9
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x1003b9e8
cmp dword [edi + 0x30], 0
jbe 0x1003b9e8
mov ecx, 1
jmp 0x1003b9ea
xor ecx, ecx
push 0
push 0
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x14]
push edx
push 0
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x30]
push 0
push 0xc
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x98000004
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x1003ba34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1003ba34
test eax, eax
je 0x1003ba34
push 0x80004005
call fcn.10002670
mov eax, dword [edi + 0x14]
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push 0xffff
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1003ba60
push 0x80004005
call fcn.10002670
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebx, dword [ebp - 0x18]
mov dword [edi + 0x18], eax
lea eax, [edi + 0x5c]
call fcn.1003afe0
mov eax, dword [ebp - 0x1c]
mov cx, word [ebp + 0x10]
mov word [eax + 0x60], cx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1011bab4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003bb80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
mov edi, eax
cmp dword [ebp + 8], ebx
je 0x1003bbec
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push 0x30
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1003bc5c
mov edx, dword [esi + 0x14]
xor eax, eax
cmp word [edi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push edi
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1003bbe1
cmp eax, 0xffffffff
jne 0x1003bbd9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1003bbe1
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
pop edi
mov eax, 1
pop ebx
pop ebp
ret 4
xor eax, eax
cmp word [edi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
mov eax, dword [esi + 0x14]
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1003bc5c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1003bc5c
mov edi, 1
mov dword [esi + 0x40], edi
push 0
mov dword [esi + 0x44], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x94]
mov ecx, esi
call edx
cmp eax, 2
jne 0x1003bc64
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003bc55
mov eax, 0x4c7
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4
mov eax, edi
pop edi
pop ebx
pop ebp
ret 4

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

Disassembly:
mov eax, dword [esi + 0x180]
push ebx
push edi
test eax, eax
jne 0x1003c023
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x14]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x1003bffb
push 0
call ebx
mov eax, dword [esi + 0x50]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0xa4]
mov ecx, esi
call eax
cmp eax, 2
jne 0x1003c004
mov edx, dword [esi + 0x1c]
push edx
call fcn.10033ad0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003bfe5
mov eax, 0x4c7
mov dword [esi + 0xc], 4
mov dword [esi + 0x10], eax
pop edi
mov dword [esi + 8], 1
xor eax, eax
pop ebx
ret
cmp edi, 0xffffffff
je 0x1003c016
test edi, edi
je 0x1003c02b
mov ecx, dword [esi + 0x180]
test ecx, ecx
je 0x1003bf96
pop edi
mov eax, 1
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1003bfe5
pop edi
mov eax, 1
pop ebx
ret
pop edi
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], 0
mov dword [esi + 8], 1
xor eax, eax
pop ebx
ret
Function at 0x1003c250
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x14]
push esi
je 0x1003c2f9
lea ecx, [ecx]
lea eax, [edi + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
mov edx, dword [edi + 0x20]
sub eax, ecx
cmp eax, edx
jl 0x1003c27e
mov eax, edx
push 0
push eax
push ecx
mov ecx, dword [edi + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x1003c298
sub dword [edi + 0x17c], esi
lea eax, [edi + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jle 0x1003c2e8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 0x14]
mov edx, dword [edi]
push esi
push eax
mov eax, dword [edx + 0x9c]
mov ecx, edi
call eax
cmp eax, 2
jne 0x1003c2d3
mov ecx, dword [edi + 0x1c]
push ecx
call fcn.10033ad0
add esp, 4
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
sub eax, ecx
cmp eax, esi
jl 0x1003c2e1
mov eax, esi
add ecx, eax
mov dword [ebx + 0x14], ecx
jmp 0x1003c2ed
cmp esi, 0xffffffff
je 0x1003c300
mov edx, dword [ebx + 0x18]
sub edx, dword [ebx + 0x14]
jne 0x1003c260
mov eax, 1
pop esi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1003c2f9
mov dword [edi + 0x10], eax
mov dword [edi + 8], 1
mov dword [edi + 0xc], 3
xor eax, eax
pop esi
ret
Function at 0x1003cd10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101b2070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x1003cd34
cmp word [eax], 0
jne 0x1003cd39
mov eax, str.0.0.0.0
push ebx
push edi
xor ecx, ecx
lea edi, [ebp - 0x34]
mov ebx, edx
mov word [ebp - 0x34], cx
call fcn.100344b0
test eax, eax
je 0x1003ced9
mov ax, word [ebp - 0x34]
push 6
movzx edx, ax
mov edi, 1
push edi
push edx
mov word [esi + 0x4c], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
je 0x1003ced9
mov edx, dword [esi + 0x34]
test edx, edx
je 0x1003cd8a
cmp dword [esi + 0x38], 0
jbe 0x1003cd8a
mov ecx, edi
jmp 0x1003cd8c
xor ecx, ecx
push 0
push 0
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x14]
push edx
push 0
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x38]
push 0
push 0xc
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x98000004
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x1003cdd8
call ebx
cmp eax, 0x2733
je 0x1003cdd8
test eax, eax
je 0x1003cdd8
push 0x80004005
call fcn.10002670
mov eax, dword [esi + 0x54]
push 4
lea edx, [ebp - 0x14]
push edx
push 0xfffffffffffffffb
push 0xffff
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1003ce00
push 0x80004005
call fcn.10002670
mov eax, dword [esi + 0x54]
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1003ce24
push 0x80004005
call fcn.10002670
xor eax, eax
cmp word [ebp - 0x34], 2
lea edx, [ebp - 0x34]
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
mov eax, dword [esi + 0x54]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1003cece
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call edi
mov edx, dword [esi]
mov eax, dword [esi + 0x54]
mov edx, dword [edx + 0x100]
push eax
mov ecx, esi
call edx
cmp eax, 2
je 0x1003cebd
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x54]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1003ceaf
mov edx, dword [esi + 0x54]
push edx
call fcn.10034520
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x54]
push eax
call fcn.10034590
mov ecx, dword [esi + 0x54]
push ecx
mov dword [esi + 0x44], eax
call fcn.10034670
add esp, 0xc
mov dword [esi + 0x48], eax
mov dword [ebp - 0x18], 1
jmp 0x1003ceed
call ebx
push eax
mov dword [esi + 0x60], 6
call edi
jmp 0x1003ceed
call fcn.10037fc0
push eax
mov dword [esi + 0x60], 5
call edi
jmp 0x1003ceed
call ebx
mov dword [esi + 0x60], 4
jmp 0x1003cee6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x60], 3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.1011bab4
mov esp, ebp
pop ebp
ret 4
Function at 0x1003cf50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
jbe 0x1003d099
push esi
push edi
push 0
push 0
push ebx
push 0x1003e210
push 0
push 0
call fcn.1011d9a7
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x1003d07c
mov eax, dword [ebx + 0x68]
lea esi, [ebx + 0x64]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x1003d006
mov edx, dword [esi]
cmp edx, ecx
ja 0x1003d006
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x1003cff6
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x1003d072
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x1003cff6
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x1003cfe5
xor ecx, ecx
jmp 0x1003cfe7
add ecx, edx
cmp ecx, eax
jae 0x1003cfed
mov ecx, eax
push ecx
call fcn.100373b0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x1003d052
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x1003d052
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x1003d049
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x1003d072
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x1003d049
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x1003d038
xor ecx, ecx
jmp 0x1003d03a
add ecx, edx
cmp ecx, eax
jae 0x1003d040
mov ecx, eax
push ecx
call fcn.100373b0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x1003d052
mov dword [eax], edi
mov eax, dword [ebp - 8]
add dword [esi + 4], 4
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 0x10]
jb 0x1003cf74
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.1011ba3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebx + 0x60], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov dword [ebp - 0xc], 0
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003d720
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ecx + 0x54]
xor eax, eax
lea edx, [ebp - 4]
mov word [ebp - 0x20], ax
push edx
lea eax, [ebp - 0x20]
push eax
push ecx
mov dword [ebp - 4], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1003d751
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push ecx
push edx
lea ecx, [ebp + 0x10]
lea eax, [ebp - 0x20]
call fcn.100343d0
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003d780
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ecx + 0x16c]
test edi, edi
je 0x1003d816
mov eax, dword [ebp + 8]
dec eax
xor edx, edx
div dword [ecx + 0x168]
mov ecx, dword [ecx + 0x1ac]
push esi
pop esi
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x1003d816
mov edx, dword [edi + edx*4]
mov eax, 0xf
cmp eax, edx
sbb eax, eax
neg eax
cmp eax, 1
jne 0x1003d816
test edx, edx
je 0x1003d816
cmp dword [edx + 0x30], 0
je 0x1003d816
mov edx, dword [edx + 0x88]
xor ecx, ecx
lea eax, [ebp - 4]
mov word [ebp - 0x20], cx
push eax
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 4], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1003d816
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edx
push eax
lea ecx, [ebp + 8]
lea eax, [ebp - 0x20]
call fcn.100343d0
add esp, 8
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1003e100
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push edi
mov ecx, esi
mov dword [ebp - 4], 0
call edx
test eax, eax
je 0x1003e1ea
movzx eax, word [esi + 0x4c]
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
lea ebx, [esi + 0x84]
mov edi, eax
call fcn.1003b170
mov ebx, eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
movzx eax, word [esi + 0x4c]
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x54]
mov dword [ebp - 4], edx
xor edx, edx
cmp eax, 2
setne dl
push ebx
push 0
mov dword [ebp - 8], 0
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x18], 1
lea eax, [edx - 1]
and eax, 0xfffffff4
add eax, 0x2c
push eax
push eax
mov eax, dword [ebx + 0x20]
push 0
push eax
push edi
push ecx
call dword [ebp - 4]
test eax, eax
jne 0x1003e192
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1003e195
mov eax, dword [ebp - 8]
cmp eax, 0x3e5
jne 0x1003e19e
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003e1f7
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
test eax, eax
je 0x1003e1c5
push 0x80004005
call fcn.10002670
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
lea edi, [esi + 0xa0]
call fcn.10041140
test eax, eax
jne 0x1003e1ea
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx]
push ebx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esi, 0x388
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret