Function at 0x4a9d40
Capabilities:
Run powershell expression

Disassembly:
lea r12, [rsp - 0x28]
cmp r12, qword [r14 + 0x10]
jbe 0x4aa1d6
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rbx
movups xmmword [rsp + 0x70], xmm15
movups xmmword [rsp + 0x80], xmm15
xor edx, edx
jmp 0x4a9da2
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
jle 0x4aa034
mov qword [rsp + 0x58], rdx
movzx esi, byte [rbx + rdx]
cmp esi, 0x80
jge 0x4a9dc2
lea rdi, [rdx + 1]
jmp 0x4a9ddd
mov rax, rbx
mov rbx, rcx
mov rcx, rdx
call sym.runtime.decoderune
mov esi, eax
mov rdi, rbx
mov rax, qword [rsp + 0xb0]
mov dword [rsp + 0x4c], esi
mov qword [rsp + 0x68], rdi
mov rcx, qword [rax]
mov rdx, rax
mov eax, esi
call rcx
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x4c]
cmp eax, ecx
jne 0x4a9e20
nop dword [rax]
cmp ecx, 0xfffd
jne 0x4a9d85
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x58]
cmp rcx, rdx
jmp 0x4a9e38
cmp ecx, 0xfffd
jne 0x4a9e7f
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x58]
cmp rcx, rdx
jb 0x4aa1cd
mov rbx, rcx
sub rbx, rdx
mov rsi, rbx
neg rsi
sar rsi, 0x3f
and rsi, rdx
mov rdi, qword [rsp + 0xb8]
lea rax, [rdi + rsi]
nop dword [rax]
call sym.unicode_utf8.DecodeRuneInString
cmp rbx, 1
je 0x4a9e79
mov esi, dword [rsp + 0x48]
cmp eax, esi
je 0x4a9d85
jmp 0x4a9eee
mov esi, dword [rsp + 0x48]
jmp 0x4a9eee
nop
test ecx, ecx
jge 0x4a9e8d
mov rcx, 0xffffffffffffffff
jmp 0x4a9eeb
cmp ecx, 0x7f
jg 0x4a9ea0
mov ecx, 1
jmp 0x4a9eeb
cmp ecx, 0x7ff
jg 0x4a9eaf
mov ecx, 2
jmp 0x4a9eeb
lea edx, [rcx - 0xd800]
cmp edx, 0x7ff
ja 0x4a9ec6
mov rcx, 0xffffffffffffffff
jmp 0x4a9eeb
cmp ecx, 0xffff
jg 0x4a9ed5
mov ecx, 3
jmp 0x4a9eeb
cmp ecx, 0x10ffff
jg 0x4a9ee4
mov ecx, 4
jmp 0x4a9eeb
mov rcx, 0xffffffffffffffff
mov rbx, rcx
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0xc0]
lea rdx, [rcx + 4]
lea rax, [rsp + 0x70]
mov rbx, rdx
call sym.strings._Builder_.Grow
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x58]
nop dword [rax]
cmp rdx, rcx
jb 0x4aa1c8
mov r8, qword [rsp + 0x70]
nop
test r8, r8
je 0x4a9f45
lea r9, [rsp + 0x70]
cmp r8, r9
je 0x4a9f4f
nop
jmp 0x4aa1b5
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], r8
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0x80]
lea rbx, [rcx + r9]
mov rax, qword [rsp + 0x78]
cmp r8, rbx
jae 0x4a9f92
mov qword [rsp + 0x68], r9
mov rdi, rcx
lea rsi, [0x004bcf40]
mov rcx, r8
nop
call sym.runtime.growslice
mov r9, qword [rsp + 0x68]
mov r8, rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x60], r8
lea rdx, [rax + r9]
mov rax, rdx
mov rbx, qword [rsp + 0xb8]
call sym.runtime.memmove
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x80], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x88], rdx
mov rdx, qword [rsp + 0x98]
mov qword [rsp + 0x78], rdx
mov ebx, dword [rsp + 0x48]
test ebx, ebx
jl 0x4a9ff1
lea rax, [rsp + 0x70]
call sym.strings._Builder_.WriteRune
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
lea rax, [rdi + rsi]
mov rcx, qword [rsp + 0xc0]
cmp rcx, rax
jb 0x4aa1b0
sub rcx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
mov rsi, qword [rsp + 0xb8]
lea rbx, [rsi + rax]
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0x88], 0
je 0x4aa050
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x90], rbx
xor edx, edx
jmp 0x4aa080
mov rax, rbx
mov rbx, rcx
add rsp, 0xa0
pop rbp
ret
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x60]
nop dword [rax]
cmp rdx, rcx
jge 0x4aa16a
movzx esi, byte [rbx + rdx]
cmp esi, 0x80
jge 0x4aa09b
lea rdi, [rdx + 1]
jmp 0x4aa0b6
mov rax, rbx
mov rbx, rcx
mov rcx, rdx
call sym.runtime.decoderune
mov esi, eax
mov rdi, rbx
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rdi
mov rcx, qword [rax]
mov rdx, rax
mov eax, esi
call rcx
test eax, eax
jl 0x4aa05f
cmp eax, 0x80
jge 0x4aa159
mov r8, qword [rsp + 0x70]
nop
nop
nop dword [rax + rax]
test r8, r8
je 0x4aa0f4
lea r9, [rsp + 0x70]
cmp r8, r9
je 0x4aa0fe
jmp 0x4aa19d
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], r8
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
inc rbx
mov r8, qword [rsp + 0x78]
cmp rcx, rbx
jae 0x4aa147
mov dword [rsp + 0x44], eax
mov rax, r8
mov edi, 1
lea rsi, [0x004bcf40]
call sym.runtime.growslice
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x78], rax
mov r8, rax
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x80], rbx
mov byte [rbx + r8 - 1], al
jmp 0x4aa05f
mov ebx, eax
lea rax, [rsp + 0x70]
call sym.strings._Builder_.WriteRune
jmp 0x4aa05f
mov rax, qword [rsp + 0x78]
mov rcx, rax
neg rcx
mov rbx, qword [rsp + 0x80]
nop dword [rax]
cmp rbx, rcx
ja 0x4aa18e
add rsp, 0xa0
pop rbp
ret
test rax, rax
je 0x4aa198
call sym.runtime.panicunsafestringlen
call sym.runtime.panicunsafestringnilptr
lea rax, [0x004bcec0]
lea rbx, [0x005016f0]
call sym.runtime.gopanic
call sym.runtime.panicSliceB
lea rax, [0x004bcec0]
lea rbx, [0x005016f0]
call sym.runtime.gopanic
call sym.runtime.panicSliceAlen
mov rax, rdx
call sym.runtime.panicSliceB
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.strings.Map