Function at 0x1617fe9c660
Capabilities:
Connect socket
Convert ip address from string
Create thread
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1617fefd018]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov edi, r8d
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x38], rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1617fe9c6ac
mov rdx, qword [rdx]
lea r8, [rcx + 0x8009c]
mov esi, 2
mov ecx, esi
call qword [sym.imp.WS2_32.dll_inet_pton]
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [r15 + 0x8009a], ax
mov word [r15 + 0x80098], si
mov qword [rsp + 0x60], 0x11170
xor r12d, r12d
mov ecx, 0x202
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1617fe9c739
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1617fe9c732
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1617fe9c72d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1617fe9c9d7
mov rcx, r8
call fcn.1617feaa344
xor al, al
jmp 0x1617fe9c988
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r15 + 0x80090], rax
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, 0x10
lea rdx, [r15 + 0x80098]
mov rcx, qword [r15 + 0x80090]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1617fe9c7a0
mov rcx, qword [r15 + 0x80090]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1617fe9c6f8
mov byte [r15], 1
mov rcx, r15
call fcn.1617fe9de40
mov rcx, r15
call fcn.1617fe9e320
mov ecx, 8
call fcn.1617feaa34c
lea rcx, [0x1617fe9ca30]
mov qword [rax], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x1617fea6770]
xor edx, edx
xor ecx, ecx
call fcn.1617fed15a0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1617fe9c9dd
cmp dword [rsp + 0x58], 0
je 0x1617fe9c9ed
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.1617fea923c
test eax, eax
jne 0x1617fe9c9f8
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [r15 + 0x80018]
call fcn.1617fea7270
mov ecx, 8
call fcn.1617feaa34c
lea rcx, [0x1617fe9cbf0]
mov qword [rax], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x1617fea6770]
xor edx, edx
xor ecx, ecx
call fcn.1617fed15a0
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1617fe9ca00
cmp dword [rsp + 0x48], 0
je 0x1617fe9ca10
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.1617fea923c
test eax, eax
jne 0x1617fe9ca1b
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov ecx, r12d
mov rax, r12
mov edx, 0x53
lea r8, [0x1617fefdc60]
cmp byte [rax + r8], 0
je 0x1617fe9c8dc
nop dword [rax]
inc ecx
inc rax
cmp byte [rax + r8], 0
jne 0x1617fe9c8d0
inc ecx
inc rax
sub rdx, 1
jne 0x1617fe9c8c6
movsxd r14, ecx
add r14, r8
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r14 + rdi], 0
jne 0x1617fe9c8f4
mov esi, r12d
test edi, edi
je 0x1617fe9c93a
nop word [rax + rax]
mov r8d, edi
sub r8d, esi
mov edx, esi
add rdx, r14
xor r9d, r9d
mov rcx, qword [r15 + 0x80090]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1617fe9c9b8
add esi, eax
cmp esi, edi
jb 0x1617fe9c910
cmp dword [rsp + 0x48], 0
jne 0x1617fe9c9cb
cmp dword [rsp + 0x58], 0
jne 0x1617fe9c9d1
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1617fe9c986
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1617fe9c981
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1617fe9c9d7
mov rcx, r8
call fcn.1617feaa344
mov al, 1
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r12
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1617feaa320
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [rsp + 0x48], 0
jne 0x1617fe9c9cb
cmp dword [rsp + 0x58], 0
jne 0x1617fe9c9d1
jmp 0x1617fe9c6f8
call fcn.1617fecdd80
nop
call fcn.1617fecdd80
nop
call fcn.1617fecaf50
nop
mov dword [rsp + 0x58], r12d
mov ecx, 6
call fcn.1617fea91ec
nop
mov ecx, 1
call fcn.1617fea91ec
int3
mov ecx, eax
call fcn.1617fea91b0
nop
mov dword [rsp + 0x48], r12d
mov ecx, 6
call fcn.1617fea91ec
nop
mov ecx, 1
call fcn.1617fea91ec
int3
mov ecx, eax
call fcn.1617fea91b0
int3