Function at 0x140001320
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Parse pe header
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r13
sub rsp, 0x28
lea rdx, [0x14001d894]
call fcn.140005b3c
xor edx, edx
mov rcx, rax
mov rbx, rax
lea r8d, [rdx + 2]
call fcn.140005e20
mov rcx, rbx
call fcn.1400063dc
mov rcx, rbx
movsxd rsi, eax
call fcn.140006560
lea rcx, [rsi + 1]
call fcn.1400065ec
mov r9, rbx
mov r8d, 1
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.140006854
mov rcx, rbx
call fcn.140006a40
xor r13d, r13d
mov ecx, r13d
test rsi, rsi
jle 0x14000139b
nop dword [rax]
xor byte [rdi + rcx], cl
inc rcx
cmp rcx, rsi
jl 0x140001390
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], r15
test rdi, rdi
je 0x1400015dc
mov r12d, 0x5a4d
cmp word [rdi], r12w
jne 0x1400015dc
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x1400015dc
cmp dword [rdi + rax], 0x4550
lea r15, [rdi + rax]
jne 0x1400015dc
mov r14, qword [r15 + 0x30]
lea rbx, [r15 + 0xb0]
cmp dword [rbx], r13d
lea rcx, str.ntdll.dll
cmove rbx, r13
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtUnmapViewOfSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [r15 + 0x30]
mov rcx, 0xffffffffffffffff
call rax
test rbx, rbx
je 0x1400015dc
mov edx, dword [r15 + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1400015dc
mov r8d, dword [r15 + 0x54]
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x50], rbp
mov qword [r15 + 0x30], rax
call fcn.1400144a0
mov ebp, r13d
cmp r13w, word [r15 + 6]
jae 0x1400014a3
lea rsi, [r15 + 0x11c]
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rsi]
mov ecx, dword [rsi - 8]
add rdx, rdi
mov r8d, dword [rsi - 4]
add rcx, rbx
call fcn.1400144a0
movzx eax, word [r15 + 6]
lea rsi, [rsi + 0x28]
inc ebp
cmp ebp, eax
jl 0x140001480
mov rcx, rbx
call fcn.140001060
cmp rbx, r14
je 0x14000158e
mov esi, dword [r15 + 0x50]
cmp word [rbx], r12w
jne 0x14000158e
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14000158e
cmp dword [rax + rbx], 0x4550
jne 0x14000158e
mov ecx, dword [rax + rbx + 0xb0]
test ecx, ecx
je 0x14000158e
mov ebp, dword [rax + rbx + 0xb4]
mov r12d, ecx
mov r11, r13
test rbp, rbp
je 0x14000158e
mov r13d, 0x1000
nop dword [rax]
lea r9, [r11 + r12]
add r9, rbx
mov eax, dword [r9]
test eax, eax
je 0x14000157d
mov ecx, dword [r9 + 4]
test ecx, ecx
je 0x14000157d
lea r10, [rcx - 8]
mov edi, eax
shr r10, 1
lea rdx, [r9 + 8]
mov r8d, 0
je 0x140001571
nop dword [rax + rax]
movzx ecx, word [rdx]
mov eax, ecx
and eax, 0xfff
add rax, rdi
cmp cx, r13w
jb 0x140001571
cmp rax, rsi
jae 0x14000158e
lea rcx, [rax + rbx]
add rdx, 2
mov rax, rbx
inc r8
sub rax, r14
add qword [rcx], rax
cmp r8, r10
jb 0x140001540
mov eax, dword [r9 + 4]
add r11, rax
cmp r11, rbp
jb 0x140001510
test r11, r11
je 0x14000158e
lea rcx, [0x14001d890]
call fcn.140006bc0
mov edi, dword [r15 + 0x28]
mov ecx, 0x50
add rdi, rbx
call fcn.1400065ec
mov ecx, 0x64
mov rbx, rax
call fcn.1400065ec
lea rax, str.powershell.exe
mov ecx, 0x64
mov qword [rbx], rax
call fcn.1400065ec
lea rax, str.echo_hello
mov rdx, rbx
mov ecx, 2
mov qword [rbx + 8], rax
call rdi
mov rbp, qword [rsp + 0x50]
jmp 0x1400015de
xor al, al
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
add rsp, 0x28
pop r13
pop rdi
pop rsi
pop rbx
ret