Function at 0x1009684
Capabilities:
Get hostname
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x14], 0
push 0x10011ac
call sub.WSOCK32.dll_inet_addr
push 0x35
mov dword [0x100e2e4], eax
mov word [0x100e2e0], 2
call sub.WSOCK32.dll_htons
mov word [0x100e2e2], ax
push str.RegistryMachineSystemCurrentControlSetServicesTcpipParameters
lea eax, [ebp - 8]
push eax
mov dword [0x100e2dc], 1
call fcn.0100ab2f
test eax, eax
jge 0x10096e9
push 0x67
push 2
call fcn.01009110
pop ecx
pop ecx
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
leave
ret
push esi
push edi
mov esi, 0x400
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 4], edi
jne 0x1009725
push 0x66
push 2
call fcn.01009110
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x1009a10
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x1002810
push dword [ebp - 8]
call fcn.0100aba8
test eax, eax
jl 0x1009761
mov eax, dword [edi]
dec eax
je 0x1009761
dec eax
je 0x1009758
dec eax
je 0x100974f
dec eax
jne 0x1009761
mov dword [ebp - 0xc], esi
jmp 0x1009768
mov dword [ebp - 0xc], 0x800
jmp 0x1009768
mov dword [ebp - 0xc], 0x1000
jmp 0x1009768
mov dword [ebp - 0xc], 0x2000
push ebx
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x1002808
push dword [ebp - 8]
call fcn.0100aba8
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_strncpy]
mov ebx, 0xff
mov esi, 0x100e382
jl 0x10097aa
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100979c
sub eax, edx
mov dword [ebp - 0x1c], eax
jne 0x10097c7
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x10027fc
push dword [ebp - 8]
call fcn.0100aba8
test eax, eax
jl 0x10097d5
push ebx
push dword [ebp - 4]
push esi
call edi
add esp, 0xc
and dword [ebp - 0x14], 0
push str.RegistryMachineSoftwarePoliciesMicrosoftWindows_NTDNSClient
lea eax, [ebp - 0x18]
push eax
call fcn.0100ab2f
test eax, eax
jl 0x100981c
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x10027f0
push dword [ebp - 0x18]
call fcn.0100aba8
test eax, eax
jl 0x100981c
mov ecx, dword [ebp - 4]
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100980d
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
jne 0x1009835
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x10027f0
push dword [ebp - 8]
call fcn.0100aba8
test eax, eax
jl 0x10098c6
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009843
sub eax, edx
mov dword [ebp - 0x1c], eax
je 0x10098c6
push ebx
push dword [ebp - 4]
push esi
call edi
add esp, 0xc
xor edi, edi
cmp byte [0x100e382], 0
mov eax, esi
mov dword [0x100e484], esi
mov ecx, 0x100e488
je 0x10098bc
cmp ecx, 0x100e54c
jae 0x10098bc
mov dl, byte [eax]
cmp dl, 0x20
je 0x1009899
cmp dl, 9
je 0x1009899
cmp dl, 0x2c
je 0x1009899
test edi, edi
je 0x100989f
mov dword [ecx], eax
add ecx, 4
xor edi, edi
jmp 0x100989f
xor edi, edi
mov byte [eax], 0
inc edi
inc eax
cmp byte [eax], 0
jne 0x1009873
jmp 0x10098bc
mov dl, byte [eax]
cmp dl, 0x20
je 0x100995e
cmp dl, 9
je 0x100995e
inc eax
cmp byte [eax], 0
jne 0x10098a7
jmp 0x100995e
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x10027e0
push dword [ebp - 8]
call fcn.0100aba8
test eax, eax
jl 0x100996b
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10098ed
sub eax, edx
mov dword [ebp - 0x1c], eax
je 0x100996b
push ebx
push dword [ebp - 4]
push esi
call edi
add esp, 0xc
xor edi, edi
cmp byte [0x100e382], 0
mov eax, esi
mov dword [0x100e484], esi
mov ecx, 0x100e488
je 0x1009959
cmp ecx, 0x100e54c
jae 0x1009959
mov dl, byte [eax]
cmp dl, 0x20
je 0x100993e
cmp dl, 9
je 0x100993e
test edi, edi
je 0x1009944
mov dword [ecx], eax
add ecx, 4
xor edi, edi
jmp 0x1009944
xor edi, edi
mov byte [eax], 0
inc edi
inc eax
cmp byte [eax], 0
jne 0x100991d
jmp 0x1009959
mov dl, byte [eax]
cmp dl, 0x20
je 0x100995e
cmp dl, 9
je 0x100995e
inc eax
cmp byte [eax], 0
jne 0x100994c
mov byte [eax], 0
and dword [ecx], 0
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
or dword [0x100e2d8], eax
cmp byte [0x100e382], 0
jne 0x10099ae
push 0x100
push dword [ebp - 4]
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x10099ae
push 0x2e
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_strchr]
test eax, eax
pop ecx
pop ecx
je 0x10099ae
inc eax
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10099a4
cmp dword [ebp - 0x14], 0
jne 0x10099fc
mov al, byte [0x100e382]
mov dword [0x100e484], esi
mov edi, 0x100e488
mov ecx, esi
xor ebx, ebx
jmp 0x10099d2
cmp al, 0x2e
jne 0x10099cf
inc ebx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10099ca
jmp 0x10099f4
cmp edi, 0x100e490
jae 0x10099f9
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_strchr]
inc eax
mov esi, eax
pop ecx
mov dword [edi], esi
add edi, 4
pop ecx
dec ebx
cmp ebx, 2
jge 0x10099d8
and dword [edi], 0
push dword [ebp - 4]
or dword [0x100e2d8], 1
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret