Function at 0x407570
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x474
mov al, byte [0x42c4a8]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
test al, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
jne 0x4075c0
mov dl, al
mov al, byte [esp + 0x1b]
or dl, 1
push 0x407a40
mov byte [0x42c4a8], dl
mov byte [0x42c4d8], al
mov dword [0x42c4dc], ebx
mov dword [0x42c4e0], ebx
mov dword [0x42c4e4], ebx
call fcn.00417a4d
add esp, 4
cmp dword [0x42c4e0], ebx
je 0x407647
push str.unknowuser00
call fcn.00417a8e
mov edi, dword [0x42c4e0]
add esp, 4
cmp edi, eax
mov esi, edi
jb 0x4075e3
mov esi, eax
mov ecx, dword [0x42c4dc]
cmp esi, ebx
mov edx, str.unknowuser00
jbe 0x407615
mov bp, word [ecx]
cmp bp, word [edx]
jne 0x407605
add ecx, 2
add edx, 2
dec esi
jne 0x4075f2
jmp 0x407615
mov cx, word [ecx]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x407624
cmp edi, eax
jb 0x407624
xor ecx, ecx
cmp edi, eax
setne cl
cmp ecx, ebx
je 0x407647
mov esi, dword [esp + 0x488]
mov dl, byte [0x42c4d8]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x422604]
push eax
jmp 0x407a23
push str.unknowuser00
call fcn.00417a8e
add esp, 4
mov esi, eax
mov ecx, 0x42c4d8
push 1
push esi
call fcn.0040ce00
test al, al
je 0x407696
mov eax, dword [0x42c4dc]
cmp esi, ebx
mov ecx, str.unknowuser00
jbe 0x407686
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x407677
mov ecx, dword [0x42c4dc]
mov dword [0x42c4e0], esi
mov word [ecx + esi*2], bx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x104]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x24], 0x37
push eax
mov dword [esp + 0x2c], edx
mov word [esp + 0x30], 0x100
call sub.NETAPI32.dll_Netbios
mov al, byte [esp + 0x104]
xor ebp, ebp
cmp al, bl
mov dword [esp + 0x10], ebp
jbe 0x407818
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov cl, byte [esp + ebp + 0x105]
push edx
mov byte [esp + 0x28], 0x32
mov byte [esp + 0x58], cl
call sub.NETAPI32.dll_Netbios
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x2e]
rep stosd dword es:[edi], eax
mov al, byte [esp + ebp + 0x105]
mov edi, 0x427f60
mov byte [esp + 0x54], al
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x24], 0x33
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x68]
mov word [esp + 0x30], 0x3c
mov dword [esp + 0x2c], ecx
call sub.NETAPI32.dll_Netbios
test al, al
jne 0x4077b8
mov eax, dword [esp + 0x69]
mov ecx, dword [esp + 0x68]
mov ebx, eax
mov edx, ecx
and ebx, 0xff
and edx, 0xff
add ebx, edx
mov edx, dword [esp + 0x67]
mov esi, edx
and esi, 0xff
add ebx, esi
mov esi, dword [esp + 0x66]
mov edi, esi
and edi, 0xff
add ebx, edi
mov edi, dword [esp + 0x65]
mov ebp, edi
and ebp, 0xff
add ebx, ebp
mov ebp, dword [esp + 0x64]
and ebp, 0xff
add ebx, ebp
jne 0x4077d3
mov ebp, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [esp + 0x104]
inc ebp
and eax, 0xff
mov dword [esp + 0x10], ebp
cmp ebp, eax
jl 0x4076d9
jmp 0x407818
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x68]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x24]
and esi, 0xff
push edx
and edi, 0xff
push esi
and eax, 0xff
push edi
push eax
push str._02x_02x_02x_02x_02x_02x
push 0x42c4d8
push ecx
call fcn.00407470
add esp, 0x24
xor ebx, ebx
push str.unknowuser00
call fcn.00417a8e
mov edi, dword [0x42c4e0]
add esp, 4
cmp edi, eax
mov esi, edi
jb 0x407833
mov esi, eax
mov ecx, dword [0x42c4dc]
cmp esi, ebx
mov edx, str.unknowuser00
jbe 0x407869
mov bp, word [ecx]
cmp bp, word [edx]
jne 0x407855
add ecx, 2
add edx, 2
dec esi
jne 0x407842
jmp 0x407869
mov cx, word [ecx]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x407a04
cmp edi, eax
jb 0x407a04
xor ecx, ecx
cmp edi, eax
setne cl
cmp ecx, ebx
jne 0x407a04
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xa0]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x204]
push edx
push eax
mov dword [esp + 0x18], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x407a04
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x407a04
lea edx, [esp + 0x10]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4079f5
mov eax, esi
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 0x190]
cmp ecx, 0x64
jae 0x4079f5
mov edx, dword [eax + 0x1a0]
cmp edx, 0x17
je 0x407999
cmp edx, 0x18
je 0x407999
lea esi, [eax + 0x194]
mov eax, ecx
lea edi, [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xa5]
mov ecx, dword [esp + 0xa4]
mov ebx, eax
mov edx, ecx
and ebx, 0xff
and edx, 0xff
add ebx, edx
mov edx, dword [esp + 0xa3]
mov esi, edx
and esi, 0xff
add ebx, esi
mov esi, dword [esp + 0xa2]
mov edi, esi
and edi, 0xff
add ebx, edi
mov edi, dword [esp + 0xa1]
mov ebp, edi
and ebp, 0xff
add ebx, ebp
mov ebp, dword [esp + 0xa0]
and ebp, 0xff
add ebx, ebp
jne 0x4079a9
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x4078e9
jmp 0x4079f5
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0xa4]
and edx, 0xff
push ecx
and esi, 0xff
push edx
and edi, 0xff
push esi
and eax, 0xff
push edi
push eax
mov eax, dword [esp + 0x34]
push str._02x_02x_02x_02x_02x_02x
push 0x42c4d8
push eax
call fcn.00407470
mov esi, dword [esp + 0x38]
add esp, 0x24
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x488]
mov cl, byte [0x42c4d8]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x422604]
push edx
push ebx
push 0x42c4d8
mov ecx, esi
call fcn.0040c980
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret 4