Function at 0x140002640
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6c0]
sub rsp, 0x7c0
mov rax, qword [0x14001d110]
xor rax, rsp
mov qword [rbp + 0x6b0], rax
xor r14d, r14d
mov dword [rsp + 0x78], r14d
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], recv
mov byte [rbp - 0x58], r14b
lea r8d, [r14 + 0xa]
lea rdx, str._test.docx
lea rcx, [rbp - 0x58]
call fcn.140004c90
nop
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
sub rax, r8
cmp rax, 4
jb 0x140002745
lea rax, [r8 + 4]
mov qword [rbp - 0x48], rax
lea rbx, [rbp - 0x58]
cmp rcx, 0x10
cmovae rbx, qword [rbp - 0x58]
lea rax, [0x140018708]
lea rsi, str.GET
cmp rax, rbx
jbe 0x140002704
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x140002704
cmp rbx, rsi
ja 0x1400026fc
mov edi, r14d
jmp 0x140002709
mov rdi, rbx
sub rdi, rsi
jmp 0x140002709
mov edi, 4
lea rcx, [rbx + 4]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov r8d, 4
sub r8, rdi
lea rdx, [rsi + 4]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x58]
jmp 0x14000275c
mov qword [rsp + 0x28], 4
mov edx, 4
lea rcx, [rbp - 0x58]
call fcn.140005940
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 0x11
jb 0x1400027dc
lea rax, [rcx + 0x11]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x58]
add rbx, rcx
mov r8d, send
lea rdx, str._HTTP_1.1_r_nHost:
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x11], 0
lea rax, [rsp + 0x58]
jmp 0x1400027fd
mov qword [rsp + 0x20], socket
lea r9, str._HTTP_1.1_r_nHost:
xor r8d, r8d
lea edx, [r8 + 0x11]
lea rcx, [rsp + 0x58]
call fcn.1400055b0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r8, str.39.99.152.112
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.140005010
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x17
jb 0x14000288b
lea rax, [rcx + 0x17]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14000286c
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str._r_nConnection:_close_r_n_r_n
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x17], 0
jmp 0x1400028ad
mov qword [rsp + 0x20], reloc.WS2_32.dll_socket
lea r9, str._r_nConnection:_close_r_n_r_n
xor r8d, r8d
lea edx, [r8 + 0x17]
mov rcx, rdi
call fcn.1400055b0
mov rdi, rax
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140002915
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002910
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002910
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001563c
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140002965
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002960
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002960
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001563c
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], socket
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400029b8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400029b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001563c
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], socket
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140002a09
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001563c
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], recv
mov byte [rbp - 0x58], 0
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140018928]
mov qword [rbp], rax
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov eax, recv
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x78], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 8]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
lea rax, [rbp + 8]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 8], rax
mov byte [rbp + 0x84], 0
mov byte [rbp + 0x79], 0
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x88], r14
mov rax, qword [0x14001dbd8]
mov qword [rbp + 0x7c], rax
mov qword [rbp + 0x70], r14
lea rcx, [rbp + 8]
call fcn.140004b40
mov esi, 2
test rax, rax
jne 0x140002b02
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
mov edx, esi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
xor r13b, r13b
mov ecx, 0x202
lea rdx, [rbp + 0x110]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002b36
lea rdx, str.WSAStartup_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e40
xor dil, dil
jmp 0x140002e7b
mov edx, 1
lea r8d, [rdx + 5]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140002b94
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Socket_creation_failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e40
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1400050e0]
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]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor dil, dil
jmp 0x140002e7b
mov word [rbp - 0x18], si
lea rcx, str.39.99.152.112
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0x14], eax
mov ecx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x16], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x18]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140002bde
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Connection_failed_with_error:
jmp 0x140002c0e
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
xor r9d, r9d
mov r8d, dword [rbp - 0x28]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140002c4e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Send_failed_with_error:
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e40
mov edx, ebx
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___int____ptr64]
lea rdx, [0x1400050e0]
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, r12
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor dil, dil
jmp 0x140002e7b
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x2b0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x140002e03
mov esi, edi
mov r8d, esi
lea rdx, [rbp + 0x2b0]
test r13b, r13b
jne 0x140002ebe
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], recv
mov byte [rbp - 0x58], r13b
lea rcx, [rbp - 0x58]
call fcn.140004c90
nop
lea rcx, [rbp - 0x58]
mov rbx, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x40]
cmp rdi, 0x10
cmovae rcx, rbx
mov qword [rsp + 0x20], 4
lea r9, str._r_n_r_n
mov r14, qword [rbp - 0x48]
mov rdx, r14
call fcn.140005390
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140002da1
mov r13b, 1
lea rcx, [rax + 4]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], socket
mov byte [rsp + 0x38], al
cmp r14, rcx
jb 0x140002f14
sub r14, rcx
mov r8, 0xffffffffffffffff
cmp r14, r8
cmovb r8, r14
lea rdx, [rbp - 0x58]
cmp rdi, 0x10
cmovae rdx, rbx
add rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140004c90
or dword [rsp + 0x30], 0x10
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
sub rsi, r15
lea r8, [rsi - 4]
lea rcx, [rbp]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140002d99
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002ecd
call fcn.14001563c
mov rbx, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x40]
cmp rdi, 0x10
jb 0x140002dd8
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140002dd0
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002ed4
mov rcx, rbx
call fcn.14001563c
xor r14d, r14d
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x2b0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jg 0x140002c71
mov esi, 2
test edi, edi
jns 0x140002e3d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Recv_failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e40
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1400050e0]
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, r12
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [rbp + 8]
call fcn.140004a90
test rax, rax
jne 0x140002e74
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
mov edx, esi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
shr edi, 0x1f
xor dil, 1
lea rcx, [rbp]
call fcn.140002f20
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140002ee0
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002edb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002edb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140002ddb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14001563c
movzx eax, dil
mov rcx, qword [rbp + 0x6b0]
xor rcx, rsp
call fcn.140015390
lea r11, [rsp + 0x7c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140004e20
nop
int3