Function at 0x10076ce0
Capabilities:
Get hostname
Print debug messages

Disassembly:
sub esp, 0xc40
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0xc3c], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.IPInterface::initialize______n
mov ebp, ecx
call esi
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
je 0x10076d27
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.100c59be
add esp, 0xc40
ret
push 0x401
lea eax, [esp + 0x848]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
lea ecx, [esp + 0x40]
je 0x10076d74
push str.GetHostName_Failed_n
push ecx
call fcn.100c8016
add esp, 8
lea edx, [esp + 0x40]
push edx
call esi
pop esi
pop ebp
mov eax, 0xffffffe2
pop ebx
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.100c59be
add esp, 0xc40
ret
lea eax, [esp + 0x844]
push eax
push str.Name_of_local_host:__s_n
push ecx
call fcn.100c8016
add esp, 0xc
lea edx, [esp + 0x40]
push edx
call esi
mov ecx, ebp
call fcn.10076950
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [0x10146e74]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x11
jne 0x10076de8
push ebx
call fcn.10070f50
mov dword [0x10146e74], eax
push edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
lea ecx, [esp + 0x854]
push ecx
call eax
mov edi, eax
push edi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp edi, 0x2afc
jne 0x10076e24
push str.getaddrinfo_failed_WSANO_DATA__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0xffffffe2
jmp 0x10077199
cmp edi, ebx
jne 0x1007716b
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10076e3e
mov eax, dword [eax + 0x1c]
add esi, 1
cmp eax, ebx
jne 0x10076e34
lea edi, [esi*4 + 4]
push edi
call fcn.100c752e
add esp, 4
cmp eax, ebx
mov dword [ebp + 0x18], eax
jne 0x10076e65
push str.malloc_failed____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10077194
push edi
push ebx
push eax
call fcn.100c7d20
mov edx, dword [ebp + 0x18]
mov dword [edx], esi
mov esi, dword [esp + 0x1c]
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x18], ebx
je 0x10077106
lea eax, [ebp + 0x24]
mov dword [esp + 0x14], eax
lea esp, [esp]
push 0x401
lea ecx, [esp + 0x448]
push ebx
push ecx
mov dword [esp + 0x28], ebx
call fcn.100c7d20
mov eax, dword [0x10146e78]
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x18]
add esp, 0xc
test eax, eax
jne 0x10076ec5
push 1
call fcn.10070f50
mov dword [0x10146e78], eax
push 2
push 0
push 0
push 0x401
lea edx, [esp + 0x454]
push edx
push edi
push ebx
call eax
mov edi, eax
push edi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
test edi, edi
jne 0x10076f16
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x4c]
push str.Local_interface_address_found:__s__Family:__d__n
push edx
call fcn.100c8016
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea eax, [esp + 0x44]
push eax
call ebx
jmp 0x10076f3a
push edi
lea ecx, [esp + 0x48]
push str.getnameinfo___failed._Error:__d_n
push ecx
call fcn.100c8016
add esp, 0xc
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 4], 0x17
jne 0x10077016
push 5
lea eax, [esp + 0x448]
push str.fe80:
push eax
call fcn.100e094b
add esp, 0xc
test eax, eax
jne 0x100770f9
push 0xb
lea ecx, [esp + 0x448]
push str.fe80::5efe:
push ecx
call fcn.100e094b
add esp, 0xc
test eax, eax
jne 0x10076f8a
push str.ISATAP_Address:_Skip_
call ebx
jmp 0x100770f9
xor edi, edi
cmp dword [ebp + 0x1ab0], edi
jle 0x10077004
lea ebx, [ebp + 0xe8]
lea ebx, [ebx]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10076fa5
sub eax, edx
push eax
lea edx, [esp + 0x448]
push edx
push ebx
call fcn.100e094b
add esp, 0xc
test eax, eax
je 0x10076fe9
add edi, 1
add ebx, 0x84
cmp edi, dword [ebp + 0x1ab0]
jl 0x10076fa0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Unable_to_find_scope_id...skipping_the_address____n
call ebx
jmp 0x100770f9
imul edi, edi, 0x84
mov edi, dword [edi + ebp + 0x168]
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x10077010
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Unable_to_find_scope_id...skipping_the_address____n
call ebx
jmp 0x100770f9
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_socket]
mov ecx, dword [ebp + 0x18]
mov edi, dword [esp + 0x18]
mov dword [ecx + edi*4 + 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + edi*4 + 4]
cmp eax, 0xffffffff
je 0x10077141
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push ecx
push edx
push eax
lea eax, [esp + 0x54]
push str.Created_socket...Id:__d__family:__d__socket_type:__d__protocol:__d_n
push eax
call fcn.100c8016
add esp, 0x18
lea ecx, [esp + 0x44]
push ecx
call ebx
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 1
mov ecx, dword [eax + edi*4 + 4]
push 0x8004667e
push ecx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1007714f
cmp dword [esi + 4], 0x17
jne 0x100770af
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100770af
mov edx, dword [esi + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [edx + edi*4 + 4]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x100770ed
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea edx, [esp + 0x4c]
push str.Bind_Error_Code_:__d.__res0__ai_addrlen_d_n
push edx
call fcn.100c8016
add esp, 0x10
lea eax, [esp + 0x44]
push eax
call ebx
add edi, 1
add dword [esp + 0x14], 4
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
xor ebx, ebx
test esi, esi
jne 0x10076e90
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1c], 1
mov eax, dword [0x10146e7c]
cmp eax, ebx
jne 0x1007712f
push 2
call fcn.10070f50
mov dword [0x10146e7c], eax
push esi
call eax
push str.___IPInterface::initialize___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x10077199
push str.socket_creation_falied____n
call ebx
mov eax, 0xffffffe2
jmp 0x10077199
push str.ioctlsocket_creation_falied____n
call ebx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + edi*4 + 4]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0xffffffe1
jmp 0x10077199
push edi
lea edx, [esp + 0x84c]
push edx
lea eax, [esp + 0x4c]
push str.getaddrinfo__s__NULL__...__failed__rc___d_n
push eax
call fcn.100c8016
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp + 0x1c], ebx
mov eax, 0xffffffe0
mov ecx, dword [esp + 0xc4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100c59be
add esp, 0xc40
ret