Function at 0x1400020fa
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x4f0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x490], rcx
mov qword [rbp + 0x498], rdx
mov qword [rbp + 0x4a0], r8
mov qword [rbp + 0x4a8], r9
lea rax, [rbp + 0x40f]
mov qword [rbp + 0x448], rax
nop
nop
lea rax, [rbp + 0x410]
mov r8d, r10d
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, rax
call sym._ZN11xorstr_impl6stringILy32ELi12EEC1IJLy0ELy1ELy2ELy3ELy4ELy5ELy6ELy7ELy8ELy9ELy10ELy11ELy12ELy13ELy14ELy15ELy16ELy17ELy18ELy
lea rax, [rbp + 0x410]
mov rcx, rax
call method.xorstr_impl::string_32ull__12_.decrypt__
mov rdx, rax
lea rcx, [rbp + 0x40f]
lea rax, [rbp + 0x3e0]
mov r8, rcx
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 + 0x40f]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp + 0x438]
mov r8d, ebx
lea rdx, str.HTTP_1.1
mov rcx, rax
call method.xorstr_impl::string_8ull__13_.string_0ull__1ull__2ull__3ull__4ull__5ull__6ull__7ull__char_const__std::integer_sequence_unsigned_long_long__0ull__1ull__2ull__3ull__4ull__5ull__6ull__7ull__
lea rax, [rbp + 0x438]
mov rcx, rax
call method.xorstr_impl::string_8ull__13_.decrypt__
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x468], rax
cmp qword [rbp + 0x468], 0
jne 0x1400021f4
mov ebx, 0xe6
jmp 0x1400024fe
mov rax, qword [rbp + 0x490]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x468]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1bb
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetConnectA]
call rax
mov qword [rbp + 0x460], rax
cmp qword [rbp + 0x460], 0
jne 0x140002275
mov rax, qword [rbp + 0x468]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0xe5
jmp 0x1400024fe
mov rax, qword [rbp + 0x498]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rbx, rax
lea rax, [rbp + 0x442]
mov r8d, esi
lea rdx, str.POST
mov rcx, rax
call method.xorstr_impl::string_4ull__14_.string_0ull__1ull__2ull__3ull__char_const__std::integer_sequence_unsigned_long_long__0ull__1ull__2ull__3ull__
lea rax, [rbp + 0x442]
mov rcx, rax
call method.xorstr_impl::string_4ull__14_.decrypt__
mov rdx, rax
mov rax, qword [rbp + 0x460]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rbx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpOpenRequestA]
call rax
mov qword [rbp + 0x458], rax
cmp qword [rbp + 0x458], 0
jne 0x140002332
mov rax, qword [rbp + 0x460]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x468]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0xe4
jmp 0x1400024fe
mov dword [rbp + 0x3dc], 0xea60
lea rdx, [rbp + 0x3dc]
mov rax, qword [rbp + 0x458]
mov r9d, 4
mov r8, rdx
mov edx, 6
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionA]
call rax
mov rax, qword [rbp + 0x4a0]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
mov dword [rbp + 0x454], eax
mov rax, qword [rbp + 0x4a0]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rbx, rax
lea rax, [rbp + 0x3e0]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
mov esi, eax
lea rax, [rbp + 0x3e0]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
mov rax, qword [rbp + 0x458]
mov edx, dword [rbp + 0x454]
mov dword [rsp + 0x20], edx
mov r9, rbx
mov r8d, esi
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_HttpSendRequestA]
call rax
test eax, eax
sete al
test al, al
je 0x140002445
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x450], eax
mov rax, qword [rbp + 0x458]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x460]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x468]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
cmp dword [rbp + 0x450], 0x2ee2
jne 0x14000243b
mov ebx, 0xe7
jmp 0x1400024fe
mov ebx, 0xe3
jmp 0x1400024fe
mov rax, qword [rbp + 0x4a8]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.clear__
mov dword [rbp - 0x34], 0
jmp 0x140002481
mov eax, dword [rbp - 0x34]
mov eax, eax
mov byte [rbp + rax - 0x30], 0
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x4a8]
mov rcx, rax
call fcn.1400bb780
mov dword [rbp - 0x34], 0
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x458]
mov r9, rcx
mov r8d, 0x3ff
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x1400024b7
mov eax, dword [rbp - 0x34]
test eax, eax
je 0x1400024b7
mov eax, 1
jmp 0x1400024bc
mov eax, 0
test al, al
jne 0x14000245d
mov rax, qword [rbp + 0x458]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x460]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x468]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0xe8
lea rax, [rbp + 0x3e0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x14000254c
add rsp, 0x4f0
pop rbx
pop rsi
pop rbp
ret