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

Disassembly:
sub esp, 0x808
mov eax, dword [0x684540]
push 0x10
lea ecx, [esi + 0xc4]
push ecx
mov dword [esp + 0x80c], eax
mov eax, dword [esi + 0x84]
push 0
push 5
lea edx, [esp + 0x10]
mov dword [esp + 0x11], eax
mov eax, dword [esi]
push edx
push eax
mov byte [esp + 0x18], 8
mov dword [esp + 0x818], 5
call sub.WS2_32.dll_sendto
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esp + 0x804]
mov dword [esi + 0xac], eax
call fcn.006293e9
add esp, 0x808
ret
Function at 0x6168f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x684540]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xbc]
test eax, eax
mov dword [esp], 0x10
je 0x61696c
mov eax, dword [esi]
push eax
call fcn.0061d5c0
add esp, 4
test eax, eax
je 0x61696c
lea esp, [esp]
mov eax, dword [esi]
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0xff
push 0x6a2620
push eax
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x61695d
lea ecx, [esp + 4]
push ecx
push eax
push 0x6a2620
push esi
mov byte [eax + 0x6a2620], 0
call fcn.00616390
add esp, 0x10
mov edx, dword [esi]
push edx
call fcn.0061d5c0
add esp, 4
test eax, eax
jne 0x616920
mov ecx, dword [esp + 0x14]
call fcn.006293e9
add esp, 0x18
ret
Function at 0x6184f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esi + 4]
mov dword [esp + 0x14], edi
mov edi, dword [esi]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x1c], edi
xor edx, edx
mov dword [esp + 0x18], esi
mov edi, 0x20
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x1c]
xor esi, ebx
sub edx, 0x61c88647
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x18]
add eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x618526
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0x10
ret

Function at 0x6185e0
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esi + 8]
mov dword [esp + 0x14], edi
mov edi, dword [esi + 0xc]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x1c], edi
mov edx, 0xc6ef3720
mov dword [esp + 0x18], esi
mov edi, 0x20
lea esp, [esp]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, ecx
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x1c]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x18]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
sub ecx, esi
add edx, 0x61c88647
dec edi
jne 0x618620
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0x10
ret
Function at 0x619ec0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x10018
call fcn.00628480
mov eax, dword [0x684540]
push esi
push edi
mov edi, dword [esp + 0x10024]
mov dword [esp + 0x1001c], eax
mov eax, dword [edi]
push eax
call fcn.0061d5c0
add esp, 4
test eax, eax
je 0x619fa0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [edi]
lea edx, [esp + 0x10]
push edx
push 0
push 0xffff
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x20], 0x10
call sub.WS2_32.dll_recvfrom
mov esi, eax
cmp esi, 0xffffffff
jne 0x619f6a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2746
jne 0x619f43
mov edx, dword [esp + 0xe]
push edx
call sub.WSOCK32.dll_ntohs
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.00618ba0
jmp 0x619f86
cmp eax, 0x2738
je 0x619f8d
push edi
call fcn.0061ce70
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10014]
call fcn.006293e9
add esp, 0x10018
ret
mov ecx, dword [esp + 0xe]
push ecx
call sub.WSOCK32.dll_ntohs
mov edx, dword [esp + 0x10]
push edx
push esi
push edi
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.00619ce0
add esp, 0xc
test eax, eax
je 0x619f53
mov eax, dword [edi]
push eax
call fcn.0061d5c0
add esp, 4
test eax, eax
jne 0x619ef2
mov ecx, dword [esp + 0x1001c]
pop edi
mov eax, 1
pop esi
call fcn.006293e9
add esp, 0x10018
ret

Function at 0x61aa60
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x684540]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.0061a8d0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0061a990
mov edx, dword [esp + 0x8c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00619fc0
mov ecx, dword [esp + 0x84]
call fcn.006293e9
add esp, 0x88
ret
Function at 0x61aee0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x54
mov eax, dword [0x684540]
mov dword [esp + 0x50], eax
mov al, 0x75
mov byte [esp + 5], al
mov byte [esp + 8], al
mov al, 0x64
push esi
mov cl, 0x5c
push edi
mov byte [esp + 0x15], al
mov byte [esp + 0xa], al
lea eax, [esp + 8]
mov byte [esp + 0xc], cl
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x60]
push eax
push ecx
mov byte [esp + 0x16], 0x63
mov byte [esp + 0x17], 0x6f
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x74
mov byte [esp + 0x1c], 0x25
mov byte [esp + 0x1e], 0
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x11], 0x69
mov byte [esp + 0x13], 0
xor edi, edi
call fcn.0061ac10
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x61af64
mov ecx, dword [0x6a2d94]
test ecx, ecx
jle 0x61af64
mov ecx, 0x723120
jmp 0x61af9b
push eax
call fcn.00625b76
mov esi, dword [0x6a2d94]
add esp, 4
xor ecx, ecx
test esi, esi
jle 0x61afaa
mov edx, 0x723120
mov edi, edi
cmp dword [edx], eax
je 0x61af8e
inc ecx
add edx, 0x10
cmp ecx, esi
jl 0x61af80
jmp 0x61afaa
shl ecx, 4
add ecx, 0x723120
test ecx, ecx
je 0x61afaa
mov eax, dword [ecx + 8]
test eax, eax
je 0x61afaa
mov eax, dword [eax + 4]
inc edi
test eax, eax
jne 0x61afa2
push edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.006238e3
mov esi, eax
add esp, 0xc
xor edx, edx
test esi, esi
mov ecx, 0x6a2730
jle 0x61afe8
lea ebx, [ebx]
mov al, byte [ecx]
xor byte [esp + edx + 0x18], al
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x61afe3
mov ecx, 0x6a2730
inc edx
cmp edx, esi
jl 0x61afd0
mov ecx, dword [esp + 0x64]
mov eax, dword [0x683988]
push 0x10
push ecx
push 0
push esi
lea edx, [esp + 0x28]
push edx
push eax
call sub.WS2_32.dll_sendto
mov ecx, dword [esp + 0x58]
pop edi
pop esi
call fcn.006293e9
add esp, 0x54
ret
Function at 0x61b020
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0x70
mov eax, dword [0x684540]
push ebx
mov dword [esp + 0x70], eax
mov al, 0x5c
push esi
mov byte [esp + 0x14], al
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x24], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2f], al
push edi
lea eax, [esp + 0x10]
mov esi, ecx
mov dl, 0x79
mov cl, 0x64
xor ebx, ebx
push eax
push esi
mov byte [esp + 0x21], 0x75
mov byte [esp + 0x22], 0x6f
mov byte [esp + 0x23], 0x6e
mov byte [esp + 0x26], 0x73
mov byte [esp + 0x27], 0x6b
mov byte [esp + 0x28], 0x65
mov byte [esp + 0x29], dl
mov byte [esp + 0x2b], 0x25
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x31], 0x75
mov byte [esp + 0x32], 0x6f
mov byte [esp + 0x33], 0x66
mov byte [esp + 0x34], 0x66
mov byte [esp + 0x37], 0x73
mov byte [esp + 0x38], 0x6b
mov byte [esp + 0x39], 0x65
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3c], 0x25
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x18], 0x73
mov byte [esp + 0x19], 0x6b
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x14], 0x63
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], bl
call fcn.0061ac10
push eax
call fcn.00625b76
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
push ecx
push esi
mov edi, eax
call fcn.0061ac10
add esp, 8
mov edx, eax
call fcn.0061ab60
add esp, 4
cmp eax, ebx
je 0x61b127
cmp dword [eax + 0x38], 3
jne 0x61b127
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
jmp 0x61b132
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.006238e3
mov edi, eax
add esp, 0xc
xor esi, esi
cmp edi, ebx
mov ecx, 0x6a2730
jle 0x61b165
mov al, byte [ecx]
mov dl, byte [esp + esi + 0x38]
xor dl, al
mov al, byte [ecx + 1]
inc ecx
cmp al, bl
mov byte [esp + esi + 0x38], dl
jne 0x61b160
mov ecx, 0x6a2730
inc esi
cmp esi, edi
jl 0x61b147
mov ecx, dword [esp + 0x80]
mov eax, dword [0x683988]
push 0x10
push ecx
push ebx
push edi
lea edx, [esp + 0x48]
push edx
push eax
call sub.WS2_32.dll_sendto
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebx
call fcn.006293e9
add esp, 0x70
ret
Function at 0x61b1a0
Capabilities:
Contain obfuscated stackstrings
Send data
Send data on socket

Disassembly:
sub esp, 0x220
mov eax, dword [0x684540]
mov dword [esp + 0x21c], eax
mov al, 0x5c
push esi
mov byte [esp + 4], al
mov byte [esp + 9], al
mov byte [esp + 0xa], al
mov byte [esp + 0xe], al
mov dl, 0x25
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x17], al
mov byte [esp + 0x1a], al
cmp dword [0x6a2d98], 1
mov esi, ecx
mov cl, 0x64
mov byte [esp + 5], cl
mov byte [esp + 6], 0x69
mov byte [esp + 7], 0x73
mov byte [esp + 8], 0x63
mov byte [esp + 0xb], 0x70
mov byte [esp + 0xc], 0x69
mov byte [esp + 0xd], cl
mov byte [esp + 0xf], dl
mov byte [esp + 0x10], cl
mov byte [esp + 0x12], 0x63
mov byte [esp + 0x13], cl
mov byte [esp + 0x15], dl
mov byte [esp + 0x16], 0x73
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x70
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1c], cl
mov byte [esp + 0x1d], 0
je 0x61b27f
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x228]
mov edx, dword [ecx]
push edi
push eax
add esi, 4
push esi
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.006238e3
add esp, 0x14
mov edi, eax
lea esi, [esp + 0x24]
call fcn.0061ad50
mov eax, dword [0x683988]
push 0x10
push 0x6a2b40
push 0
push edi
mov edx, esi
push edx
push eax
call sub.WS2_32.dll_sendto
pop edi
mov ecx, dword [esp + 0x220]
pop esi
call fcn.006293e9
add esp, 0x220
ret
Function at 0x61b2a0
Capabilities:
Check for time delay via gettickcount
Contain obfuscated stackstrings
Send data
Send data on socket

Disassembly:
sub esp, 0x230
mov eax, dword [0x684540]
push ebx
mov bl, 0x64
mov dl, 0x68
mov cl, 0x25
mov dword [esp + 0x230], eax
mov al, 0x5c
push ebp
mov ebp, dword [esp + 0x240]
mov byte [esp + 0xc], dl
mov byte [esp + 0x11], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x17], dl
mov dl, 0x73
mov byte [esp + 0x28], bl
mov byte [esp + 0x30], bl
xor ebx, ebx
push esi
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x61
mov byte [esp + 0xe], 0x75
mov byte [esp + 0xf], 0x74
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x70
mov byte [esp + 0x14], 0x69
mov byte [esp + 0x16], al
mov byte [esp + 0x17], cl
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x63
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0x72
mov byte [esp + 0x21], 0x65
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], 0x70
mov byte [esp + 0x24], al
mov byte [esp + 0x25], cl
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], al
mov byte [esp + 0x28], 0x69
mov byte [esp + 0x29], 0x70
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], cl
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], 0x6b
mov byte [esp + 0x30], 0x65
mov byte [esp + 0x31], 0x79
mov byte [esp + 0x32], al
mov byte [esp + 0x33], cl
mov byte [esp + 0x35], bl
mov dword [ebp + 0x38], ebx
call sub.KERNEL32.dll_GetTickCount
mov esi, eax
call fcn.0062431f
xor esi, eax
and esi, 0x3fff
mov dword [ebp + 0x28], esi
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [0x6a2d98]
mov dword [ebp + 0x30], eax
mov eax, 1
cmp ecx, eax
mov dword [ebp + 0x34], eax
je 0x61b423
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [esp + 0x24c]
push edi
push eax
mov eax, dword [esp + 0x250]
push ecx
mov ecx, dword [esp + 0x24c]
push edx
mov edx, dword [ecx]
push eax
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.006238e3
add esp, 0x1c
mov edi, eax
lea esi, [esp + 0x3c]
call fcn.0061ad50
mov eax, dword [0x683988]
push 0x10
push 0x6a2b40
push ebx
push edi
mov edx, esi
push edx
push eax
call sub.WS2_32.dll_sendto
push edi
call fcn.006291e4
push edi
mov ecx, esi
push ecx
push eax
mov dword [ebp + 0x48], eax
call fcn.00623940
add esp, 0x10
mov dword [ebp + 0x4c], edi
pop edi
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
pop ebx
call fcn.006293e9
add esp, 0x230
ret
Function at 0x61c9a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x684540]
push esi
mov dword [esp + 0x14], eax
mov byte [esp + 4], 0x30
mov byte [esp + 5], 0x31
mov byte [esp + 6], 0x32
mov byte [esp + 7], 0x33
mov byte [esp + 8], 0x34
mov byte [esp + 9], 0x35
mov byte [esp + 0xa], 0x36
mov byte [esp + 0xb], 0x37
mov byte [esp + 0xc], 0x38
mov byte [esp + 0xd], 0x39
mov byte [esp + 0xe], 0x41
mov byte [esp + 0xf], 0x42
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x44
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x46
xor esi, esi
nop
call fcn.0062431f
cdq
xor eax, edx
sub eax, edx
and eax, reloc.WSOCK32.dll_ntohs
jns 0x61ca16
dec eax
or eax, 0xfffffff0
inc eax
mov al, byte [esp + eax + 4]
mov byte [esi + edi], al
inc esi
cmp esi, 0x10
jl 0x61ca00
mov ecx, dword [esp + 0x14]
mov byte [esi + edi], 0
pop esi
call fcn.006293e9
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x14
mov eax, dword [0x684540]
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00614db0
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
push edx
call fcn.0061d620
add esp, 0xc
test eax, eax
jne 0x61cef2
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
call fcn.006293e9
add esp, 0x14
ret
xor eax, eax
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
push ebx
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], edi
call sub.WSOCK32.dll_htons
mov edx, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi]
push 0
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x3c]
push edx
push eax
push ecx
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
jne 0x61cf91
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2746
jne 0x61cf6f
push ebx
push edi
push esi
call fcn.00618ba0
add esp, 0xc
test eax, eax
jne 0x61cfcb
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x10]
call fcn.006293e9
add esp, 0x14
ret
cmp eax, 0x2738
je 0x61cfcb
push esi
call fcn.0061ce70
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
call fcn.006293e9
add esp, 0x14
ret
mov eax, dword [esi + 0x24]
test eax, eax
je 0x61cfcb
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push 1
push ecx
push edx
push 0
push ebx
push edi
push ebx
push edi
push esi
call fcn.0061c690
add esp, 0xc
push eax
push esi
call fcn.0061dd30
add esp, 0x28
test eax, eax
je 0x61cf7f
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
mov eax, 1
pop esi
call fcn.006293e9
add esp, 0x14
ret

Function at 0x61d4d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x684540]
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [esp + 0x190]
call fcn.006293e9
add esp, 0x194
ret
Function at 0x61d590
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.WS2_32.dll_setsockopt
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
ret

Function at 0x61d5c0
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 0x61d612
test eax, eax
je 0x61d612
mov eax, 1
add esp, 0x10c
ret
xor eax, eax
add esp, 0x10c
ret

Function at 0x61d620
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0
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 0x61d672
test eax, eax
je 0x61d672
mov eax, 1
add esp, 0x10c
ret
xor eax, eax
add esp, 0x10c
ret

Function at 0x61d680
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x684540]
push edi
mov dword [esp + 0x10c], eax
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.WS2_32.dll_gethostname
lea ecx, [esp + 8]
push ecx
call sub.WS2_32.dll_gethostbyname
mov ecx, dword [esp + 0x10c]
call fcn.006293e9
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x61e5d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x684540]
mov dword [esp + 0x114], eax
mov eax, dword [ebx + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
je 0x61e5f7
mov dword [eax + 0x20], esi
mov dword [ebx + 0xc], esi
mov dword [esi + 0x20], 0
mov eax, dword [ebx + 8]
test eax, eax
jne 0x61e60b
mov dword [ebx + 8], esi
inc dword [ebx + 0x10]
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0x1c], eax
cmp dword [ebx], 1
jne 0x61e681
mov dword [esp + 0x1b], eax
test byte [esi + 0x14], 4
mov byte [esp + 0x18], 0xfe
mov byte [esp + 0x19], 0xfd
mov byte [esp + 0x1a], 0
je 0x61e66c
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
mov al, byte [ebx + 0x3c]
mov byte [esp + 0x1f], al
jle 0x61e65a
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x28]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov byte [esp + eax + 0x20], 0
mov byte [esp + eax + 0x21], 0
lea ecx, [eax + 0xa]
jmp 0x61e6cd
mov al, 0xff
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov ecx, 0xa
jmp 0x61e6cd
test byte [esi + 0x14], 4
je 0x61e6b4
mov eax, dword [str._basicinfo_]
mov ecx, dword [0x64e800]
mov edx, dword [0x64e804]
mov dword [esp + 0x18], eax
mov al, byte [0x64e808]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x24], al
mov ecx, 0xd
jmp 0x61e6cd
mov ecx, dword [str._status_]
mov edx, dword [0x64e7f4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, 8
mov eax, dword [esi]
cmp eax, dword [ebx + 0x24]
mov edx, 2
mov word [esp + 8], dx
jne 0x61e6f5
test byte [esi + 0x15], dl
je 0x61e6f5
mov eax, dword [esi + 8]
mov dx, word [esi + 0xc]
mov dword [esp + 0xc], eax
mov word [esp + 0xa], dx
jmp 0x61e702
mov dword [esp + 0xc], eax
mov ax, word [esi + 4]
mov word [esp + 0xa], ax
push 0x10
lea edx, [esp + 0xc]
push edx
push 0
push ecx
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x28]
push eax
push ecx
call sub.WS2_32.dll_sendto
mov ecx, dword [esp + 0x11c]
call fcn.006293e9
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x61e730
Capabilities:
Create udp socket

Disassembly:
push esi
push edi
call fcn.0061d4d0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0x11
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push 2
xor edi, edi
push 2
mov dword [esi + 4], ecx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], eax
mov dword [esi + 0x24], edi
call sub.WS2_32.dll_socket
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
pop edi
pop esi
ret
Function at 0x61ea00
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84c
mov eax, dword [0x684540]
mov dword [esp + 0x848], eax
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 4], 0x10
call fcn.0061d5c0
add esp, 4
test eax, eax
je 0x61ead5
push ebx
push edi
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x10]
push edx
push 0
push 0x833
lea eax, [esp + 0x2c]
push eax
push ecx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x61ead3
mov edi, dword [esi + 8]
test edi, edi
mov byte [esp + eax + 0x1c], 0
je 0x61eabf
mov bx, word [esp + 0xe]
mov edx, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [edi]
cmp ecx, edx
jne 0x61ea7c
cmp word [edi + 4], bx
je 0x61ea9b
cmp ecx, dword [esi + 0x24]
jne 0x61ea92
test byte [edi + 0x15], 2
je 0x61ea92
cmp dword [edi + 8], edx
jne 0x61ea92
cmp word [edi + 0xc], bx
je 0x61ea9b
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x61ea70
jmp 0x61eabf
cmp dword [esi], 1
jne 0x61eab2
push eax
push esi
lea eax, [esp + 0x24]
mov ebx, edi
call fcn.0061e870
add esp, 8
jmp 0x61eabf
push esi
lea ebx, [esp + 0x20]
call fcn.0061e990
add esp, 4
mov edx, dword [esi + 0x20]
push edx
call fcn.0061d5c0
add esp, 4
test eax, eax
jne 0x61ea30
pop edi
pop ebx
mov ecx, dword [esp + 0x848]
call fcn.006293e9
add esp, 0x84c
ret

Function at 0x61ec60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x94
mov eax, dword [0x684540]
push esi
mov dword [esp + 0x94], eax
lea esi, [edi + 0xc]
push 0x14
mov eax, esi
call fcn.00617d50
mov ecx, eax
mov eax, dword [0x6a31a8]
add esp, 4
test eax, eax
je 0x61ec9f
lea edx, [esp + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x61ec93
jmp 0x61ecb3
push ecx
push esi
lea eax, [esp + 0x1c]
push str._s.ms_d.gamespy.com
push eax
call fcn.006238e3
add esp, 0x10
push 0x70ee
mov word [esp + 8], 2
call sub.WSOCK32.dll_htons
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0xa], ax
call sub.WS2_32.dll_inet_addr
or esi, 0xffffffff
cmp eax, esi
mov dword [esp + 8], eax
jne 0x61ed10
lea edx, [esp + 0x14]
push edx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x61ed05
mov eax, 2
pop esi
mov ecx, dword [esp + 0x90]
call fcn.006293e9
add esp, 0x94
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 8], edx
cmp dword [edi + 0x4a0], esi
jne 0x61ed46
push 6
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, esi
mov dword [edi + 0x4a0], eax
jne 0x61ed46
mov eax, 1
pop esi
mov ecx, dword [esp + 0x90]
call fcn.006293e9
add esp, 0x94
ret
mov ecx, dword [edi + 0x4a0]
push 0x10
lea eax, [esp + 8]
push eax
push ecx
call sub.WSOCK32.dll_connect
test eax, eax
je 0x61ed88
mov edx, dword [edi + 0x4a0]
push edx
call sub.WSOCK32.dll_closesocket
mov dword [edi + 0x4a0], esi
mov eax, 3
pop esi
mov ecx, dword [esp + 0x90]
call fcn.006293e9
add esp, 0x94
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
pop esi
call fcn.006293e9
add esp, 0x94
ret