Function at 0x14000e808
Capabilities:
Check if file exists
Clear file content
Delete file
Encode data using xor
Get file attributes
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x408]
sub rsp, 0x4e0
mov rax, qword [0x140030470]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rax, qword [0x140032598]
xor r14d, r14d
mov qword [rsp + 0x58], rax
mov edi, r14d
mov dword [rsp + 0x54], r14d
mov sil, r8b
mov qword [rsp + 0x60], r9
mov r15, rdx
mov byte [rsp + 0x40], r8b
call fcn.14001ff90
lea ebx, [r14 + 1]
lea r12d, [rbx + 0x7f]
test sil, sil
je 0x14000e8bc
mov rcx, qword [0x1400320e0]
lea ebx, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000e8bc
bt eax, 0xe
jae 0x14000e8bc
mov rdx, qword [r15]
lea r8d, [r14 + 2]
mov rcx, qword [0x1400320e0]
mov r9d, r12d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_DuplicateEncryptionInfoFile]
nop dword [rax + rax]
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
mov rcx, qword [r15]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov r8d, ebx
mov dword [rsp + 0x28], r12d
mov edx, 0xc0000000
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x140031500], rax
cmp rax, 0xffffffffffffffff
je 0x14000f04b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor ebx, ebx
cmp eax, 0xb7
mov r13d, ebx
setne r13b
cmp dword [0x14003236c], ebx
je 0x14000e984
cmp dword [0x140032130], ebx
je 0x14000e940
lea ecx, [rbx + 1]
call fcn.140007e98
jmp 0x14000e984
mov rcx, qword [0x140032588]
lea r9, [0x1400320fc]
lea r8, [0x1400320f8]
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, qword [0x140032588]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb1
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, qword [0x140032588]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, qword [0x140032588]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xbd
mov r14, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x14000efe8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalLock]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14000efe8
mov ecx, dword [0x1400315e0]
sub ecx, 2
je 0x14000eb97
sub ecx, 1
je 0x14000eafb
cmp ecx, 1
jne 0x14000ea2e
lea r8d, [rcx + 2]
mov qword [rsp + 0x20], rbx
mov rcx, qword [0x140031500]
lea r9, [rsp + 0x50]
lea rdx, [0x140030688]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
lea rcx, [0x1400314c8]
call fcn.14000c77c
test al, al
mov eax, dword [0x1400315e0]
je 0x14000ea50
cmp eax, 6
jne 0x14000ea50
mov ebx, 0xd698
jmp 0x14000ea77
add eax, 0xfffffffc
cmp eax, 1
jbe 0x14000ea72
call qword [sym.imp.KERNEL32.dll_GetACP]
nop dword [rax + rax]
mov ebx, eax
mov edi, 0x400
lea rax, [rsp + 0x54]
jmp 0x14000ea79
mov ebx, 0xfde9
xor eax, eax
mov qword [rsp + 0x38], rax
mov r9d, r14d
xor eax, eax
mov r8, rsi
mov qword [rsp + 0x30], rax
mov edx, edi
mov dword [rsp + 0x28], eax
mov ecx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
cmp dword [rsp + 0x54], 0
jne 0x14000eab4
test r14d, r14d
je 0x14000eae2
test eax, eax
jne 0x14000eae2
mov r9, qword [r15]
mov r8, qword [0x140030590]
mov rdx, qword [0x140030630]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x31
call fcn.14000bd64
cmp eax, 2
je 0x14000efe6
xor edi, edi
mov r9, rsi
mov dword [rsp + 0x20], r14d
mov r8d, edi
mov edx, ebx
call fcn.14000e654
xor ebx, ebx
jmp 0x14000ebe5
mov rcx, qword [0x140031500]
lea r9, [rsp + 0x50]
mov r8d, 2
mov qword [rsp + 0x20], rbx
lea rdx, [0x140030680]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov rdx, rsi
test r14d, r14d
je 0x14000eb4b
mov r8d, r14d
movzx eax, word [rdx]
movzx ecx, byte [rdx + 1]
shl ax, 8
xor cx, ax
mov word [rdx], cx
lea rdx, [rdx + 2]
sub r8, 1
jne 0x14000eb30
mov rcx, qword [0x140031500]
lea r8d, [r14 + r14]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov r8d, eax
test r14d, r14d
je 0x14000ebe8
mov edx, r14d
movzx eax, word [rsi]
movzx ecx, byte [rsi + 1]
shl ax, 8
xor cx, ax
mov word [rsi], cx
lea rsi, [rsi + 2]
sub rdx, 1
jne 0x14000eb7a
jmp 0x14000ebe8
mov rcx, qword [0x140031500]
lea r9, [rsp + 0x50]
mov r8d, 2
mov qword [rsp + 0x20], rbx
lea rdx, [0x140030684]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov rcx, qword [0x140031500]
lea r8d, [r14 + r14]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov r8d, eax
test r8d, r8d
je 0x14000efe8
mov rcx, qword [0x140031500]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalUnlock]
nop dword [rax + rax]
mov eax, dword [0x1400315e0]
xor r9d, r9d
mov rcx, qword [0x140032588]
xor r8d, r8d
mov edx, 0xb9
mov dword [0x1400315e4], eax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor r12d, r12d
mov dword [0x140030678], r12d
lea r13d, [r12 + 1]
cmp dword [0x1400315e0], r13d
jne 0x14000ec67
test edi, edi
jne 0x14000ec67
xor r8d, r8d
mov edx, r13d
mov rcx, r15
call fcn.14000f1ac
mov rcx, qword [0x140031500]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or qword [0x140031500], 0xffffffffffffffff
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x220
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movzx r14d, byte [rsp + 0x40]
test r14b, r14b
je 0x14000ecea
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_shcore_path_l1_1_0.dll_Ordinal_170]
nop dword [rax + rax]
mov rcx, qword [r15]
mov dword [rsp + 0x74], eax
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindExtensionW]
nop dword [rax + rax]
mov rcx, qword [r15]
mov qword [rsp + 0x78], rax
call fcn.14000f08c
mov rcx, qword [r15]
lea rdx, [rbp - 0x80]
mov dword [rsp + 0x70], eax
call fcn.14000f0d4
mov eax, dword [0x1400315e0]
mov dword [rbp + 0x188], eax
cmp dword [0x14003236c], r12d
je 0x14000ecf8
call fcn.14000e7b0
cmp word [0x140032140], r12w
mov edi, r12d
je 0x14000ed7b
mov qword [rsp + 0x58], r12
cmp dword [rsp + 0x48], r12d
jne 0x14000ed16
mov edi, r13d
jmp 0x14000ed7b
mov rcx, qword [r15]
lea rdx, [rsp + 0x58]
call fcn.140010120
mov rbx, qword [rsp + 0x58]
test eax, eax
js 0x14000ed67
xor edx, edx
mov dword [rsp + 0x48], r12d
mov r8d, 0x1fa
lea rcx, [rbp + 0x1d0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r9, [rsp + 0x48]
mov rcx, rbx
lea rdx, [rbp + 0x1d0]
call fcn.1400210b0
test eax, eax
js 0x14000ed67
cmp dword [rsp + 0x48], 2
je 0x14000ed67
mov edi, r13d
test rbx, rbx
je 0x14000ed7b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
test rsi, rsi
jne 0x14000ed8d
test edi, edi
je 0x14000efbc
mov rcx, qword [r15]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
call fcn.140010120
mov rbx, qword [rsp + 0x48]
test eax, eax
js 0x14000efa8
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x1fa
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test rsi, rsi
lea r8, [0x140032140]
mov edx, 0xfd
lea rcx, [rbp + 0x1d0]
cmovne r8, rsi
call fcn.14000173c
test eax, eax
jns 0x14000ee00
mov rcx, rbx
test rbx, rbx
je 0x14000f04b
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x14000f04b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000ee87
bt eax, 0xe
jae 0x14000ee4b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DecryptFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000ee4b
mov rcx, qword [rbp + 0x408]
lea r8, str.shellosshell_accesorycommonedpapphelperedpapphelper.cpp
mov edx, 0xd6
call fcn.140002634
mov edi, eax
jmp 0x14000ee8a
cmp word [rbp + 0x1d0], r12w
je 0x14000ee87
lea rdx, [rbp + 0x1d0]
mov rcx, rbx
call fcn.140021350
mov edi, eax
test eax, eax
jns 0x14000ee87
mov rcx, qword [rbp + 0x408]
lea r8, str.shellosshell_accesorycommonedpapphelperedpapphelper.cpp
mov r9d, eax
mov edx, 0xdc
call fcn.1400025fc
jmp 0x14000ee8a
mov edi, r12d
test edi, edi
js 0x14000efa8
cmp word [rbp + 0x1d0], r12w
je 0x14000efa0
lea rax, [rbp + 0x1d0]
mov byte [rsp + 0x40], r12b
lea r9, [rbp + 0x1a8]
mov qword [rsp + 0x60], rax
lea r8, [rbp + 0x190]
mov qword [rsp + 0x48], r12
mov edx, 0x37
mov qword [rbp + 0x1a8], r12
lea rcx, str.Windows.Security.EnterpriseData.ProtectionPolicyManager
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsCreateStringReference]
nop dword [rax + rax]
test eax, eax
js 0x14000f07e
mov rcx, qword [rbp + 0x1a8]
lea r8, [rsp + 0x48]
lea rdx, [0x14002a920]
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoGetActivationFactory]
nop dword [rax + rax]
mov qword [rbp + 0x1a8], r12
test eax, eax
js 0x14000ef4b
mov rdi, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call fcn.1400221c4
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, qword [rax + 0x18]
mov rax, qword [rdi]
mov rax, qword [rax + 0x38]
call qword [0x1400270f0]
mov qword [rbp + 0x1c8], r12
mov rcx, qword [rsp + 0x48]
movzx edi, byte [rsp + 0x40]
test rcx, rcx
je 0x14000ef6c
mov qword [rsp + 0x48], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400270f0]
test edi, edi
je 0x14000ef7e
lea rcx, [rbp + 0x1d0]
call fcn.14000c560
jmp 0x14000ef81
mov eax, r12d
test eax, eax
jne 0x14000ef96
mov edx, dword [0x1400315e4]
xor r8d, r8d
mov rcx, r15
call fcn.14000f1ac
add word [0x1400314f4], r13w
jmp 0x14000efa8
mov ecx, r13d
call fcn.14000c5e0
test rbx, rbx
je 0x14000efbc
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140031688]
call qword [sym.imp.USER32.dll_SetCursor]
nop dword [rax + rax]
call fcn.14000b120
mov edx, r14d
lea rcx, [rsp + 0x70]
call fcn.140020010
mov al, r13b
jmp 0x14000f04d
xor ebx, ebx
mov rcx, qword [0x140031688]
call qword [sym.imp.USER32.dll_SetCursor]
nop dword [rax + rax]
mov rcx, qword [0x140031500]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or qword [0x140031500], 0xffffffffffffffff
test r12, r12
je 0x14000f02a
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalUnlock]
nop dword [rax + rax]
test r13d, r13d
je 0x14000f03e
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
cmp dword [0x14003236c], ebx
je 0x14000f04b
call fcn.14000e7b0
xor al, al
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140023ec0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, eax
call fcn.140020b18
int3