Function at 0x40c460
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x452074]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_calloc]
xor eax, eax
push esi
push edi
push 0x1c
push 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
call ebx
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
je 0x40cb5a
push 4
push 1
call ebx
push 4
push 1
mov dword [esi + 0xc], eax
call ebx
push str.Network
mov dword [esi + 4], eax
lea eax, [esi + 0x14]
push 8
push eax
mov dword [esi], eax
call fcn.0041f560
mov edi, dword [0x1a278f8]
add esp, 0x1c
mov dword [esi + 0x10], 2
cmp dword [edi + 0x10], 0
je 0x40c552
mov edi, dword [edi + 0x50]
xor esi, esi
mov eax, dword [edi + 0xc]
cmp dword [eax], esi
je 0x40c4f9
nop dword [eax]
lea eax, [eax + 4]
inc esi
cmp dword [eax], 0
jne 0x40c4f0
lea eax, [esi + 1]
mov dword [esp + 0x1c], eax
inc eax
push 4
push eax
call ebx
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c519
push str.Failed_to_allocate_memory_for_appending_node_n
jmp 0x40cb5f
xor ecx, ecx
test esi, esi
jle 0x40c52e
nop
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x40c520
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [ebx + eax*4 - 4], ecx
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_free]
mov dword [edi + 0xc], ebx
add esp, 4
mov ebx, dword [esp + 0x10]
mov dword [ebx + 8], edi
jmp 0x40c554
mov ebx, esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x80
push 0
call esi
cmp eax, 0x6f
jne 0x40cb1c
push dword [esp + 0x24]
mov edi, dword [sym.imp.msvcrt.dll_malloc]
call edi
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40c5b8
push str.Memory_allocation_failed._n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push 0x80
push 0
call esi
test eax, eax
je 0x40c607
push eax
push str.Call_to_GetAdaptersAddresses_failed_with_error:__d_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 0xc
push dword [esp + 0x20]
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIfTable]
lea eax, [esp + 0x28]
push 0
push eax
push 0
call esi
cmp eax, 0x7a
jne 0x40c638
push dword [esp + 0x28]
call edi
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x40c638
push 1
lea ecx, [esp + 0x2c]
push ecx
push eax
call esi
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x10]
mov edx, str.Interface
push 4
call fcn.00407bf0
mov ecx, dword [0x1a278f8]
lea edi, [ebx + 0x44]
add esp, 4
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0xc], esi
cmp dword [ecx + 0x34], 0
je 0x40c677
cmp dword [edi], 1
jne 0x40cada
jmp 0x40c67b
mov dword [esp + 0x18], edi
push 0x400
push dword [ebx + 0xc]
mov edx, str.Network_Adapter
mov ecx, esi
call fcn.00407d00
mov ecx, dword [ebx + 0x24]
add esp, 8
push 0
call fcn.0040b880
push eax
mov edx, str.Description
mov ecx, esi
call fcn.00407d00
mov eax, dword [ebx + 0x40]
add esp, 8
add eax, 0xfffffffa
cmp eax, 0xee
ja case.0x40c6c0.7
movzx eax, byte [eax + 0x40cbac]
jmp dword [eax*4 + 0x40cb7c]
mov eax, str.Ethernet
jmp 0x40c719
mov eax, str.Token_Ring
jmp 0x40c719
mov eax, 0x43f3ec
jmp 0x40c719
mov eax, str.Software_Loopback
jmp 0x40c719
mov eax, 0x436464
jmp 0x40c719
mov eax, str.IEEE_802.11_Wireless
jmp 0x40c719
mov eax, str.Tunnel
jmp 0x40c719
mov eax, str.IEEE_1394_High_Performance_Serial_Bus
jmp 0x40c719
mov eax, str.WiMax
jmp 0x40c719
mov eax, 0x43a3d0
jmp 0x40c719
mov eax, str.CDMA
jmp 0x40c719
mov eax, str.Other
push 0
push eax
mov edx, str.Type
mov ecx, esi
call fcn.00407d00
add esp, 8
cmp dword [ebx + 0x34], 0
je 0x40c7a5
mov eax, dword [0x1a278f8]
xor esi, esi
mov byte [eax + 0x5c], 0
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x40c78c
mov edi, 0x4494d0
nop dword [eax + eax]
lea edx, [eax + 0x5c]
lea eax, [ecx - 1]
mov ecx, 0x445387
cmp esi, eax
movzx eax, byte [ebx + esi + 0x2c]
cmovne ecx, edi
push ecx
push eax
push edx
push str._s_.2X_s
push 0xffff
push edx
call fcn.00401e40
mov ecx, dword [ebx + 0x34]
inc esi
mov eax, dword [0x1a278f8]
add esp, 0x18
cmp esi, ecx
jb 0x40c750
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
add eax, 0x5c
push 0
push eax
mov edx, str.MAC_Address
mov ecx, esi
call fcn.00407d00
add esp, 8
cmp dword [edi], 1
mov ecx, str.Deactive
mov eax, str.Active
mov edx, str.Status
cmovne eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00407d00
test byte [ebx + 0x38], 4
mov ecx, 0x446ae8
mov eax, 0x446ae4
mov edx, str.DHCP_Enabled
cmove eax, ecx
mov ecx, esi
push 0x100
push eax
call fcn.00407d00
mov edi, dword [ebx + 0x10]
add esp, 0x10
test edi, edi
je 0x40c8c5
push 2
mov edx, str.Unicasts
mov ecx, esi
call fcn.00407bf0
add esp, 4
mov dword [esp + 0x18], eax
nop word [eax + eax]
push 4
mov edx, str.Unicast_Address
mov ecx, eax
call fcn.00407bf0
add esp, 4
lea edx, [edi + 0xc]
mov ebx, eax
mov ecx, ebx
push 0
call fcn.0040c390
mov ecx, dword [edi + 0xc]
add esp, 4
cmp word [ecx], 2
jne 0x40c8b2
movzx eax, byte [edi + 0x2c]
cmp eax, 0x20
jbe 0x40c849
or eax, 0xffffffff
jmp 0x40c87e
test eax, eax
je 0x40c87e
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, eax
shl edx, cl
mov eax, edx
movzx ecx, dl
shr eax, 8
movzx eax, al
shl ecx, 8
or eax, ecx
mov ecx, edx
shr ecx, 0x10
shl eax, 8
movzx ecx, cl
or eax, ecx
shr edx, 0x18
shl eax, 8
or eax, edx
mov ecx, eax
shr ecx, 0x18
push ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
mov ecx, eax
movzx eax, al
shr ecx, 8
movzx ecx, cl
push ecx
push eax
push str._u._u._u._u
push 0x400
push str.Subnet_Mask
push ebx
call fcn.00407f50
add esp, 0x20
mov edi, dword [edi + 8]
mov eax, dword [esp + 0x18]
test edi, edi
jne 0x40c810
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x40c908
mov ecx, dword [esp + 0xc]
mov edx, str.Anycasts
push 2
call fcn.00407bf0
add esp, 4
mov edi, eax
push 4
mov edx, str.Anycast_Address
mov ecx, edi
call fcn.00407bf0
add esp, 4
lea edx, [esi + 0xc]
mov ecx, eax
push 0
call fcn.0040c390
mov esi, dword [esi + 8]
add esp, 4
test esi, esi
jne 0x40c8e1
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40c94b
mov ecx, dword [esp + 0xc]
mov edx, str.Multicasts
push 2
call fcn.00407bf0
add esp, 4
mov edi, eax
push 4
mov edx, str.Multicast_Address
mov ecx, edi
call fcn.00407bf0
add esp, 4
lea edx, [esi + 0xc]
mov ecx, eax
push 0
call fcn.0040c390
mov esi, dword [esi + 8]
add esp, 4
test esi, esi
jne 0x40c924
mov esi, dword [ebx + 0xa4]
test esi, esi
je 0x40c997
mov ecx, dword [esp + 0xc]
mov edx, str.Gateways
push 2
call fcn.00407bf0
add esp, 4
mov edi, eax
nop word [eax + eax]
push 4
mov edx, str.Gateway
mov ecx, edi
call fcn.00407bf0
add esp, 4
lea edx, [esi + 0xc]
mov ecx, eax
push 0
call fcn.0040c390
mov esi, dword [esi + 8]
add esp, 4
test esi, esi
jne 0x40c970
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x40c9da
mov ecx, dword [esp + 0xc]
mov edx, str.DNS_Servers
push 2
call fcn.00407bf0
add esp, 4
mov edi, eax
push 4
mov edx, str.DNS_Server
mov ecx, edi
call fcn.00407bf0
add esp, 4
lea edx, [esi + 0xc]
mov ecx, eax
push 0
call fcn.0040c390
mov esi, dword [esi + 8]
add esp, 4
test esi, esi
jne 0x40c9b3
test byte [ebx + 0x38], 4
mov edi, dword [esp + 0xc]
je 0x40ca02
cmp dword [ebx + 0xbc], 0x10
jb 0x40ca02
push str.DHCP_Server
lea edx, [ebx + 0xb8]
mov ecx, edi
call fcn.0040c390
add esp, 4
push 0x800
push ecx
push 0
push 0x3e8
push dword [ebx + 0x94]
mov ecx, 0x456f98
push dword [ebx + 0x90]
call fcn.0040a530
add esp, 0x14
mov edx, str.Transmit_Link_Speed
mov ecx, edi
push eax
call fcn.00407d00
add esp, 8
push 0x800
push ecx
push 0
push 0x3e8
push dword [ebx + 0x9c]
mov ecx, 0x456f98
push dword [ebx + 0x98]
call fcn.0040a530
add esp, 0x14
mov edx, str.Receive_Link_Speed
mov ecx, edi
push eax
call fcn.00407d00
push dword [ebx + 0x3c]
push 0x448470
push 0x200
push str.MTU__Byte_
push edi
call fcn.00407f50
mov esi, dword [esp + 0x30]
add esp, 0x1c
test esi, esi
je 0x40cade
mov eax, dword [ebx + 4]
test eax, eax
je 0x40cade
dec eax
imul eax, eax, 0x35c
add esi, eax
push dword [esi + 0x22c]
push 0x444d3c
push 0x200
push str.Received__Octets_
push edi
call fcn.00407f50
add esp, 0x14
push dword [esi + 0x244]
push 0x444d3c
push 0x200
push str.Sent__Octets_
push edi
call fcn.00407f50
add esp, 0x14
mov esi, dword [esp + 0x14]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x40c640
push dword [esp + 0x20]
mov ebx, dword [sym.imp.msvcrt.dll_free]
call ebx
add esp, 4
test esi, esi
je 0x40cb06
push esi
call ebx
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
cmp eax, 0xe8
jne 0x40cb2d
push str.No_addresses_were_found._n
jmp 0x40c591
push eax
push str.GetAdaptersAddresses_Error:__d_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041abcf
mov esp, ebp
pop ebp
ret
push str.Failed_to_allocate_memory_for_new_node_n
push 2
call fcn.0041be90
add esp, 4
push eax
call fcn.00401450
add esp, 8
push 0xe
call fcn.0041bdf0
nop dword [eax]
mov esi, 0xc6ce0040
inc eax
add ch, dl
mov byte [eax], 0xdc
mov byte [eax], 0xe3
mov byte [eax], 0xea
mov byte [eax], 0xf1
mov byte [eax], 0xf8
mov byte [eax], 0xff
mov byte [eax], 6
mov dword [eax], case.0x40c6c0.244
adc al, 0xc7
inc eax
add byte [eax], al
or ecx, dword [ebx]
add dword [ebx], ecx
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
add al, byte [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
add al, 11
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
add eax, 185273099
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or eax, dword [esi]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
pop es
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or byte [ebx], cl
or ecx, dword [ebx]
or ecx, dword [ebx]
or dword [edx], ecx
int3