Function at 0x140001bd0
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x50], rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], send
mov byte [rcx], r15b
lea rbx, [rcx + 0x30]
mov qword [rsp + 0x58], rbx
lea rax, [0x140008750]
mov qword [rbx], rax
lea rcx, [rbx + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x68], 1
lea rdi, [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rcx + rbx], rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rcx + rbx - 4], edx
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rdi], rax
mov byte [rdi + 0x7c], r15b
mov byte [rdi + 0x71], r15b
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rdi + 0x80], r15
mov rax, qword [0x14000cf10]
mov qword [rdi + 0x74], rax
mov qword [rdi + 0x68], r15
lea rcx, [r14 + 0x140]
call fcn.140002100
nop
mov ecx, 0x102
lea rdx, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001cf6
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x78], 1
lea rsi, [0x14000c170]
mov rcx, rsi
cmp qword [0x14000c188], 0x10
cmovae rcx, qword [0x14000c170]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, str.http
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, 2
test eax, eax
je 0x140001d9e
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x400
lea rbx, [0x14000cb00]
mov qword [rsp + 0x20], rbx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r8, rbx
lea rdx, str.getaddrinfo:__s_n
call fcn.1400012d0
jmp 0x140001e57
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140001de1
nop dword [rax + rax]
mov rcx, qword [rbx + 0x20]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, 0x41
lea rcx, [rsp + 0x240]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140001db0
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rax, [rsp + 0x240]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001e00
mov rax, qword [0x14000c188]
cmp rdi, rax
ja 0x140001e44
mov rbx, rsi
cmp rax, 0x10
cmovae rbx, qword [0x14000c170]
mov qword [0x14000c180], rdi
mov r8, rdi
lea rdx, [rsp + 0x240]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140001e57
lea r9, [rsp + 0x240]
mov rdx, rdi
mov rcx, rsi
call fcn.140003580
cmp qword [0x14000c188], 0x10
cmovae rsi, qword [0x14000c170]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [r14 + 0x2254], eax
movzx ecx, word [0x14000c048]
call qword [sym.imp.WS2_32.dll_htons]
mov word [r14 + 0x2252], ax
mov word [r14 + 0x2250], bp
mov qword [0x14000cab8], r14
mov rax, r14
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140006050
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret