Function at 0x1400017d0
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Resolve dns
Start tcp server

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400045c8]
lea rdx, str.CONIN_
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400045d4]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400045d4]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xorps xmm0, xmm0
lea rdx, str.127.0.0.1
xor edi, edi
lea rcx, [rbp - 0x50]
mov r8d, 9
mov qword [rbp - 0x40], rdi
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x38], rdi
call fcn.140002280
xorps xmm0, xmm0
mov qword [rbp - 0x60], rdi
mov r8d, 4
mov qword [rbp - 0x58], rdi
lea rdx, str.4444
lea rcx, [rbp - 0x70]
movups xmmword [rbp - 0x70], xmm0
call fcn.140002280
mov ecx, 0x202
mov qword [rsp + 0x40], rdi
lea rdx, [rbp]
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp qword [rbp - 0x58], 0xf
lea rdx, [rbp - 0x70]
xorps xmm0, xmm0
mov dword [rbp - 0x30], edi
cmova rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
lea r9, [rsp + 0x40]
xorps xmm1, xmm1
mov dword [rbp - 0x2c], 2
cmova rcx, qword [rbp - 0x50]
lea r8, [rbp - 0x30]
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x28], 1
movdqu xmmword [rbp - 0x10], xmm1
mov dword [rbp - 0x24], 6
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdx, qword [rsp + 0x40]
mov rcx, rax
mov qword [0x140007080], rax
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [0x140007080]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___HTTP
call fcn.140002060
mov rcx, rax
lea rdx, [0x140002240]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___IP
call fcn.140002060
cmp qword [rbp - 0x38], 0xf
lea rdx, [rbp - 0x50]
mov r8, qword [rbp - 0x40]
mov rcx, rax
cmova rdx, qword [rbp - 0x50]
call fcn.140002820
lea rdx, [0x140002240]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140004588]
call fcn.140002060
cmp qword [rbp - 0x58], 0xf
lea rdx, [rbp - 0x70]
mov r8, qword [rbp - 0x60]
mov rcx, rax
cmova rdx, qword [rbp - 0x70]
call fcn.140002820
lea rdx, [0x140002240]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400045a0]
call fcn.140002060
mov rcx, rax
lea rdx, [0x140002240]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140002240]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x140007080]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_accept]
mov r9d, socket
lea r8, [rbp + 0x1a0]
lea rdx, [rsp + 0x54]
mov qword [0x140007088], rax
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400045f8]
call fcn.140002060
mov rcx, rax
lea rdx, [0x140002240]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140004620]
call fcn.140002060
mov rcx, rax
lea rdx, [rbp + 0x1a0]
call fcn.140002060
mov rcx, rax
lea rdx, [0x140002240]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__
movzx ebx, ax
call fcn.140002060
mov rcx, rax
movzx edx, bx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
mov rcx, rax
lea rdx, [0x140002240]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 8
call fcn.140002be0
lea rcx, [0x140001630]
mov r9, rax
lea r8, [0x140002b80]
mov qword [rax], rcx
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140001d3f
mov ecx, 8
call fcn.140002be0
lea rcx, [0x1400011c0]
mov r9, rax
lea r8, [0x140002b80]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140001d2f
cmp dword [rsp + 0x78], edi
je 0x140001d23
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x78], eax
je 0x140001d17
movaps xmm0, xmmword [rsp + 0x70]
lea rcx, [rsp + 0x30]
xor edx, edx
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140001d0b
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
cmp dword [rbp - 0x78], edi
je 0x140001d23
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x78], eax
je 0x140001d17
movaps xmm0, xmmword [rbp - 0x80]
lea rcx, [rsp + 0x30]
xor edx, edx
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140001d0b
mov rcx, qword [0x140007088]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x140007080]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [rsp + 0x78], edi
jne 0x140001d04
cmp dword [rbp - 0x78], edi
jne 0x140001d04
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140001c90
mov rcx, qword [rbp - 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c8b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001cd2
call fcn.140002c1c
mov rdx, qword [rbp - 0x38]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], dil
cmp rdx, 0xf
jbe 0x140001cde
mov rcx, qword [rbp - 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cd9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cd9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002c1c
xor eax, eax
mov rcx, qword [rbp + 0x1b8]
xor rcx, rsp
call fcn.140002bc0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rsp + 0x78], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x78], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3