Function at 0x100188d0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002edc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2a4], 0x280
xor ebx, ebx
mov dword [ebp - 0x298], ebx
mov ecx, 0x9f
xor eax, eax
lea edi, [ebp - 0x294]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov dword [edi], ebx
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x298]
push ecx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x29c], eax
cmp eax, 0x6f
jne 0x10018b2a
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
mov dword [ebp - 0x2a0], esi
test esi, esi
jne 0x10018992
push str._comm__detectMacAddress2k___malloc_adapter_list_failed_
push 0x10035394
lea ecx, [ebp - 0x2ac]
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2a4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x29c], eax
test eax, eax
jne 0x10018af8
mov dword [ebp - 0x2a8], esi
test esi, esi
je 0x10018aef
cmp ebx, 0x20
jae 0x10018aef
mov al, byte [esi + 0x194]
test al, al
jne 0x10018a39
cmp byte [esi + 0x195], 0xff
jne 0x100189ff
cmp byte [esi + 0x196], 0x2a
jne 0x100189ff
cmp byte [esi + 0x197], 0x3a
jne 0x100189ff
cmp byte [esi + 0x198], 0x4b
jne 0x100189ff
cmp byte [esi + 0x199], 0x5b
je 0x10018ae8
test al, al
jne 0x10018a39
mov cl, byte [esi + 0x195]
test cl, cl
jne 0x10018a39
mov cl, byte [esi + 0x196]
test cl, cl
jne 0x10018a39
mov cl, byte [esi + 0x197]
test cl, cl
jne 0x10018a39
mov cl, byte [esi + 0x198]
test cl, cl
jne 0x10018a39
mov cl, byte [esi + 0x199]
test cl, cl
je 0x10018ae8
mov ecx, ebx
shl ecx, 5
add ecx, ebx
lea edx, [ebx + ecx*2]
lea edi, [edi + edx*2]
xor ecx, ecx
mov cl, byte [esi + 0x199]
push ecx
xor edx, edx
mov dl, byte [esi + 0x198]
push edx
xor ecx, ecx
mov cl, byte [esi + 0x197]
push ecx
xor edx, edx
mov dl, byte [esi + 0x196]
push edx
xor ecx, ecx
mov cl, byte [esi + 0x195]
push ecx
and eax, 0xff
push eax
push 0x100353d4
lea edx, [edi + 4]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
mov al, byte [esi + 0x194]
mov byte [edi + 0x84], al
mov cl, byte [esi + 0x195]
mov byte [edi + 0x85], cl
lea eax, [ebx + 1]
mov edx, eax
shl edx, 5
add edx, eax
lea ecx, [eax + edx*2]
mov dl, byte [esi + 0x196]
mov ebx, dword [ebp + 8]
mov byte [ebx + ecx*2], dl
mov cl, byte [esi + 0x197]
mov byte [edi + 0x87], cl
mov dl, byte [esi + 0x198]
mov byte [edi + 0x88], dl
mov cl, byte [esi + 0x199]
mov byte [edi + 0x89], cl
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
mov esi, dword [esi]
jmp 0x100189ad
mov byte [ebp - 0x14], 1
jmp 0x10018bd5
push 0
call fcn.10013550
add esp, 4
push eax
push str._comm__detectMacAddress2k___failed:__s
push 0x100353f4
lea ecx, [ebp - 0x2b0]
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0xc
mov byte [ebp - 0x14], 0
jmp 0x10018bd5
mov edx, dword [ebp - 0xff]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x100]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x101]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x102]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x103]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x104]
and ecx, 0xff
push ecx
push 0x10035424
lea edx, [edi + 4]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
mov eax, dword [ebp - 0x104]
mov byte [edi + 0x84], al
mov byte [edi + 0x85], ah
mov al, byte [ebp - 0x102]
mov byte [edi + 0x86], al
mov cl, byte [ebp - 0x101]
mov byte [edi + 0x87], cl
mov dl, byte [ebp - 0x100]
mov byte [edi + 0x88], dl
mov al, byte [ebp - 0xff]
mov byte [edi + 0x89], al
mov ebx, 1
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], bl
mov dword [edi], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x10018bf2
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret