Function at 0x408070
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x4234
call fcn.0040eda0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4244]
cmp esi, 3
push edi
jne 0x4080be
mov eax, dword [0x41bcc4]
push 0x416fde
push eax
call fcn.00408000
push 0
push 0
call fcn.00408530
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
pop edi
pop esi
mov dword [0x41b5d8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4234
ret
cmp esi, 2
jne 0x408124
mov eax, dword [esp + 0x424c]
mov ecx, dword [0x41bcf0]
cmp eax, ecx
jge 0x408117
lea ecx, [eax + eax*2]
push 3
push str.SOFTWAREDRCOMCLIENT
push reloc.WSOCK32.dll_bind
lea ecx, [ecx + ecx*4]
mov edi, 0x416c98
push 0x230
push 0x416c98
lea ecx, [ecx + ecx*8]
push str.DesAdapterName
shl ecx, 1
sub ecx, eax
lea esi, [ecx*4 + 0x414cfc]
mov ecx, 0x8c
rep movsd dword es:[edi], dword [esi]
call fcn.00404fc0
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4234
ret
mov ecx, 0x868
xor eax, eax
mov edi, 0x414af8
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x23c]
xor ebx, ebx
push edx
push eax
mov dword [esp + 0x18], ebx
mov dword [0x41bcf0], ebx
mov dword [esp + 0x30], 0x4008
call sub.packet.dll_PacketGetAdapterNames
add esp, 8
test al, al
jne 0x408197
call fcn.00406b00
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x3c]
push ecx
push str.Unable_to_retrieve_the_list_of_the_adapters___lu_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.004038a0
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4234
ret
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408402
mov cl, byte [esp + 0x23d]
lea eax, [esp + 0x23c]
test cl, cl
lea esi, [esp + 0x23c]
jne 0x40822e
lea eax, [esp + 0x23c]
lea esi, [esp + 0x23c]
mov edx, 0x414cfc
mov cx, word [eax]
test cx, cx
jne 0x408217
cmp word [eax - 2], cx
je 0x40821c
test cx, cx
jne 0x408217
cmp edx, 0x416e9c
jge 0x408214
mov ecx, eax
mov edi, edx
sub ecx, esi
sar ecx, 1
shl ecx, 1
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
add edx, 0x434
lea esi, [eax + 2]
add eax, 2
jmp 0x4081da
lea ecx, [esp + 0x23c]
sub eax, ecx
add eax, 2
sar eax, 1
shl eax, 1
jmp 0x408275
mov edx, 0x414cfc
mov cl, byte [eax]
test cl, cl
jne 0x408268
cmp byte [eax - 1], cl
je 0x40826b
test cl, cl
jne 0x408268
cmp edx, 0x416e9c
jge 0x408265
mov ecx, eax
mov edi, edx
sub ecx, esi
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
add edx, 0x434
lea esi, [eax + 1]
inc eax
jmp 0x408233
lea edx, [esp + 0x23c]
sub eax, edx
inc eax
mov ecx, ebx
lea eax, [esp + eax + 0x23c]
xor esi, esi
xor ebx, ebx
test ecx, ecx
mov dword [0x41bcf0], ecx
mov dword [esp + 0x18], eax
jle 0x4082ca
mov ebp, 0x414af8
mov ecx, dword [esp + 0x18]
push 0x1fe
lea edi, [ecx + esi]
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
add ebp, 0x434
repne scasb al, byte es:[edi]
mov eax, dword [0x41bcf0]
not ecx
dec ecx
inc ebx
cmp ebx, eax
lea esi, [esi + ecx + 1]
jl 0x408295
lea edx, [esp + 0x1c]
xor esi, esi
push edx
push esi
mov dword [esp + 0x24], esi
call sub.iphlpapi.dll_GetAdaptersInfo
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea ecx, [esp + 0x1c]
mov edi, eax
push ecx
push eax
mov dword [esp + 0x2c], edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov eax, dword [0x41bcf0]
mov dword [esp + 0x14], esi
cmp eax, esi
mov dword [esp + 0x10], esi
jle 0x4083e7
mov dword [esp + 0x20], 0x414af8
mov ebx, 0x414cf8
lea edx, [ebx + 4]
push edx
call sub.packet.dll_PacketOpenAdapter
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x4083ca
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00408000
add esp, 8
mov eax, edi
test edi, edi
je 0x4083c1
lea edx, [eax + 0x194]
mov ecx, 3
lea edi, [esp + 0x2c]
mov esi, edx
xor ebp, ebp
repe cmpsw word [esi], word es:[edi]
jne 0x408384
mov esi, dword [eax + 0x1a0]
mov ecx, 6
cmp esi, ecx
jne 0x408384
cmp dword [eax + 0x190], ecx
jne 0x408384
mov edx, dword [edx]
mov ecx, str.DEST
cmp edx, dword [ecx]
jne 0x40838c
mov eax, dword [eax]
test eax, eax
jne 0x40834a
jmp 0x4083b9
mov eax, dword [eax + 0x19c]
mov edx, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
mov edi, eax
inc edx
lea esi, [ebx - 0x200]
mov ecx, 0x10d
add eax, 0x434
mov dword [esp + 0x10], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
push esi
call sub.packet.dll_PacketCloseAdapter
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [0x41bcf0]
inc eax
add ebx, 0x434
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40831c
mov ecx, dword [esp + 0x10]
push edi
mov dword [0x41bcf0], ecx
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x424c]
add esp, 4
test esi, esi
jne 0x40846e
cmp dword [0x41bcf0], 1
jne 0x408187
push 0x414cfc
call sub.packet.dll_PacketOpenAdapter
add esp, 4
mov dword [0x41bcc4], eax
test eax, eax
je 0x408187
push 3
push str.SOFTWAREDRCOMCLIENT
push reloc.WSOCK32.dll_bind
mov ecx, 0x8c
mov esi, 0x414cfc
mov edi, 0x416c98
push 0x230
push 0x416c98
rep movsd dword es:[edi], dword [esi]
push str.DesAdapterName
call fcn.00404fc0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4234
ret
cmp esi, 1
jne 0x408187
mov eax, dword [0x41bcf0]
test eax, eax
jne 0x40849b
push eax
push str.No_interfaces_found__Make_sure_device_is_installed
call fcn.004038a0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4234
ret
mov ebp, dword [esp + 0x4250]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x408503
mov ebx, 0x414cfc
mov eax, dword [esp + 0x424c]
lea edx, [ebx - 0x204]
push edx
push 0
push 0x180
push eax
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, 0x8c
mov edi, ebx
mov esi, 0x416c98
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4084ea
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [0x41bcf0]
inc eax
add ebx, 0x434
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4084b3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x424c]
push 0
push ecx
push 0x186
push edx
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4234
ret