Function at 0x401afb
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0x280
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], 0x280
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401b71
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 4], str.Error_allocating_memory_needed_to_call_GetAdaptersinfo
mov dword [esp], eax
call dbg.error
mov eax, 8
jmp 0x401e6f
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetAdaptersInfo_8
sub esp, 8
cmp eax, 0x6f
jne 0x401bfd
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
mov ebx, dword [ebp - 0x34]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401bfd
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 4], str.Error_allocating_memory_needed_to_call_GetAdaptersinfo
mov dword [esp], eax
call dbg.error
mov eax, 8
jmp 0x401e6f
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetAdaptersInfo_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401c61
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetAdaptersInfo_failed_with_error:__d_n
mov dword [esp], 0
call dbg.error
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x401e6f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x401e3f
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1a0]
cmp eax, 6
jne 0x401e36
call dbg.netinfo_new
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401cb1
mov dword [esp + 4], str.Error_allocating_memory_for_netinfo
mov dword [esp], 0
call dbg.error
mov eax, 8
jmp 0x401e6f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x19c]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x118], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x190]
mov edx, dword [ebp - 0x14]
lea ecx, [edx + 0x194]
mov dword [esp + 0xc], 0x12
lea edx, [ebp - 0x2e]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call dbg.mac_to_str
test eax, eax
jne 0x401d0b
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dbg.netinfo_free
mov eax, 0x57
jmp 0x401e6f
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcpy
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 0x12]
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [esp + 8], 0x104
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.getNetInterfaceName
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401d59
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dbg.netinfo_free
mov eax, dword [ebp - 0xc]
jmp 0x401e6f
mov eax, dword [ebp - 0x14]
add eax, 0x1ac
mov dword [ebp - 0x18], eax
jmp 0x401db2
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x14]
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s
lea eax, [ebp - 0x98]
mov dword [esp], eax
call sym._sprintf
mov eax, dword [ebp - 0x1c]
add eax, 0x11c
mov dword [esp + 4], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
call dbg.namelist_add
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401d66
mov eax, dword [ebp - 0x14]
add eax, 0x1d8
test eax, eax
je 0x401de1
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 0x12c]
mov eax, dword [ebp - 0x14]
add eax, 0x1d8
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.namelist_add
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1a4]
test eax, eax
je 0x401dfd
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x130], 1
jmp 0x401e0a
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x130], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x19c]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.read_dns
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dbg.netinfo_add
jmp 0x401e37
nop
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401c6c
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret