joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473320
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571193
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5f7448]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x24]
call fcn.0046c380
mov dword [ebp - 4], 0
jmp 0x473360
movzx ecx, word [esi + 0xa8]
test cx, cx
jne 0x473379
cmp dword [esi + 0xac], 1
je 0x4734f6
mov eax, dword [esi + 0xac]
test eax, eax
jne 0x4733d9
movzx eax, word [esi + 0xb8]
cmp eax, 0x7b
jne 0x47339c
cmp dword [esi + 0xbc], 1
je 0x4734cf
cmp eax, 0x3f
jne 0x4733ae
cmp dword [esi + 0xbc], 1
je 0x4734cf
cmp eax, 0x2a
jne 0x4733c0
cmp dword [esi + 0xbc], 1
je 0x4734cf
cmp eax, 0x2b
jne 0x4733d2
cmp dword [esi + 0xbc], 1
je 0x4734cf
mov eax, ecx
jmp 0x4734b0
cmp eax, 1
jne 0x473360
mov eax, ecx
cmp eax, 0x29
je 0x4734f6
cmp eax, 0x7c
je 0x4734f6
cmp dword [ebp - 0x1c], 0
jg 0x473500
cmp eax, 0x28
je 0x47356e
cmp eax, 0x5b
je 0x473562
cmp eax, 0x2e
je 0x473562
cmp eax, 0x77
je 0x473562
cmp eax, 0x57
je 0x473562
cmp eax, 0x73
je 0x473562
cmp eax, 0x53
je 0x473562
cmp eax, 0x64
je 0x473562
cmp eax, 0x44
je 0x473562
cmp eax, 0x5e
je 0x473556
cmp eax, 0x24
je 0x473556
cmp eax, 0x41
je 0x473556
cmp eax, 0x5a
je 0x473556
cmp eax, 0x7a
je 0x473556
cmp eax, 0x62
je 0x473556
cmp eax, 0x42
je 0x473556
cmp eax, 0x47
je 0x473556
cmp eax, 0x5c
je 0x47354a
cmp eax, 0x6b
je 0x47354a
cmp eax, 0x67
je 0x47354a
push 1
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.0046eed0
mov ecx, esi
call fcn.004774e0
jmp 0x473360
cmp dword [ebp - 0x1c], 0
jne 0x4734fa
movzx eax, word [esi + 0xa8]
push 1
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.0046eed0
mov ecx, esi
call fcn.004774e0
cmp dword [ebp - 0x1c], 0
jle 0x47358b
push 0x20
call fcn.004ad19b
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x47357a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, edx
and ecx, 8
push ecx
and edx, 0x10
push edx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.00473c80
push eax
mov ecx, edi
call fcn.0046d5e0
mov edi, eax
mov byte [ebp - 4], 0
push edi
lea ecx, [esi + 0x14]
call fcn.00477680
jmp 0x473596
push dword [ebp + 8]
mov ecx, esi
call fcn.0046fb10
jmp 0x473594
push dword [ebp + 8]
mov ecx, esi
call fcn.0046ffc0
jmp 0x473594
push dword [ebp + 8]
mov ecx, esi
call fcn.00470820
jmp 0x473594
push dword [ebp + 8]
mov ecx, esi
call fcn.00471d60
jmp 0x473594
xor edi, edi
mov byte [ebp - 4], 0
push edi
lea ecx, [esi + 0x14]
call fcn.00477680
jmp 0x473596
push 0
mov ecx, esi
call fcn.00475420
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0046d920
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x478df0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5718c0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x5c], xmm0
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x54], xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
push 1
push dword [0x601f70]
lea ecx, [ebp - 0x68]
call fcn.0049bd60
mov byte [ebp - 4], 1
push esi
lea eax, [ebp - 0x6c]
push eax
mov ecx, 0x601f78
call fcn.00479920
mov eax, dword [eax]
cmp eax, dword [0x601f78]
je 0x478ea2
movq xmm0, qword [eax + 0x28]
movq qword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [ebp - 0x5c], xmm0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0049bd90
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x54]
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x5c]
jmp 0x478f5e
lea ecx, [ebp - 0x68]
call fcn.0049be10
cmp dword [esi + 0x14], 0x10
jb 0x478eb4
mov eax, dword [esi]
jmp 0x478eb6
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x478f21
movsx ecx, word [eax + 0xa]
push ecx
mov eax, dword [eax + 0xc]
push dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.004ae030
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.0049bdf0
push 0
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.00478360
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x601f78
call fcn.00479990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00478960
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x54], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [ebp - 0x5c], xmm0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0049bd90
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x5c]
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x54]
jmp 0x478f5e
movq qword [eax + 8], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret
Function at 0x479f40
Capabilities:
Create raw socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
call fcn.0047aaa0
test eax, eax
je 0x479f80
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [edi + 0x18], 0
jne 0x479fcc
cmp dword [edi + 8], 0
jne 0x479fbf
cmp eax, 1
je 0x479fbf
cmp eax, 6
jne 0x479fad
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x47a008
cmp eax, 0x11
jne 0x47a00b
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x47a008
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x47a008
cmp dword [edi + 8], 0
jne 0x479ff7
cmp eax, 1
je 0x479ff7
cmp eax, 6
jne 0x479fe7
push 1
push 0
push 0
push eax
push 1
jmp 0x47a000
cmp eax, 0x11
jne 0x47a00b
push 1
push 0
push 0
push eax
push 2
jmp 0x47a000
push 1
push 0
push 0
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
jne 0x47a046
push str.Create
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
jmp 0x47a0b6
cmp dword [edi + 8], 0
je 0x47a0a2
mov dword [ebp - 0x30], 1
push 4
lea ecx, [ebp - 0x30]
push ecx
push 2
push 0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.00478a50
cmp esi, eax
jne 0x47a0a2
push str.Create
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
jmp 0x47a0b6
mov eax, 1
jmp 0x47a0b8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 4
Function at 0x47a100
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571be8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00479da0
test eax, eax
je 0x47a1ac
mov dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x47a194
push str.Bind
lea ecx, [ebp - 0x3c]
call fcn.00405090
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [esi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004050f0
jmp 0x47a1ac
push dword [ebp - 0x22]
call dword [sym.imp.WS2_32.dll_htons]
jmp 0x47a1ae
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571c40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0047aaa0
test eax, eax
je 0x47a43e
test edi, edi
je 0x47a43e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47a43e
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 2
cmp byte [esi + 0xc], 6
je 0x47a3cb
mov dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call fcn.00478a50
cmp edi, eax
je 0x47a3de
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x1c], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x24], xmm0
jmp 0x47a3de
push eax
push ecx
push edi
mov ecx, esi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call fcn.00478a50
cmp edi, eax
jne 0x47a43a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x47a43a
lea ecx, [ebp - 0x2c]
cmp dword [ebp + 0x10], 0
jne 0x47a40c
push str.Receive
call fcn.00405090
mov byte [ebp - 4], 1
jmp 0x47a41a
push str.Peek
call fcn.00405090
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [esi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
mov eax, edi
jmp 0x47a45d
call fcn.00478a50
jmp 0x47a45d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47a580
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
call fcn.0047aaa0
test eax, eax
je 0x47a6c9
test edi, edi
je 0x47a6c9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47a6c9
cmp byte [esi + 0xc], 6
je 0x47a677
mov dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push 0
push eax
push edi
mov ecx, esi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call fcn.00478a50
cmp edi, eax
je 0x47a634
mov ecx, dword [ebp - 0x38]
mov dword [ebx], ecx
push dword [ebp - 0x3a]
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x4c]
mov word [ecx], ax
mov eax, edi
jmp 0x47a6e8
push str.Receive
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [esi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
mov dword [ebx], 0
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov word [ecx], ax
mov eax, edi
jmp 0x47a6e8
push str.Cant_run_on_TCP_socket_
lea ecx, [ebp - 0x44]
call fcn.00405090
mov byte [ebp - 4], 2
push str.Receive
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 3
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [esi + 4]
add ecx, eax
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 0x14]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004050f0
call fcn.00478a50
jmp 0x47a6e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47a710
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00479da0
test eax, eax
je 0x47a7bd
mov dword [ebp - 0x30], 1
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push 0xffff
mov ecx, esi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x47a7a9
push str.ReuseAddress
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [esi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
jmp 0x47a7bd
mov eax, 1
jmp 0x47a7bf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 0
call fcn.00479da0
test eax, eax
jne 0x47a8f0
call fcn.00478a50
jmp 0x47a9b6
cmp dword [ebp + 0x10], 0
je 0x47a8fa
test esi, esi
je 0x47a8e6
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
mov eax, 2
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
call fcn.00478a50
neg eax
sbb esi, esi
inc esi
call fcn.00478a50
cmp esi, eax
je 0x47a954
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x40]
mov ecx, edi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
call fcn.00478a50
cmp esi, eax
jne 0x47a99a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x47a99a
push str.Send
lea ecx, [ebp - 0x3c]
call fcn.00405090
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004050f0
mov eax, esi
jmp 0x47a9b6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47aef0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00479da0
test eax, eax
je 0x47b037
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
mov eax, 2
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
mov dword [ebp - 0x40], esi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
call fcn.00478a50
cmp esi, eax
jne 0x47afbd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x47afa4
push str.Connect
lea ecx, [ebp - 0x3c]
call fcn.00405090
mov byte [ebp - 4], 1
jmp 0x47afce
mov ebx, 1
mov dword [ebp - 0x44], ebx
call fcn.00478a50
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x40], esi
jmp 0x47afee
push str.Connect
lea ecx, [ebp - 0x3c]
call fcn.00405090
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004050f0
call fcn.00478a50
cmp esi, eax
je 0x47b016
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
test eax, eax
jne 0x47b00b
push 1
mov ecx, edi
call fcn.004a0300
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0047a9e0
test ebx, ebx
jne 0x47b037
call fcn.00478a50
xor ecx, ecx
cmp esi, eax
setne cl
mov eax, ecx
jmp 0x47b039
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571f88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00479da0
test eax, eax
je 0x47b354
push 0
push dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
call fcn.00478a50
cmp edi, eax
jne 0x47b343
push str.Send
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [esi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
mov eax, edi
jmp 0x47b356
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 8
Function at 0x47b3f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00479da0
test eax, eax
je 0x47b4ff
xor eax, eax
cmp dword [ebp + 8], eax
sete al
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
push eax
push 1
push 6
mov ecx, edi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.00478a50
cmp esi, eax
jne 0x47b4eb
push str.Failed_to_set_nagle
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 1
push str.SetNagle
lea ecx, [ebp - 0x44]
call fcn.00405090
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x44]
push edx
call dword [eax + 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
push str.SetNagle
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
jmp 0x47b4ff
mov eax, 1
jmp 0x47b501
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 4
Function at 0x47b520
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572008
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00479da0
test eax, eax
je 0x47b62a
push 4
lea eax, [ebp + 8]
push eax
push 0x1002
push 0xffff
mov ecx, edi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.00478a50
cmp esi, eax
jne 0x47b616
push str.Failed_to_set_receive_buffer_size
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 1
push str.SetSocketReceiveBuffer
lea ecx, [ebp - 0x44]
call fcn.00405090
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x44]
push edx
call dword [eax + 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
push str.SetSocketReceiveBuffer
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
jmp 0x47b62a
mov eax, 1
jmp 0x47b62c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 4
Function at 0x47b650
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572048
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00479da0
test eax, eax
je 0x47b75a
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
mov ecx, edi
call fcn.0047a1d0
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.00478a50
cmp esi, eax
jne 0x47b746
push str.Failed_to_set_outgoing_buffer_size
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 1
push str.SetSocketSendBuffer
lea ecx, [ebp - 0x44]
call fcn.00405090
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x44]
push edx
call dword [eax + 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004050f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
push str.SetSocketSendBuffer
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [edi + 4]
add ecx, eax
call fcn.00479170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004050f0
jmp 0x47b75a
mov eax, 1
jmp 0x47b75c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 4