joyce8/EMBER2024-capa huggingface dataset:
Function at 0x613960
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 0x613996
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 0x613a50
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 0x613a90
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 0x615330
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x10018
call fcn.00623680
mov eax, dword [0x67e540]
push esi
push edi
mov edi, dword [esp + 0x10024]
mov dword [esp + 0x1001c], eax
mov eax, dword [edi]
push eax
call fcn.00618a30
add esp, 4
test eax, eax
je 0x615410
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 0x6153da
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2746
jne 0x6153b3
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.00614010
jmp 0x6153f6
cmp eax, 0x2738
je 0x6153fd
push edi
call fcn.006182e0
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10014]
call fcn.006245e9
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.00615150
add esp, 0xc
test eax, eax
je 0x6153c3
mov eax, dword [edi]
push eax
call fcn.00618a30
add esp, 4
test eax, eax
jne 0x615362
mov ecx, dword [esp + 0x1001c]
pop edi
mov eax, 1
pop esi
call fcn.006245e9
add esp, 0x10018
ret

Function at 0x615ed0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x67e540]
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.00615d40
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00615e00
mov edx, dword [esp + 0x8c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00615430
mov ecx, dword [esp + 0x84]
call fcn.006245e9
add esp, 0x88
ret
Function at 0x616350
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x54
mov eax, dword [0x67e540]
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.00616080
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x6163d4
mov ecx, dword [0x69c614]
test ecx, ecx
jle 0x6163d4
mov ecx, 0x714e00
jmp 0x61640b
push eax
call fcn.00620fc6
mov esi, dword [0x69c614]
add esp, 4
xor ecx, ecx
test esi, esi
jle 0x61641a
mov edx, 0x714e00
mov edi, edi
cmp dword [edx], eax
je 0x6163fe
inc ecx
add edx, 0x10
cmp ecx, esi
jl 0x6163f0
jmp 0x61641a
shl ecx, 4
add ecx, 0x714e00
test ecx, ecx
je 0x61641a
mov eax, dword [ecx + 8]
test eax, eax
je 0x61641a
mov eax, dword [eax + 4]
inc edi
test eax, eax
jne 0x616412
push edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0061ed33
mov esi, eax
add esp, 0xc
xor edx, edx
test esi, esi
mov ecx, 0x69bfb0
jle 0x616458
lea ebx, [ebx]
mov al, byte [ecx]
xor byte [esp + edx + 0x18], al
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x616453
mov ecx, 0x69bfb0
inc edx
cmp edx, esi
jl 0x616440
mov ecx, dword [esp + 0x64]
mov eax, dword [0x67d988]
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.006245e9
add esp, 0x54
ret
Function at 0x616490
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0x70
mov eax, dword [0x67e540]
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.00616080
push eax
call fcn.00620fc6
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
push ecx
push esi
mov edi, eax
call fcn.00616080
add esp, 8
mov edx, eax
call fcn.00615fd0
add esp, 4
cmp eax, ebx
je 0x616597
cmp dword [eax + 0x38], 3
jne 0x616597
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
jmp 0x6165a2
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0061ed33
mov edi, eax
add esp, 0xc
xor esi, esi
cmp edi, ebx
mov ecx, 0x69bfb0
jle 0x6165d5
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 0x6165d0
mov ecx, 0x69bfb0
inc esi
cmp esi, edi
jl 0x6165b7
mov ecx, dword [esp + 0x80]
mov eax, dword [0x67d988]
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.006245e9
add esp, 0x70
ret
Function at 0x616610
Capabilities:
Contain obfuscated stackstrings
Send data
Send data on socket

Disassembly:
sub esp, 0x220
mov eax, dword [0x67e540]
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 [0x69c618], 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 0x6166ef
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.0061ed33
add esp, 0x14
mov edi, eax
lea esi, [esp + 0x24]
call fcn.006161c0
mov eax, dword [0x67d988]
push 0x10
push 0x69c3c0
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.006245e9
add esp, 0x220
ret
Function at 0x616710
Capabilities:
Check for time delay via gettickcount
Contain obfuscated stackstrings
Send data
Send data on socket

Disassembly:
sub esp, 0x230
mov eax, dword [0x67e540]
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.0061f76f
xor esi, eax
and esi, 0x3fff
mov dword [ebp + 0x28], esi
call sub.kernel32.dll_GetTickCount
mov ecx, dword [0x69c618]
mov dword [ebp + 0x30], eax
mov eax, 1
cmp ecx, eax
mov dword [ebp + 0x34], eax
je 0x616893
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.0061ed33
add esp, 0x1c
mov edi, eax
lea esi, [esp + 0x3c]
call fcn.006161c0
mov eax, dword [0x67d988]
push 0x10
push 0x69c3c0
push ebx
push edi
mov edx, esi
push edx
push eax
call sub.ws2_32.dll_sendto
push edi
call fcn.006243e4
push edi
mov ecx, esi
push ecx
push eax
mov dword [ebp + 0x48], eax
call fcn.0061ed90
add esp, 0x10
mov dword [ebp + 0x4c], edi
pop edi
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
pop ebx
call fcn.006245e9
add esp, 0x230
ret
Function at 0x617e10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x67e540]
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.0061f76f
cdq
xor eax, edx
sub eax, edx
and eax, reloc.wsock32.dll_ntohs
jns 0x617e86
dec eax
or eax, 0xfffffff0
inc eax
mov al, byte [esp + eax + 4]
mov byte [esi + edi], al
inc esi
cmp esi, 0x10
jl 0x617e70
mov ecx, dword [esp + 0x14]
mov byte [esi + edi], 0
pop esi
call fcn.006245e9
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x14
mov eax, dword [0x67e540]
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00610210
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
push edx
call fcn.00618a90
add esp, 0xc
test eax, eax
jne 0x618362
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
call fcn.006245e9
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 0x618401
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2746
jne 0x6183df
push ebx
push edi
push esi
call fcn.00614010
add esp, 0xc
test eax, eax
jne 0x61843b
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x10]
call fcn.006245e9
add esp, 0x14
ret
cmp eax, 0x2738
je 0x61843b
push esi
call fcn.006182e0
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
call fcn.006245e9
add esp, 0x14
ret
mov eax, dword [esi + 0x24]
test eax, eax
je 0x61843b
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.00617b00
add esp, 0xc
push eax
push esi
call fcn.006191a0
add esp, 0x28
test eax, eax
je 0x6183ef
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
mov eax, 1
pop esi
call fcn.006245e9
add esp, 0x14
ret

Function at 0x618940
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x67e540]
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.006245e9
add esp, 0x194
ret
Function at 0x618a00
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 0x618a30
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 0x618a82
test eax, eax
je 0x618a82
mov eax, 1
add esp, 0x10c
ret
xor eax, eax
add esp, 0x10c
ret

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

Function at 0x618af0
Capabilities:
Get hostname
Resolve dns

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x67e540]
mov dword [esp + 0x114], eax
mov eax, dword [ebx + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
je 0x619a57
mov dword [eax + 0x20], esi
mov dword [ebx + 0xc], esi
mov dword [esi + 0x20], 0
mov eax, dword [ebx + 8]
test eax, eax
jne 0x619a6b
mov dword [ebx + 8], esi
inc dword [ebx + 0x10]
call sub.kernel32.dll_GetTickCount
mov dword [esi + 0x1c], eax
cmp dword [ebx], 1
jne 0x619ae1
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 0x619acc
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
mov al, byte [ebx + 0x3c]
mov byte [esp + 0x1f], al
jle 0x619aba
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 0x619b2d
mov al, 0xff
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov ecx, 0xa
jmp 0x619b2d
test byte [esi + 0x14], 4
je 0x619b14
mov eax, dword [str._basicinfo_]
mov ecx, dword [0x649800]
mov edx, dword [0x649804]
mov dword [esp + 0x18], eax
mov al, byte [0x649808]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x24], al
mov ecx, 0xd
jmp 0x619b2d
mov ecx, dword [str._status_]
mov edx, dword [0x6497f4]
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 0x619b55
test byte [esi + 0x15], dl
je 0x619b55
mov eax, dword [esi + 8]
mov dx, word [esi + 0xc]
mov dword [esp + 0xc], eax
mov word [esp + 0xa], dx
jmp 0x619b62
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.006245e9
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x619b90
Capabilities:
Create udp socket

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

Disassembly:
sub esp, 0x84c
mov eax, dword [0x67e540]
mov dword [esp + 0x848], eax
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 4], 0x10
call fcn.00618a30
add esp, 4
test eax, eax
je 0x619f25
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 0x619f23
mov edi, dword [esi + 8]
test edi, edi
mov byte [esp + eax + 0x1c], 0
je 0x619f0f
mov bx, word [esp + 0xe]
mov edx, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [edi]
cmp ecx, edx
jne 0x619ecc
cmp word [edi + 4], bx
je 0x619eeb
cmp ecx, dword [esi + 0x24]
jne 0x619ee2
test byte [edi + 0x15], 2
je 0x619ee2
cmp dword [edi + 8], edx
jne 0x619ee2
cmp word [edi + 0xc], bx
je 0x619eeb
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x619ec0
jmp 0x619f0f
cmp dword [esi], 1
jne 0x619f02
push eax
push esi
lea eax, [esp + 0x24]
mov ebx, edi
call fcn.00619cc0
add esp, 8
jmp 0x619f0f
push esi
lea ebx, [esp + 0x20]
call fcn.00619de0
add esp, 4
mov edx, dword [esi + 0x20]
push edx
call fcn.00618a30
add esp, 4
test eax, eax
jne 0x619e80
pop edi
pop ebx
mov ecx, dword [esp + 0x848]
call fcn.006245e9
add esp, 0x84c
ret

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

Disassembly:
sub esp, 0x94
mov eax, dword [0x67e540]
push esi
mov dword [esp + 0x94], eax
lea esi, [edi + 0xc]
push 0x14
mov eax, esi
call fcn.006131e0
mov ecx, eax
mov eax, dword [0x69ca28]
add esp, 4
test eax, eax
je 0x61a0ef
lea edx, [esp + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x61a0e3
jmp 0x61a103
push ecx
push esi
lea eax, [esp + 0x1c]
push str._s.ms_d.gamespy.com
push eax
call fcn.0061ed33
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 0x61a160
lea edx, [esp + 0x14]
push edx
call sub.ws2_32.dll_gethostbyname
test eax, eax
jne 0x61a155
mov eax, 2
pop esi
mov ecx, dword [esp + 0x90]
call fcn.006245e9
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 0x61a196
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, esi
mov dword [edi + 0x4a0], eax
jne 0x61a196
mov eax, 1
pop esi
mov ecx, dword [esp + 0x90]
call fcn.006245e9
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 0x61a1d8
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.006245e9
add esp, 0x94
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
pop esi
call fcn.006245e9
add esp, 0x94
ret