Function at 0x4069f0
Capabilities:
Delete file
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4208e3
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x42b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xc8], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x34]
mov eax, edx
mov ecx, dword [ebp + 0x30]
sub eax, ecx
push 9
push str._test.ps1
cmp eax, 9
jb 0x406a6d
cmp edx, 0x10
lea esi, [ebp + 0x20]
lea eax, [ecx + 9]
cmovae esi, dword [ebp + 0x20]
add esi, ecx
mov dword [ebp + 0x30], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 9], 0
jmp 0x406a84
mov byte [ebp - 0xc8], 0
lea ecx, [ebp + 0x20]
push dword [ebp - 0xc8]
push 9
call fcn.00405570
push 0xb0
lea eax, [ebp - 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc4], 0x424714
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc8], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea eax, [ebp - 0xc0]
mov ecx, eax
mov dword [ebp - 0xe4], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x83], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x42b990]
mov ecx, dword [0x42b994]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], 0
mov byte [ebp - 4], 6
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0xc0]
push 2
push eax
call fcn.00404c50
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc4]
push 0
je 0x406b98
add ecx, dword [eax + 4]
push 0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x406ba3
add ecx, dword [eax + 4]
push 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
lea ecx, [ebp - 0xc4]
call fcn.0040ae40
add esp, 4
mov ecx, eax
push 0x40a220
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0xc0]
call fcn.00404a60
test eax, eax
jne 0x406bf3
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [ebp + 0x30]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x27
jb 0x406e59
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
push 0x27
push str.powershell__ExecutionPolicy_Bypass__F__
push ecx
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xfc]
call fcn.0040acb0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe8]
mov eax, edx
mov ecx, dword [ebp - 0xec]
sub eax, ecx
cmp eax, 1
jb 0x406c6c
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xfc]
cmovae eax, dword [ebp - 0xfc]
mov word [eax + ecx], 0x22
lea eax, [ebp - 0xfc]
jmp 0x406c8d
push 1
push 0x42468c
mov byte [ebp - 0xc8], 0
lea ecx, [ebp - 0xfc]
push dword [ebp - 0xc8]
push 1
call fcn.00405570
mov dword [ebp - 0xd0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xcc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xe0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xd0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 0x10
cmovae eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0xcc]
add esp, 4
cmp ecx, 0x10
jb 0x406d27
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406d1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d6e
push ecx
push edx
call fcn.0041f6f2
add esp, 8
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
cmp ecx, 0x10
jb 0x406d7e
mov edx, dword [ebp - 0xfc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406d74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406d74
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041f6f2
add esp, 8
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xc4]
call fcn.00403830
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x406dd9
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406dcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406e11
push ecx
push edx
call fcn.0041f6f2
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x406e21
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406e17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406e17
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041f6f2
add esp, 8
mov al, 1
jmp 0x406e3d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f19c
mov esp, ebp
pop ebp
ret
call fcn.00401620
int3