Function at 0x466520
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x66bf78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebx]
push edi
mov edi, dword [eax + 8]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x10c], esi
push eax
mov dword [ebp - 0x108], 0x1a
mov dword [ebp - 0x118], 0x80
call fcn.00474510
test eax, eax
jne 0x46694b
movzx eax, byte [edi + 0x19]
sub eax, 6
je 0x466599
sub eax, 0xb
je 0x466599
sub eax, 0x73
je 0x466599
xor eax, eax
jmp 0x46659d
movzx eax, word [edi + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x102], ax
mov eax, dword [ebp - 0x110]
add eax, 0x10
push eax
push esi
push esi
push dword [ebp - 0x114]
lea eax, [ebp - 0x104]
push eax
push 6
call fcn.0047ade0
add esp, 0x18
cmp esi, 0x271d
jg 0x466628
je 0x466611
test esi, esi
je 0x4665fc
cmp esi, 0x7b
jne case.0x46663e.10036
mov esi, 2
mov dword [ebp - 0x108], 0xa
lea ecx, [esi + 1]
jmp 0x466708
mov ecx, 2
mov esi, 1
mov dword [ebp - 0x108], ecx
jmp 0x466708
mov esi, 2
mov dword [ebp - 0x108], 0x11
lea ecx, [esi + 1]
jmp 0x466708
add esi, 0xffffd8cd
cmp esi, 0x1e
ja case.0x46663e.10036
movzx eax, byte [esi + 0x4669a0]
jmp dword [eax*4 + 0x466980]
mov esi, 1
mov ecx, esi
mov dword [ebp - 0x108], ecx
jmp 0x466708
mov ecx, edi
call fcn.00466500
movzx ecx, ax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0xe8]
mov eax, dword [eax]
movzx eax, word [eax + ecx*2]
push eax
mov eax, dword [ebx]
add eax, 0x3d8
push eax
push str.Machine__s_MIGHT_actually_be_listening_on_probe_port__d_n
push 0x400
call fcn.00454c40
add esp, 0x10
mov esi, 1
mov dword [ebp - 0x108], 2
jmp 0x466706
mov esi, 2
mov dword [ebp - 0x108], 9
lea ecx, [esi + 1]
jmp 0x466708
mov esi, 2
mov dword [ebp - 0x108], 0x1a
lea ecx, [esi + 1]
jmp 0x466708
mov esi, 2
mov dword [ebp - 0x108], 8
lea ecx, [esi + 1]
jmp 0x466708
mov esi, dword [ebx]
push dword [ebp - 0x10c]
add esi, 0x3d8
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push dword [ebp - 0x10c]
push esi
push str.Strange_read_error_from__s___d____s_
call fcn.00431e00
add esp, 0x14
xor esi, esi
xor ecx, ecx
cmp byte [edi + 5], 0
jbe 0x46673c
test esi, esi
je 0x46673c
mov ecx, dword [ebp - 0x110]
push 1
lea eax, [ecx + 0x10]
push eax
push dword [ebp + 0x10]
push ebx
push ecx
call fcn.00465b30
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x110]
mov al, byte [edx + 8]
test al, al
je 0x466799
test esi, esi
je 0x466791
push 1
lea eax, [edx + 0x10]
push eax
push esi
push dword [ebp + 0x10]
push ebx
push edx
call fcn.00465920
mov eax, dword [ebx]
add esp, 0x18
mov ecx, dword [ebp - 0x108]
mov word [eax + 0x218], cx
cmp esi, 1
jne 0x46693a
mov ecx, ebx
call fcn.00461980
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
test al, al
jne 0x46692a
test ecx, ecx
je 0x46692a
mov al, byte [edi + 0x19]
mov byte [ebp - 0x10c], al
movzx eax, al
sub eax, 6
je 0x4667c0
sub eax, 0xb
je 0x4667c0
sub eax, 0x73
je 0x4667c0
xor esi, esi
jmp 0x4667c4
movzx esi, word [edi + 0x1a]
cmp ecx, 2
jne 0x4668e9
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4668cb
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004b6200
add esp, 8
test eax, eax
jne 0x466883
mov ax, word [ebp - 0x84]
cmp ax, 2
jne 0x46682c
push esi
call dword [sym.imp.WS2_32.dll_htons]
cmp word [ebp - 0x82], ax
je 0x466842
mov ax, word [ebp - 0x84]
cmp ax, 0x17
jne 0x466883
push esi
call dword [sym.imp.WS2_32.dll_htons]
cmp word [ebp - 0x82], ax
jne 0x466883
cmp dword [0x67dff0], 0
je 0x466868
mov ecx, edi
call fcn.00466500
movzx eax, ax
push eax
push str.Detected_likely_self_connect_on_port__d_n
push 0x400
call fcn.00454c40
add esp, 0xc
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00462d30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x110]
push 1
lea eax, [ecx + 0x10]
push eax
push 2
push dword [ebp + 0x10]
push ebx
push ecx
call fcn.00465b80
mov ecx, dword [ebp - 0x108]
add esp, 0x18
push 0
push 0
push ecx
push dword [ebp - 0x10c]
mov ecx, dword [ebx]
push esi
add ecx, 0x64
call fcn.0045e270
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
push str.getsockname_or_TargetSockAddr_failed
call fcn.00431f60
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
push 1
lea eax, [edx + 0x10]
push eax
push ecx
push dword [ebp + 0x10]
push ebx
push edx
call fcn.00465b80
mov ecx, dword [ebp - 0x108]
add esp, 0x18
push 0
push 0
push ecx
push dword [ebp - 0x10c]
mov ecx, dword [ebx]
push esi
add ecx, 0x64
call fcn.0045e270
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x18], 0
je 0x46693a
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004619b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
push str.handleConnectResult
push str.Failed_to_get_target_socket_address_in__s
call fcn.00431e30
mov esi, dword [ebx]
mov ebx, dword [ebp - 0x10c]
add esi, 0x3d8
push ebx
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push ebx
push esi
push str.Strange_SO_ERROR_from_connection_to__s___d____s_____bailing_scan
call fcn.00431e30
nop
push edi
inc si
add byte [ebx + 0x5a004666], dh
imul eax, dword [esi], case.0x46663e.10051
mov fs, word [esi + 0x46]
add byte [ebp + 102], al
inc esi
add byte [edi - 0x24ffb99a], bl
inc si
add byte [eax], al
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
pop es
add dword [edx], eax
add eax, dword [edx]
add al, byte [edi]
pop es
pop es
add al, 7
pop es
add dword [100730631], eax
int3