Function at 0x401cc0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x28ac
call fcn.00404340
mov eax, dword [0x408040]
xor eax, esp
mov dword [esp + 0x28a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x2880
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401d79
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 4
push esi
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.GetAdaptersInfo_failed_with_error_code:
push 0x402b20
push dword [esp + 0x14]
call fcn.00402900
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call ebx
push 7
push esi
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28a8]
xor ecx, esp
call fcn.004034d5
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea ebx, [esp + 0x30]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Adapter_Name:
push 0x402b20
call fcn.00402900
push ecx
lea edx, [ebx + 8]
mov ecx, eax
call fcn.00402900
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Adapter_Description:
push 0x402b20
call fcn.00402900
push ecx
lea edx, [ebx + 0x10c]
mov ecx, eax
call fcn.00402900
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.MAC_Address:
call fcn.00402900
mov ecx, dword [ebx + 0x190]
xor esi, esi
test ecx, ecx
je 0x401e42
movzx eax, byte [ebx + esi + 0x194]
push eax
lea eax, [ecx - 1]
mov ecx, str._.2X_
cmp esi, eax
mov eax, str._.2X
cmove ecx, eax
push ecx
call fcn.00401020
mov ecx, dword [ebx + 0x190]
inc esi
add esp, 8
cmp esi, ecx
jb 0x401e13
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x402b20
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea edi, [ebx + 0x1ac]
test edi, edi
je 0x401e91
nop dword [eax]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.IP_Address:
push 0x402b20
call fcn.00402900
push ecx
lea edx, [edi + 4]
mov ecx, eax
call fcn.00402900
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edi, dword [edi]
test edi, edi
jne 0x401e60
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov ebx, dword [ebx]
push 0x402b20
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call edi
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test ebx, ebx
jne 0x401d83
mov ecx, dword [esp + 0x28b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004034d5
mov esp, ebp
pop ebp
ret