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

Disassembly:
sub esp, 0x10
mov edx, dword [0x7ccbec]
mov ecx, dword [0x7ccbe8]
push edi
push 0x10
mov edi, eax
lea eax, [esp + 8]
inc edx
add ecx, esi
push 0
push eax
mov dword [0x7ccbec], edx
mov dword [0x7ccbe8], ecx
call fcn.00626100
mov eax, dword [edi + 4]
add esp, 0xc
push eax
mov word [esp + 8], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov edi, dword [edi]
push edi
mov word [esp + 0xa], ax
call dword [sym.imp.WSOCK32.dll_htonl]
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 8]
push ecx
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x30]
push esi
push edx
push ecx
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
pop edi
jg 0x640d4d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add esp, 0x10
ret

Function at 0x640d60
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x264
push esi
mov esi, dword [esp + 0x270]
push edi
push 0
push 0
push 0
push 0
push 2
push 2
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 4], 0
mov dword [esi + 0x10], 1
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, eax
cmp edi, 0xffffffff
je 0x640e4f
push ebx
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0x260
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x4004747f
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push edi
mov ebx, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp ebx, 0xffffffff
je 0x640e4e
mov ecx, dword [esp + 0xc]
mov eax, 0xaf286bcb
mul ecx
mov eax, dword [esp + 0x274]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
test eax, eax
jge 0x640e23
xor eax, eax
test ecx, ecx
jle 0x640e1d
lea edx, [esp + 0x10]
lea esp, [esp]
test byte [edx], 4
je 0x640e1d
inc eax
add edx, 0x4c
cmp eax, ecx
jl 0x640e10
cmp eax, ecx
jne 0x640e23
xor eax, eax
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
mov edi, eax
imul edi, edi, 0x4c
mov edx, dword [esp + edi + 0x18]
push edx
call ebx
mov dword [esi], eax
mov eax, dword [esp + edi + 0x48]
push eax
call ebx
mov ebx, dword [esi]
mov ecx, eax
mov dword [esi + 4], eax
and ecx, ebx
not eax
or ecx, eax
mov dword [esi + 8], ecx
pop ebx
pop edi
pop esi
add esp, 0x264
ret
Function at 0x65b5d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0062a640
mov ecx, esi
mov ebx, eax
call fcn.00640030
mov al, byte [ebx]
cmp al, 0xfd
jne 0x65b65d
cmp byte [ebx + 1], 0xfc
jne 0x65b65d
cmp byte [ebx + 2], 0x1e
jne 0x65b65d
cmp byte [ebx + 3], 0x66
jne 0x65b65d
cmp byte [ebx + 4], 0x6a
jne 0x65b65d
cmp byte [ebx + 5], 0xb2
jne 0x65b65d
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.00640030
push eax
call sub.WSOCK32.dll_htons
mov ecx, ebx
mov word [esp + 0xe], ax
call fcn.0062a640
push eax
call sub.WSOCK32.dll_htonl
mov ecx, edi
mov dword [esp + 0x10], eax
call fcn.0065add0
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00640030
push eax
mov ecx, esi
call fcn.0062a640
push eax
call fcn.0066cc70
add esp, 0xc
jmp 0x65b6c9
cmp al, 0xfe
jne 0x65b6e5
cmp byte [ebx + 1], 0xfd
jne 0x65b6e5
mov eax, dword [edi + 0x3b8]
test eax, eax
je 0x65b6e5
mov ebx, dword [esp + 0x20]
mov ecx, ebx
mov word [esp + 0xc], 2
call fcn.00640030
push eax
call sub.WSOCK32.dll_htons
mov ecx, ebx
mov word [esp + 0xe], ax
call fcn.00640040
push eax
call sub.WSOCK32.dll_inet_addr
mov ecx, edi
mov dword [esp + 0x10], eax
call fcn.0065add0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00640030
push eax
mov ecx, esi
call fcn.0062a640
push eax
push 0
call fcn.0066b6a0
add esp, 0x10
mov ecx, edi
call fcn.0065ade0
mov ecx, ebx
call fcn.00640050
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x65ba10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push 0x30
xor ebx, ebx
lea eax, [esi + 0x234]
push ebx
push eax
mov dword [esi + 0x264], 1
call fcn.00626100
lea ebp, [esi + 0x278]
lea eax, [esi + 0x1ab4]
mov edx, 0x799048
add esp, 0xc
mov dword [ebp], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x274], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x65b830
lea eax, [esi + 0x1ad4]
mov edx, 0x799148
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x65b847
push 0x799048
call fcn.0066f100
add esp, 4
call fcn.0066f290
cmp eax, ebx
jne 0x65b885
push 5
call fcn.00628190
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
jne 0x65b941
call fcn.0066f290
cmp eax, ebx
je 0x65b867
cmp eax, 1
jne 0x65b941
push edi
push ebx
push ebx
call fcn.0066e5f0
mov edi, eax
add esp, 8
cmp edi, 6
jne 0x65b8c1
call fcn.0066ee30
push 5
mov edi, eax
call fcn.00628190
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
jne 0x65b940
cmp edi, 6
je 0x65b8a0
cmp edi, ebx
jne 0x65b940
push 0x40
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00626100
push 0x1d
lea edx, [esp + 0x20]
push 0x881064
push edx
call fcn.00625cb0
mov eax, dword [esi + 0xf0]
mov dword [0x784820], eax
mov ecx, dword [esi + 0xf4]
push ebx
mov dword [0x784824], ecx
call fcn.0066da30
push 0x784828
lea edx, [esp + 0x30]
push edx
push eax
mov dword [0x78481c], eax
call fcn.0066cf70
push ebp
push 0x65b510
mov dword [0x784818], eax
mov eax, dword [esi + 0xf0]
push 0x784828
push eax
push 1
call fcn.0066e830
add esp, 0x3c
mov dword [esi + 0x264], 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
lea eax, [ecx + 0x27c]
push eax
push 0x65b530
push 0
mov dword [eax], 0
mov dword [ecx + 0x268], 1
mov dword [ecx + 0x26c], 0
mov eax, dword [ecx + 0xf0]
push 3
push eax
push 1
call fcn.0066f0a0
add esp, 0x18
ret
push esi
mov esi, ecx
call fcn.0066d020
test eax, eax
je 0x65ba3e
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x65ba2c
pop esi
jmp fcn.0066eba0
mov dword [esi + 0x264], 4
mov ecx, esi
pop esi
jmp 0x65b950
mov dword [esi + 0x264], 1
pop esi
ret
push esi
mov esi, ecx
call fcn.0066d020
test eax, eax
je 0x65baee
mov ecx, dword [esi + 0x270]
xor eax, eax
cmp ecx, eax
je 0x65bb06
cmp dword [esi + 0x280], eax
jne 0x65bad6
pop esi
jmp fcn.0066eba0
mov dword [esi + 0x270], eax
mov dword [esi + 0x274], 1
mov ecx, esi
pop esi
jmp 0x65b950
xor eax, eax
mov dword [esi + 0x264], 1
mov dword [esi + 0x270], eax
mov dword [esi + 0x274], eax
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x264]
dec eax
cmp eax, 3
ja case.default.0x65cfff
jmp dword [eax*4 + 0x65d028]
mov ecx, esi
pop esi
jmp 0x65b7d0
mov ecx, esi
pop esi
jmp 0x65ba10
mov ecx, esi
call fcn.0065ba50
mov ecx, esi
pop esi
jmp 0x65bab0
pop esi
ret
Function at 0x65ba50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
call fcn.0066d020
test eax, eax
je 0x65ba88
mov ecx, dword [esi + 0x268]
xor eax, eax
cmp ecx, eax
je 0x65baa0
cmp dword [esi + 0x27c], eax
jne 0x65ba76
pop esi
jmp fcn.0066eba0
mov dword [esi + 0x26c], 1
mov dword [esi + 0x268], eax
pop esi
ret
xor eax, eax
mov dword [esi + 0x264], 1
mov dword [esi + 0x26c], eax
mov dword [esi + 0x268], eax
pop esi
ret
Function at 0x65bab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push 0x30
xor ebx, ebx
lea eax, [esi + 0x234]
push ebx
push eax
mov dword [esi + 0x264], 1
call fcn.00626100
lea ebp, [esi + 0x278]
lea eax, [esi + 0x1ab4]
mov edx, 0x799048
add esp, 0xc
mov dword [ebp], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x274], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x65b830
lea eax, [esi + 0x1ad4]
mov edx, 0x799148
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x65b847
push 0x799048
call fcn.0066f100
add esp, 4
call fcn.0066f290
cmp eax, ebx
jne 0x65b885
push 5
call fcn.00628190
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
jne 0x65b941
call fcn.0066f290
cmp eax, ebx
je 0x65b867
cmp eax, 1
jne 0x65b941
push edi
push ebx
push ebx
call fcn.0066e5f0
mov edi, eax
add esp, 8
cmp edi, 6
jne 0x65b8c1
call fcn.0066ee30
push 5
mov edi, eax
call fcn.00628190
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
jne 0x65b940
cmp edi, 6
je 0x65b8a0
cmp edi, ebx
jne 0x65b940
push 0x40
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00626100
push 0x1d
lea edx, [esp + 0x20]
push 0x881064
push edx
call fcn.00625cb0
mov eax, dword [esi + 0xf0]
mov dword [0x784820], eax
mov ecx, dword [esi + 0xf4]
push ebx
mov dword [0x784824], ecx
call fcn.0066da30
push 0x784828
lea edx, [esp + 0x30]
push edx
push eax
mov dword [0x78481c], eax
call fcn.0066cf70
push ebp
push 0x65b510
mov dword [0x784818], eax
mov eax, dword [esi + 0xf0]
push 0x784828
push eax
push 1
call fcn.0066e830
add esp, 0x3c
mov dword [esi + 0x264], 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
lea eax, [ecx + 0x27c]
push eax
push 0x65b530
push 0
mov dword [eax], 0
mov dword [ecx + 0x268], 1
mov dword [ecx + 0x26c], 0
mov eax, dword [ecx + 0xf0]
push 3
push eax
push 1
call fcn.0066f0a0
add esp, 0x18
ret
push esi
mov esi, ecx
call fcn.0066d020
test eax, eax
je 0x65ba3e
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x65ba2c
pop esi
jmp fcn.0066eba0
mov dword [esi + 0x264], 4
mov ecx, esi
pop esi
jmp 0x65b950
mov dword [esi + 0x264], 1
pop esi
ret
push esi
mov esi, ecx
call fcn.0066d020
test eax, eax
je 0x65baee
mov ecx, dword [esi + 0x270]
xor eax, eax
cmp ecx, eax
je 0x65bb06
cmp dword [esi + 0x280], eax
jne 0x65bad6
pop esi
jmp fcn.0066eba0
mov dword [esi + 0x270], eax
mov dword [esi + 0x274], 1
mov ecx, esi
pop esi
jmp 0x65b950
xor eax, eax
mov dword [esi + 0x264], 1
mov dword [esi + 0x270], eax
mov dword [esi + 0x274], eax
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x264]
dec eax
cmp eax, 3
ja case.default.0x65cfff
jmp dword [eax*4 + 0x65d028]
mov ecx, esi
pop esi
jmp 0x65b7d0
mov ecx, esi
pop esi
jmp 0x65ba10
mov ecx, esi
call fcn.0065ba50
mov ecx, esi
pop esi
jmp 0x65bab0
pop esi
ret
Function at 0x65cff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push 0x30
xor ebx, ebx
lea eax, [esi + 0x234]
push ebx
push eax
mov dword [esi + 0x264], 1
call fcn.00626100
lea ebp, [esi + 0x278]
lea eax, [esi + 0x1ab4]
mov edx, 0x799048
add esp, 0xc
mov dword [ebp], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x274], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x65b830
lea eax, [esi + 0x1ad4]
mov edx, 0x799148
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x65b847
push 0x799048
call fcn.0066f100
add esp, 4
call fcn.0066f290
cmp eax, ebx
jne 0x65b885
push 5
call fcn.00628190
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
jne 0x65b941
call fcn.0066f290
cmp eax, ebx
je 0x65b867
cmp eax, 1
jne 0x65b941
push edi
push ebx
push ebx
call fcn.0066e5f0
mov edi, eax
add esp, 8
cmp edi, 6
jne 0x65b8c1
call fcn.0066ee30
push 5
mov edi, eax
call fcn.00628190
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
jne 0x65b940
cmp edi, 6
je 0x65b8a0
cmp edi, ebx
jne 0x65b940
push 0x40
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00626100
push 0x1d
lea edx, [esp + 0x20]
push 0x881064
push edx
call fcn.00625cb0
mov eax, dword [esi + 0xf0]
mov dword [0x784820], eax
mov ecx, dword [esi + 0xf4]
push ebx
mov dword [0x784824], ecx
call fcn.0066da30
push 0x784828
lea edx, [esp + 0x30]
push edx
push eax
mov dword [0x78481c], eax
call fcn.0066cf70
push ebp
push 0x65b510
mov dword [0x784818], eax
mov eax, dword [esi + 0xf0]
push 0x784828
push eax
push 1
call fcn.0066e830
add esp, 0x3c
mov dword [esi + 0x264], 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
lea eax, [ecx + 0x27c]
push eax
push 0x65b530
push 0
mov dword [eax], 0
mov dword [ecx + 0x268], 1
mov dword [ecx + 0x26c], 0
mov eax, dword [ecx + 0xf0]
push 3
push eax
push 1
call fcn.0066f0a0
add esp, 0x18
ret
push esi
mov esi, ecx
call fcn.0066d020
test eax, eax
je 0x65ba3e
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x65ba2c
pop esi
jmp fcn.0066eba0
mov dword [esi + 0x264], 4
mov ecx, esi
pop esi
jmp 0x65b950
mov dword [esi + 0x264], 1
pop esi
ret
push esi
mov esi, ecx
call fcn.0066d020
test eax, eax
je 0x65baee
mov ecx, dword [esi + 0x270]
xor eax, eax
cmp ecx, eax
je 0x65bb06
cmp dword [esi + 0x280], eax
jne 0x65bad6
pop esi
jmp fcn.0066eba0
mov dword [esi + 0x270], eax
mov dword [esi + 0x274], 1
mov ecx, esi
pop esi
jmp 0x65b950
xor eax, eax
mov dword [esi + 0x264], 1
mov dword [esi + 0x270], eax
mov dword [esi + 0x274], eax
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x264]
dec eax
cmp eax, 3
ja case.default.0x65cfff
jmp dword [eax*4 + 0x65d028]
mov ecx, esi
pop esi
jmp 0x65b7d0
mov ecx, esi
pop esi
jmp 0x65ba10
mov ecx, esi
call fcn.0065ba50
mov ecx, esi
pop esi
jmp 0x65bab0
pop esi
ret
Function at 0x66ad10
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov edi, eax
xor eax, eax
lea ecx, [esp + 0x14]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x66ad22
xor dl, dl
xor eax, eax
lea ecx, [esp + 0x14]
mov esi, 0x100
lea esp, [esp]
mov ebx, dword [esp + 0x118]
movzx ebp, byte [ecx]
movzx edx, dl
movzx ebx, byte [edx + ebx]
add ebx, eax
add ebx, ebp
and ebx, 0x800000ff
jns 0x66ad65
dec ebx
or ebx, 0xffffff00
inc ebx
lea eax, [edx + 1]
cdq
idiv edi
movzx eax, bl
mov bl, byte [ecx]
mov byte [esp + 0x13], bl
mov bl, byte [esp + eax + 0x14]
mov byte [ecx], bl
mov bl, byte [esp + 0x13]
inc ecx
dec esi
mov byte [esp + eax + 0x14], bl
jne 0x66ad40
mov eax, dword [esp + 0x120]
xor ebp, ebp
test eax, eax
jle 0x66ae30
xor esi, esi
xor edi, edi
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x11c]
mov dl, byte [eax + ecx]
movzx ecx, dl
lea ecx, [ecx + esi + 1]
and ecx, 0x800000ff
jns 0x66adc1
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
movzx ecx, byte [esp + esi + 0x14]
add ecx, edi
and ecx, 0x800000ff
jns 0x66addb
dec ecx
or ecx, 0xffffff00
inc ecx
movzx edi, cl
mov bl, byte [esp + edi + 0x14]
mov cl, byte [esp + esi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], cl
movzx ecx, byte [esp + esi + 0x14]
movzx ebx, byte [esp + edi + 0x14]
add ecx, ebx
and ecx, 0x800000ff
jns 0x66ae0a
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov cl, byte [esp + ecx + 0x14]
xor cl, dl
mov edx, dword [esp + 0x11c]
inc ebp
mov byte [eax + edx], cl
mov ecx, dword [esp + 0x120]
movsx eax, bp
cmp eax, ecx
jl 0x66ada0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x66b920
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x804
mov eax, dword [esi + 0x84]
push 0x10
lea ecx, [esi + 0xcc]
push ecx
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.WSOCK32.dll_sendto
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0xb0], eax
add esp, 0x804
ret
Function at 0x66bbf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [esi + 0xc4]
test eax, eax
mov dword [esp], 0x10
je 0x66bc5f
mov eax, dword [esi]
push eax
call fcn.006748d0
add esp, 4
test eax, eax
je 0x66bc5f
mov eax, dword [esi]
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0xff
push 0x798b20
push eax
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
je 0x66bc50
lea ecx, [esp + 4]
push ecx
push eax
push 0x798b20
push esi
mov byte [eax + 0x798b20], 0
call fcn.0066b6a0
add esp, 0x10
mov edx, dword [esi]
push edx
call fcn.006748d0
add esp, 4
test eax, eax
jne 0x66bc13
add esp, 0x14
ret
Function at 0x66c620
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
sub esp, 0x6c
mov eax, dword [0x744d4c]
mov cx, word [0x744d50]
mov dl, byte [esi + 0xc]
push ebx
push ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
push edi
push eax
mov word [esp + 0x28], cx
mov byte [esp + 0x2a], 2
mov byte [esp + 0x2b], 0
mov byte [esp + 0x31], dl
call sub.WSOCK32.dll_htonl
cmp dword [esi + 4], 0xffffffff
setne cl
mov dword [esp + 0x28], eax
mov byte [esp + 0x2e], cl
call fcn.0066c5b0
push eax
call sub.WSOCK32.dll_ntohl
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x2f], dl
mov ecx, eax
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esp + 0x32], al
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], dl
mov byte [esp + 0x33], 0
mov byte [esp + 0x34], 0
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x95ff60]
mov byte [esp + eax + 0x35], cl
inc eax
test cl, cl
jne 0x66c6a0
mov eax, 0x95ff60
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x66c6b7
sub eax, edx
lea edi, [eax + 0x16]
mov al, byte [esp + 0x2e]
test al, al
je 0x66c70e
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x66c70e
mov ebx, dword [0x798e2c]
mov ebp, dword [esi + 4]
push 0x6cfd
mov byte [esp + 0x30], cl
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htons
push 0x10
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push eax
push 0
push edi
lea ecx, [esp + 0x30]
push ecx
push ebp
mov dword [esp + 0x2c], ebx
call sub.WSOCK32.dll_sendto
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x66c751
mov ebp, dword [0x798e2c]
mov ebx, dword [esi]
push 0x6cfd
mov byte [esp + 0x30], 1
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htons
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
mov word [esp + 0x1e], ax
push edi
lea eax, [esp + 0x30]
push eax
push ebx
mov dword [esp + 0x2c], ebp
call sub.WSOCK32.dll_sendto
mov al, byte [esp + 0x2e]
test al, al
je 0x66c75e
mov eax, dword [esi + 4]
jmp 0x66c760
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], 0x10
call sub.WSOCK32.dll_getsockname
mov edx, dword [esp + 0x12]
inc eax
neg eax
sbb eax, eax
and eax, edx
push eax
call sub.WSOCK32.dll_ntohs
mov byte [esp + 0x33], ah
mov byte [esp + 0x34], al
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x66c7d4
mov ebx, dword [0x798e30]
mov ebp, dword [esi]
push 0x6cfd
mov byte [esp + 0x30], 2
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htons
push 0x10
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push eax
push 0
push edi
lea ecx, [esp + 0x30]
push ecx
push ebp
mov dword [esp + 0x2c], ebx
call sub.WSOCK32.dll_sendto
call sub.KERNEL32.dll_GetTickCount
pop edi
add eax, 0x1f4
pop ebp
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 0x1e
pop ebx
add esp, 0x6c
ret
Function at 0x66c7f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x24
mov edx, dword [esi + 8]
mov eax, dword [0x744d4c]
mov cx, word [0x744d50]
push ebp
push edi
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
mov byte [esp + 0x22], 2
mov byte [esp + 0x23], 7
call sub.WSOCK32.dll_htonl
xor ecx, ecx
mov cx, word [esi + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x24], eax
push ecx
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 0x10]
mov ebp, dword [esi + 4]
mov dl, byte [esi + 0x32]
cmp ecx, 2
mov word [esp + 0x28], ax
setne al
cmp ebp, 0xffffffff
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2b], al
jne 0x66c857
mov ebp, dword [esi]
mov edi, dword [esi + 0x2c]
xor eax, eax
mov ax, word [esi + 0x30]
mov word [esp + 8], 2
push eax
call sub.WSOCK32.dll_htons
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x14
lea edx, [esp + 0x28]
push edx
push ebp
mov word [esp + 0x22], ax
mov dword [esp + 0x24], edi
call sub.WSOCK32.dll_sendto
call sub.KERNEL32.dll_GetTickCount
add eax, 0x2bc
pop edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 0x14
pop ebp
add esp, 0x24
ret

Function at 0x66c8b0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [0x798e2c]
test eax, eax
push esi
jne 0x66c8e2
mov eax, dword [str.natneg1.codeusa.net]
push eax
mov esi, eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x66c8dd
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x66c8dd
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [0x798e2c], eax
mov eax, dword [0x798e30]
test eax, eax
jne 0x66c913
mov eax, dword [str.natneg2.codeusa.net]
push eax
mov esi, eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x66c90e
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x66c90e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [0x798e30], eax
mov ecx, dword [0x798e2c]
test ecx, ecx
pop esi
je 0x66c928
test eax, eax
je 0x66c928
mov eax, 1
ret
xor eax, eax
ret

Function at 0x66c930
Capabilities:
Create udp socket

Disassembly:
cmp dword [0x95ff48], 1
je 0x66c93f
mov eax, 2
ret
push esi
call fcn.0066c500
mov esi, eax
call fcn.0066c8b0
test eax, eax
jne 0x66c957
mov eax, 3
pop esi
ret
push ebx
xor ebx, ebx
cmp esi, ebx
jne 0x66c966
pop ebx
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x11
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x24]
push 2
push 2
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
mov dword [esi + 0x20], ebx
mov byte [esi + 0x32], bl
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], bx
mov dword [esi + 0x24], ebx
jne 0x66c9c3
push edi
mov edi, esi
call fcn.0066c560
pop edi
pop ebx
mov eax, 2
pop esi
ret
call fcn.0066c620
pop ebx
xor eax, eax
pop esi
ret
Function at 0x66ca00
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x28
push esi
push edi
mov edi, eax
mov eax, dword [0x744d4c]
mov esi, ecx
mov cx, word [0x744d50]
mov dl, byte [esi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
push eax
mov word [esp + 0x20], cx
mov byte [esp + 0x22], 2
mov byte [esp + 0x23], 6
mov byte [esp + 0x29], dl
call sub.WSOCK32.dll_htonl
xor ecx, ecx
mov cx, word [edi + 2]
mov dword [esp + 0x20], eax
push ecx
call sub.WSOCK32.dll_ntohs
mov edi, dword [edi + 4]
mov esi, dword [esi]
mov word [esp + 8], 2
push eax
call sub.WSOCK32.dll_htons
push 0x10
lea edx, [esp + 0xc]
push edx
push 0
mov word [esp + 0x16], ax
push 0x15
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x24], edi
call sub.WSOCK32.dll_sendto
pop edi
pop esi
add esp, 0x28
ret

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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, eax
movzx eax, byte [edi + 7]
dec eax
push esi
mov esi, ecx
je 0x66cc0a
dec eax
jne 0x66cc5d
xor eax, eax
mov byte [edi + 7], 3
mov ax, word [ebx + 2]
push eax
call sub.WSOCK32.dll_ntohs
mov ebx, dword [ebx + 4]
mov esi, dword [esi]
mov word [esp + 8], 2
push eax
call sub.WSOCK32.dll_htons
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x15
push edi
push esi
mov word [esp + 0x22], ax
mov dword [esp + 0x24], ebx
call sub.WSOCK32.dll_sendto
pop esi
pop ebx
add esp, 0x10
ret
mov al, byte [edi + 0xc]
cmp al, 2
ja 0x66cc5d
movzx edx, al
mov eax, 1
mov dword [esi + edx*4 + 0x14], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x66cc5d
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x66cc5d
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x66cc5d
cmp dword [esi + 4], 0xffffffff
je 0x66cc3f
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x66cc5d
mov dword [esi + 0x10], eax
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esi + 0x10]
add eax, 0xea60
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x3c]
push eax
push ecx
call dword [esi + 0x34]
add esp, 8
pop esi
pop ebx
add esp, 0x10
ret