Function at 0x40ca50
Capabilities:
Get mac address on windows
Print debug messages

Disassembly:
mov eax, 0x4034
call fcn.00419dd0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4044]
cmp esi, 3
push edi
jne 0x40ca9e
mov eax, dword [0x42952c]
push 0x422a26
push eax
call fcn.0040c9e0
push 0
push 0
call fcn.0040cef0
add esp, 0x10
call dword [sym.imp.KERNEL32.DLL_GetVersion]
pop edi
pop esi
mov dword [0x428c74], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4034
ret
cmp esi, 2
jne 0x40cb04
mov eax, dword [esp + 0x404c]
mov ecx, dword [0x429560]
cmp eax, ecx
jge 0x40caf7
lea ecx, [eax + eax*2]
push 3
push str.SOFTWAREDRCOMCLIENT
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ecx + ecx*4]
mov edi, 0x4226e0
push 0x230
push 0x4226e0
lea ecx, [ecx + ecx*8]
push str.DesAdapterName
shl ecx, 1
sub ecx, eax
lea esi, [ecx*4 + 0x420744]
mov ecx, 0x8c
rep movsd dword es:[edi], dword [esi]
call fcn.00408c70
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4034
ret
mov ecx, 0x868
xor eax, eax
mov edi, 0x420540
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
xor ebx, ebx
push edx
push eax
mov dword [esp + 0x18], ebx
mov dword [0x429560], ebx
mov dword [esp + 0x30], 0x4008
call sub.packet.dll_PacketGetAdapterNames
add esp, 8
test al, al
jne 0x40cb61
push 1
push ebx
push str.Winpcap
call fcn.00409af0
add esp, 0xc
call fcn.0040b420
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4034
ret
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40cdc4
mov cl, byte [esp + 0x3d]
lea eax, [esp + 0x3c]
test cl, cl
lea esi, [esp + 0x3c]
jne 0x40cbe3
lea eax, [esp + 0x3c]
lea esi, [esp + 0x3c]
mov edx, 0x420744
mov cx, word [eax]
test cx, cx
jne 0x40cbcf
cmp word [eax - 2], cx
je 0x40cbd4
test cx, cx
jne 0x40cbcf
cmp edx, 0x4228e4
jge 0x40cbcc
mov ecx, eax
mov edi, edx
sub ecx, esi
sar ecx, 1
shl ecx, 1
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
add edx, 0x434
lea esi, [eax + 2]
add eax, 2
jmp 0x40cb92
lea ecx, [esp + 0x3c]
sub eax, ecx
add eax, 2
sar eax, 1
shl eax, 1
jmp 0x40cc27
mov edx, 0x420744
mov cl, byte [eax]
test cl, cl
jne 0x40cc1d
cmp byte [eax - 1], cl
je 0x40cc20
test cl, cl
jne 0x40cc1d
cmp edx, 0x4228e4
jge 0x40cc1a
mov ecx, eax
mov edi, edx
sub ecx, esi
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
add edx, 0x434
lea esi, [eax + 1]
inc eax
jmp 0x40cbe8
lea edx, [esp + 0x3c]
sub eax, edx
inc eax
mov ecx, ebx
xor edi, edi
lea eax, [esp + eax + 0x3c]
xor esi, esi
xor ebx, ebx
cmp ecx, edi
mov dword [0x429560], ecx
mov dword [esp + 0x18], eax
jle 0x40cc7d
mov ebp, 0x420540
mov ecx, dword [esp + 0x18]
push 0x1fe
lea edi, [ecx + esi]
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
add ebp, 0x434
repne scasb al, byte es:[edi]
mov eax, dword [0x429560]
not ecx
dec ecx
inc ebx
cmp ebx, eax
lea esi, [esi + ecx + 1]
jl 0x40cc46
xor edi, edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push edx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea ecx, [esp + 0x1c]
mov ebx, eax
push ecx
push eax
mov dword [esp + 0x20], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov eax, dword [0x429560]
mov dword [esp + 0x14], edi
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x40cda9
mov ebp, 0x420540
mov dword [esp + 0x24], ebp
lea edx, [ebp + 0x204]
push edx
call sub.packet.dll_PacketOpenAdapter
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x20], esi
je 0x40cd8c
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0040c9e0
add esp, 8
test ebx, ebx
je 0x40cd83
lea eax, [ebx + 0x194]
mov ecx, 3
lea edi, [esp + 0x2c]
mov esi, eax
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x40cd36
mov edx, dword [ebx + 0x1a0]
mov ecx, 6
cmp edx, ecx
jne 0x40cd36
cmp dword [ebx + 0x190], ecx
jne 0x40cd36
mov edx, dword [eax]
mov ecx, str.DEST
cmp edx, dword [ecx]
jne 0x40cd4e
mov esi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push ebp
call esi
push str._pass__n
call esi
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40ccfc
jmp 0x40cd7b
mov eax, dword [ebx + 0x19c]
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x200], eax
mov eax, dword [esp + 0x24]
mov edi, eax
inc edx
mov ecx, 0x10d
mov esi, ebp
add eax, 0x434
mov dword [esp + 0x10], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
push esi
call sub.packet.dll_PacketCloseAdapter
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [0x429560]
inc eax
add ebp, 0x434
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40ccc9
mov ecx, dword [esp + 0x10]
push ebx
mov dword [0x429560], ecx
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x404c]
add esp, 4
test esi, esi
jne 0x40ce30
cmp dword [0x429560], 1
jne 0x40cb51
push 0x420744
call sub.packet.dll_PacketOpenAdapter
add esp, 4
mov dword [0x42952c], eax
test eax, eax
je 0x40cb51
push 3
push str.SOFTWAREDRCOMCLIENT
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, 0x8c
mov esi, 0x420744
mov edi, 0x4226e0
push 0x230
push 0x4226e0
rep movsd dword es:[edi], dword [esi]
push str.DesAdapterName
call fcn.00408c70
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4034
ret
cmp esi, 1
jne 0x40cb51
mov eax, dword [0x429560]
test eax, eax
jne 0x40ce5e
push esi
push eax
push str.No_interfaces_found__Make_sure_device_is_installed
call fcn.00409af0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4034
ret
mov ebp, dword [esp + 0x4050]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x40cec6
mov ebx, 0x420744
mov eax, dword [esp + 0x404c]
lea edx, [ebx - 0x204]
push edx
push 0
push 0x180
push eax
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, 0x8c
mov edi, ebx
mov esi, 0x4226e0
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x40cead
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [0x429560]
inc eax
add ebx, 0x434
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40ce76
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x404c]
push 0
push ecx
push 0x186
push edx
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4034
ret