Function at 0x1009670
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.0100ab1f
test eax, eax
jge 0x10096d5
push 0x67
push 2
call fcn.010090fc
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 0x1009711
push 0x66
push 2
call fcn.010090fc
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 0x10099fc
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x1002810
push dword [ebp - 8]
call fcn.0100ab98
test eax, eax
jl 0x100974d
mov eax, dword [edi]
dec eax
je 0x100974d
dec eax
je 0x1009744
dec eax
je 0x100973b
dec eax
jne 0x100974d
mov dword [ebp - 0xc], esi
jmp 0x1009754
mov dword [ebp - 0xc], 0x800
jmp 0x1009754
mov dword [ebp - 0xc], 0x1000
jmp 0x1009754
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.0100ab98
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_strncpy]
mov ebx, 0xff
mov esi, 0x100e382
jl 0x1009796
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009788
sub eax, edx
mov dword [ebp - 0x1c], eax
jne 0x10097b3
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x10027fc
push dword [ebp - 8]
call fcn.0100ab98
test eax, eax
jl 0x10097c1
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.0100ab1f
test eax, eax
jl 0x1009808
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x10027f0
push dword [ebp - 0x18]
call fcn.0100ab98
test eax, eax
jl 0x1009808
mov ecx, dword [ebp - 4]
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10097f9
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
jne 0x1009821
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x10027f0
push dword [ebp - 8]
call fcn.0100ab98
test eax, eax
jl 0x10098b2
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100982f
sub eax, edx
mov dword [ebp - 0x1c], eax
je 0x10098b2
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 0x10098a8
cmp ecx, 0x100e54c
jae 0x10098a8
mov dl, byte [eax]
cmp dl, 0x20
je 0x1009885
cmp dl, 9
je 0x1009885
cmp dl, 0x2c
je 0x1009885
test edi, edi
je 0x100988b
mov dword [ecx], eax
add ecx, 4
xor edi, edi
jmp 0x100988b
xor edi, edi
mov byte [eax], 0
inc edi
inc eax
cmp byte [eax], 0
jne 0x100985f
jmp 0x10098a8
mov dl, byte [eax]
cmp dl, 0x20
je 0x100994a
cmp dl, 9
je 0x100994a
inc eax
cmp byte [eax], 0
jne 0x1009893
jmp 0x100994a
push 0x400
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 0x10027e0
push dword [ebp - 8]
call fcn.0100ab98
test eax, eax
jl 0x1009957
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10098d9
sub eax, edx
mov dword [ebp - 0x1c], eax
je 0x1009957
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 0x1009945
cmp ecx, 0x100e54c
jae 0x1009945
mov dl, byte [eax]
cmp dl, 0x20
je 0x100992a
cmp dl, 9
je 0x100992a
test edi, edi
je 0x1009930
mov dword [ecx], eax
add ecx, 4
xor edi, edi
jmp 0x1009930
xor edi, edi
mov byte [eax], 0
inc edi
inc eax
cmp byte [eax], 0
jne 0x1009909
jmp 0x1009945
mov dl, byte [eax]
cmp dl, 0x20
je 0x100994a
cmp dl, 9
je 0x100994a
inc eax
cmp byte [eax], 0
jne 0x1009938
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 0x100999a
push 0x100
push dword [ebp - 4]
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x100999a
push 0x2e
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_strchr]
test eax, eax
pop ecx
pop ecx
je 0x100999a
inc eax
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1009990
cmp dword [ebp - 0x14], 0
jne 0x10099e8
mov al, byte [0x100e382]
mov dword [0x100e484], esi
mov edi, 0x100e488
mov ecx, esi
xor ebx, ebx
jmp 0x10099be
cmp al, 0x2e
jne 0x10099bb
inc ebx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10099b6
jmp 0x10099e0
cmp edi, 0x100e490
jae 0x10099e5
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 0x10099c4
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