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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push esi
mov esi, ecx
mov ecx, dword [ebx + 0x14]
sub eax, ecx
push edi
je 0x44c666
lea esp, [esp]
mov edx, dword [esi + 0x2c]
cmp eax, edx
jl 0x44c5e9
mov eax, edx
push 0
push eax
mov eax, dword [esi + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x44c653
lea ebx, [esi + 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [esi + 0x188], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0xb8]
mov ecx, esi
call eax
cmp eax, 2
jne 0x44c649
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.00449e70
add esp, 8
push edi
mov ecx, ebx
call fcn.00449ff0
jmp 0x44c658
cmp edi, 0xffffffff
je 0x44c672
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
sub eax, ecx
jne 0x44c5e0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44c694
mov edx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], 1
mov eax, 1
pop ebx
pop ebp
ret 8
mov ecx, 1
pop edi
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 3
mov dword [esi + 0x18], ecx
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x44d510
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x44]
push eax
push 0
push esi
push 0x44d310
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x40], eax
pop esi
mov eax, ecx
ret
Function at 0x44d720
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push esi
push edi
mov esi, ecx
test eax, eax
jne 0x44d74c
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x44d769
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, 1
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 2
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov edi, 1
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 2
je 0x44d7c5
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x44d7bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x44d7bd
test eax, eax
je 0x44d7bd
push 0x80004005
call fcn.00423210
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44d7d4
mov eax, 0x4c7
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x44da00
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 0xc], edi
je 0x44da6e
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0x30
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x44db3e
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x44db39
cmp eax, 0xffffffff
jne 0x44da64
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x44db39
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x44db3e
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x44db3e
mov dword [esi + 0x4c], 1
push 0
mov dword [esi + 0x50], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 2
jne 0x44daf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44dae5
mov eax, 0x4c7
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi + 0x1c]
xor edi, edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x44db1a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44db1a
xor edi, edi
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.00449e70
add esp, 8
test edi, edi
je 0x44db39
push 0x80004005
call fcn.00423210
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
mov ecx, dword [esi + 0x38]
mov ebx, 1
add dword [esi + 0x190], ebx
cmp eax, ecx
jb 0x44db81
xor eax, eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
pop esi
pop ebx
ret
mov edx, dword [esi + 0x1c]
push edi
xor edi, edi
push edi
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x44dba8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44dba8
xor edi, edi
mov eax, dword [esi + 0x24]
push eax
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.00449e70
add esp, 8
test edi, edi
je 0x44dbd3
mov dword [esi + 0x14], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], 5
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x44dc50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18c]
push edi
test eax, eax
jne 0x44dd3c
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x1c]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jle 0x44dcf1
mov eax, dword [esi + 0x5c]
push edi
push eax
mov dword [esi + 0x190], ebx
call fcn.00439070
add esp, 8
test eax, eax
jne 0x44dd45
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x94]
mov ecx, esi
call eax
cmp eax, 2
jne 0x44dd2e
mov eax, dword [esi + 0x24]
push eax
push str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.00449e70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x44dcd6
mov eax, 0x4c7
mov ecx, 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 4
pop edi
mov dword [esi + 0xc], ecx
pop esi
xor eax, eax
pop ebx
ret
cmp edi, 0xffffffff
jne 0x44dd13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x44dd3c
cmp eax, 0x2744
je 0x44dd2e
cmp eax, 0x2746
jne 0x44dcd6
jmp 0x44dd2e
cmp edi, ebx
jne 0x44dd2e
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__recv_0_bytes__detect_package__n
mov dword [esi + 0x190], ebx
call fcn.00449e70
add esp, 8
mov edx, dword [esi + 0x18c]
test edx, edx
je 0x44dc65
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 5
pop esi
xor eax, eax
pop ebx
ret
Function at 0x44e190
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc558
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x644a10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x70]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x188]
xor edi, edi
test ecx, ecx
jle 0x44e224
lea ebx, [esi + 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x170]
cmp edi, dword [esi + 0x174]
je 0x44e1f9
mov eax, dword [edi + 4]
mov dword [esi + 0x170], eax
mov dword [eax + 8], 0
jmp 0x44e20b
test edi, edi
je 0x44e20b
xor eax, eax
mov dword [esi + 0x170], eax
mov dword [esi + 0x174], eax
xor eax, eax
cmp edi, eax
je 0x44e21d
mov dword [edi + 4], eax
mov dword [edi + 8], eax
dec dword [esi + 0x16c]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x44e325
mov eax, dword [edi + 0x18]
sub eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov edx, dword [esi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test ebx, ebx
jle 0x44e2a4
lea eax, [esi + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [esi + 0x188], ebx
lea eax, [esi + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x14]
mov edx, dword [esi]
push ebx
push eax
mov eax, dword [edx + 0x8c]
mov ecx, esi
call eax
cmp eax, 2
jne 0x44e2a9
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.00449e70
add esp, 8
jmp 0x44e2a9
cmp ebx, 0xffffffff
je 0x44e2d2
mov ecx, dword [ebp - 0x14]
push edi
add ecx, 0x1c
mov dword [ebp - 4], 0xffffffff
call fcn.0046c920
test eax, eax
jne 0x44e1c0
push edi
call fcn.0044a200
add esp, 4
jmp 0x44e1c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44e33c
lea ebx, [esi + 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x170]
xor ecx, ecx
cmp eax, ecx
je 0x44e306
mov dword [eax + 8], edi
mov edx, dword [esi + 0x170]
mov dword [edi + 4], edx
jmp 0x44e312
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov dword [esi + 0x174], edi
inc dword [esi + 0x16c]
push ebx
mov dword [esi + 0x170], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
mov ecx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp - 0x14]
push edi
add ecx, 0x1c
mov dword [esi + 0x10], 3
mov dword [esi + 0x14], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0046c920
test eax, eax
jne 0x44e371
push edi
call fcn.0044a200
add esp, 4
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
Function at 0x44e650
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0043b180
add esp, 0xc
test eax, eax
jne 0x44e675
pop edi
pop esi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
push ebx
test eax, eax
je 0x44e6b2
cmp word [eax], 0
je 0x44e6b2
mov ebx, dword [ebp + 0x18]
push ebx
push 0
push eax
call fcn.0043a340
add esp, 0xc
test eax, eax
je 0x44e6a9
mov dx, word [edi]
cmp dx, word [ebx]
je 0x44e6b2
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x14
movzx eax, word [edi]
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
je 0x44e6a9
push 0
push eax
call fcn.00439000
add esp, 8
test eax, eax
je 0x44e6e1
push 0x80004005
call fcn.00423210
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call fcn.00438f00
add esp, 8
test eax, eax
je 0x44e6ff
push 0x80004005
call fcn.00423210
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esi + 0x68]
call fcn.0044d010
mov cx, word [ebp + 0x10]
pop ebx
pop edi
mov word [esi + 0x6c], cx
mov eax, 1
pop esi
pop ebp
ret 0x14

Function at 0x44ec30
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x44]
push eax
push 0
push esi
push 0x44e860
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x40], eax
pop esi
mov eax, ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c8]
push edi
test eax, eax
jne 0x44f232
lea ebx, [esi + 0x7c]
lea ebx, [ebx]
mov edx, dword [esi + 0x2c]
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 + 0x98]
push eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
js 0x44f204
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x98]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
cmp eax, 2
jne 0x44f224
mov edx, dword [esi + 0x24]
push edx
push str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.00449e70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44f1e6
mov eax, 0x4c7
mov dword [esi + 0x14], eax
mov ecx, 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x10], 4
pop edi
mov dword [esi + 0xc], ecx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jne 0x44f224
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x44f232
cmp eax, 0x2744
je 0x44f224
cmp eax, 0x2746
jne 0x44f1e6
mov ecx, dword [esi + 0x1c8]
test ecx, ecx
je 0x44f170
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fd50
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x40], 1
jne 0x44fd71
mov eax, dword [ebp + 8]
test eax, eax
je 0x44fd6a
cmp word [eax], 0
jne 0x44fd71
mov dword [ebp + 8], str.255.255.255.255
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x60]
push ebx
push eax
push ecx
call fcn.0043b180
add esp, 0xc
test eax, eax
jne 0x44fd8f
pop esi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
push edi
test eax, eax
je 0x44fd9d
cmp word [eax], 0
jne 0x44fdb6
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov edi, dword [ebp + 0x14]
push eax
mov word [edi], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 2], ax
jmp 0x44fdcb
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push eax
call fcn.0043a340
add esp, 0xc
test eax, eax
je 0x44fdfe
cmp dword [esi + 0x40], 1
jne 0x44fdeb
cmp word [edi], 0x17
jne 0x44fdeb
push 0x273b
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
movzx eax, word [ebx]
cmp ax, word [edi]
je 0x44fe07
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
je 0x44fdfe
push 0
push eax
call fcn.00439000
add esp, 8
test eax, eax
je 0x44fe33
push 0x80004005
call fcn.00423210
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call fcn.00438f00
add esp, 8
test eax, eax
je 0x44fe51
push 0x80004005
call fcn.00423210
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, esi
call fcn.0044fd20
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x10

Function at 0x450190
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x48]
push eax
push 0
push esi
push 0x44ff80
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x44], eax
pop esi
mov eax, ecx
ret
Function at 0x451570
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x451583
cmp word [ecx], 0
jne 0x451590
mov eax, dword [esi + 0x2c]
cmp eax, 1
jne 0x4515cb
mov ecx, str.255.255.255.255
push ebx
mov ebx, dword [ebp + 0xc]
push edi
or edi, 0xffffffff
cmp dword [esi + 0x2c], edi
je 0x4515b3
lea eax, [esi + 0x30]
push eax
push ebx
push ecx
call fcn.0043a340
add esp, 0xc
test eax, eax
je 0x451646
mov eax, dword [ebp + 8]
test eax, eax
je 0x4515c0
cmp word [eax], 0
jne 0x4515f9
cmp dword [esi + 0x2c], edi
je 0x4515e1
movzx eax, word [esi + 0x30]
jmp 0x4515e6
test eax, eax
jne 0x451590
push 0x2741
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, 2
mov edi, dword [ebp + 0x14]
push ebx
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 2], ax
jmp 0x45160b
mov edi, dword [ebp + 0x14]
push edi
push ebx
push eax
call fcn.0043a340
add esp, 0xc
test eax, eax
je 0x451646
mov eax, dword [esi + 0x2c]
cmp eax, 1
jne 0x45162d
cmp word [edi], 0x17
jne 0x45162d
push 0x273b
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x10
cmp eax, 0xffffffff
je 0x45164f
mov cx, word [esi + 0x30]
cmp cx, word [edi]
je 0x45164f
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x10
movzx edx, word [edi]
push 0x11
push 2
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x15c], eax
cmp eax, 0xffffffff
je 0x451646
push 0
push eax
call fcn.00439000
add esp, 8
test eax, eax
je 0x451681
push 0x80004005
call fcn.00423210
mov eax, dword [esi + 0x15c]
push 1
push eax
call fcn.00438d50
add esp, 8
test eax, eax
je 0x4516a0
push 0x80004005
call fcn.00423210
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x15c]
push ecx
push edx
call fcn.00438f00
add esp, 8
test eax, eax
je 0x4516c1
push 0x80004005
call fcn.00423210
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
cmp word [edi], 2
mov esi, ecx
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
mov eax, dword [esi + 0x15c]
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x451b56
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
xor eax, eax
cmp word [edi], 2
lea ecx, [ebp + 8]
setne al
push ecx
lea edx, [esi + 0x4c]
push edx
dec eax
and eax, 0xfffffff4
add eax, 0x1c
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x15c]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x451b8d
push 0x80004005
call fcn.00423210
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x4530e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0xc], 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
jbe 0x453238
push esi
push edi
push 0
push 0
push ebx
push 0x452f30
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x453218
mov eax, dword [ebx + 0x170]
lea esi, [ebx + 0x16c]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x4531a1
mov edx, dword [esi]
cmp edx, ecx
ja 0x4531a1
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x453191
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x45320d
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x453191
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x45317e
xor ecx, ecx
jmp 0x453180
add ecx, edx
cmp ecx, eax
jae 0x453186
mov ecx, eax
push ecx
mov ecx, esi
call fcn.0046d0d0
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x4531ef
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x4531ef
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x4531e6
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x45320d
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x4531e6
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x4531d3
xor ecx, ecx
jmp 0x4531d5
add ecx, edx
cmp ecx, eax
jae 0x4531db
mov ecx, eax
push ecx
mov ecx, esi
call fcn.0046d0d0
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x4531ef
mov dword [eax], edi
mov eax, dword [ebp - 0xc]
add dword [esi + 4], 4
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebx + 0xc]
jb 0x453106
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebx + 0x168], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov dword [ebp - 0x10], 0
pop esi
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
jbe 0x45a58f
push esi
push edi
push 0
push 0
push ebx
push 0x45a310
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x45a572
mov eax, dword [ebx + 0x70]
lea esi, [ebx + 0x6c]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x45a4fb
mov edx, dword [esi]
cmp edx, ecx
ja 0x45a4fb
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x45a4eb
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x45a567
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x45a4eb
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x45a4d8
xor ecx, ecx
jmp 0x45a4da
add ecx, edx
cmp ecx, eax
jae 0x45a4e0
mov ecx, eax
push ecx
mov ecx, esi
call fcn.0046d0d0
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x45a549
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x45a549
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x45a540
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x45a567
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x45a540
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x45a52d
xor ecx, ecx
jmp 0x45a52f
add ecx, edx
cmp ecx, eax
jae 0x45a535
mov ecx, eax
push ecx
mov ecx, esi
call fcn.0046d0d0
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x45a549
mov dword [eax], edi
mov eax, dword [ebp - 0xc]
add dword [esi + 4], 4
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebx + 0x14]
jb 0x45a466
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebx + 0x68], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov dword [ebp - 0x10], 0
pop esi
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret