joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66cd70
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x24
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
push edi
mov edi, 4
cmp eax, edi
mov dword [esp + 8], 0x10
jne 0x66cd98
mov edi, esi
call fcn.0066c560
pop edi
pop esi
add esp, 0x24
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x66ce03
push eax
call fcn.006748d0
add esp, 4
test eax, eax
je 0x66ce03
lea esp, [esp]
mov edx, dword [esi]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x200
push 0x798c28
push edx
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
je 0x66ce03
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0x798c28
call fcn.0066cc70
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, edi
je 0x66ce03
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x66ce03
mov edx, eax
push edx
call fcn.006748d0
add esp, 4
test eax, eax
jne 0x66cdb0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x66ce0f
cmp eax, 2
jne 0x66ce53
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x66ce53
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jle 0x66ce3c
mov eax, dword [esi + 0x3c]
push eax
push 0
push 0xffffffffffffffff
push 2
call dword [esi + 0x38]
mov ecx, dword [esi + 8]
push ecx
call fcn.0066c9d0
add esp, 0x14
jmp 0x66ce53
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x66ce4e
call fcn.0066c620
jmp 0x66ce53
call fcn.0066c7f0
cmp dword [esi + 0x10], 3
jne 0x66ceae
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x66ceae
cmp dword [esi + 4], 0xffffffff
jne 0x66cea2
xor edx, edx
mov dx, word [esi + 0x30]
mov word [esp + 0xc], 2
push edx
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 0x3c]
mov word [esp + 0xe], ax
mov eax, dword [esi + 0x2c]
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
push edx
push eax
push 0
call dword [esi + 0x38]
add esp, 0x10
mov dword [esi], 0xffffffff
mov ecx, dword [esi + 8]
push ecx
call fcn.0066c9d0
add esp, 4
cmp dword [esi + 0x10], 1
jne 0x66ced7
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x66ced7
mov edx, dword [esi + 0x3c]
push edx
push 0
push 0xffffffffffffffff
push 1
call dword [esi + 0x38]
mov eax, dword [esi + 8]
push eax
call fcn.0066c9d0
add esp, 0x14
pop edi
pop esi
add esp, 0x24
ret

Function at 0x66d030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [0x744db0]
xor ecx, ecx
test edi, edi
mov eax, ebp
jle 0x66d057
push ebx
mov dl, byte [eax]
mov bl, byte [ecx + esi]
xor bl, dl
inc eax
mov byte [ecx + esi], bl
cmp byte [eax], 0
cmove eax, ebp
inc ecx
cmp ecx, edi
jl 0x66d040
pop ebx
pop ebp
ret
Function at 0x66da70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [0x744d60]
sub esp, 0x80
push esi
push 0
push 0x80
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x66dacf
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x66dacf
cmp eax, 0x274c
je 0x66dacf
cmp eax, 0x2734
je 0x66dacf
mov edx, dword [0x744d60]
push edx
call sub.WSOCK32.dll_closesocket
mov dword [0x744d60], esi
mov eax, 3
pop esi
add esp, 0x80
ret
xor ecx, ecx
test esi, esi
mov byte [esp + esi + 4], 0
mov dword [0x744db0], 0x744d64
mov eax, 0x744d64
jle 0x66db0f
push ebx
lea ebx, [ebx]
mov dl, byte [eax]
mov bl, byte [esp + ecx + 8]
xor bl, dl
mov dl, byte [eax + 1]
inc eax
test dl, dl
mov byte [esp + ecx + 8], bl
jne 0x66db09
mov eax, 0x744d64
inc ecx
cmp ecx, esi
jl 0x66daf0
pop ebx
lea eax, [esp + 4]
push 0x744e44
push eax
mov byte [0x744e44], 0x73
call fcn.0066d0a0
add esp, 8
test eax, eax
jne 0x66db4f
mov ecx, dword [0x744d60]
push ecx
call sub.WSOCK32.dll_closesocket
mov dword [0x744d60], 0xffffffff
mov eax, 5
pop esi
add esp, 0x80
ret
push eax
call fcn.006867ae
add esp, 4
mov dword [0x79924c], eax
xor eax, eax
pop esi
add esp, 0x80
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
xor ecx, ecx
test ebp, ebp
mov dword [0x744db0], 0x744d64
mov eax, 0x744d64
jle 0x66dbaa
mov edi, edi
mov dl, byte [eax]
mov bl, byte [ecx + edi]
xor bl, dl
inc eax
mov byte [ecx + edi], bl
cmp byte [eax], 0
jne 0x66dba5
mov eax, 0x744d64
inc ecx
cmp ecx, ebp
jl 0x66db90
mov eax, 0x744da4
mov ecx, edi
sub ecx, eax
lea edx, [ecx + ebp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x66dbb6
lea ebx, [ebp + 7]
test ebx, ebx
jle 0x66dc15
jmp 0x66dbd0
mov ecx, dword [0x744d60]
mov edx, ebp
push 0
sub edx, esi
add edx, 7
push edx
lea eax, [esi + edi]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x66dc0b
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x66dc11
cmp eax, 0x274c
je 0x66dc11
cmp eax, 0x2734
jne 0x66dc17
jmp 0x66dc11
test eax, eax
je 0x66dc1b
add esi, eax
cmp esi, ebx
jl 0x66dbd0
mov eax, esi
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x66dc30
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
push edi
lea eax, [esp + 4]
push eax
push 0x744d94
mov byte [esp + 0xc], 0x72
mov byte [esp + 0xd], 0x62
mov byte [esp + 0xe], 0
call fcn.006860d4
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0xc], edi
je 0x66de56
push ebp
push esi
push 2
push 0
push edi
call fcn.00686b44
push edi
call fcn.00686a74
push 0
push 0
push edi
mov esi, eax
call fcn.00686b44
add esi, 2
push esi
call fcn.0068661b
mov dword [esp + 0x38], eax
mov byte [eax], 0
mov eax, dword [edi + 0xc]
add esp, 0x20
xor ebp, ebp
test al, 0x10
jne 0x66de08
push ebx
test al, 0x20
jne 0x66de07
push edi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
call fcn.006868c6
add esp, 0x10
test eax, eax
je 0x66de07
push edi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
call fcn.006868c6
add esp, 0x10
test eax, eax
je 0x66de07
mov eax, dword [esp + 0x14]
xor eax, 0x70f33a5f
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.0068661b
mov ebx, eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 1
push ebx
call fcn.006868c6
mov ecx, dword [esp + 0x28]
add esp, 0x14
cmp eax, ecx
jne 0x66de07
mov byte [ebx + ecx], 0
mov ecx, dword [esp + 0x14]
mov eax, 0x744d74
xor esi, esi
test ecx, ecx
mov dword [0x744db0], eax
jle 0x66dd4b
lea esp, [esp]
mov dl, byte [eax]
xor byte [esi + ebx], dl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x66dd42
mov eax, 0x744d74
inc esi
cmp esi, ecx
jl 0x66dd30
mov ecx, dword [esp + 0x14]
xor edx, edx
xor eax, eax
test ecx, ecx
jle 0x66dd66
movsx esi, byte [eax + ebx]
imul edx, edx, 0x63306ce7
sub esi, edx
inc eax
cmp eax, ecx
mov edx, esi
jl 0x66dd53
cmp dword [esp + 0x20], edx
jne 0x66ddfe
xor esi, esi
test ecx, ecx
mov dword [0x744db0], 0x744d64
mov edi, ecx
mov eax, 0x744d64
jle 0x66dda5
mov cl, byte [eax]
mov dl, byte [esi + ebx]
xor dl, cl
inc eax
mov byte [esi + ebx], dl
cmp byte [eax], 0
jne 0x66dd9c
mov eax, 0x744d64
inc esi
cmp esi, edi
jl 0x66dd87
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, ecx
lea edi, [edx + ebp]
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebp, dword [esp + 0x14]
mov eax, dword [0x744da4]
mov ecx, edx
lea edx, [ecx + ebp]
mov dword [edx], eax
mov cx, word [0x744da8]
mov word [edx + 4], cx
mov al, byte [0x744daa]
push ebx
mov byte [edx + 6], al
add ebp, 7
call fcn.0068662d
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
add esp, 4
test al, 0x10
mov edi, ecx
je 0x66dca2
jmp 0x66de07
push ebx
call fcn.0068662d
add esp, 4
pop ebx
push edi
call fcn.00686286
mov edx, dword [esp + 0x1c]
mov eax, dword [0x744d60]
add esp, 4
push 0
push ebp
push edx
push eax
call sub.WSOCK32.dll_send
test eax, eax
pop esi
mov dword [esp + 0xc], eax
pop ebp
jg 0x66de49
mov ecx, dword [0x744d60]
push ecx
call sub.WSOCK32.dll_closesocket
mov dword [0x744d60], 0xffffffff
pop edi
add esp, 0x14
ret
push 0x744d94
call fcn.006867b3
add esp, 4
pop edi
add esp, 0x14
ret
Function at 0x66e5f0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x799268], eax
mov eax, dword [esp + 8]
sub esp, 0x90
test eax, eax
je 0x66e60c
mov dword [0x744db4], eax
mov ecx, dword [0x95ff48]
mov eax, 1
cmp ecx, eax
jne 0x66e827
mov ecx, dword [0x799254]
test ecx, ecx
jne 0x66e651
mov dword [0x799254], eax
mov byte [0x744d64], 0x47
mov byte [0x744d74], 0x49
mov byte [0x744d84], 0x50
mov byte [0x744d94], 0x67
mov byte [0x744da4], 0x5c
call fcn.006745e0
call sub.KERNEL32.dll_GetTickCount
mov dword [0x799250], eax
cmp dword [0x744d60], 0xffffffff
je 0x66e66e
call fcn.0066d9d0
push esi
push str.gamestats.codeusa.net
mov dword [0x799260], 0
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x66e6eb
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x799048]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x66e690
push edi
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x66e6a5
mov cx, word [0x732798]
mov eax, str.gamestats.codeusa.net
mov word [edi], cx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x66e6c0
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x66e6d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x66e6ff
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + str.gamestats.codeusa.net]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x66e6f0
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov esi, 2
push 0x74e0
mov dword [esp + 0x14], edx
mov word [esp + 8], si
call sub.WSOCK32.dll_htons
mov word [esp + 6], ax
lea eax, [esp + 0x14]
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x66e756
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x66e777
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 8], ecx
push 6
push 1
push esi
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x744d60], eax
jne 0x66e781
mov eax, 1
pop esi
add esp, 0x90
ret
mov eax, esi
pop esi
add esp, 0x90
ret
push 1
push eax
call fcn.00674650
mov eax, dword [0x744d60]
add esp, 8
push 0x10
lea edx, [esp + 8]
push edx
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x66e7ea
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x66e7ea
cmp eax, 0x274c
je 0x66e7ea
cmp eax, 0x2734
je 0x66e7ea
mov ecx, dword [0x744d60]
push ecx
mov dword [0x799264], 1
call sub.WSOCK32.dll_closesocket
mov dword [0x744d60], 0xffffffff
mov eax, 3
pop esi
add esp, 0x90
ret
push 0x40
call fcn.0068661b
add esp, 4
test eax, eax
mov dword [0x799258], eax
je 0x66e7dd
mov dword [0x79925c], 0x40
mov dword [0x799260], 0
call sub.KERNEL32.dll_GetTickCount
mov dword [0x79926c], eax
mov dword [0x799264], esi
mov eax, 6
pop esi
add esp, 0x90
ret
Function at 0x66ee30
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x799264]
sub esp, 8
push ebx
dec eax
cmp eax, 4
push esi
push edi
ja case.0x66ee47.1
xor ebx, ebx
jmp dword [eax*4 + 0x66f088]
mov edx, dword [0x744d60]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.00674760
add esp, 0x10
cmp eax, 0xffffffff
mov esi, 1
je 0x66eeeb
cmp eax, esi
jne 0x66eead
cmp dword [esp + 0xc], esi
je 0x66eeeb
cmp dword [esp + 0x10], esi
je 0x66eea1
push 0x146
push str..GameSpygstatsgstats.c
push str.aResult__1__aWriteFlag__1
call fcn.006870ba
add esp, 0xc
mov dword [0x799264], 3
jmp 0x66ef07
cmp eax, ebx
jne 0x66ee8a
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [0x79926c]
mov ecx, dword [0x744db4]
sub eax, edx
cmp eax, ecx
jbe 0x66eedf
mov dword [0x799264], esi
call fcn.0066d9d0
pop edi
pop esi
mov eax, 7
pop ebx
add esp, 8
ret
pop edi
pop esi
mov eax, 6
pop ebx
add esp, 8
ret
mov dword [0x799264], esi
call fcn.0066d9d0
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 8
ret
mov esi, 1
mov eax, dword [0x744d60]
push eax
call fcn.006748d0
add esp, 4
test eax, eax
je 0x66eeb1
mov eax, dword [0x799260]
mov ecx, dword [0x79925c]
mov edx, dword [0x799258]
push ebx
sub ecx, eax
push ecx
add edx, eax
mov eax, dword [0x744d60]
push edx
push eax
call sub.WSOCK32.dll_recv
mov edi, dword [0x799260]
mov ecx, dword [0x79925c]
add edi, eax
sub ecx, eax
cmp edi, 0x26
mov dword [0x799260], edi
mov dword [0x79925c], ecx
jl 0x66eedf
mov esi, dword [0x799258]
mov byte [esi + edi], bl
mov dword [0x799264], 4
mov dword [0x744db0], 0x744d64
call fcn.0066d030
mov ecx, dword [0x799268]
push ecx
mov eax, esi
call fcn.0066ece0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x66efae
mov dword [0x799264], 1
call fcn.0066d9d0
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
mov edi, dword [0x799260]
mov ecx, dword [0x79925c]
add ecx, edi
mov edi, dword [0x799258]
mov dword [0x79925c], ecx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
mov dword [0x799264], 4
mov dword [0x799260], ebx
rep stosb byte es:[edi], al
mov eax, dword [0x744d60]
push eax
call fcn.006748d0
add esp, 4
test eax, eax
jne 0x66f030
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [0x79926c]
mov ecx, dword [0x744db4]
sub eax, edx
cmp eax, ecx
jbe 0x66eedf
mov dword [0x799264], 1
call fcn.0066d9d0
pop edi
pop esi
mov eax, 7
pop ebx
add esp, 8
ret
call fcn.0066da70
mov esi, eax
cmp esi, ebx
jne 0x66ef96
mov edi, dword [0x799260]
mov ecx, dword [0x79925c]
add ecx, edi
mov edi, dword [0x799258]
mov dword [0x79925c], ecx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
mov dword [0x799260], ebx
rep stosb byte es:[edi], al
call fcn.0066dc30
mov dword [0x799264], 5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x66f100
Capabilities:
Create udp socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x40
push esi
mov esi, dword [esp + 0x48]
mov edx, 0x95ff60
push edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x66f112
mov dword [0x799278], 0xffffffff
call fcn.006745e0
movsx eax, byte [0x95ffa0]
test eax, eax
jne 0x66f210
push esi
lea eax, [esp + 0xc]
push str._s.available.codeusa.net
push eax
call fcn.006864ed
add esp, 0xc
lea edi, [esp + 8]
push 0x6cfc
mov word [0x79927c], 2
call sub.WSOCK32.dll_htons
push edi
mov word [0x79927e], ax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [0x799280], eax
jne 0x66f194
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x66f20a
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [0x799280], eax
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x799278], eax
je 0x66f20a
mov eax, esi
mov byte [0x79928c], 9
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x66f1b5
sub eax, edx
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
mov edi, 0x799291
rep movsd dword es:[edi], dword [esi]
push 0x10
push 0x79927c
mov ecx, edx
add eax, 6
push 0
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [0x7992cc], eax
mov eax, dword [0x799278]
push 0x79928c
push eax
call sub.WSOCK32.dll_sendto
call sub.KERNEL32.dll_GetTickCount
mov dword [0x7992d0], eax
mov dword [0x7992d4], 0
pop edi
pop esi
add esp, 0x40
ret
mov edi, 0x95ffa0
jmp 0x66f151

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

Disassembly:
sub esp, 0x58
mov eax, dword [0x799278]
cmp eax, 0xffffffff
mov dword [esp], 0x10
je 0x66f35f
push eax
call fcn.006748d0
add esp, 4
test eax, eax
je 0x66f32b
lea eax, [esp]
push eax
mov eax, dword [0x799278]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x40
lea edx, [esp + 0x28]
push edx
push eax
call sub.WSOCK32.dll_recvfrom
lea ecx, [esp + 4]
push ecx
mov edx, eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x1c]
call fcn.0066f220
add esp, 4
test eax, eax
jne 0x66f32b
mov edx, dword [0x799278]
push edx
call sub.WSOCK32.dll_closesocket
mov al, byte [esp + 4]
test al, 1
mov dword [0x799278], 0xffffffff
je 0x66f319
mov eax, 2
mov dword [0x95ff48], eax
add esp, 0x58
ret
movsx eax, al
and eax, 2
or eax, 1
mov dword [0x95ff48], eax
add esp, 0x58
ret
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [0x7992d0]
add ecx, 0x7d0
cmp eax, ecx
jbe 0x66f37d
cmp dword [0x7992d4], 1
jne 0x66f372
mov edx, dword [0x799278]
push edx
call sub.WSOCK32.dll_closesocket
mov dword [0x799278], 0xffffffff
mov dword [0x95ff48], 1
mov eax, 1
add esp, 0x58
ret
call fcn.0066f0d0
inc dword [0x7992d4]
xor eax, eax
add esp, 0x58
ret

Function at 0x66f640
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call sub.WSOCK32.dll_htons
mov edx, dword [esp + 0xc]
push eax
push edx
call sub.WSOCK32.dll_inet_addr
push eax
mov eax, dword [esp + 0x10]
add eax, 0x48
push eax
call fcn.00678900
add esp, 0x10
ret
Function at 0x66f880
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [edi + 0x618], 1
push ebx
jne 0x66f917
lea esi, [edi + 0x48]
call sub.WSOCK32.dll_htons
mov ebp, dword [esp + 0x1c]
push eax
push ebp
call sub.WSOCK32.dll_inet_addr
push eax
push esi
call fcn.00676ce0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x66f8f0
mov edx, dword [esp + 0x2c]
xor eax, eax
test edx, edx
setne al
push eax
push 1
push ebx
push ebp
push edi
call fcn.006768c0
push eax
push esi
call fcn.00676cb0
mov eax, dword [esp + 0x2c]
add esp, 0x1c
xor esi, esi
jmp 0x66f934
push eax
push esi
call fcn.00676dd0
mov esi, dword [esp + 0x34]
xor ecx, ecx
test esi, esi
setne cl
push ecx
push 1
push eax
push edi
call fcn.00676830
mov eax, dword [esp + 0x28]
add esp, 0x18
xor esi, esi
jmp 0x66f934
call sub.WSOCK32.dll_htons
mov ebp, dword [esp + 0x1c]
push eax
push ebp
call sub.WSOCK32.dll_inet_addr
push eax
lea edx, [edi + 0x48]
push edx
call fcn.006787f0
add esp, 0xc
cmp dword [esp + 0x28], esi
jne 0x66f960
cmp eax, esi
jne 0x66f960
push ebp
call sub.WSOCK32.dll_inet_addr
push ebx
mov dword [edi + 0x61c], eax
call sub.WSOCK32.dll_htons
mov ebx, dword [esp + 0x24]
mov word [edi + 0x620], ax
call fcn.0066f830
mov dword [edi + 0x618], esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x6745e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
add esp, 0x190
ret

Function at 0x674680
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 0x1002
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
ret

Function at 0x6746b0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
ret
Function at 0x674760
Capabilities:
Get socket status

Disassembly:
sub esp, 0x318
push ebx
mov ebx, dword [esp + 0x320]
push ebp
push esi
push edi
xor edi, edi
xor esi, esi
xor ebp, ebp
cmp ebx, 0xffffffff
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
jne 0x67479f
push 0x23e
push str..GameSpy_nonport.c
push str.theSocket___INVALID_SOCKET
call fcn.006870ba
add esp, 0xc
cmp dword [esp + 0x330], edi
mov eax, 1
je 0x6747b9
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x1c]
cmp dword [esp + 0x334], edi
je 0x6747d7
mov dword [esp + 0x124], ebx
mov dword [esp + 0x120], eax
lea ebp, [esp + 0x120]
cmp dword [esp + 0x338], edi
je 0x6747f9
mov dword [esp + 0x224], eax
lea eax, [esp + 0x224]
mov dword [esp + 0x228], ebx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebp
push esi
push 0x40
call sub.WSOCK32.dll_select
mov edi, eax
cmp edi, 0xffffffff
jne 0x674820
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x318
ret
mov eax, dword [esp + 0x330]
test eax, eax
je 0x674856
test edi, edi
jle 0x674849
push esi
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x674849
mov eax, dword [esp + 0x330]
mov dword [eax], 1
jmp 0x674856
mov ecx, dword [esp + 0x330]
mov dword [ecx], 0
mov esi, dword [esp + 0x334]
test esi, esi
je 0x67487e
test edi, edi
jle 0x674878
push ebp
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x674878
mov dword [esi], 1
jmp 0x67487e
mov dword [esi], 0
mov esi, dword [esp + 0x338]
test esi, esi
je 0x6748b5
test edi, edi
jle 0x6748af
mov edx, dword [esp + 0x10]
push edx
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x6748af
mov eax, edi
pop edi
mov dword [esi], 1
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret

Function at 0x6748d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x674922
test eax, eax
je 0x674922
mov eax, 1
add esp, 0x10c
ret
xor eax, eax
add esp, 0x10c
ret

Function at 0x674930
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push edi
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x3f
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [esp + 0xc]
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 8]
push ecx
call sub.WSOCK32.dll_gethostbyname
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x675ad0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret