Function at 0x140011f88
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 - 0x3c8]
sub rsp, 0x4a0
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rax, qword [0x140036138]
xor r12d, r12d
mov qword [rsp + 0x60], rax
mov r15d, r12d
mov dword [rsp + 0x58], r12d
mov r13, r9
mov dil, r8b
mov byte [rsp + 0x40], r8b
mov rsi, rdx
call fcn.140023bc8
lea ebx, [r12 + 1]
test dil, dil
je 0x14001203a
mov rcx, qword [0x1400360c8]
lea ebx, [r12 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001203a
bt eax, 0xe
jae 0x14001203a
mov rdx, qword [rsi]
lea r9d, [rbx + 0x7d]
mov rcx, qword [0x1400360c8]
lea r8d, [r12 + 2]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_DuplicateEncryptionInfoFile]
nop dword [rax + rax]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov r8d, ebx
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r14d, eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x1400354c8], rax
cmp rax, 0xffffffffffffffff
je 0x140012753
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
mov ebx, r12d
setne bl
cmp dword [0x1400363ac], r12d
mov dword [rsp + 0x48], ebx
je 0x14001210d
cmp dword [0x140036164], r12d
je 0x1400120c9
mov ecx, 1
call fcn.14000cf94
jmp 0x14001210d
mov rcx, qword [0x1400365c8]
lea r9, [0x1400360dc]
lea r8, [0x1400360d8]
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, qword [0x1400365c8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb1
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, qword [0x1400365c8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, qword [0x1400365c8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xbd
mov rdi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x1400126ed
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalLock]
nop dword [rax + rax]
xor r8d, r8d
mov rbx, rax
test rax, rax
je 0x1400126e9
mov edx, dword [0x1400354d8]
mov ecx, edx
sub ecx, 2
je 0x140012463
sub ecx, 1
je 0x1400123c3
cmp ecx, 1
jne 0x1400121c5
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x50]
lea r8d, [rcx + 2]
mov rcx, qword [0x1400354c8]
lea rdx, [0x140034610]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov edx, dword [0x1400354d8]
xor r8d, r8d
cmp edx, 6
jne 0x1400121d2
mov r14d, 0xd698
jmp 0x1400121ff
lea eax, [rdx - 4]
cmp eax, 1
jbe 0x1400121f9
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetACP]
nop dword [rax + rax]
mov r15d, 0x400
xor r8d, r8d
mov r14d, eax
lea rax, [rsp + 0x58]
jmp 0x140012205
mov r14d, 0xfde9
mov r15d, r8d
mov rax, r8
mov qword [rsp + 0x38], rax
mov r9d, edi
mov qword [rsp + 0x30], r8
mov edx, r15d
mov dword [rsp + 0x28], r8d
mov ecx, r14d
mov qword [rsp + 0x20], r8
mov r8, rbx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
xor ecx, ecx
cmp dword [rsp + 0x58], ecx
jne 0x140012241
test edi, edi
je 0x140012270
test eax, eax
jne 0x140012270
mov r9, qword [rsi]
mov r8, qword [0x140034518]
mov rdx, qword [0x1400345b8]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], 0x31
call fcn.14000c770
cmp eax, 2
je 0x1400126e9
xor r15d, r15d
mov r9, rbx
mov dword [rsp + 0x20], edi
mov r8d, r15d
mov edx, r14d
call fcn.14001109c
mov edx, eax
mov r14d, dword [rsp + 0x54]
test edx, edx
je 0x1400126e9
mov rcx, qword [0x1400354c8]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalUnlock]
nop dword [rax + rax]
mov eax, dword [0x1400354d8]
xor r9d, r9d
mov rcx, qword [0x1400365c8]
xor r8d, r8d
mov edx, 0xb9
mov dword [0x1400354dc], eax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor r12d, r12d
cmp dword [0x1400354d8], 1
mov dword [0x140034600], r12d
jne 0x140012305
test r15d, r15d
jne 0x140012305
xor r8d, r8d
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.1400113bc
mov rcx, qword [0x1400354c8]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
or qword [0x1400354c8], 0xffffffffffffffff
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x220
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movzx r15d, byte [rsp + 0x40]
test r15b, r15b
je 0x140012388
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_shcore_path_l1_1_0.dll_Ordinal_170]
nop dword [rax + rax]
mov rcx, qword [rsi]
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 [rsi]
mov qword [rsp + 0x78], rax
call fcn.140011374
mov rcx, qword [rsi]
lea rdx, [rbp - 0x80]
mov dword [rsp + 0x70], eax
call fcn.1400111e8
mov eax, dword [0x1400354d8]
mov dword [rbp + 0x188], eax
cmp dword [0x1400363ac], r12d
je 0x140012396
call fcn.140011f30
cmp word [0x140036180], r12w
mov edi, r12d
je 0x14001252d
mov qword [rsp + 0x48], r12
test r14d, r14d
jne 0x1400124b8
mov r14d, 1
mov edi, r14d
jmp 0x140012533
mov rcx, qword [0x1400354c8]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea rdx, [0x140034608]
mov r8d, 2
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov r14d, edi
mov rdx, rbx
test edi, edi
je 0x140012415
mov r8d, edi
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 0x1400123fa
mov rcx, qword [0x1400354c8]
lea r8d, [rdi + rdi]
and qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov edx, eax
test edi, edi
je 0x140012284
movzx eax, word [rbx]
movzx ecx, byte [rbx + 1]
shl ax, 8
xor cx, ax
mov word [rbx], cx
lea rbx, [rbx + 2]
sub r14, 1
jne 0x140012443
jmp 0x140012284
mov rcx, qword [0x1400354c8]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea rdx, [0x14003460c]
mov r8d, 2
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov rcx, qword [0x1400354c8]
lea r8d, [rdi + rdi]
and qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov edx, eax
jmp 0x140012289
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
call fcn.140010ef8
mov rbx, qword [rsp + 0x48]
test eax, eax
js 0x140012511
xor edx, edx
mov dword [rsp + 0x48], r12d
mov r8d, 0x1fa
lea rcx, [rbp + 0x190]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r9, [rsp + 0x48]
mov rcx, rbx
lea rdx, [rbp + 0x190]
call fcn.1400276a4
test eax, eax
js 0x140012511
cmp dword [rsp + 0x48], 2
je 0x140012511
mov r14d, 1
mov edi, r14d
jmp 0x140012517
mov r14d, 1
test rbx, rbx
je 0x140012533
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140012533
mov r14d, 1
test r13, r13
jne 0x140012540
test edi, edi
je 0x1400126bf
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
call fcn.140010ef8
mov rbx, qword [rsp + 0x48]
test eax, eax
js 0x1400126ab
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x1fa
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test r13, r13
lea rax, [0x140036180]
mov edx, 0xfd
lea rcx, [rbp + 0x190]
cmove r13, rax
lea rax, [rbp + 0x190]
sub r13, rax
lea rax, [rdx + 0x7fffff01]
test rax, rax
je 0x1400125b9
movzx eax, word [rcx + r13]
test ax, ax
je 0x1400125b9
mov word [rcx], ax
add rcx, 2
sub rdx, r14
jne 0x140012597
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
jne 0x1400125e9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140012753
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140012753
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140012634
bt eax, 0xe
jae 0x140012669
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DecryptFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140012669
mov rcx, qword [rbp + 0x3c8]
lea r8, str.shellosshell_accesorycommonedpapphelperedpapphelper.cpp
mov edx, 0xd6
call fcn.140007dd4
test eax, eax
js 0x1400126ab
cmp word [rbp + 0x190], r12w
je 0x1400126a3
lea rcx, [rbp + 0x190]
call fcn.14000f9cc
test eax, eax
jne 0x14001265f
mov edx, dword [0x1400354dc]
xor r8d, r8d
mov rcx, rsi
call fcn.1400113bc
add word [0x14003615c], r14w
jmp 0x1400126ab
cmp word [rbp + 0x190], r12w
je 0x1400126a3
lea rdx, [rbp + 0x190]
mov rcx, rbx
call fcn.1400278a0
test eax, eax
jns 0x140012634
mov rcx, qword [rbp + 0x3c8]
lea r8, str.shellosshell_accesorycommonedpapphelperedpapphelper.cpp
mov r9d, eax
mov edx, 0xdc
call fcn.140007df4
jmp 0x1400126ab
mov ecx, r14d
call fcn.14000cd54
test rbx, rbx
je 0x1400126bf
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140035648]
call qword [sym.imp.USER32.dll_SetCursor]
nop dword [rax + rax]
call fcn.14000fef0
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.140023a6c
mov al, r14b
jmp 0x140012755
mov ebx, dword [rsp + 0x48]
mov rcx, qword [0x140035648]
call qword [sym.imp.USER32.dll_SetCursor]
nop dword [rax + rax]
mov rcx, qword [0x1400354c8]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
or qword [0x1400354c8], 0xffffffffffffffff
xor r14d, r14d
test r12, r12
je 0x140012732
mov rcx, r12
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalUnlock]
nop dword [rax + rax]
test ebx, ebx
je 0x140012745
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
cmp dword [0x1400363ac], r14d
je 0x140012753
call fcn.140011f30
xor al, al
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400019d0
lea r11, [rsp + 0x4a0]
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