Function at 0x40d370
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d899d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push esi
push edi
mov ecx, 0x51012a
call fcn.004b532d
push 0x104
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.004b8400
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esp, 0xc
mov eax, 0x3a98
xor esi, esi
mov dword [ebp - 0x10], eax
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x40d736
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0x10
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x40d411
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
inc esi
xor ebx, ebx
cmp esi, 3
jae 0x40d736
mov eax, dword [ebp - 0x10]
jmp 0x40d3c1
test eax, eax
jne 0x40d736
mov edi, ebx
nop dword [eax + eax]
mov esi, 0xf
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
mov eax, esi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov edx, dword [edi + 0xc]
mov dword [ebp - 4], 1
test edx, edx
je 0x40d681
cmp byte [edx], 0
je 0x40d681
mov ecx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d497
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402860
lea eax, [ebp - 0x2c]
push eax
call fcn.0040dc50
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x3c], eax
cmp edx, 0x10
jb 0x40d4ed
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d4e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d83e
push edx
push ecx
call fcn.004b531f
add esp, 8
mov eax, dword [edi + 0x34]
cmp eax, 6
jne 0x40d529
movzx eax, byte [edi + 0x31]
push eax
movzx eax, byte [edi + 0x30]
push eax
movzx eax, byte [edi + 0x2f]
push eax
movzx eax, byte [edi + 0x2e]
push eax
movzx eax, byte [edi + 0x2d]
push eax
movzx eax, byte [edi + 0x2c]
push eax
lea eax, [ebp - 0x274]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0040d280
add esp, 0x20
jmp 0x40d56a
cmp eax, 8
jne 0x40d56a
movzx eax, byte [edi + 0x33]
push eax
movzx eax, byte [edi + 0x32]
push eax
movzx eax, byte [edi + 0x31]
push eax
movzx eax, byte [edi + 0x30]
push eax
movzx eax, byte [edi + 0x2f]
push eax
movzx eax, byte [edi + 0x2e]
push eax
movzx eax, byte [edi + 0x2d]
push eax
movzx eax, byte [edi + 0x2c]
push eax
lea eax, [ebp - 0x274]
push str._02X__02X__02X__02X__02X__02X__02X__02X
push eax
call fcn.0040d280
add esp, 0x28
lea ecx, [ebp - 0x274]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d573
sub ecx, edx
lea eax, [ebp - 0x274]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402860
mov edx, dword [edi + 0x24]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d594
push 0
push 0
push 0
push 0
sub ecx, esi
sar ecx, 1
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
lea esi, [eax + 1]
push esi
call fcn.004b53b2
push esi
mov ebx, eax
push 0
push ebx
call fcn.004b8400
mov edx, dword [edi + 0x24]
add esp, 0x10
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d5e0
push 0
push 0
push dword [ebp - 0x14]
sub ecx, esi
push ebx
sar ecx, 1
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d608
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x54]
call fcn.00402860
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x34]
push 1
push ebx
mov dword [ebp - 0x34], eax
call fcn.004b531f
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
add esp, 8
mov esi, dword [ebx + 4]
push eax
cmp esi, dword [ebx + 8]
je 0x40d673
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.004037a0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.004037a0
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x38], eax
add dword [ebx + 4], 0x3c
jmp 0x40d67b
push esi
mov ecx, ebx
call fcn.0040cf00
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x40]
mov edi, dword [edi + 8]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x40d6be
mov ecx, dword [ebp - 0x54]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d6b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d83e
push edx
push ecx
call fcn.004b531f
add esp, 8
cmp esi, 0x10
jb 0x40d6ef
mov ecx, dword [ebp - 0x6c]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x40d6e5
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d83e
push esi
push ecx
call fcn.004b531f
add esp, 8
test edi, edi
jne 0x40d420
mov ebx, dword [ebp - 0x30]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x170]
mov eax, 0x4e16a6
pop ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d752
test dl, dl
je 0x40d732
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d752
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d716
xor eax, eax
jmp 0x40d757
push 4
lea eax, [ebp - 0x170]
push str.:1:_d
push eax
call fcn.0040d280
add esp, 0xc
test ebx, ebx
je 0x40d70a
jmp 0x40d6fa
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d7f1
push 4
lea eax, [ebp - 0x170]
push str.:2:_d
push eax
call fcn.0040d280
mov esi, dword [ebp + 0xc]
push esi
push dword [esi + 4]
push dword [esi]
call fcn.0040cec0
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040d850
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x170]
push 0x4e17d0
push eax
call fcn.0040d280
mov edx, dword [ebp - 0x18]
add esp, 0x2c
cmp edx, 0x10
jb 0x40d7df
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d83e
push edx
push ecx
call fcn.004b531f
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x170]
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d814
sub ecx, edx
lea eax, [ebp - 0x170]
push ecx
push eax
mov ecx, esi
call fcn.00402860
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004bba0f
int3