Function at 0x10035e9
Capabilities:
Get hostname
Get networking parameters
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push 0x620
xor ebx, ebx
push 0x40
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 8]
mov dword [eax], esi
jne 0x100361e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003aa1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 4]
push eax
push esi
push 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0x100
call edi
test eax, eax
jne 0x1003655
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jmp 0x10037b0
lea ecx, [ebp - 4]
push ecx
lea eax, [esi + 0x200]
push eax
push 2
mov dword [ebp - 4], 0x100
call edi
test eax, eax
jne 0x1003676
mov word [esi + 0x200], bx
lea eax, [ebp - 0x8c]
push eax
call sub.iphlpapi.dll_GetIpStatistics
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1003697
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
jmp 0x1003a5b
xor eax, eax
cmp dword [ebp - 0x8c], 1
sete al
xor edi, edi
mov dword [esi + 0x604], eax
mov dword [ebp - 8], 0x3e8
cmp edi, ebx
je 0x10036bd
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x2c], edi
je 0x10036f1
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp - 8], ecx
je 0x10036b2
jmp 0x10036f8
mov dword [ebp + 8], 8
cmp dword [ebp + 8], ebx
je 0x100370b
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
jmp 0x1003a5b
mov eax, dword [edi + 0x240]
mov dword [esi + 0x608], eax
mov eax, dword [edi + 0x244]
push edi
mov dword [esi + 0x60c], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
push 0x10003
mov dword [ebp - 0x2c], ebx
call sub.DNSAPI.dll_DnsQueryConfigAllocEx
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1003812
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ecx + 4], eax
mov dword [ebp - 0xc], eax
jbe 0x1003812
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, ecx
add eax, 8
mov dword [ebp + 8], eax
mov ebx, 0xfde9
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [ecx]
push eax
push ebx
call edi
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add dword [ebp + 8], 4
cmp ecx, dword [eax + 4]
jb 0x100376b
cmp dword [ebp - 4], 0
je 0x1003812
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esi + 0x614], eax
jne 0x10037be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1003a5b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp dword [edx + 4], ecx
mov dword [ebp - 0xc], ecx
jbe 0x1003812
mov ecx, edx
add ecx, 8
mov dword [ebp + 8], ecx
jmp 0x10037e1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, ecx
push eax
mov eax, dword [esi + 0x614]
lea eax, [eax + ecx*2]
push eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push dword [eax]
push 0
push ebx
call edi
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add dword [ebp + 8], 4
cmp ecx, dword [eax + 4]
jb 0x10037de
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.iphlpapi.dll_NhpAllocateAndGetInterfaceInfoFromStack
test eax, eax
mov dword [ebp + 8], eax
je 0x100383f
mov eax, dword [ebp + 0xc]
mov dword [eax], 7
jmp 0x1003a5b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 0x20], 0
je 0x100385b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x1003871
call ebx
jmp 0x100387d
push 0
lea ecx, [ebp - 8]
push ecx
push eax
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
je 0x100384c
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 0x1c], 0
je 0x1003898
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x10038ae
call ebx
jmp 0x10038ba
push 1
lea ecx, [ebp - 8]
push ecx
push eax
call sub.iphlpapi.dll_GetIpAddrTable
cmp eax, 0x7a
mov dword [ebp + 8], eax
je 0x1003889
test eax, eax
je 0x10038d4
mov eax, dword [ebp + 0xc]
mov dword [eax], 8
jmp 0x1003a5b
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 0x18], 0
je 0x10038ea
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x1003900
call ebx
jmp 0x100390c
push 1
lea ecx, [ebp - 8]
push ecx
push eax
call sub.iphlpapi.dll_GetIfTable
cmp eax, 0x7a
mov dword [ebp + 8], eax
je 0x10038db
test eax, eax
je 0x1003926
mov eax, dword [ebp + 0xc]
mov dword [eax], 5
jmp 0x1003a3d
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 0x14], 0
je 0x1003942
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push 0x40
call edi
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x1003954
call ebx
jmp 0x1003960
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call sub.iphlpapi.dll_GetInterfaceInfo
cmp eax, 0x7a
mov dword [ebp + 8], eax
je 0x1003933
test eax, eax
je 0x100397a
mov eax, dword [ebp + 0xc]
mov dword [eax], 6
jmp 0x1003a3d
call fcn.0100356b
mov dword [esi + 0x610], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 1
jbe 0x1003a3d
dec eax
mov dword [esi + 0x618], eax
shl eax, 2
push eax
push 0x40
call edi
test eax, eax
mov dword [esi + 0x61c], eax
jne 0x10039b6
call ebx
mov dword [ebp + 8], eax
jmp 0x1003a3d
mov edi, dword [ebp - 0x18]
xor ebx, ebx
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
jbe 0x1003a37
add edi, 0x208
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
and dword [ebp - 0x28], 0
test edx, edx
jbe 0x1003a24
add eax, 4
mov ecx, dword [edi - 4]
cmp ecx, dword [eax]
je 0x10039ee
inc dword [ebp - 0x28]
add eax, 0x104
cmp dword [ebp - 0x28], edx
jb 0x10039d8
jmp 0x1003a24
cmp dword [edi], 0x18
je 0x1003a24
push dword [ebp + 0xc]
lea eax, [edi - 0x204]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push eax
mov eax, dword [esi + 0x61c]
lea eax, [eax + ebx*4]
push eax
push esi
call fcn.010032c2
test eax, eax
mov dword [ebp + 8], eax
jne 0x1003a37
inc ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add edi, 0x35c
cmp ecx, dword [eax]
jb 0x10039c8
mov dword [esi + 0x618], ebx
cmp dword [ebp - 0x18], 0
je 0x1003a4c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], 0
je 0x1003a5b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x1003a6d
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], edi
je 0x1003a77
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x20], edi
je 0x1003a81
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x2c], edi
je 0x1003a8b
push dword [ebp - 0x2c]
call esi
cmp dword [ebp - 0x10], edi
pop edi
je 0x1003a9e
push 0x10003
push dword [ebp - 0x10]
call sub.DNSAPI.dll_DnsFreeConfigStructure
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret 8