Function at 0x405060
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x474
mov al, byte [0x426bc0]
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 0x4050b0
mov dl, al
mov al, byte [esp + 0x1b]
or dl, 1
push 0x405530
mov byte [0x426bc0], dl
mov byte [0x426bf0], al
mov dword [0x426bf4], ebx
mov dword [0x426bf8], ebx
mov dword [0x426bfc], ebx
call fcn.0041251b
add esp, 4
cmp dword [0x426bf8], ebx
je 0x405137
push str.unknowuser00
call fcn.0041255c
mov edi, dword [0x426bf8]
add esp, 4
cmp edi, eax
mov esi, edi
jb 0x4050d3
mov esi, eax
mov ecx, dword [0x426bf4]
cmp esi, ebx
mov edx, str.unknowuser00
jbe 0x405105
mov bp, word [ecx]
cmp bp, word [edx]
jne 0x4050f5
add ecx, 2
add edx, 2
dec esi
jne 0x4050e2
jmp 0x405105
mov cx, word [ecx]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x405114
cmp edi, eax
jb 0x405114
xor ecx, ecx
cmp edi, eax
setne cl
cmp ecx, ebx
je 0x405137
mov esi, dword [esp + 0x488]
mov dl, byte [0x426bf0]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x41d5a8]
push eax
jmp 0x405513
push str.unknowuser00
call fcn.0041255c
add esp, 4
mov esi, eax
mov ecx, 0x426bf0
push 1
push esi
call fcn.00409450
test al, al
je 0x405186
mov eax, dword [0x426bf4]
cmp esi, ebx
mov ecx, str.unknowuser00
jbe 0x405176
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x405167
mov ecx, dword [0x426bf4]
mov dword [0x426bf8], 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 0x405308
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, 0x423020
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 0x4052a8
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 0x4052c3
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 0x4051c9
jmp 0x405308
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 0x426bf0
push ecx
call fcn.00404f60
add esp, 0x24
xor ebx, ebx
push str.unknowuser00
call fcn.0041255c
mov edi, dword [0x426bf8]
add esp, 4
cmp edi, eax
mov esi, edi
jb 0x405323
mov esi, eax
mov ecx, dword [0x426bf4]
cmp esi, ebx
mov edx, str.unknowuser00
jbe 0x405359
mov bp, word [ecx]
cmp bp, word [edx]
jne 0x405345
add ecx, 2
add edx, 2
dec esi
jne 0x405332
jmp 0x405359
mov cx, word [ecx]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
cmp ecx, ebx
jne 0x4054f4
cmp edi, eax
jb 0x4054f4
xor ecx, ecx
cmp edi, eax
setne cl
cmp ecx, ebx
jne 0x4054f4
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 0x4054f4
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 0x4054f4
lea edx, [esp + 0x10]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4054e5
mov eax, esi
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 0x190]
cmp ecx, 0x64
jae 0x4054e5
mov edx, dword [eax + 0x1a0]
cmp edx, 0x17
je 0x405489
cmp edx, 0x18
je 0x405489
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 0x405499
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 0x4053d9
jmp 0x4054e5
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 0x426bf0
push eax
call fcn.00404f60
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 [0x426bf0]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x41d5a8]
push edx
push ebx
push 0x426bf0
mov ecx, esi
call fcn.00409170
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret 4