Function at 0x140002460
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x140007048]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r9
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140002566
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call section..text
mov rcx, rax
lea rdx, [0x1400044b0]
call section..text
mov rcx, rax
lea rdx, str._failed_with_error:
call section..text
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001260]
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]
lea rax, [rbp - 0x49]
mov qword [rbp - 9], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xor edi, edi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], rdi
lea r8d, [rsi + 0x10]
lea rdx, str.Allocated_memory
lea rcx, [rbp - 0x49]
call fcn.1400015b0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rdi
lea r8d, [rsi + 4]
lea rdx, str.Info
lea rcx, [rbp - 0x29]
call fcn.1400015b0
nop
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
jmp 0x14000273b
xor edi, edi
mov qword [rbp + 7], rdi
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r15
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000268b
cmp qword [rbp + 7], rbx
jne 0x14000268b
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x20]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140002612
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call section..text
mov rcx, rax
lea rdx, [0x1400046a8]
call section..text
mov rcx, rax
lea rdx, str._failed_with_error:
call section..text
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001260]
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]
jmp 0x140002740
mov qword [r12], rsi
lea rax, [rbp - 0x29]
mov qword [rbp - 1], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rdi
mov r8d, 0x2f
lea rdx, str.Wrote_Shellcode_Into_Remote_Process_notepad.exe
lea rcx, [rbp - 0x29]
call fcn.1400015b0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], rdi
mov r8d, 4
lea rdx, str.Info
lea rcx, [rbp - 0x49]
call fcn.1400015b0
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140002140
lea rcx, str.powershell.exe__Command__New_Item__Path__env:TEMP__Name_injection.txt__ItemType_File_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov al, 1
jmp 0x140002742
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call section..text
mov rcx, rax
lea rdx, [0x1400044c0]
call section..text
mov rcx, rax
lea rdx, str._failed_with_error:
call section..text
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001260]
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]
lea rax, [rbp - 0x29]
mov qword [rbp - 1], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rdi
mov r8d, 0xd
lea rdx, str.Bytes_written
lea rcx, [rbp - 0x29]
call fcn.1400015b0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], rdi
mov r8d, 4
lea rdx, str.Info
lea rcx, [rbp - 0x49]
call fcn.1400015b0
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140002140
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140002fe0
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret