Function at 0x417840
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545f95
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x59bad0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov byte [ebp - 0x29], bl
call fcn.0041da9f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4178a5
push 0x80004005
call 0x4046e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], ebx
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
test eax, eax
jne 0x4178ef
mov eax, dword [ebp - 0x44]
push eax
push str._s
lea ecx, [ebp - 0x30]
push ecx
call fcn.00407560
add esp, 0xc
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417913
mov ecx, dword [ebp - 0x30]
push ecx
push str.WIF_:
push str._s_isDhcpSetting__:_AdapterName:__s_n
push 0x40000
call fcn.00402f40
add esp, 0x10
lea ecx, [ebp - 0x64]
call fcn.0041ce9a
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0x288
push 0x288
call fcn.0041c2b5
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c], edi
cmp edi, ebx
jne 0x417982
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417963
push str.WIF_:
push str._s_Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
push 0x40000
call fcn.00402f40
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.0041ceb2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004043f0
xor al, al
jmp 0x417d57
lea edx, [ebp - 0x48]
push edx
push edi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
call esi
cmp eax, 0x6f
jne 0x4179ef
push edi
call fcn.0041c2c0
mov eax, dword [ebp - 0x48]
push eax
call fcn.0041c2b5
add esp, 8
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x4179ec
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x4179cd
push str.WIF_:
push str._s_Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
push 0x40000
call fcn.00402f40
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.0041ceb2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004043f0
xor al, al
jmp 0x417d57
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x48]
push ecx
push edi
call esi
cmp eax, ebx
jne 0x417ca4
mov esi, edi
mov dword [ebp - 0x4c], esi
cmp esi, ebx
je 0x417cc8
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417a9e
push str.WIF_:
push str._s________________________________n
push 0x40000
call fcn.00402f40
add esp, 0xc
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417a9e
mov edx, dword [esi + 4]
push edx
push str.WIF_:
push str._s_ComboIndex:__t_d_n
push 0x100000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417a9e
lea ecx, [esi + 8]
push ecx
push str.WIF_:
push str._s_Adapter_Name:__t_s_n
push 0x80000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417a9e
lea edx, [esi + 0x10c]
push edx
push str.WIF_:
push str._s_Adapter_Desc:__t_s_n
push 0x40000
call fcn.00402f40
add esp, 0x10
lea ecx, [ebp - 0x38]
call fcn.00404380
mov byte [ebp - 4], 4
xor edi, edi
mov dword [ebp - 0x54], edi
cmp edi, dword [esi + 0x190]
jae 0x417b1b
lea ecx, [ebp - 0x34]
call fcn.00404380
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x190]
dec eax
cmp edi, eax
jne 0x417ae2
movzx ecx, byte [edi + esi + 0x194]
push ecx
push str._02X
lea edx, [ebp - 0x34]
push edx
jmp 0x417af4
movzx eax, byte [edi + esi + 0x194]
push eax
push str._02X_
lea ecx, [ebp - 0x34]
push ecx
call fcn.00407560
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004064d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004043f0
inc edi
jmp 0x417aac
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417b6b
mov edx, dword [ebp - 0x38]
push edx
push str.WIF_:
push str._s_Adapter_Addr:__t_s_n
push 0x80000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417b6b
mov ecx, dword [esi + 0x19c]
push ecx
push str.WIF_:
push str._s_Index:__t_d_n
push 0x40000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3b14]
lea edi, [esi + 0x1ac]
mov dword [ebp - 0x50], edi
cmp edi, ebx
je 0x417bc4
cmp eax, ebx
je 0x417bc0
lea edx, [edi + 4]
push edx
push str.WIF_:
push str._s_IP_Address:_t_s_n
push 0x40000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3b14]
cmp eax, ebx
je 0x417bc0
lea ecx, [edi + 0x14]
push ecx
push str.WIF_:
push str._s_IP_Mask:____t_s_n
push 0x40000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3b14]
mov edi, dword [edi]
jmp 0x417b71
lea edi, [esi + 0x1d4]
mov dword [ebp - 0x58], edi
cmp edi, ebx
je 0x417bf9
cmp eax, ebx
je 0x417bf5
lea edx, [edi + 4]
push edx
push str.WIF_:
push str._s_Gateway:____t_s_n
push 0x40000
call fcn.00402f40
add esp, 0x10
mov eax, dword [0x5a3b14]
mov edi, dword [edi]
jmp 0x417bca
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407920
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00405180
test eax, eax
jne 0x417c7f
mov eax, dword [0x5a3b14]
cmp dword [esi + 0x1a4], ebx
je 0x417c47
cmp eax, ebx
je 0x417c41
push str.WIF_:
push str._s__DHCP_Enabled:_Yes_n
push 0x40000
call fcn.00402f40
add esp, 0xc
mov byte [ebp - 0x29], 1
jmp 0x417c62
cmp eax, ebx
je 0x417c62
push str.WIF_:
push str._s__DHCP_Enabled:_No_n
push 0x40000
call fcn.00402f40
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004043f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004043f0
mov edi, dword [ebp - 0x3c]
jmp 0x417cc8
mov esi, dword [esi]
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004043f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004043f0
mov edi, dword [ebp - 0x3c]
jmp 0x417a03
mov ecx, dword [0x5a3b14]
cmp ecx, ebx
je 0x417cc8
push eax
push str.WIF_:
push str._s__GetAdaptersInfo_failed_with_error:__d_n
push 0x40000
mov eax, ecx
call fcn.00402f40
add esp, 0x10
cmp edi, ebx
je 0x417cd5
push edi
call fcn.0041c2c0
add esp, 4
mov dword [ebp - 4], 1
call fcn.0041ceb2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417d54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x417d54
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051c462
mov esp, ebp
pop ebp
ret 0x10