joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e530
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
mov edi, eax
mov eax, dword [edi + 0x58]
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1003e559
push 0x80004005
call fcn.10002670
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp word [edi + 0x4c], 2
lea ecx, [ebp - 0xc]
setne al
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [edi + 0x44]
dec eax
and eax, 0xfffffff4
add eax, 0x2c
lea edx, [ebp - 0x14]
push edx
push eax
push eax
mov eax, dword [esi + 0x20]
push 0
push eax
call ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
mov ebx, dword [esi + 0x34]
mov ecx, edi
mov dword [ebp - 4], 0
call eax
test eax, eax
je 0x1003e680
lea ecx, [ebp - 4]
push ecx
lea esi, [edi + 0x168]
call fcn.10047970
test eax, eax
je 0x1003e67d
mov edx, dword [ebp - 4]
push ebx
push edx
mov eax, edi
call fcn.1003d320
mov esi, eax
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push edi
call fcn.1003d4c0
mov ecx, dword [ebp + 8]
push 4
lea edx, [ebp + 8]
push edx
push 0x700b
push 0xffff
push ebx
mov dword [ebp + 8], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x58]
push 0
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [edi]
mov eax, dword [edx + 0x104]
push esi
mov ecx, edi
call eax
mov ebx, eax
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
cmp ebx, 2
je 0x1003e647
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.1003eb00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push edi
call fcn.1003d3e0
mov esi, dword [ebp + 0xc]
push esi
add edi, 0xa0
call fcn.10041140
test eax, eax
jne 0x1003e6ae
mov edx, dword [esi + 0x14]
push esi
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
add edi, 0xa0
call fcn.10041140
test eax, eax
jne 0x1003e6ae
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003e880
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137288
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x1003e8b3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x4c]
test edx, edx
jne 0x1003e9a9
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
xor edi, edi
cmp eax, edi
je 0x1003e8d5
cmp eax, 1
jne 0x1003e9a9
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
cmp dword [ebx + 0x1c], eax
lea esi, [ebx + 0x1c]
jne 0x1003e9ac
mov edx, dword [ebx + 0x34]
push edi
push edi
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 1
push esi
push edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x1003e918
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x1003e928
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1003e923
mov dword [esi], eax
jmp 0x1003e928
mov edi, 0x2775
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x1003e9da
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x30], 0
mov edi, 0xff
je 0x1003e991
add ebx, 0x54
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [eax + 0x30], 0
je 0x1003e983
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x110]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebp + 0xc]
push eax
call edx
mov edi, eax
push ebx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x1e
jl 0x1003e8b0
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x1003e9ba
cmp eax, 1
jne 0x1003ea21
test ecx, ecx
je 0x1003ea37
cmp ecx, 0x2733
je 0x1003ea37
cmp ecx, 0x2775
jne 0x1003e9df
mov eax, dword [ebp + 8]
push 0
push 0
push 1
push eax
jmp 0x1003e9f8
mov ecx, dword [ebp - 0x10]
jmp 0x1003e9ac
cmp ecx, 0x2736
je 0x1003ea00
cmp ecx, 0x3e3
je 0x1003ea00
push ecx
mov ecx, dword [ebp + 8]
push 4
push 2
push ecx
mov eax, dword [ebp + 0xc]
call fcn.1003d3e0
mov edi, dword [ebp + 8]
push ebx
add edi, 0xa0
call fcn.10041140
test eax, eax
jne 0x1003ea21
mov edx, dword [ebx + 0x14]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003ee30
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 0x1003efd3
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0xa0]
add ecx, 0x40
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jmp 0x1003ee66
mov ebx, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
cmp ebx, eax
jl 0x1003ee6f
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 0x1003eea1
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 0x1003eee0
mov edi, dword [esi + 0x94]
mov edx, dword [esi + 0x84]
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, 0x84
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 0x1003eeec
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
jmp 0x1003eeef
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 0x1003ef53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1003ef56
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp eax, 0x3e5
jne 0x1003ef67
mov dword [ebp - 4], 0
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
je 0x1003ef7b
cmp dword [ebp - 4], 0
je 0x1003efa2
mov edi, dword [ebp + 8]
push esi
add edi, 0xa0
call fcn.10041140
test eax, eax
jne 0x1003ef9c
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 0x1003efc1
mov eax, dword [ebp - 8]
add dword [ebp + 0x10], ebx
sub eax, ebx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1003ee60
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 0x1003f2a0
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 0x1003f3a6
push esi
push edi
jmp 0x1003f2c2
xor ecx, ecx
mov esi, dword [ebx + 0x94]
cmp esi, dword [ebx + 0x98]
je 0x1003f2de
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x94], eax
mov dword [eax + 0x30], ecx
jmp 0x1003f2ee
cmp esi, ecx
je 0x1003f2fe
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
cmp esi, ecx
je 0x1003f2fe
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 0x1003f353
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 0x1003f36f
mov eax, dword [ebp - 4]
test eax, eax
je 0x1003f397
cmp eax, 0x3e5
je 0x1003f393
mov edi, dword [ebp + 8]
push esi
add edi, 0xa0
call fcn.10041140
test eax, eax
jne 0x1003f390
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 0x1003f3a4
cmp dword [ebx + 0x90], 0
jg 0x1003f2c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10041de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
push edi
call edx
test eax, eax
je 0x10041efb
lea ebx, [esi + 0x184]
call fcn.10006de0
mov eax, dword [esi + 0x4c]
cmp eax, 3
jne 0x10041edf
xor ebx, ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x184], ebx
mov edx, dword [esi]
mov eax, dword [edx + 0xa8]
mov ecx, esi
call eax
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, dword [ebp + 0x14]
push eax
mov word [ebp - 0x20], cx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
push esi
mov dword [esi + 8], 1
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.10042150
test eax, eax
je 0x10041f4a
lea eax, [ebp - 0x20]
mov edi, esi
call fcn.10042310
test eax, eax
je 0x10041f3b
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call edi
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
push ecx
mov ecx, esi
call edx
cmp eax, 2
je 0x10041f23
lea eax, [ebp - 0x20]
call fcn.100423a0
test eax, eax
je 0x10041f14
lea eax, [esi + 0x40]
push eax
push ebx
push esi
push 0x10042590
push ebx
push ebx
call fcn.1011d9a7
add esp, 0x18
mov dword [esi + 0x3c], eax
cmp eax, ebx
je 0x10041f06
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x139f
mov dword [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esi + 0x184], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [esi + 0x44], 8
push 0x65f
jmp 0x10041f5e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x44], 0xb
jmp 0x10041f5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10041f32
mov eax, 0x4c7
mov dword [esi + 0x44], 5
jmp 0x10041f5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x44], 4
jmp 0x10041f57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x44], 3
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push ebx
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10042150
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x38], 0
push esi
push edi
jne 0x100421a7
mov esi, dword [ebp + 0xc]
lea edi, [ebx + 0x58]
mov dword [ebp - 4], edi
call fcn.10033c60
mov word [edi], ax
test ax, ax
je 0x10042187
mov eax, esi
mov esi, edi
mov edi, dword [ebp + 0x10]
push eax
call fcn.10033da0
mov edi, esi
jmp 0x10042195
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov esi, edi
call fcn.10033eb0
add esp, 4
test eax, eax
jne 0x100421cd
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebx + 0x58]
mov edx, 2
mov dword [ebp - 4], eax
mov word [eax], dx
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebx + 0x5c], 0xffffffff
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 4]
mov word [ebx + 0x5a], ax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1004222f
cmp word [eax], 0
je 0x1004222f
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
call fcn.100344b0
test eax, eax
je 0x1004219c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 1
jne 0x1004220e
cmp word [edi], 0x17
jne 0x1004220e
push 0x273b
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp - 4]
mov ax, word [edx]
cmp ax, word [edi]
je 0x10042248
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x10]
mov cx, word [edi]
mov esi, dword [ebp + 0x18]
push edx
mov word [esi], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
jmp 0x1004224d
mov edi, dword [ebp - 4]
mov ebx, ecx
movzx eax, word [edi]
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x14], eax
cmp eax, 0xffffffff
je 0x1004219c
push 0
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push 0
push 4
lea edx, [ebp + 0x18]
push edx
push 0x9800000c
push eax
mov dword [ebp + 0x18], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x100422ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100422ac
test eax, eax
je 0x100422ac
push 0x80004005
call fcn.10002670
mov eax, dword [ebx + 0x20]
push 4
lea ecx, [ebp + 0x18]
push ecx
push 4
mov dword [ebp + 0x18], eax
mov eax, dword [ebx + 0x14]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100422d8
push 0x80004005
call fcn.10002670
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x9c]
mov ebx, dword [ebp + 0xc]
call fcn.1003afe0
mov eax, dword [ebp + 8]
mov dx, word [ebp + 0x10]
pop edi
pop esi
mov word [eax + 0xa0], dx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10042310
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
xor eax, eax
cmp word [esi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
mov eax, dword [edi + 0x14]
push esi
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1004233f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x14]
xor eax, eax
cmp word [esi], 2
lea ecx, [ebp - 4]
setne al
push ecx
push esi
push edx
dec eax
and eax, 0xfffffff4
add eax, 0x1c
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1004236f
push 0x80004005
call fcn.10002670
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x101b81b0
call esi
test eax, eax
jne 0x10042387
push 0x101b81b0
call esi
mov dword [edi + 0x1c], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100423a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x38], 0
push ebx
jne 0x100423bd
mov ebx, eax
mov ecx, esi
call fcn.10042450
test eax, eax
jne 0x100423ea
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
push 4
lea ecx, [ebp - 4]
push ecx
push 0x20
push 0xffff
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100423ea
push 0x80004005
call fcn.10002670
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push 0x23
push edx
push eax
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10042449
mov dword [esi + 0x48], 1
push ebx
mov dword [esi + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
mov ecx, esi
call eax
cmp eax, 2
jne 0x10042444
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10042436
mov eax, 0x4c7
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042450
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
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, ecx
cmp word [esi + 0x58], 2
mov eax, dword [esi + 0x14]
push 4
lea ecx, [esi + 0x30]
push ecx
push 0xa
jne 0x100424ee
push 0
push eax
call edi
cmp eax, 0xffffffff
jne 0x10042490
push 0x80004005
call fcn.10002670
mov eax, dword [esi + 0x14]
push 4
lea edx, [esi + 0x34]
push edx
push 0xb
push 0
push eax
call edi
cmp eax, 0xffffffff
jne 0x100424af
push 0x80004005
call fcn.10002670
mov ecx, dword [ebx + 4]
push 8
xor eax, eax
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov esi, dword [esi + 0x14]
push 0xc
push 0
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call edi
cmp eax, 0xffffffff
jne 0x10042577
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret
push 0x29
push eax
call edi
cmp eax, 0xffffffff
jne 0x10042502
push 0x80004005
call fcn.10002670
mov eax, dword [esi + 0x14]
push 4
lea edx, [esi + 0x34]
push edx
push 0xb
push 0x29
push eax
call edi
cmp eax, 0xffffffff
jne 0x10042521
push 0x80004005
call fcn.10002670
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x14
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
push 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x6c]
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x18]
push 0x29
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call edi
cmp eax, 0xffffffff
jne 0x10042577
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1011bab4
mov esp, ebp
pop ebp
ret
Function at 0x10042840
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x1c0]
push ebx
push edi
test eax, eax
jne 0x1004290c
lea ebx, [esi + 0x74]
mov edx, dword [esi + 0x24]
xor eax, eax
cmp word [ebx], 2
lea ecx, [ebp - 4]
setne al
push ecx
push ebx
push 0
push edx
dec eax
and eax, 0xfffffff4
add eax, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x90]
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
js 0x100428e1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x90]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x9c]
mov ecx, esi
call eax
cmp eax, 2
jne 0x100428e6
mov edx, dword [esi + 0x1c]
push edx
call fcn.10033ad0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100428c8
mov eax, 0x4c7
mov dword [esi + 0x10], eax
pop edi
mov dword [esi + 0xc], 4
xor eax, eax
mov dword [esi + 8], 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x100428ff
mov ecx, dword [esi + 0x1c0]
test ecx, ecx
je 0x10042857
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100428c8
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10043190
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ecx + 0x14]
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 0x100431c1
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 0x100432d0
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 + 0xac]
call edx
test eax, eax
je 0x100433dc
lea ebx, [esi + 0x144]
call fcn.10006de0
mov eax, dword [esi + 0x44]
cmp eax, 3
jne 0x100433c4
push edi
xor edi, edi
mov dword [esi + 0x44], edi
mov dword [ebx], edi
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, dword [ebp + 0x14]
xor edx, edx
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov word [ebp - 0x3c], dx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x20]
push eax
push ecx
push esi
mov dword [esi + 8], 1
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
call fcn.10043590
test eax, eax
je 0x1004342a
mov ebx, dword [ebp + 0x18]
lea edx, [ebp - 0x20]
push edx
push esi
lea ecx, [ebp - 0x3c]
call fcn.1003baa0
test eax, eax
je 0x1004341b
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
push ecx
mov ecx, esi
call edx
cmp eax, 2
je 0x10043403
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20]
call fcn.10043690
test eax, eax
je 0x100433f4
lea ecx, [esi + 0x38]
push ecx
push edi
push esi
push 0x100437d0
push edi
push edi
call fcn.1011d9a7
add esp, 0x18
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x100433e6
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 0x1004343e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x3c], 0xb
jmp 0x1004343d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x10043412
mov eax, 0x4c7
mov dword [esi + 0x3c], 5
jmp 0x1004343d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x3c], 4
jmp 0x10043437
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