Function at 0x4014f0
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Get networking parameters
Get process heap flags
Initialize winsock library
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea eax, [ebp - 0x1a8]
sub esp, 0x3f8
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
mov dword [ebp - 0x3cc], eax
sub esp, 8
test eax, eax
jne 0x401600
dec ebx
jle 0x4015a0
mov eax, dword [esi + 4]
mov dword [esp], 0x402066
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x40157e
mov eax, dword [esi + 4]
mov dword [esp], 0x40206c
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x401574
mov esi, dword [esi + 8]
test esi, esi
je 0x401610
mov eax, 0x66
call sym._ipconfig_message
mov eax, 0x65
mov ebx, 1
call sym._ipconfig_message
call sym._WSACleanup_0
mov dword [ebp - 0x3cc], ebx
jmp 0x4015e4
xor esi, esi
xor edi, edi
mov eax, pe_nt_image_headers32
xor ecx, ecx
mov dword [esp + 0xc], esi
lea ebx, [ebp - 0x3bc]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x3bc], ecx
call sym._GetAdaptersAddresses_20
sub esp, 0x14
cmp eax, 0x6f
je 0x401898
call sym._WSACleanup_0
mov eax, dword [ebp - 0x3cc]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, 1
mov dword [ebp - 0x3cc], eax
jmp 0x4015e4
mov dword [esp], 0
lea ebx, [ebp - 0x3c0]
xor ecx, ecx
mov dword [esp + 4], ebx
mov dword [ebp - 0x3c0], ecx
call sym._GetNetworkParams_8
sub esp, 8
cmp eax, 0x6f
je 0x401cf8
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x10], ebx
mov edi, pe_nt_image_headers32
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0
call sym._GetAdaptersAddresses_20
sub esp, 0x14
cmp eax, 0x6f
jne 0x4015df
mov edx, dword [ebp - 0x3c0]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x3e4], eax
sub esp, 0xc
test eax, eax
je 0x401e96
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetAdaptersAddresses_20
sub esp, 0x14
test eax, eax
jne 0x401be8
mov edi, dword [ebp - 0x3e4]
lea eax, [ebp - 0x3b8]
mov dword [ebp - 0x3d0], eax
jmp 0x4016f0
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x28]
call sym._iftype_to_string
mov dword [esp + 8], ebx
mov dword [esp], 0x67
mov dword [esp + 4], eax
call sym._ipconfig_message_printfW.constprop.0
mov dword [esp], 0x402076
call sym._ipconfig_printfW
mov edx, dword [edi + 0x20]
mov eax, 0x6a
call sym._print_field
mov edx, dword [edi + 0x24]
mov eax, 0x73
call sym._print_field
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x3d4], eax
test eax, eax
je 0x401c18
lea esi, [edi + 0x2c]
dec eax
mov edx, dword [ebp - 0x3d0]
mov dword [ebp - 0x3d8], esi
mov dword [ebp - 0x3dc], eax
je 0x4017ce
mov eax, dword [ebp - 0x3d4]
lea ebx, [edi + 0x2c]
mov dword [ebp - 0x3e0], edi
mov esi, dword [ebp - 0x3d0]
lea eax, [edi + eax + 0x2b]
mov edi, esi
mov esi, eax
nop
lea esi, [esi]
movzx eax, byte [ebx]
inc ebx
mov dword [esp], edi
add edi, 6
mov dword [esp + 0xc], eax
mov eax, str._02X_
mov dword [esp + 8], eax
mov eax, 4
mov dword [esp + 4], eax
call sym._swprintf
cmp ebx, esi
jne 0x401780
mov eax, dword [ebp - 0x3d4]
mov esi, dword [ebp - 0x3d0]
mov edi, dword [ebp - 0x3e0]
lea eax, [eax + eax*2]
lea edx, [esi + eax*2 - 6]
mov esi, dword [ebp - 0x3dc]
add dword [ebp - 0x3d8], esi
mov eax, dword [ebp - 0x3d8]
mov ebx, str._02X
mov esi, 3
movzx eax, byte [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [esp + 0xc], eax
call sym._swprintf
mov edx, dword [ebp - 0x3d0]
lea ebx, [ebp - 0x2b0]
mov eax, 0x74
call sym._print_field
mov eax, dword [edi + 0x38]
and eax, 4
call sym._boolean_to_string
mov edx, eax
mov eax, 0x75
call sym._print_field
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x401846
jmp 0x401bb8
cmp eax, 0x17
je 0x401aa0
mov esi, dword [esi + 8]
test esi, esi
nop
je 0x401bb8
mov edx, dword [esi + 0xc]
movzx eax, word [edx]
cmp eax, 2
jne 0x401830
mov eax, dword [esi + 0x10]
mov ecx, 0x36
mov dword [ebp - 0x3bc], ecx
lea ecx, [ebp - 0x3bc]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._WSAAddressToStringW_20
sub esp, 0x14
test eax, eax
je 0x401c00
mov edx, dword [esi + 0xc]
movzx eax, word [edx]
jmp 0x401830
mov edx, dword [ebp - 0x3bc]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x3d8], eax
sub esp, 0xc
test eax, eax
je 0x401e96
mov dword [esp + 0x10], ebx
xor esi, esi
mov edi, pe_nt_image_headers32
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0
call sym._GetAdaptersAddresses_20
sub esp, 0x14
test eax, eax
jne 0x401a54
mov ebx, dword [ebp - 0x3d8]
lea esi, [ebp - 0x3b8]
nop
lea esi, [esi]
mov eax, dword [ebx + 0x40]
mov edi, dword [ebx + 0x28]
call sym._iftype_to_string
mov dword [esp + 8], edi
mov dword [esp], 0x67
mov dword [esp + 4], eax
call sym._ipconfig_message_printfW.constprop.0
mov dword [esp], 0x402076
call sym._ipconfig_printfW
mov edx, dword [ebx + 0x20]
mov eax, 0x6a
call sym._print_field
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x401968
jmp 0x401a20
cmp eax, 0x17
je 0x4019c0
mov edi, dword [edi + 8]
test edi, edi
je 0x401a20
mov edx, dword [edi + 0xc]
movzx eax, word [edx]
cmp eax, 2
jne 0x401958
mov eax, dword [edi + 0x10]
mov ecx, 0x36
mov dword [ebp - 0x3b8], ecx
lea ecx, [ebp - 0x2b0]
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._WSAAddressToStringW_20
sub esp, 0x14
test eax, eax
je 0x401a88
mov edx, dword [edi + 0xc]
movzx eax, word [edx]
cmp eax, 0x17
jne 0x40195d
mov esi, esi
lea edi, [edi]
mov eax, dword [edi + 0x10]
mov ecx, 0x36
mov dword [ebp - 0x3b8], ecx
lea ecx, [ebp - 0x2b0]
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._WSAAddressToStringW_20
sub esp, 0x14
test eax, eax
jne 0x40195d
lea edx, [ebp - 0x2b0]
mov eax, 0x79
call sym._print_field
mov edi, dword [edi + 8]
test edi, edi
jne 0x401968
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + 0xa4]
test eax, eax
jne 0x401af0
mov edx, 0x4020e8
mov eax, 0x78
call sym._print_field
mov dword [esp], 0x402076
call sym._ipconfig_printfW
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401910
mov esi, dword [ebp - 0x3d8]
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x4015df
lea edx, [ebp - 0x2b0]
mov eax, 0x6b
call sym._print_field
jmp 0x40195d
mov eax, dword [esi + 0x10]
mov ecx, 0x36
mov dword [ebp - 0x3bc], ecx
lea ecx, [ebp - 0x3bc]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._WSAAddressToStringW_20
sub esp, 0x14
test eax, eax
jne 0x401839
mov edx, ebx
mov eax, 0x79
call sym._print_field
jmp 0x401839
mov edx, dword [eax + 0xc]
lea edi, [ebp - 0x2b0]
mov ecx, 0x36
mov dword [ebp - 0x3d0], edi
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x3b8], ecx
call sym._WSAAddressToStringW_20
sub esp, 0x14
test eax, eax
je 0x401ce0
mov eax, dword [ebx + 0xa4]
mov edi, dword [eax + 8]
test edi, edi
je 0x401a3d
mov dword [ebp - 0x3d4], ebx
mov ebx, edi
mov edi, dword [ebp - 0x3d0]
jmp 0x401b5f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x401ba8
mov eax, dword [ebx + 0xc]
mov edx, 0x36
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x3b8], edx
xor edx, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._WSAAddressToStringW_20
sub esp, 0x14
test eax, eax
jne 0x401b58
mov dword [esp + 4], edi
mov dword [esp], str._________________________________________1_n
call sym._ipconfig_printfW
jmp 0x401b58
mov ebx, dword [ebp - 0x3d4]
jmp 0x401a3d
mov eax, dword [edi + 0xa4]
test eax, eax
jne 0x401c30
mov edx, 0x4020e8
mov eax, 0x78
call sym._print_field
mov dword [esp], 0x402076
call sym._ipconfig_printfW
mov edi, dword [edi + 8]
test edi, edi
jne 0x4016f0
mov esi, dword [ebp - 0x3e4]
mov eax, dword fs:[0x18]
jmp 0x401a60
mov edx, ebx
mov eax, 0x6b
call sym._print_field
jmp 0x401839
xor eax, eax
mov word [ebp - 0x3b8], ax
jmp 0x4017f5
mov edx, dword [eax + 0xc]
lea esi, [ebp - 0x3bc]
mov ebx, 0x36
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x3bc], ebx
lea ebx, [ebp - 0x2b0]
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._WSAAddressToStringW_20
sub esp, 0x14
test eax, eax
je 0x401d68
mov eax, dword [edi + 0xa4]
mov esi, dword [eax + 8]
test esi, esi
jne 0x401c93
jmp 0x401bd1
mov esi, dword [esi + 8]
test esi, esi
je 0x401bd1
mov eax, dword [esi + 0xc]
mov ecx, 0x36
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x3bc], ecx
lea ecx, [ebp - 0x3bc]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WSAAddressToStringW_20
sub esp, 0x14
test eax, eax
jne 0x401c88
mov dword [esp + 4], ebx
mov dword [esp], str._________________________________________1_n
call sym._ipconfig_printfW
jmp 0x401c88
mov edx, dword [ebp - 0x3d0]
mov eax, 0x78
call sym._print_field
jmp 0x401b32
mov edx, dword [ebp - 0x3c0]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x401e96
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._GetNetworkParams_8
sub esp, 8
test eax, eax
je 0x401d80
mov dword [esp + 8], esi
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40163a
mov edx, ebx
mov eax, 0x78
call sym._print_field
jmp 0x401c72
lea eax, [ebp - 0x3b8]
mov ecx, 0x84
mov dword [ebp - 0x3d0], eax
mov edi, 0xffffffff
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edi
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0
call edi
mov edx, dword [ebp - 0x3d0]
mov eax, 0x6c
sub esp, 0x18
call sym._print_field
lea edx, [ebp - 0x2b0]
mov eax, 0x84
mov dword [esp + 0x14], eax
mov eax, 0xffffffff
mov dword [esp + 0xc], eax
lea eax, [esi + 0x84]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call edi
mov eax, 0x7a
mov edi, 0x69
lea edx, [ebp - 0x2b0]
sub esp, 0x18
call sym._print_field
mov eax, dword [esi + 0x134]
dec eax
cmp eax, 7
ja 0x401e2e
mov edi, dword [eax*4 + str.noipiiiq]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, 0x32
mov edx, 0x4040a0
sub esp, 4
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._LoadStringW_16
mov edx, 0x4040a0
mov eax, 0x6d
sub esp, 0x10
call sym._print_field
mov eax, dword [esi + 0x23c]
call sym._boolean_to_string
mov edx, eax
mov eax, 0x72
call sym._print_field
mov dword [esp], 0x402076
call sym._ipconfig_printfW
jmp 0x401d3d
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop