Function at 0x140019940
Capabilities:
Connect socket
Create thread
Resolve dns
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rcx + 0xd748]
xor ebp, ebp
mov rdi, rcx
cmp byte [rax + 0x31f], bpl
jne 0x1400199ca
cmp qword [rcx + 0x12d8], rbp
jne 0x1400199ca
mov rcx, qword [rcx + 0x12f8]
test rcx, rcx
je 0x14001998c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x30]
mov qword [rdi + 0x12f8], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x1400275d0]
mov r9, rdi
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x12f8], rax
test rax, rax
je 0x1400199ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rdi + 0x748]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400199e1
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov r14d, 2
mov ecx, r14d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rdi + 0x12d8]
mov qword [rdi + 0x748], rax
test rcx, rcx
je 0x140019a1c
lea r8, [0x1402bb6d0]
mov edx, 0x40c
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp qword [rdi + 0x748], 0xffffffffffffffff
mov rcx, qword [rdi + 0x12d8]
je 0x140019c99
mov qword [rsp + 0x98], rsi
test rcx, rcx
je 0x140019a5d
lea r8, [0x1402be550]
mov edx, 0x40c
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, qword [rdi + 0x12d8]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea rcx, [rdi + 0xa9]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x5c], eax
cmp eax, 0xffffffff
jne 0x140019a96
lea rcx, [rdi + 0xa9]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140019cd6
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rdi + 0x12d8]
test rcx, rcx
je 0x140019aef
lea r8, [0x1402be950]
mov edx, 0x40c
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, qword [rdi + 0x12d8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x12d8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r8d, dword [rdi + 0xa0]
xor r9d, r9d
mov rcx, qword [rdi + 0x12d8]
mov edx, 0x3fb
call qword [sym.imp.USER32.dll_SetDlgItemInt]
movzx ecx, word [rdi + 0xa0]
mov word [rsp + 0x58], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0xd690]
mov word [rsp + 0x5a], ax
test rcx, rcx
je 0x140019b39
mov edx, 0x1388
mov byte [0x1402babec], bpl
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0xd690]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xd690], rbp
lea rax, [rsp + 0x34]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [rdi + 0x748]
lea r8, [0x1400198e0]
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rdi + 0x748]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
mov qword [rdi + 0xd690], rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140019bf7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.socket_error__i_n
xor edx, edx
mov r9d, eax
lea rcx, vtable.Log.0
mov ebx, eax
call fcn.1400153f0
cmp ebx, 6
jne 0x140019bb3
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi + 0x12d8]
test rcx, rcx
je 0x140019bd1
lea r8, [0x1402bedd0]
mov edx, 0x40c
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, qword [rdi + 0x2a0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rdx, [0x1402bedd0]
cmp byte [rdi + 0xd68c], bpl
jne 0x140019d4c
jmp 0x140019d2a
mov eax, dword [rdi + 0xa0]
lea r9, [rdi + 0xa9]
lea r8, str.Connected_to__s_port__d_n
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, vtable.Log.0
call fcn.1400153f0
mov rcx, qword [rdi + 0x12d8]
test rcx, rcx
je 0x140019c73
lea r8, [0x1402be490]
mov edx, 0x40c
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, qword [rdi + 0x12d8]
lea r8, [rdi + 0xa9]
mov edx, 0x3fc
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, qword [rdi + 0x12d8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x12d8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14011b0c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rbp
ret
test rcx, rcx
je 0x140019cb0
lea r8, [0x1402bf0d0]
mov edx, 0x40c
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
xor r8d, r8d
lea rdx, [0x1402bf0d0]
lea rcx, [rsp + 0x38]
call fcn.14003d4c0
lea rdx, [0x1401b14d8]
lea rcx, [rsp + 0x38]
call fcn.1401202c4
int3
mov rcx, qword [rdi + 0x2a0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rdi + 0x12d8]
test rcx, rcx
je 0x140019d01
lea r8, [0x1402be350]
mov edx, 0x40c
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov r8d, 0xc411
lea rdx, [0x1402be350]
lea rcx, [rsp + 0x38]
call fcn.14003d4c0
lea rdx, [0x1401b14d8]
lea rcx, [rsp + 0x38]
call fcn.1401202c4
int3
mov r8d, 0xc413
lea rcx, [rsp + 0x38]
call fcn.14003d4c0
lea rdx, [0x1401b14d8]
lea rcx, [rsp + 0x38]
call fcn.1401202c4
int3
lea rcx, [rsp + 0x38]
call fcn.14003d420
lea rdx, [0x1401b1580]
lea rcx, [rsp + 0x38]
call fcn.1401202c4
int3