Function at 0x489110
Capabilities:
Get hostname
Get session user name
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57a141
push eax
mov dword fs:[0], esp
sub esp, 0x410
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, 0x5ed678
or ecx, 0xffffffff
lea edx, [ebp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [edx + 0x32]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5ed678
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
xor ebx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x64], ebx
mov dword [edx + 0x68], ebx
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 8], ebx
call fcn.00438750
mov edx, dword [esp + 0x434]
mov ecx, dword [esp + 0x430]
push edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 4], 0xffffffff
mov dword [ebp], 0xffffffff
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x84], ecx
call sub.WSOCK32.dll_htons
and eax, 0xffff
mov edi, 0x5ed678
mov dword [ebp + 0x88], eax
mov eax, dword [esp + 0x438]
mov dword [ebp + 0x10], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x430]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x4892ae
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4892ae
cmp dword [eax + 0x1d0], ebx
je 0x489230
mov ecx, dword [eax + 0x1d4]
cmp ecx, ebx
je 0x489230
push ecx
call sub.WSOCK32.dll_htonl
jmp 0x48928f
cmp eax, ebx
je 0x4892ae
cmp dword [eax + 0x1d8], ebx
je 0x4892ae
lea edi, [eax + 0x1dc]
mov esi, 0x5ed678
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x48926d
test cl, cl
je 0x489269
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x48926d
add eax, 2
add esi, 2
test cl, cl
jne 0x489249
xor eax, eax
jmp 0x489272
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4892ae
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.0055969a
call fcn.0043ef60
add esp, 4
cmp eax, ebx
je 0x4892ae
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x84], eax
mov dword [ecx + 0x4d1c], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x4d1c]
mov dword [esp + 0x430], eax
mov edi, dword [ebp + 0x10]
xor edx, edx
cmp edi, ebx
lea ecx, [esp + 0x430]
setne dl
push ecx
push edx
mov ecx, ebp
call fcn.004895c0
test eax, eax
je 0x489586
lea eax, [esp + 0x18]
lea ebx, [ebp + 0x52]
push eax
push ebx
mov dword [esp + 0x20], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4892fe
push eax
push str.GetComputerName__
call fcn.00438b50
add esp, 8
jmp 0x489586
mov eax, dword [esp + 0x430]
test eax, eax
jne 0x489457
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x489406
mov ecx, dword [eax + 0x1d0]
test ecx, ecx
je 0x489346
mov ecx, dword [eax + 0x1d4]
test ecx, ecx
je 0x489346
push ecx
call sub.WSOCK32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x84], eax
mov dword [ecx + 0x4d1c], eax
jmp 0x489457
test eax, eax
je 0x489406
mov ecx, dword [eax + 0x1d8]
test ecx, ecx
je 0x489406
lea edi, [eax + 0x1dc]
mov esi, 0x5ed678
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x48938d
test cl, cl
je 0x489389
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x48938d
add eax, 2
add esi, 2
test cl, cl
jne 0x489369
xor eax, eax
jmp 0x489392
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x489406
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.0055969a
call fcn.0043ef60
add esp, 4
test eax, eax
jne 0x4893f5
lea eax, [esp + 0x20]
push 0x400
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x4893e5
or ecx, eax
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x489457
jmp 0x48944a
mov edx, dword [ebp + 0x10]
mov dword [ebp + 0x84], eax
mov dword [edx + 0x4d1c], eax
jmp 0x489457
lea eax, [esp + 0x20]
push 0x400
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x48943c
or ecx, eax
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x489457
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 0x84], ecx
lea edx, [esp + 0x18]
lea eax, [ebp + 0x20]
push edx
push eax
mov dword [esp + 0x20], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ebx, 1
cmp eax, ebx
je 0x48948a
push 0x32
lea eax, [ebp + 0x20]
push 0x5deac0
push eax
call fcn.00438200
add esp, 0xc
mov eax, dword [0x5e8e38]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x428], eax
je 0x4894a9
mov eax, dword [ecx + 0x1f0]
mov ecx, dword [ebp + 0x84]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0043e8f0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], bl
call fcn.00559765
lea ecx, [esp + 0x14]
mov byte [esp + 0x428], 0
call fcn.0055962c
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
cmp eax, 0xc
jle 0x48951f
lea ecx, [esp + 0x14]
push 0xc
push ecx
lea ecx, [esp + 0x18]
call fcn.005549b4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call fcn.00559765
lea ecx, [esp + 0x14]
mov byte [esp + 0x428], 0
call fcn.0055962c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x8c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], ebx
test eax, eax
je 0x48955c
mov eax, dword [eax + 0x1f8]
push eax
call sub.WSOCK32.dll_ntohl
jmp 0x48956c
push str.226.81.9.8
call sub.WSOCK32.dll_inet_addr
push eax
call sub.WSOCK32.dll_htonl
lea ecx, [esp + 0x10]
mov dword [ebp + 0x9c], eax
mov dword [esp + 0x428], 0xffffffff
call fcn.0055962c
mov ecx, dword [esp + 0x420]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x41c
ret 0xc