Function at 0x140001000
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x680
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400130c0]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xb8], r8
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov ecx, 0x202
lea rdx, [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp qword [rsi + 0x20], 0x10
jb 0x140001072
lea rbp, [rsi + 8]
mov rcx, qword [rbp]
jmp 0x140001079
lea rbp, [rsi + 8]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1400010ee
mov qword [rbx + 0x20], send
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], al
xor r8d, r8d
lea rdx, [0x14001004c]
mov rcx, rbx
call fcn.140002620
nop
cmp qword [rsi + 0x20], 0x10
jb 0x1400010b6
mov rcx, qword [rbp]
call fcn.140002b10
mov qword [rsi + 0x20], send
mov qword [rsi + 0x18], r14
mov byte [rbp], 0
cmp qword [rdi + 0x20], 0x10
jb 0x1400010d6
mov rcx, qword [rdi + 8]
call fcn.140002b10
mov qword [rdi + 0x20], send
mov qword [rdi + 0x18], r14
mov byte [rdi + 8], 0
mov rax, rbx
jmp 0x14000167b
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r12, rax
test rax, rax
jne 0x14000116f
mov qword [rbx + 0x20], send
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], al
xor r8d, r8d
lea rdx, [0x14001004c]
mov rcx, rbx
call fcn.140002620
nop
cmp qword [rsi + 0x20], 0x10
jb 0x140001137
mov rcx, qword [rbp]
call fcn.140002b10
mov qword [rsi + 0x20], send
mov qword [rsi + 0x18], r14
mov byte [rbp], 0
cmp qword [rdi + 0x20], 0x10
jb 0x140001157
mov rcx, qword [rdi + 8]
call fcn.140002b10
mov qword [rdi + 0x20], send
mov qword [rdi + 0x18], r14
mov byte [rdi + 8], 0
mov rax, rbx
jmp 0x14000167b
xor eax, eax
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xac], eax
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xb4], eax
mov r13d, 2
mov word [rsp + 0xa8], r13w
lea ecx, [rax + 0x50]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xaa], ax
lea r8, [rsp + 0xac]
mov rdx, r12
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_inet_pton]
lea edx, [r13 - 1]
lea r8d, [r13 + 4]
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140001246
mov qword [rbx + 0x20], send
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], 0
xor r8d, r8d
lea rdx, [0x14001004c]
mov rcx, rbx
call fcn.140002620
nop
cmp qword [rsi + 0x20], 0x10
jb 0x14000120e
mov rcx, qword [rbp]
call fcn.140002b10
mov qword [rsi + 0x20], send
mov qword [rsi + 0x18], r14
mov byte [rbp], 0
cmp qword [rdi + 0x20], 0x10
jb 0x14000122e
mov rcx, qword [rdi + 8]
call fcn.140002b10
mov qword [rdi + 0x20], send
mov qword [rdi + 0x18], r14
mov byte [rdi + 8], 0
mov rax, rbx
jmp 0x14000167b
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400012a6
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x20], send
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], 0
xor r8d, r8d
lea rdx, [0x14001004c]
mov rcx, rbx
call fcn.140002620
nop
mov rcx, rsi
call fcn.1400027c0
nop
mov rcx, rdi
call fcn.1400027c0
mov rax, rbx
jmp 0x14000167b
mov qword [rsp + 0xa0], socket
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x88], 0
mov qword [rsp + 0x48], socket
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x30], 0
mov r8d, 5
lea rdx, str.GET__
lea rcx, [rsp + 0x28]
call fcn.140002620
nop
mov r8, rdi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140002140
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1400022e0
nop
cmp qword [rsp + 0x70], 0x10
jb 0x14000132a
mov rcx, qword [rsp + 0x58]
call fcn.140002b10
mov qword [rsp + 0x70], socket
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x48], 0x10
jb 0x14000134f
mov rcx, qword [rsp + 0x30]
call fcn.140002b10
mov r8d, inet_ntoa
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, recv
lea rdx, str.method:_GET_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, send
lea rdx, str.scheme:https_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, inet_ntoa
lea rdx, str.Accept:__
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x27
lea rdx, str.Accept_Encoding:gzip__deflate__br__zstd
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x42
lea rdx, str.Accept_Language:_zh_CN_zh_q0.9_en_q0.8_en_GB_q0.7_en_US_q0.6_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x8f
lea rdx, str.Cookie:_sca8932e42e__cnaskzIHnAlTG1CAXzvsRIABQts__tbsa0f52f12345678a7317f59c1e_1872839023_9__atpsida7263f62cbbdba3846e696707_1872839023_9_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x4f
lea rdx, str.Sec_Ch_Ua:__Chromium__v_124____Microsoft_Edge__v_124____Not_A.Brand__v_99__r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, socket
lea rdx, str.Sec_Ch_Ua_Mobile:__0_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x1f
lea rdx, str.Sec_Ch_Ua_Platform:__Windows__r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x18
lea rdx, str.Sec_Fetch_Dest:_script_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x19
lea rdx, str.Sec_Fetch_Mode:_no_cors_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x1c
lea rdx, str.Sec_Fetch_Site:_cross_site_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
mov r8d, 0x8d
lea rdx, str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_124.0.0.0_Safari_537.36_Edg_124.0.0.0_r_n_r_n
lea rcx, [rsp + 0x80]
call fcn.140001fd0
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rdx, qword [rsp + 0x88]
xor r9d, r9d
mov r8d, dword [rsp + 0x98]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, qword [rsp + 0x98]
je 0x14000156f
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x20], send
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], 0
xor r8d, r8d
lea rdx, [0x14001004c]
mov rcx, rbx
call fcn.140002620
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x14000153a
mov rcx, qword [rsp + 0x88]
call fcn.140002b10
mov qword [rsp + 0xa0], socket
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x88], 0
mov rcx, rsi
call fcn.1400027c0
nop
mov rcx, rdi
call fcn.1400027c0
mov rax, rbx
jmp 0x14000167b
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x270]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbp, eax
test eax, eax
jg 0x140001606
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x20], send
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], 0
xor r8d, r8d
lea rdx, [0x14001004c]
mov rcx, rbx
call fcn.140002620
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x1400015d4
mov rcx, qword [rsp + 0x88]
call fcn.140002b10
mov qword [rsp + 0xa0], socket
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x88], 0
mov rcx, rsi
call fcn.1400027c0
nop
mov rcx, rdi
call fcn.1400027c0
mov rax, rbx
jmp 0x14000167b
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x20], send
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], 0
mov r8, rbp
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140002620
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x14000164b
mov rcx, qword [rsp + 0x88]
call fcn.140002b10
mov qword [rsp + 0xa0], socket
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x88], 0
mov rcx, rsi
call fcn.1400027c0
nop
mov rcx, rdi
call fcn.1400027c0
mov rax, rbx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140002af0
add rsp, 0x680
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret