Function at 0x140001970
Capabilities:
Check if file exists
Delete file
Delete registry value
Get common file path
Get file attributes

Disassembly:
push rbp
xor eax, eax
mov ecx, 0x41
mov r8d, 0x104
mov rbp, rsp
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x670
lea rsi, [rsp + 0x30]
lea r12, [rsp + 0x240]
mov rdi, rsi
mov rdx, r12
rep stosq qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400019bb
mov rdi, r12
mov ecx, 0x208
rep stosb byte [rdi], al
lea rbx, [rsp + 0x450]
lea rdi, [0x140003480]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x450], 0
mov r9, rbx
mov rcx, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140001a40
lea rax, str.winhttp
mov r9, qword [rsp + 0x450]
mov edx, 0x104
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8, str._ls_s.exe
call fcn.140001760
mov rcx, qword [rsp + 0x450]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001a40
test al, 0x10
je 0x140001d40
nop word cs:[rax + rax]
lea r9, str.MicrosoftWindowsShellCreateHTTPTask
lea r8, str.schtasks__delete__tn___ls___f
mov edx, 0x100
mov rcx, rbx
call fcn.140001760
mov rcx, rbx
call fcn.1400017a0
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x450], 0
mov rcx, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140001ad0
lea rax, str.netinit
mov r9, qword [rsp + 0x450]
mov edx, 0x104
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8, str._ls_s.exe
call fcn.140001760
mov rcx, qword [rsp + 0x450]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001ad0
test al, 0x10
je 0x140001d50
nop
lea r9, str.Network_Initialization
lea r8, str.sc_delete___ls_
mov edx, 0x100
mov rcx, rbx
call fcn.140001760
mov rcx, rbx
call fcn.1400017a0
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x450], 0
lea rcx, [0x140003600]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140001b68
lea rax, str.Origin
mov r9, qword [rsp + 0x450]
mov edx, 0x104
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8, str._ls_s.exe
call fcn.140001760
mov rcx, qword [rsp + 0x450]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001b68
test al, 0x10
je 0x140001d60
nop dword [rax + rax]
lea r9, str.EAOrigin
lea r8, str.schtasks__delete__tn___ls___f
mov edx, 0x100
mov rcx, rbx
call fcn.140001760
mov rcx, rbx
call fcn.1400017a0
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x450], 0
mov rcx, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140001c00
lea rax, str.GamePanelHost
mov r9, qword [rsp + 0x450]
mov edx, 0x104
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8, str._ls_s.exe
call fcn.140001760
mov rcx, qword [rsp + 0x450]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001c00
test al, 0x10
je 0x140001d70
nop word [rax + rax]
lea r9, str.MicrosoftWindowsWDIGamePanelHost
lea r8, str.schtasks__delete__tn___ls___f
mov edx, 0x100
mov rcx, rbx
call fcn.140001760
mov rcx, rbx
call fcn.1400017a0
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x450], 0
lea rcx, [0x140003990]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140001ca0
lea rax, str.Installer
mov r9, qword [rsp + 0x450]
mov edx, 0x104
mov rcx, rsi
mov qword [rsp + 0x28], rax
lea rax, str.Discord
lea r8, str._ls_s_s.exe
mov qword [rsp + 0x20], rax
call fcn.140001760
mov rcx, qword [rsp + 0x450]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001ca0
test al, 0x10
je 0x140001d80
nop
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea rdx, str.Environment
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001ce9
mov rcx, qword [rsp + 0x450]
lea rdx, str.UserInitMprLogonScript
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x450]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x240], 0
jne 0x140001d08
lea rsp, [rbp - 0x20]
mov eax, 1
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
mov r9, r12
mov rcx, rbx
mov edx, 0x110
lea r8, str.cmd__c_del___ls_
call fcn.140001760
mov rcx, rbx
call fcn.1400017a0
lea rsp, [rbp - 0x20]
mov eax, 1
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140001a40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140001ad0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140001b68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140001c00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140001ca0