joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bed50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x10018
call fcn.005cd210
mov eax, dword [0x61fb00]
push esi
push edi
mov edi, dword [esp + 0x10024]
mov dword [esp + 0x1001c], eax
mov eax, dword [edi]
push eax
call fcn.005c2450
add esp, 4
test eax, eax
je 0x5bee30
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 0x5bedfa
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2746
jne 0x5bedd3
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.005bda30
jmp 0x5bee16
cmp eax, 0x2738
je 0x5bee1d
push edi
call fcn.005c1d00
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10014]
call fcn.005ce175
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.005beb70
add esp, 0xc
test eax, eax
je 0x5bede3
mov eax, dword [edi]
push eax
call fcn.005c2450
add esp, 4
test eax, eax
jne 0x5bed82
mov ecx, dword [esp + 0x1001c]
pop edi
mov eax, 1
pop esi
call fcn.005ce175
add esp, 0x10018
ret

Function at 0x5bf8f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x61fb00]
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.005bf760
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.005bf820
mov edx, dword [esp + 0x8c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.005bee50
mov ecx, dword [esp + 0x84]
call fcn.005ce175
add esp, 0x88
ret
Function at 0x5bfd70
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x54
mov eax, dword [0x61fb00]
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.005bfaa0
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x5bfdf4
mov ecx, dword [0x63dc94]
test ecx, ecx
jle 0x5bfdf4
mov ecx, 0x6be400
jmp 0x5bfe2b
push eax
call fcn.005ca906
mov esi, dword [0x63dc94]
add esp, 4
xor ecx, ecx
test esi, esi
jle 0x5bfe3a
mov edx, 0x6be400
mov edi, edi
cmp dword [edx], eax
je 0x5bfe1e
inc ecx
add edx, 0x10
cmp ecx, esi
jl 0x5bfe10
jmp 0x5bfe3a
shl ecx, 4
add ecx, 0x6be400
test ecx, ecx
je 0x5bfe3a
mov eax, dword [ecx + 8]
test eax, eax
je 0x5bfe3a
mov eax, dword [eax + 4]
inc edi
test eax, eax
jne 0x5bfe32
push edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.005c87a3
mov esi, eax
add esp, 0xc
xor edx, edx
test esi, esi
mov ecx, 0x63d630
jle 0x5bfe78
lea ebx, [ebx]
mov al, byte [ecx]
xor byte [esp + edx + 0x18], al
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x5bfe73
mov ecx, 0x63d630
inc edx
cmp edx, esi
jl 0x5bfe60
mov ecx, dword [esp + 0x64]
mov eax, dword [0x61ef48]
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.005ce175
add esp, 0x54
ret
Function at 0x5bfeb0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0x70
mov eax, dword [0x61fb00]
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.005bfaa0
push eax
call fcn.005ca906
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
push ecx
push esi
mov edi, eax
call fcn.005bfaa0
add esp, 8
mov edx, eax
call fcn.005bf9f0
add esp, 4
cmp eax, ebx
je 0x5bffb7
cmp dword [eax + 0x38], 3
jne 0x5bffb7
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
jmp 0x5bffc2
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.005c87a3
mov edi, eax
add esp, 0xc
xor esi, esi
cmp edi, ebx
mov ecx, 0x63d630
jle 0x5bfff5
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 0x5bfff0
mov ecx, 0x63d630
inc esi
cmp esi, edi
jl 0x5bffd7
mov ecx, dword [esp + 0x80]
mov eax, dword [0x61ef48]
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.005ce175
add esp, 0x70
ret
Function at 0x5c0030
Capabilities:
Contain obfuscated stackstrings
Send data
Send data on socket

Disassembly:
sub esp, 0x220
mov eax, dword [0x61fb00]
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 [0x63dc98], 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 0x5c010f
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.005c87a3
add esp, 0x14
mov edi, eax
lea esi, [esp + 0x24]
call fcn.005bfbe0
mov eax, dword [0x61ef48]
push 0x10
push 0x63da40
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.005ce175
add esp, 0x220
ret
Function at 0x5c0130
Capabilities:
Check for time delay via gettickcount
Contain obfuscated stackstrings
Send data
Send data on socket

Disassembly:
sub esp, 0x230
mov eax, dword [0x61fb00]
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.005c91df
xor esi, eax
and esi, 0x3fff
mov dword [ebp + 0x28], esi
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [0x63dc98]
mov dword [ebp + 0x30], eax
mov eax, 1
cmp ecx, eax
mov dword [ebp + 0x34], eax
je 0x5c02b3
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.005c87a3
add esp, 0x1c
mov edi, eax
lea esi, [esp + 0x3c]
call fcn.005bfbe0
mov eax, dword [0x61ef48]
push 0x10
push 0x63da40
push ebx
push edi
mov edx, esi
push edx
push eax
call sub.WS2_32.dll_sendto
push edi
call fcn.005cde04
push edi
mov ecx, esi
push ecx
push eax
mov dword [ebp + 0x48], eax
call fcn.005c8800
add esp, 0x10
mov dword [ebp + 0x4c], edi
pop edi
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
pop ebx
call fcn.005ce175
add esp, 0x230
ret
Function at 0x5c1830
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x61fb00]
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.005c91df
cdq
xor eax, edx
sub eax, edx
and eax, reloc.WSOCK32.dll_ntohs
jns 0x5c18a6
dec eax
or eax, 0xfffffff0
inc eax
mov al, byte [esp + eax + 4]
mov byte [esi + edi], al
inc esi
cmp esi, 0x10
jl 0x5c1890
mov ecx, dword [esp + 0x14]
mov byte [esi + edi], 0
pop esi
call fcn.005ce175
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x14
mov eax, dword [0x61fb00]
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.005b9c80
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
push edx
call fcn.005c24b0
add esp, 0xc
test eax, eax
jne 0x5c1d82
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
call fcn.005ce175
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 0x5c1e21
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2746
jne 0x5c1dff
push ebx
push edi
push esi
call fcn.005bda30
add esp, 0xc
test eax, eax
jne 0x5c1e5b
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x10]
call fcn.005ce175
add esp, 0x14
ret
cmp eax, 0x2738
je 0x5c1e5b
push esi
call fcn.005c1d00
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
call fcn.005ce175
add esp, 0x14
ret
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5c1e5b
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.005c1520
add esp, 0xc
push eax
push esi
call fcn.005c2bc0
add esp, 0x28
test eax, eax
je 0x5c1e0f
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
mov eax, 1
pop esi
call fcn.005ce175
add esp, 0x14
ret

Function at 0x5c2360
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x61fb00]
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.005ce175
add esp, 0x194
ret
Function at 0x5c2420
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 0x5c2450
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 0x5c24a2
test eax, eax
je 0x5c24a2
mov eax, 1
add esp, 0x10c
ret
xor eax, eax
add esp, 0x10c
ret

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

Function at 0x5c2510
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x61fb00]
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.005ce175
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5c3450
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x61fb00]
mov dword [esp + 0x114], eax
mov eax, dword [ebx + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
je 0x5c3477
mov dword [eax + 0x20], esi
mov dword [ebx + 0xc], esi
mov dword [esi + 0x20], 0
mov eax, dword [ebx + 8]
test eax, eax
jne 0x5c348b
mov dword [ebx + 8], esi
inc dword [ebx + 0x10]
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0x1c], eax
cmp dword [ebx], 1
jne 0x5c3501
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 0x5c34ec
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
mov al, byte [ebx + 0x3c]
mov byte [esp + 0x1f], al
jle 0x5c34da
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 0x5c354d
mov al, 0xff
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov ecx, 0xa
jmp 0x5c354d
test byte [esi + 0x14], 4
je 0x5c3534
mov eax, dword [str._basicinfo_]
mov ecx, dword [0x5ecce8]
mov edx, dword [0x5eccec]
mov dword [esp + 0x18], eax
mov al, byte [0x5eccf0]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x24], al
mov ecx, 0xd
jmp 0x5c354d
mov ecx, dword [str._status_]
mov edx, dword [0x5eccdc]
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 0x5c3575
test byte [esi + 0x15], dl
je 0x5c3575
mov eax, dword [esi + 8]
mov dx, word [esi + 0xc]
mov dword [esp + 0xc], eax
mov word [esp + 0xa], dx
jmp 0x5c3582
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.005ce175
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5c35b0
Capabilities:
Create udp socket

Disassembly:
push esi
push edi
call fcn.005c2360
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 0x5c3880
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84c
mov eax, dword [0x61fb00]
mov dword [esp + 0x848], eax
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 4], 0x10
call fcn.005c2450
add esp, 4
test eax, eax
je 0x5c3955
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 0x5c3953
mov edi, dword [esi + 8]
test edi, edi
mov byte [esp + eax + 0x1c], 0
je 0x5c393f
mov bx, word [esp + 0xe]
mov edx, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [edi]
cmp ecx, edx
jne 0x5c38fc
cmp word [edi + 4], bx
je 0x5c391b
cmp ecx, dword [esi + 0x24]
jne 0x5c3912
test byte [edi + 0x15], 2
je 0x5c3912
cmp dword [edi + 8], edx
jne 0x5c3912
cmp word [edi + 0xc], bx
je 0x5c391b
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x5c38f0
jmp 0x5c393f
cmp dword [esi], 1
jne 0x5c3932
push eax
push esi
lea eax, [esp + 0x24]
mov ebx, edi
call fcn.005c36f0
add esp, 8
jmp 0x5c393f
push esi
lea ebx, [esp + 0x20]
call fcn.005c3810
add esp, 4
mov edx, dword [esi + 0x20]
push edx
call fcn.005c2450
add esp, 4
test eax, eax
jne 0x5c38b0
pop edi
pop ebx
mov ecx, dword [esp + 0x848]
call fcn.005ce175
add esp, 0x84c
ret

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

Disassembly:
sub esp, 0x94
mov eax, dword [0x61fb00]
push esi
mov dword [esp + 0x94], eax
lea esi, [edi + 0xc]
push 0x14
mov eax, esi
call fcn.005c3ae0
mov ecx, eax
mov eax, dword [0x63e0a8]
add esp, 4
test eax, eax
je 0x5c3b5f
lea edx, [esp + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5c3b53
jmp 0x5c3b73
push ecx
push esi
lea eax, [esp + 0x1c]
push str._s.ms_d.gamespy.com
push eax
call fcn.005c87a3
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 0x5c3bd0
lea edx, [esp + 0x14]
push edx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x5c3bc5
mov eax, 2
pop esi
mov ecx, dword [esp + 0x90]
call fcn.005ce175
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 0x5c3c06
push 6
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, esi
mov dword [edi + 0x4a0], eax
jne 0x5c3c06
mov eax, 1
pop esi
mov ecx, dword [esp + 0x90]
call fcn.005ce175
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 0x5c3c48
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.005ce175
add esp, 0x94
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
pop esi
call fcn.005ce175
add esp, 0x94
ret
Function at 0x5c4400
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push ebx
push 0x64
push 4
mov dword [esi], 1
call fcn.005c2ce0
push esi
mov dword [esi + 4], eax
mov dword [esi + 0x5bc], ebx
call fcn.005bcd80
mov eax, dword [esp + 0x20]
lea edx, [esi + 0xc]
add esp, 0x10
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x5c4433
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x2c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x5c4446
mov eax, dword [esp + 0x18]
lea edx, [esi + 0x4c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x5c4460
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x480], eax
mov dword [esi + 0x484], ecx
mov ecx, 0x5f365c
or eax, 0xffffffff
mov dword [esi + 0x488], ecx
mov dword [esi + 0x490], ebx
mov dword [esi + 0x4a0], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x47c], eax
mov dword [esi + 0x478], ebx
mov dword [esi + 0x49c], ecx
mov dword [esi + 0x494], ebx
mov dword [esi + 0x4a8], edx
call sub.KERNEL32.dll_GetTickCount
push eax
call fcn.005c91d2
add esp, 4
pop esi
pop ebx
jmp fcn.005c2360

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

Disassembly:
sub esp, 0x210
mov eax, dword [0x61fb00]
push esi
mov esi, dword [esp + 0x218]
mov dword [esp + 0x210], eax
mov eax, dword [esi + 0x4a0]
push edi
push eax
mov dword [esp + 0x10], 0x10
call fcn.005c2450
add esp, 4
test eax, eax
je 0x5c4dab
lea ebx, [ebx]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x4a0]
lea edx, [esp + 0x14]
push edx
push 0
push 0x1f3
lea eax, [esp + 0x30]
push eax
push ecx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x5c4d94
mov edx, dword [esp + 0x12]
mov eax, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.005c4140
add esp, 0xc
cmp eax, 0xffffffff
jne 0x5c4d94
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
call fcn.005bcc70
mov edi, eax
push edi
call fcn.005bcd40
add esp, 0x10
test eax, eax
jne 0x5c4df0
push 0x11
push edi
call fcn.005bcce0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], edi
call fcn.005c3170
mov edx, dword [esi + 0x484]
mov eax, dword [esp + 0x18]
push edx
push eax
push 0
push esi
call dword [esi + 0x480]
add esp, 0x20
mov ecx, dword [esi + 0x4a0]
push ecx
call fcn.005c2450
add esp, 4
test eax, eax
jne 0x5c4d00
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [esi + 0x4a4]
cmp eax, 0x7d0
jbe 0x5c4dd9
mov edx, dword [esi + 0x4a0]
push edx
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x4a0], 0xffffffff
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20c]
call fcn.005ce175
add esp, 0x210
ret
mov ecx, dword [esp + 0x214]
pop edi
mov eax, 5
pop esi
call fcn.005ce175
add esp, 0x210
ret