Function at 0x140035460
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 8], ecx
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x318
mov qword [rsp + 0x250], 0xfffffffffffffffe
mov r15d, ecx
call fcn.14000db70
mov rcx, rax
test rax, rax
je 0x140035d2d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x2d8], rax
lea rax, [rsp + 0x1b8]
mov qword [rsp + 0x2e0], rax
xor r12d, r12d
mov qword [rsp + 0x1f8], r12
mov qword [rsp + 0x200], r12
mov qword [rsp + 0x1f8], r12
mov qword [rsp + 0x200], 7
mov word [rsp + 0x1e8], r12w
lea r8d, [r12 + 9]
lea rdx, str.stemp.ps1
lea rcx, [rsp + 0x1e8]
call fcn.14000e890
nop
mov qword [rsp + 0x1c8], r12
mov qword [rsp + 0x1d0], r12
mov qword [rsp + 0x1c8], r12
mov qword [rsp + 0x1d0], 7
mov word [rsp + 0x1b8], r12w
lea r8d, [r12 + 6]
lea rdx, [0x14009a3b8]
lea rcx, [rsp + 0x1b8]
call fcn.14000e890
nop
lea r9, [rsp + 0x1e8]
mov r8d, 0x8b
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x38]
call fcn.14000dfc0
nop
lea rdx, [0x14009a208]
lea rcx, [rsp + 0x48]
call fcn.14000c8e0
nop
lea rdx, str.powershell__ExecutionPolicy_ByPass__File
lea rcx, [rsp + 0x60]
call fcn.14000c8e0
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xe8]
call fcn.14000bc20
nop
lea r8, [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000bc20
nop
mov rcx, qword [rsp + 0xe8]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0xf0], rcx
mov r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x1400355fd
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0xf8], rcx
mov eax, r14d
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x14003562d
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x100], rcx
mov eax, r14d
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x14003565c
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x20]
mov rsi, rbx
mov qword [rsp + 0x108], rbx
mov rdi, r12
mov qword [rsp + 0x70], r12
movzx ecx, word [rsi]
test cx, cx
je 0x1400356b8
mov word [rsp + 0x358], cx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
test eax, eax
je 0x14003569d
test rdi, rdi
jne 0x1400356a5
mov rdi, rsi
mov qword [rsp + 0x70], rsi
jmp 0x1400356a5
mov rdi, r12
mov qword [rsp + 0x70], r12
add rsi, 2
mov qword [rsp + 0x108], rsi
mov rbx, qword [rsp + 0x20]
jmp 0x140035674
test rdi, rdi
je 0x140035730
sub rdi, rbx
sar rdi, 1
mov dword [rsp + 0x368], edi
test edi, edi
js 0x140035d38
lea rax, [rbx - 0x18]
mov qword [rsp + 0x2f0], rax
mov esi, 1
mov ecx, esi
sub ecx, dword [rax + 0x10]
mov dword [rsp + 0xcc], ecx
mov eax, dword [rax + 0xc]
sub eax, edi
mov dword [rsp + 0x1d8], eax
or eax, ecx
jge 0x140035710
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.14000d2f0
mov rbx, qword [rsp + 0x20]
cmp edi, dword [rbx - 0xc]
jg 0x140035d42
mov dword [rbx - 0x10], edi
movsxd rcx, edi
mov rax, qword [rsp + 0x20]
mov word [rax + rcx*2], r12w
mov rbx, qword [rsp + 0x20]
jmp 0x140035735
mov esi, 1
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x2f8], rdi
mov qword [rsp + 0x78], rbx
nop word [rax + rax]
movzx ecx, word [rbx]
mov word [rsp + 0x360], cx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
test eax, eax
je 0x140035770
add rbx, 2
mov qword [rsp + 0x78], rbx
jmp 0x140035750
mov rax, qword [rsp + 0x20]
cmp rbx, rax
je 0x140035861
sub rbx, rax
sar rbx, 1
mov dword [rsp + 0x1dc], ebx
mov edx, dword [rax - 0x10]
mov dword [rsp + 0x1e0], edx
test edx, edx
js 0x140035d4c
sub esi, dword [rax - 8]
mov dword [rsp + 0xb0], esi
mov r8d, dword [rax - 0xc]
sub r8d, edx
mov dword [rsp + 0xb4], r8d
or r8d, esi
jge 0x1400357c8
mov rcx, rdi
call fcn.14000d2f0
mov rax, qword [rsp + 0x20]
movsxd rcx, ebx
lea r9, [rax + rcx*2]
mov qword [rsp + 0x78], r9
mov edx, dword [rax - 0x10]
mov dword [rsp + 0xb8], edx
mov edi, edx
sub edi, ebx
mov dword [rsp + 0xbc], edi
mov dword [rsp + 0xc0], edx
lea ecx, [rdi + 1]
movsxd r8, ecx
add r8, r8
mov qword [rsp + 0x208], r8
je 0x14003583b
test r9, r9
jne 0x140035819
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x140035d62
lea ecx, [rdx + 1]
movsxd rdx, ecx
add rdx, rdx
cmp rdx, r8
jb 0x140035d56
mov rdx, r9
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x20]
test edi, edi
js 0x140035d72
cmp edi, dword [rax - 0xc]
jg 0x140035d72
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rsp + 0x20]
mov word [rax + rcx*2], r12w
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x210], rcx
lea rcx, [rax - 0x18]
mov qword [rsp + 0x218], rcx
call fcn.14000d260
mov qword [rsp + 0x220], rax
add rax, 0x18
mov qword [rsp + 0x80], rax
mov r8b, 1
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.14005e5d0
nop
lea rax, [rsp + 0x88]
mov qword [rsp + 0x228], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x230], rax
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x238], rcx
call fcn.14000d260
mov qword [rsp + 0x240], rax
add rax, 0x18
mov qword [rsp + 0x88], rax
lea rdx, str.calculatorIsNotWorkingInWindows10
lea rcx, [rsp + 0x110]
call fcn.14000c8e0
nop
mov r8d, r14d
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.14005c860
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0xc4], eax
test eax, eax
js 0x140035965
lea rdx, str.error
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov qword [rsp + 0x248], rax
mov rcx, qword [rsp + 0x28]
test rax, rax
je 0x140035965
sub rax, rcx
sar rax, 1
mov dword [rsp + 0xc8], eax
test eax, eax
jns 0x140035a2c
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0xe4], eax
test eax, eax
js 0x1400359a7
lea rdx, str.Error
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov qword [rsp + 0x2a8], rax
mov rcx, qword [rsp + 0x28]
test rax, rax
je 0x1400359a7
sub rax, rcx
sar rax, 1
mov dword [rsp + 0xd0], eax
test eax, eax
jns 0x140035a2c
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0xd4], eax
test eax, eax
js 0x1400359e5
lea rdx, str.denied
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov qword [rsp + 0x258], rax
mov rcx, qword [rsp + 0x28]
test rax, rax
je 0x1400359e5
sub rax, rcx
sar rax, 1
mov dword [rsp + 0xd8], eax
test eax, eax
jns 0x140035a2c
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0xdc], eax
test eax, eax
js 0x140035b3c
lea rdx, str.invalid
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov qword [rsp + 0x260], rax
test rax, rax
je 0x140035b3c
sub rax, qword [rsp + 0x28]
sar rax, 1
mov dword [rsp + 0xe0], eax
test eax, eax
js 0x140035b3c
lea rdx, str.Error_occurred_during_code_execution
lea rcx, [rsp + 0x30]
call fcn.14000c670
lea rax, [rsp + 0x90]
mov qword [rsp + 0x268], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x270], rax
mov rbx, qword [rsp + 0x30]
add rbx, 0xffffffffffffffe8
mov qword [rsp + 0x278], rbx
mov rcx, rbx
call fcn.14000d260
mov qword [rsp + 0x280], rax
add rax, 0x18
mov qword [rsp + 0x90], rax
lea rdx, str.calculatorIsNotWorkingInWindows10
lea rcx, [rsp + 0x118]
call fcn.14000c8e0
nop
mov r8d, r14d
lea rdx, [rsp + 0x90]
mov rcx, rax
call fcn.14005c860
lea rax, [rsp + 0x120]
mov qword [rsp + 0x288], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x290], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x298], rax
lea rdx, [0x140098d49]
lea rcx, [rsp + 0x120]
call fcn.14000c8e0
mov rdi, rax
mov qword [rsp + 0x2a0], rbx
mov rcx, rbx
call fcn.14000d260
mov qword [rsp + 0x300], rax
lea rcx, [rax + 0x18]
mov qword [rsp + 0x98], rcx
lea rdx, str.Failure
lea rcx, [rsp + 0x128]
call fcn.14000c8e0
nop
lea r8, [rsp + 0x98]
jmp 0x140035bb2
lea rax, [rsp + 0x130]
mov qword [rsp + 0x2b0], rax
lea rax, [rsp + 0x138]
mov qword [rsp + 0x2b8], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x2c0], rax
lea rdx, [0x140098d49]
lea rcx, [rsp + 0x130]
call fcn.14000c8e0
mov rdi, rax
lea rdx, str.Necessary_changes_have_been_done.
lea rcx, [rsp + 0x138]
call fcn.14000c8e0
mov rbx, rax
lea rdx, str.Success
lea rcx, [rsp + 0x140]
call fcn.14000c8e0
nop
mov r8, rbx
mov r9, rdi
mov rdx, rax
mov ecx, r15d
call fcn.14005d360
lea rdx, [0x14009a208]
lea rcx, [rsp + 0x50]
call fcn.14000c8e0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x148]
call fcn.14000bc20
mov qword [rsp + 0x2c8], rax
mov rcx, qword [rax]
mov qword [rsp + 0x2d0], rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rsp + 0x148]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x150], rcx
mov eax, r14d
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140035c36
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x158], rcx
mov eax, r14d
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140035c66
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x160], rcx
mov eax, r14d
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140035c96
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x168], rcx
mov eax, r14d
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140035cc6
mov rdx, qword [rsp + 0x168]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x170], rcx
mov eax, r14d
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x140035cf6
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x140035cfe
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140035d1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x318
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.14000df80
nop
mov ecx, 0x80070057
call fcn.14000df80
mov ecx, 0x80070057
call fcn.14000df80
mov ecx, 0x80070057
call fcn.14000df80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.14000df80
mov ecx, 0x80070057
call fcn.14000df80
int3