Function at 0x180003380
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180030250]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov r12d, r8d
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
mov eax, r14d
xchg dword [rsi + 0x20], eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, 1
mov dword [rsi + 0x1c], eax
xor eax, eax
mov r15d, 2
mov qword [rsi + 0x30], rax
mov word [rsi + 0x38], ax
mov rax, qword [rsi + 0x1c]
lea r8d, [r14 + 6]
mov edx, ebp
mov ecx, r15d
mov qword [rsi + 0x30], rax
mov word [rsi + 0x38], 0x1ca
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0xb0], rax
cmp rax, 0xffffffffffffffff
jne 0x18000340f
xor al, al
jmp 0x18000365b
mov rcx, r13
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0x90], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r13
xor edx, edx
xor ecx, ecx
mov r9d, eax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.180011878
mov rcx, r13
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r13
xor edx, edx
mov r9d, eax
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], r14b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.180011880
mov rdi, qword [rsp + 0x90]
test rbx, rbx
je 0x1800034ed
movzx ecx, r12w
mov word [rsp + 0x78], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rsp + 0x78]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x7a], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rsi + 0xb0]
mov dword [rsp + 0x7c], eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1800034f4
xor al, al
jmp 0x180003653
mov rcx, qword [rsi + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x50], 0x40000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x50], 0x40000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0xb0]
lea r9, [rsp + 0x5c]
mov edx, 0xffff
mov r8d, 0x1006
mov dword [rsp + 0x5c], 0x7530
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0xb0]
lea r9, [rsp + 0x58]
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1800035f7
mov rcx, qword [rsi + 0xb0]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x68]
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x68], ebp
mov dword [rsp + 0x6c], 0x2bf20
mov dword [rsp + 0x70], 0x1388
call qword [sym.imp.WS2_32.dll_WSAIoctl]
xchg dword [rsi + 0x20], ebp
lea rax, [rsp + 0x54]
lea r8, [0x180003680]
mov qword [rsp + 0x28], rax
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x20], r14d
call fcn.1800122d0
lea r8, [0x1800037d0]
mov r9, rsi
mov qword [rsi + 0xa0], rax
lea rax, [rsp + 0x64]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call fcn.1800122d0
mov qword [rsi + 0xa8], rax
mov al, 1
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800118a0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret