Function at 0x407600
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x52a04b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x552a7c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], 0
call fcn.004031f0
lea eax, [esp + 0x38]
push eax
call fcn.00407bc0
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x60], 0
call fcn.004073b0
add esp, 4
test eax, eax
jne 0x407683
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x60], 0xffffffff
call fcn.00407c20
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x288
push 0
mov dword [esp + 0x24], 0x288
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
jne 0x4076d5
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x60], 0xffffffff
call fcn.00407c20
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x407705
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x1c]
push edx
push 0
call ebx
push eax
call esi
mov dword [esp + 0x28], eax
test eax, eax
je 0x4076ad
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x2c], 1
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x407979
test esi, esi
je 0x407989
lea esp, [esp]
mov ebx, dword [esp + 0x44]
cmp ebx, dword [esp + 0x48]
jbe 0x40773f
call fcn.004f99e5
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], edi
mov ebp, ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x34], ebp
cmp dword [esp + 0x44], ebx
jbe 0x40775c
call fcn.004f99e5
test edi, edi
je 0x407766
cmp edi, dword [esp + 0x38]
je 0x40776b
call fcn.004f99e5
cmp ebp, ebx
je 0x407965
cmp dword [esi + 0x190], 6
jne 0x4077d5
lea edx, [esp + 0x2c]
lea ecx, [esi + 8]
push edx
call fcn.00407ac0
mov byte [esp + 0x5c], 1
or dword [esp + 0x18], 1
mov ebp, dword [eax]
test edi, edi
jne 0x4077d1
call fcn.004f99e5
xor eax, eax
mov ebx, dword [esp + 0x34]
cmp ebx, dword [eax + 0x10]
jb 0x4077ae
call fcn.004f99e5
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x4079c3
mov eax, dword [ebx]
push ebp
push eax
call fcn.004f845d
add esp, 8
test eax, eax
jne 0x4077d5
mov bl, 1
jmp 0x4077d7
mov eax, dword [edi]
jmp 0x4077a0
xor bl, bl
mov dword [esp + 0x5c], 0
test byte [esp + 0x18], 1
je 0x40780b
mov eax, dword [esp + 0x2c]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40780b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407940
mov eax, dword [esi + 0x1a0]
xor ebx, ebx
cmp eax, 0x47
jne 0x407825
lea ebx, [eax - 0x46]
jmp 0x40785b
cmp eax, 6
jne 0x407940
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str.wifi
lea ebp, [esi + 0x10c]
push ebp
call edi
test eax, eax
jne 0x407852
push str.wireless
push ebp
call edi
test eax, eax
je 0x407857
mov ebx, 1
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x24], 0
jne 0x40786a
test ebx, ebx
jne 0x407940
mov edx, dword [0x55702c]
mov eax, dword [edx + 0xc]
mov ecx, 0x55702c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x5c], 2
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push str._02X_02X_02X_02X_02X_02X
push ecx
call fcn.004045f0
mov edx, dword [esp + 0x84]
mov eax, dword [edx]
mov ebp, dword [esp + 0x40]
add esp, 0x20
cmp dword [eax - 0xc], 0
je 0x407903
cmp dword [esp + 0x24], 1
jne 0x4078e6
test ebx, ebx
je 0x407903
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4079c3
push eax
push ebp
call fcn.00504152
add esp, 8
test eax, eax
jge 0x407914
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x20]
call fcn.00407e20
mov edi, dword [esp + 0x30]
xor eax, eax
test ebx, ebx
setne al
mov byte [esp + 0x5c], 0
or edx, 0xffffffff
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x407961
call fcn.004f99e5
xor eax, eax
mov ebp, dword [esp + 0x34]
cmp ebp, dword [eax + 0x10]
jb 0x407959
call fcn.004f99e5
add ebp, 4
jmp 0x407749
mov eax, dword [edi]
jmp 0x40794b
mov esi, dword [esi]
test esi, esi
jne 0x407730
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [esp + 0x28]
test esi, esi
je 0x407989
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
xor ecx, ecx
test eax, eax
setne cl
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x60], 0xffffffff
mov esi, ecx
call fcn.00407c20
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push 0x80004005
call fcn.00405010
int3