Function at 0x140011307
Capabilities:
Create thread
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x140012ac0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x6a0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x10c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x6c8]
mov rax, qword [0x140020608]
xor rax, rbp
mov qword [rbp + 0x668], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011438
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140012b3d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [0x14001cc20]
call fcn.14001120d
mov eax, 0xffffffff
jmp 0x140012e62
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x140012b75
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [0x14001cc48]
call fcn.14001120d
mov eax, 0x2328
mov word [rbp + 0x1e4], ax
cmp dword [rbp + 0x690], 2
jl 0x140012bab
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x698]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov word [rbp + 0x1e4], ax
cmp dword [rbp + 0x690], 3
jl 0x140012bd6
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x698]
mov rdx, qword [rcx + rax]
lea rcx, [0x140020770]
call fcn.140011163
jmp 0x140012bf5
lea rcx, [0x14001cc70]
call fcn.14001120d
lea rdx, [0x140020770]
lea rcx, str.___r_n_
call fcn.1400110af
mov edx, 0x100
lea rcx, [rbp + 0x210]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp + 0x210]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x328], rax
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
lea rcx, [rbp + 0x348]
call fcn.14001135c
mov eax, 2
mov word [rbp + 0x348], ax
movzx ecx, word [rbp + 0x1e4]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x34a], ax
mov dword [rbp + 0x34c], 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x348]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140012c96
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [0x14001cc98]
call fcn.14001120d
mov eax, 0xffffffff
jmp 0x140012e62
mov edx, 0x7fffffff
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140012ccb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [0x14001ccc8]
call fcn.14001120d
mov eax, 0xffffffff
jmp 0x140012e62
movzx eax, word [rbp + 0x1e4]
mov edx, eax
lea rcx, [0x14001cce8]
call fcn.14001120d
xor eax, eax
cmp eax, 1
je 0x140012e4d
mov dword [rbp + 0x3c4], reloc.WS2_32.dll_recv
lea r8, [rbp + 0x3c4]
lea rdx, [rbp + 0x398]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbp + 0x378], rax
cmp qword [rbp + 0x378], 0xffffffffffffffff
jne 0x140012d3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [0x14001cd10]
call fcn.14001120d
mov eax, 0xffffffff
jmp 0x140012e62
mov eax, dword [0x140020874]
cmp eax, 0x64
jb 0x140012d9b
mov rcx, qword [rbp + 0x378]
call qword [sym.imp.WS2_32.dll_closesocket]
movzx ecx, word [rbp + 0x39a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbp + 0x664], eax
mov ecx, dword [rbp + 0x39c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [rbp + 0x664]
mov r9d, ecx
mov r8, rax
mov edx, 0x64
lea rcx, [0x14001cd40]
call fcn.14001120d
jmp 0x140012ce0
movzx ecx, word [rbp + 0x39a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbp + 0x664], eax
mov ecx, dword [rbp + 0x39c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [rbp + 0x664]
mov r8d, ecx
mov rdx, rax
lea rcx, [0x14001cd98]
call fcn.14001120d
mov rax, qword [rbp + 0x378]
mov qword [rbp + 0x3e8], rax
lea rax, [rbp + 0x3f0]
lea rcx, [rbp + 0x398]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x414]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x3e8]
lea r8, [0x140011082]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [0x140020874]
call fcn.140011208
mov edx, dword [0x140020874]
lea rcx, [0x14001cdd0]
call fcn.14001120d
jmp 0x140012ce0
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001cba0]
call fcn.1400113b6
mov rax, rdi
mov rcx, qword [rbp + 0x668]
xor rcx, rbp
call fcn.14001122b
lea rsp, [rbp + 0x670]
pop rdi
pop rsi
pop rbp
ret