Function at 0x1017b7f0
Capabilities:
Connect socket
Get hostname
Send data
Send data on socket

Disassembly:
sub esp, 0x3c
mov eax, dword [0x10205ac8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, 2
mov word [esp + 0x38], ax
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov eax, dword [edi + 0x54]
mov dword [esp + 0x3c], eax
movzx eax, word [0x1020d25c]
push eax
call sub.WS2_32.dll_htons
mov word [esp + 0x3a], ax
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [edi + 4]
call sub.WS2_32.dll_connect
test eax, eax
jns 0x1017b861
cmp dword [esp + 0x54], 0
mov eax, 0x69
mov ecx, 0x63
cmovne eax, ecx
mov dword [0x102047a4], eax
jmp 0x1017bb40
push dword [esp + 0x60]
push 0x200
push dword [edi + 0x60]
call fcn.1017d850
mov esi, eax
xor ebp, ebp
push pe_nt_image_headers32
mov dword [esp + 0x14], esi
call fcn.10178d20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1017b8b7
push pe_nt_image_headers32
push ebx
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x1017b8ae
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1017b8a2
sub ecx, edx
lea ebp, [ecx + 1]
push ebx
call fcn.100ecdf4
add esp, 4
push 0x220
lea eax, [esi + 0x24]
add eax, ebp
push eax
push 0x13
call fcn.10178f60
mov ebx, eax
test ebx, ebx
je 0x1017bb40
mov esi, dword [edi + 0x3c]
and esi, 0xf00000
call fcn.1017b160
mov edx, dword [edi + 0xc]
movzx ecx, al
mov eax, edx
shl ecx, 0x18
or ecx, esi
mov esi, ecx
or esi, 1
and al, 1
cmove esi, ecx
test dl, 8
je 0x1017b90a
or esi, 8
mov dword [0x1020d23c], 1
mov dword [ebx + 8], esi
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], ebp
test esi, esi
je 0x1017b948
push esi
push dword [edi + 0x60]
push eax
call fcn.101b6150
add esp, 0xc
lea eax, [ebx + 0x24]
push esi
push dword [edi + 0x60]
push eax
call fcn.101b6150
lea eax, [esi + 0x24]
add esp, 0xc
xor esi, esi
add eax, ebx
jne 0x1017b96d
push ebp
call fcn.10178d20
mov esi, eax
add esp, 4
test esi, esi
je 0x1017b97d
push ebp
push eax
call sub.WS2_32.dll_gethostname
push esi
call fcn.100ecdf4
add esp, 4
movzx eax, word [ebx + 2]
push 0
push eax
push ebx
push dword [edi + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x1017b9a1
mov dword [0x102047a4], 0x61
jmp 0x1017bb37
push 0x3a98
push 0x13
push edi
call fcn.1017ce00
mov esi, eax
test esi, esi
je 0x1017bb37
movzx eax, word [esi + 4]
test ax, ax
je 0x1017b9cb
mov dword [0x102047a4], eax
jmp 0x1017bb37
mov ebp, dword [esi + 0x1c]
test ebp, ebp
je 0x1017bb2d
cmp ebp, 1
je 0x1017bb2d
cmp dword [esp + 0x54], 0
mov ax, word [esi + 0x14]
mov word [edi + 0x44], ax
jne 0x1017b9fe
movzx eax, word [esi + 0x10]
mov word [edi + 0x48], ax
movzx eax, word [esi + 0xc]
mov word [edi + 0x46], ax
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call fcn.10178d20
add esp, 4
mov dword [edi + 0x40], eax
test eax, eax
je 0x1017bb37
push dword [esp + 0x10]
add esi, 0x20
push esi
push eax
call fcn.101b6150
mov eax, dword [edi + 0x40]
add esp, 0xc
cmp dword [esp + 0x64], 0
mov dword [edi + 0x24], eax
je 0x1017bb0d
lea eax, [esp + 0x14]
mov dword [esp + 0x34], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
push eax
movups xmmword [esp + 0x28], xmm0
push edi
mov byte [esp + 0x1c], 0xb2
mov byte [esp + 0x1e], 0x1c
mov byte [esp + 0x20], 0x34
mov byte [esp + 0x22], 0x2c
mov dword [esp + 0x24], ebp
mov byte [esp + 0x28], 0x13
mov byte [esp + 0x2c], 0x20
call fcn.1017cab0
test eax, eax
je 0x1017bb0d
push 0x1388
push dword [esp + 0x1e]
push edi
call fcn.1017ce00
test eax, eax
je 0x1017bb0d
cmp word [eax + 4], 0
jne 0x1017bb0d
movzx eax, word [esi]
imul ecx, eax, 0x3e8
movzx eax, word [esi + 2]
add ecx, eax
cmp ecx, dword [esp + 0x64]
jge 0x1017bb0d
xor eax, eax
xorps xmm0, xmm0
mov word [edi + 0x44], ax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
push eax
push edi
movups xmmword [esp + 0x2c], xmm0
mov byte [esp + 0x1c], 0xb2
mov byte [esp + 0x1e], 0x14
mov byte [esp + 0x20], 0x14
mov byte [esp + 0x22], 0x24
mov dword [esp + 0x24], ebp
call fcn.1017cab0
test eax, eax
je 0x1017bb01
push 0x1388
push dword [esp + 0x1e]
push edi
call fcn.1017ce00
mov dword [0x102047a4], 0x69
jmp 0x1017bb37
push ebx
call fcn.100ecdf4
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101b4a00
add esp, 0x3c
ret 0x18
mov dword [0x102047a4], 0x62
push ebx
call fcn.100ecdf4
add esp, 4
mov ecx, dword [esp + 0x48]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b4a00
add esp, 0x3c
ret 0x18