Function at 0x140076500
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Receive data
Receive data on socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x580], rax
movzx r15d, r9w
mov r12, r8
mov qword [rsp + 0x38], r8
mov r14, rcx
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r13b
jne 0x140076557
lea rcx, [rsp + 0x60]
call fcn.14006d120
nop
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
sub rax, r8
lea rsi, str.GET
cmp rax, 4
jb 0x14007660d
lea rax, [r8 + 4]
mov qword [rsp + 0x70], rax
lea rbx, [rsp + 0x60]
cmp rcx, 0x10
cmovae rbx, qword [rsp + 0x60]
lea rax, [0x1400c0560]
cmp rax, rbx
jbe 0x1400765cb
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x1400765cb
cmp rbx, rsi
ja 0x1400765c3
mov rdi, r13
jmp 0x1400765d0
mov rdi, rbx
sub rdi, rsi
jmp 0x1400765d0
mov edi, 4
inc r8
lea rcx, [rbx + 4]
mov rdx, rbx
call fcn.140081340
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140081340
mov r8d, 4
sub r8, rdi
lea rdx, [rsi + 4]
add rdx, rdi
lea rcx, [rbx + rdi]
call fcn.140081340
lea rax, [rsp + 0x60]
jmp 0x140076632
mov qword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
xor r9d, r9d
movzx r8d, byte [rsp + 0x30]
lea edx, [r9 + 4]
lea rcx, [rsp + 0x60]
call fcn.14006e2b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], SafeArrayLock
mov byte [rax], 0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x9b
jb 0x1400766bc
lea rax, [rcx + 0x9b]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x9b
lea rdx, str._HTTP_1.1_r_nHost:_www.myhuaweicloud.com_r_nConnection:_close_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:125.0__Gecko_20100101_Firefox_125.0_r_n_r_n
mov rcx, rbx
call fcn.140081340
mov byte [rbx + 0x9b], 0
lea rax, [rsp + 0x40]
jmp 0x1400766e1
mov qword [rsp + 0x20], 0x9b
lea r9, str._HTTP_1.1_r_nHost:_www.myhuaweicloud.com_r_nConnection:_close_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:125.0__Gecko_20100101_Firefox_125.0_r_n_r_n
movzx r8d, byte [rsp + 0x30]
mov edx, 0x9b
lea rcx, [rsp + 0x40]
call fcn.14006ddb0
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], SafeArrayLock
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14007674b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140076746
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140076c08
call fcn.14007f138
movdqa xmm0, xmmword [0x1400c1560]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14007679b
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140076796
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140076c0e
call fcn.14007f138
movdqa xmm0, xmmword [0x1400c1560]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
xor bl, bl
mov byte [rsp + 0x30], bl
mov ecx, 0x202
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400767e2
lea rdx, str.WSAStartup_failed._n
lea rcx, [0x1400f5d80]
call fcn.14006cab0
xor dil, dil
jmp 0x140076ba4
mov edx, 1
mov edi, 2
lea r8d, [rdx + 5]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14007685c
lea rdx, str.Socket_creation_failed_with_error:
lea rcx, [0x1400f5d80]
call fcn.14006cab0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14006fda0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400784b0
movzx edx, al
mov rcx, rbx
call fcn.140077ca0
mov rcx, rbx
call fcn.140076ef0
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor dil, dil
jmp 0x140076ba4
mov word [rbp - 0x38], di
lea r8, [rbp - 0x34]
mov rdx, r14
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14007688b
lea rdx, str.Invalid_address__Address_not_supported__n
lea rcx, [0x1400f5d80]
call fcn.14006cab0
jmp 0x14007692a
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x36], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x38]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400768ba
lea rdx, str.Connection_failed_with_error:
jmp 0x1400768e4
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
xor r9d, r9d
mov r8d, dword [rbp - 0x48]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140076941
lea rdx, str.Send_failed_with_error:
lea rcx, [0x1400f5d80]
call fcn.14006cab0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14006fda0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rbx, rax
mov dl, 0xa
add rcx, rax
call fcn.1400784b0
movzx edx, al
mov rcx, rbx
call fcn.140077ca0
mov rcx, rbx
call fcn.140076ef0
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor dil, dil
jmp 0x140076ba4
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x180]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov edi, eax
jle 0x140076b3d
mov ecx, reloc.WS2_32.dll_shutdown
mov esi, eax
test bl, bl
jne 0x140076b21
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x60], SafeArrayLock
cmp rsi, 0x10
jae 0x1400769ab
mov qword [rbp - 0x68], rsi
mov r8d, esi
lea rdx, [rbp + 0x180]
lea rcx, [rbp - 0x78]
call fcn.140081340
jmp 0x1400769fa
mov rdi, rsi
or rdi, 0xf
cmp rdi, 0x16
cmovb rdi, rcx
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140074b90
mov rbx, rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rdi
mov r8, rsi
lea rdx, [rbp + 0x180]
mov rcx, rax
call fcn.140081340
mov byte [rbx + rsi], 0
lea rdi, [rbp - 0x78]
mov rsi, qword [rbp - 0x60]
cmp rsi, 0x10
setae r12b
mov rbx, qword [rbp - 0x78]
cmovae rdi, rbx
mov r15, qword [rbp - 0x68]
cmp r15, 4
jb 0x140076a8d
lea r14, [r15 + rdi]
lea r8, [r14 - 3]
sub r8, rdi
mov edx, recv
mov rcx, rdi
call fcn.1400811a0
test rax, rax
je 0x140076a8d
nop dword [rax]
xor ecx, ecx
lea r8, str._r_n_r_n
nop dword [rax]
movzx edx, byte [rax + rcx]
inc rcx
cmp dl, byte [r8 + rcx - 1]
jne 0x140076a68
cmp rcx, 4
jne 0x140076a50
xor ecx, ecx
jmp 0x140076a6d
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140076ad3
inc rax
lea r8, [r14 - 3]
sub r8, rax
mov edx, recv
mov rcx, rax
call fcn.1400811a0
test rax, rax
jne 0x140076a40
mov r12, qword [rsp + 0x38]
cmp rsi, 0x10
jb 0x140076ac9
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140076ac1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140076c14
mov rcx, rbx
call fcn.14007f138
movzx ebx, byte [rsp + 0x30]
jmp 0x140076941
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x140076a8d
mov byte [rsp + 0x30], 1
lea rcx, [rbp - 0x78]
test r12b, r12b
je 0x140076af0
lea r9, [r15 + rbx]
jmp 0x140076af8
lea r9, [r15 + rcx]
lea rbx, [rbp - 0x78]
lea r8, [rbx + 4]
add r8, rax
sub r9, r8
mov r12, qword [rsp + 0x38]
mov rdx, qword [r12 + 8]
mov rcx, r12
call fcn.14006d640
mov rsi, qword [rbp - 0x60]
mov rbx, qword [rbp - 0x78]
jmp 0x140076a92
mov rdx, qword [r12 + 8]
mov r9, rsi
lea r8, [rbp + 0x180]
mov rcx, r12
call fcn.14006d640
jmp 0x140076941
test edi, edi
jns 0x140076b8e
lea rdx, str.Recv_failed_with_error:
lea rcx, [0x1400f5d80]
call fcn.14006cab0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14006fda0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400784b0
movzx edx, al
mov rcx, rbx
call fcn.140077ca0
mov rcx, rbx
call fcn.140076ef0
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
shr edi, 0x1f
xor dil, 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140076bdb
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140076bd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140076c02
call fcn.14007f138
movzx eax, dil
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x698
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140085bb0
nop
call fcn.140085bb0
nop
call fcn.140085bb0
int3
call fcn.140085bb0
int3