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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00451f14
xor eax, eax
push ebp
push 0x405a69
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x405a80
mov dl, 8
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x44198c]
call fcn.00444b04
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4059f9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4059bd
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov esi, eax
mov ebx, esi
push 0
push ebx
mov eax, esi
sub eax, ebx
cmp eax, 0x10000
jbe 0x405941
call fcn.00450ddc
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x24]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x4059bd
cmp eax, 0xffffffff
jle 0x40598e
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x40599d
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x100c4]
call dword [edi + 0x100c0]
jmp 0x40599d
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_ErrorManager_qqrus
mov eax, dword [0x467d4c]
mov eax, dword [eax]
call fcn.00430650
test ebx, ebx
je 0x4059bd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x40592e
mov eax, dword [ebp - 0xc]
call fcn.004448e0
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.004448fc
cmp ebx, eax
je 0x4059e3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x405907
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a00
mov eax, dword [ebp - 0xc]
call fcn.00450e9c
ret
Function at 0x405aa8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405c29
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x405c40
mov dl, 8
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004448f0
cmp byte [ebx + 0x10088], 0
jne 0x405bd5
xor eax, eax
mov dword [ebx + 0x10084], eax
mov eax, dword [ebp - 4]
call fcn.004448fc
mov dword [ebx + 0x100b0], eax
mov eax, dword [ebp - 4]
call fcn.004448fc
push eax
mov eax, dword [ebp - 4]
call fcn.004448e0
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jle 0x405b24
mov eax, 0x10000
lea edx, [ebx + 0x24]
mov ecx, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0
push esi
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, 0x10000
jbe 0x405b4b
call fcn.00450ddc
lea eax, [ebx + eax + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x405c13
test eax, eax
jle 0x405b8b
sub esi, eax
add dword [ebx + 0x10084], eax
cmp word [ebx + 0x100c2], 0
je 0x405b99
mov edx, ebx
mov eax, dword [ebx + 0x100c4]
call dword [ebx + 0x100c0]
jmp 0x405b99
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_ErrorManager_qqrus
mov eax, dword [0x467d4c]
mov eax, dword [eax]
call fcn.00430650
test esi, esi
je 0x405bb2
cmp byte [ebx + 0x10088], 0
je 0x405b37
mov eax, dword [ebp - 4]
call fcn.004448fc
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004448e0
cmp esi, eax
je 0x405bd5
cmp byte [ebx + 0x10088], 0
je 0x405b03
cmp byte [ebx + 0x10088], 0
je 0x405c13
mov byte [ebx + 0x10088], 0
mov ecx, 0x405c54
mov dl, 1
mov eax, dword [sym.SERVER.exe__Psock_EAbortError_]
call fcn.0044cbe4
call fcn.004515dc
cmp word [ebx + 0x10282], 0
je 0x405c13
mov edx, ebx
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c30
lea eax, [ebp - 0xc]
call fcn.00451ae0
ret
Function at 0x405c68
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00451f14
xor eax, eax
push ebp
push 0x405dfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x405e14
mov dl, 8
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x44198c]
call fcn.00444b04
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x405d8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004448fc
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004448f0
jmp 0x405d5c
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
jle 0x405d3e
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0044496c
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x405d50
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100bc]
call dword [ebx + 0x100b8]
jmp 0x405d50
inc ebx
jne 0x405d50
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_ErrorManager_qqrus
mov eax, dword [0x467d4c]
mov eax, dword [eax]
call fcn.00430650
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10290], 0
je 0x405d78
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x405ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d95
mov eax, dword [ebp - 0xc]
call fcn.00450e9c
ret
Function at 0x405e3c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00451f14
xor eax, eax
push ebp
push 0x406012
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x406028
mov dl, 8
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_TimerOn_qqrv
xor eax, eax
push ebp
push 0x405fed
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x44198c]
call fcn.00444b04
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x405f85
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x405f5f
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
jle 0x405f23
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0044496c
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x405f1b
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100bc]
call dword [esi + 0x100b8]
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_TimerOn_qqrv
cmp ebx, 0xffffffff
jne 0x405f4f
call sub.WSOCK32.DLL_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], esi
cmp esi, 0x2749
je 0x405f6f
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_ErrorManager_qqrus
test ebx, ebx
je 0x405f6f
mov eax, dword [0x467d4c]
mov eax, dword [eax]
call fcn.00430650
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x405ebf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f8c
mov eax, dword [ebp - 0xc]
call fcn.00450e9c
ret
Function at 0x406050
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4061f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x406208
mov dl, 8
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_TimerOn_qqrv
xor eax, eax
push ebp
push 0x4061d5
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x406150
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
je 0x406174
test ebx, ebx
jle 0x406115
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, ebx
mov eax, edi
call fcn.0044496c
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x40610b
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100bc]
call dword [ebx + 0x100b8]
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_TimerOn_qqrv
jmp 0x40613f
inc ebx
jne 0x40613f
call sub.WSOCK32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], ebx
cmp ebx, 0x2749
je 0x406174
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_ErrorManager_qqrus
mov eax, dword [0x467d4c]
mov eax, dword [eax]
call fcn.00430650
cmp esi, 0xffffffff
je 0x406174
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x406174
cmp esi, 0xffffffff
je 0x4060a8
mov eax, edi
call fcn.004448fc
cmp esi, eax
jg 0x4060a8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4061bf
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x406220
mov dl, 1
mov eax, dword [sym.SERVER.exe__Psock_EAbortError_]
call fcn.0044cbe4
call fcn.004515dc
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x4061bf
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061dc
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_TimerOff_qqrv
ret
Function at 0x406238
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40640c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x406424
mov dl, 8
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov eax, esi
call fcn.00451ae0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100b4], edx
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_TimerOn_qqrv
xor eax, eax
push ebp
push 0x4063ef
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x40636a
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
mov ebx, eax
test ebx, ebx
je 0x40638e
cmp ebx, 1
jle 0x406334
mov eax, dword [esi]
call fcn.00451d60
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, ebx
mov eax, esi
call fcn.00452094
mov eax, esi
call fcn.00451f30
mov edx, dword [ebp - 8]
inc edx
dec edx
cmp edx, dword [eax - 4]
jb 0x4062f0
call fcn.00450ddc
inc edx
lea edx, [eax + edx - 1]
mov eax, dword [ebp - 4]
add eax, 0x24
mov ecx, ebx
call fcn.00450940
mov eax, dword [ebp - 4]
add dword [eax + 0x100b4], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ba], 0
je 0x40632a
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100bc]
call dword [ebx + 0x100b8]
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_TimerOn_qqrv
jmp 0x40635e
inc ebx
jne 0x40635e
call sub.WSOCK32.DLL_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1008c], ebx
cmp ebx, 0x2749
je 0x40638e
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_ErrorManager_qqrus
mov eax, dword [0x467d4c]
mov eax, dword [eax]
call fcn.00430650
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x40638e
cmp edi, 0xffffffff
je 0x406297
mov eax, dword [esi]
call fcn.00451d60
cmp edi, eax
jg 0x406297
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4063d9
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x40643c
mov dl, 1
mov eax, dword [sym.SERVER.exe__Psock_EAbortError_]
call fcn.0044cbe4
call fcn.004515dc
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x4063d9
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063f6
mov eax, dword [ebp - 4]
call sym.SERVER.exe__Psock_TPowersock_TimerOff_qqrv
ret
Function at 0x40652c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov ecx, 0x4065f4
mov dl, 8
mov eax, esi
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
lea eax, [esi + 0x24]
mov edx, 0x406608
call fcn.0044b9ac
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [esi + 0x10260], eax
mov word [esi + 0x1025c], 2
mov eax, dword [esi + 0x100ac]
cmp eax, 0xffff
jbe 0x406574
call fcn.00450ddc
push eax
call sub.WSOCK32.DLL_htons
mov word [esi + 0x1025e], ax
mov byte [esi + 0x100c8], 0
push 0x10
lea eax, [esi + 0x1025c]
push eax
movzx eax, word [esi + 0x10288]
push eax
call sub.WSOCK32.DLL_bind
test bl, bl
je 0x4065bf
push 8
push 0x466
mov eax, dword [esi + 0x1028c]
push eax
movzx eax, word [esi + 0x10288]
push eax
call sub.WSOCK32.DLL_WSAAsyncSelect
jmp 0x4065da
push 8
push 0x465
mov eax, dword [esi + 0x1028c]
push eax
movzx eax, word [esi + 0x10288]
push eax
call sub.WSOCK32.DLL_WSAAsyncSelect
push 1
movzx eax, word [esi + 0x10288]
push eax
call sub.WSOCK32.DLL_listen
pop esi
pop ebx
ret
Function at 0x406eb4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x406f80
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x406f94
mov dl, 4
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov byte [ebx + 0x10290], 0
mov si, word [ebx + 0x10288]
cmp si, 0xffff
je 0x406f6a
movzx eax, si
push eax
call sub.WSOCK32.DLL_closesocket
test eax, eax
jne 0x406f5c
test byte [ebx + 0x20], 8
jne 0x406f19
cmp word [ebx + 0x1004a], 0
je 0x406f19
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x406f6a
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x406f3c
call fcn.00450ddc
mov word [ebx + 0x10288], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x1028c]
push eax
movzx eax, si
push eax
call sub.WSOCK32.DLL_WSAAsyncSelect
jmp 0x406f6a
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_ErrorManager_qqrus
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f87
lea eax, [ebp - 4]
call fcn.00451ae0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x4072b8
mov dl, 8
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
push 2
push 1
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
test eax, eax
jle 0x4072aa
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4072cf
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x40731c
mov dl, 8
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.WSOCK32.DLL_recv
add esp, 0x10004
pop ebx
ret
Function at 0x40732c
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x4074bc
mov dl, 8
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
cmp dword [ebx + 0x1009c], 0
jne 0x407362
lea eax, [ebx + 0x24]
mov edx, dword [ebx + 0x1026c]
call fcn.0044b9ac
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 0x10260], eax
jmp 0x40737c
lea eax, [ebx + 0x24]
mov edx, dword [ebx + 0x1009c]
call fcn.0044b9ac
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 0x10260], eax
cmp dword [ebx + 0x10260], 0xffffffff
jne 0x4074b2
xor eax, eax
mov dword [ebx + 0x10260], eax
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_TimerOn_qqrv
mov byte [ebx + 0x100c8], 0
push 0x400
mov eax, dword [ebx + 0x10270]
push eax
lea eax, [ebx + 0x24]
push eax
push 0x466
mov eax, dword [ebx + 0x1028c]
push eax
call sub.WSOCK32.DLL_WSAAsyncGetHostByName
push 2
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x467d4c]
mov eax, dword [eax]
call fcn.00430650
cmp byte [ebx + 0x100c8], 0
jne 0x4073ee
cmp byte [ebx + 0x100a9], 0
jne 0x4073ee
cmp byte [ebx + 0x10088], 0
je 0x4073c0
mov eax, ebx
call sym.SERVER.exe__Psock_TPowersock_TimerOff_qqrv
cmp byte [ebx + 0x100a9], 0
je 0x407414
mov ecx, 0x4074d4
mov dl, 1
mov eax, dword [sym.SERVER.exe__Psock_ESockError_]
call fcn.0044cbe4
call fcn.004515dc
cmp byte [ebx + 0x10088], 0
je 0x407433
mov ecx, 0x4074f4
mov dl, 1
mov eax, dword [sym.SERVER.exe__Psock_ESockError_]
call fcn.0044cbe4
call fcn.004515dc
cmp byte [ebx + 0x100a8], 0
jne 0x407452
mov ecx, 0x407514
mov dl, 1
mov eax, dword [sym.SERVER.exe__Psock_ESockError_]
call fcn.0044cbe4
call fcn.004515dc
lea eax, [ebx + 0x10260]
mov edx, dword [ebx + 0x10270]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx]
mov byte [eax], dl
mov edx, dword [ebx + 0x10270]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 1]
mov byte [eax + 1], dl
mov edx, dword [ebx + 0x10270]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 2]
mov byte [eax + 2], dl
mov edx, dword [ebx + 0x10270]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 3]
mov byte [eax + 3], dl
cmp word [ebx + 0x10062], 0
je 0x4074b2
mov edx, ebx
mov eax, dword [ebx + 0x10064]
call dword [ebx + 0x10060]
pop ebx
ret
Function at 0x4075d4
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov dword [ebp - 4], edx
mov ecx, 0x407694
mov dl, 8
call sym.SERVER.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov eax, 0xc8
call fcn.0044b3e8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40767f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xc8
mov eax, dword [ebp - 8]
push eax
call sub.WSOCK32.DLL_gethostname
mov eax, dword [ebp - 8]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x28]
mov ecx, 3
mov eax, 0x4076b0
call fcn.0044c018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407686
mov eax, dword [ebp - 8]
call fcn.004507cc
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
mov edi, esp
mov dword [edi], 0x10
push edi
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_getsockname
push dword [esp + 8]
call sub.WSOCK32.DLL_inet_ntoa
mov ebx, eax
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov edx, dword [edi]
cmp byte [ebx + edx], 0x2e
jne 0x4076ff
mov edx, dword [edi]
mov byte [ebx + edx], 0x2c
inc eax
inc dword [edi]
cmp eax, 3
jl 0x4076f0
mov edx, esi
mov eax, ebx
call fcn.0044bad0
add esp, 0x14
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov esi, edx
mov dword [esp], 0x10
push esp
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.WSOCK32.DLL_getsockname
push esi
mov bx, word [esp + 0xa]
mov eax, ebx
and ax, 0xff
movzx eax, ax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
shr bx, 8
movzx eax, bx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
lea edx, [esp + 0x18]
mov ecx, 1
mov eax, 0x407784
call fcn.0044c018
add esp, 0x24
pop esi
pop ebx
ret
Function at 0x41498c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x414a15
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x468114
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4149ff
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0044c3a4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x414a2c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x467e10]
mov dl, 1
mov eax, dword [0x4140b8]
call fcn.0044ccdc
call fcn.004515dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414a1c
lea eax, [ebp - 0x1c]
call fcn.00451ae0
ret
Function at 0x4150a8
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00414fcc
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00451078
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x41510c
call fcn.004148d4
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x4150fe
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00451078
pop esi
pop ebx
ret

Function at 0x415130
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00451f24
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00450b9c
test ebx, ebx
je 0x41517b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4151c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x4151e8
mov edx, edi
mov eax, esi
call fcn.00415130
mov dword [ebx + 4], eax
jmp 0x415225
cmp dword [ebp - 4], 0
je 0x415201
mov eax, dword [ebp - 4]
call fcn.00451f24
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x415225
cmp byte [ebp + 0xc], 0
jne 0x41520e
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x415225
mov ecx, dword [0x467e18]
mov dl, 1
mov eax, dword [0x4140b8]
call fcn.0044cca0
call fcn.004515dc
cmp dword [ebp + 0x14], 0
je 0x415241
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0041518c
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x41524f
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10