Function at 0x10089a8
Capabilities:
Get hostname
Set socket configuration

Disassembly:
sub esp, 0x14
and dword [esp + 0xc], 0
push ebx
push ebp
push esi
push edi
push 0x100122c
call sub.WSOCK32.dll_inet_addr
push 0x35
mov dword [0x101025c], eax
mov word [0x1010258], 2
call sub.WSOCK32.dll_htons
mov word [0x101025a], ax
lea eax, [esp + 0x14]
push str.RegistryMachineSystemCurrentControlSetServicesTcpipParameters
push eax
mov dword [0x1010254], 1
call fcn.0100d2bd
test eax, eax
jge 0x1008a05
push 0x67
push 2
call fcn.0100d1e5
pop ecx
pop ecx
push 0x57
jmp 0x1008a33
mov edi, 0x400
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
mov dword [esp + 0x10], esi
jne 0x1008a41
push 0x66
push 2
call fcn.0100d1e5
pop ecx
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x1008d08
lea eax, [esp + 0x20]
push edi
push eax
push esi
push 0x10025c8
push dword [esp + 0x24]
call fcn.0100d32f
test eax, eax
jl 0x1008a82
mov eax, dword [esi]
dec eax
je 0x1008a82
dec eax
je 0x1008a78
dec eax
je 0x1008a6e
dec eax
jne 0x1008a82
mov dword [esp + 0x18], edi
jmp 0x1008a8a
mov dword [esp + 0x18], 0x800
jmp 0x1008a8a
mov dword [esp + 0x18], 0x1000
jmp 0x1008a8a
mov dword [esp + 0x18], 0x2000
lea eax, [esp + 0x20]
push edi
push eax
push esi
push 0x10025c0
push dword [esp + 0x24]
call fcn.0100d32f
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
mov ebx, 0xff
test eax, eax
mov ebp, 0x10102fa
jl 0x1008adf
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1008ada
push ebx
push dword [esp + 0x14]
push ebp
call esi
add esp, 0xc
and dword [esp + 0x1c], 0
mov edi, 0x400
jmp 0x1008b0b
mov edi, 0x400
lea eax, [esp + 0x20]
push edi
push eax
push dword [esp + 0x18]
push 0x10025b4
push dword [esp + 0x24]
call fcn.0100d32f
test eax, eax
jl 0x1008b0b
push ebx
push dword [esp + 0x14]
push ebp
call esi
add esp, 0xc
and dword [esp + 0x1c], 0
lea eax, [esp + 0x20]
push edi
push eax
push dword [esp + 0x18]
push 0x10025a8
push dword [esp + 0x24]
call fcn.0100d32f
test eax, eax
jl 0x1008bb4
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1008baf
push ebx
push dword [esp + 0x14]
push ebp
call esi
add esp, 0xc
xor esi, esi
cmp byte [0x10102fa], 0
mov eax, ebp
mov dword [0x10103fc], ebp
mov ecx, 0x1010400
je 0x1008b90
cmp ecx, 0x1010414
jae 0x1008b90
mov dl, byte [eax]
cmp dl, 0x20
je 0x1008b84
cmp dl, 9
je 0x1008b84
cmp dl, 0x2c
je 0x1008b84
test esi, esi
je 0x1008b8a
mov dword [ecx], eax
add ecx, 4
xor esi, esi
jmp 0x1008b8a
and byte [eax], 0
push 1
pop esi
inc eax
cmp byte [eax], 0
jne 0x1008b5e
mov dl, byte [eax]
test dl, dl
je 0x1008c40
cmp dl, 0x20
je 0x1008c40
cmp dl, 9
je 0x1008c40
inc eax
jmp 0x1008b90
mov edi, 0x400
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push edi
push 0x1002598
push dword [esp + 0x24]
call fcn.0100d32f
test eax, eax
jl 0x1008c4e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1008c4e
push ebx
push dword [esp + 0x14]
push ebp
call esi
add esp, 0xc
xor esi, esi
cmp byte [0x10102fa], 0
mov eax, ebp
mov dword [0x10103fc], ebp
mov ecx, 0x1010400
je 0x1008c2d
cmp ecx, 0x1010414
jae 0x1008c2d
mov dl, byte [eax]
cmp dl, 0x20
je 0x1008c21
cmp dl, 9
je 0x1008c21
test esi, esi
je 0x1008c27
mov dword [ecx], eax
add ecx, 4
xor esi, esi
jmp 0x1008c27
and byte [eax], 0
push 1
pop esi
inc eax
cmp byte [eax], 0
jne 0x1008c00
mov dl, byte [eax]
test dl, dl
je 0x1008c40
cmp dl, 0x20
je 0x1008c40
cmp dl, 9
je 0x1008c40
inc eax
jmp 0x1008c2d
and byte [eax], 0
and dword [ecx], 0
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
or dword [0x1010250], eax
cmp byte [0x10102fa], 0
jne 0x1008ca7
push 0x100
push dword [esp + 0x14]
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x1008ca7
push 0x2e
push dword [esp + 0x14]
call ebx
pop ecx
test eax, eax
pop ecx
je 0x1008ca7
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
cmp dword [esp + 0x1c], edi
jne 0x1008cf4
mov cl, byte [0x10102fa]
mov dword [0x10103fc], ebp
mov esi, 0x1010400
mov eax, ebp
test cl, cl
je 0x1008cd2
cmp cl, 0x2e
jne 0x1008ccc
inc edi
mov cl, byte [eax + 1]
inc eax
jmp 0x1008cc2
mov eax, ebp
cmp edi, 2
jl 0x1008cf1
cmp esi, 0x1010408
jae 0x1008cf1
push 0x2e
push eax
call ebx
inc eax
pop ecx
mov dword [esi], eax
add esi, 4
pop ecx
dec edi
jmp 0x1008cd4
and dword [esi], 0
push dword [esp + 0x10]
or dword [0x1010250], 1
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret