Function at 0x140011eb8
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.1400239f8
lea ebx, [r12 + 1]
test dil, dil
je 0x140011f6a
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 0x140011f6a
bt eax, 0xe
jae 0x140011f6a
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 0x140012683
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 0x14001203d
cmp dword [0x140036164], r12d
je 0x140011ff9
mov ecx, 1
call fcn.14000cec4
jmp 0x14001203d
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 0x14001261d
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 0x140012619
mov edx, dword [0x1400354d8]
mov ecx, edx
sub ecx, 2
je 0x140012393
sub ecx, 1
je 0x1400122f3
cmp ecx, 1
jne 0x1400120f5
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 0x140012102
mov r14d, 0xd698
jmp 0x14001212f
lea eax, [rdx - 4]
cmp eax, 1
jbe 0x140012129
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 0x140012135
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 0x140012171
test edi, edi
je 0x1400121a0
test eax, eax
jne 0x1400121a0
mov r9, qword [rsi]
mov r8, qword [0x140034518]
mov rdx, qword [0x1400345b8]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], 0x31
call fcn.14000c6a0
cmp eax, 2
je 0x140012619
xor r15d, r15d
mov r9, rbx
mov dword [rsp + 0x20], edi
mov r8d, r15d
mov edx, r14d
call fcn.140010fcc
mov edx, eax
mov r14d, dword [rsp + 0x54]
test edx, edx
je 0x140012619
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 0x140012235
test r15d, r15d
jne 0x140012235
xor r8d, r8d
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.1400112ec
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 0x1400122b8
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.1400112a4
mov rcx, qword [rsi]
lea rdx, [rbp - 0x80]
mov dword [rsp + 0x70], eax
call fcn.140011118
mov eax, dword [0x1400354d8]
mov dword [rbp + 0x188], eax
cmp dword [0x1400363ac], r12d
je 0x1400122c6
call fcn.140011e60
cmp word [0x140036180], r12w
mov edi, r12d
je 0x14001245d
mov qword [rsp + 0x48], r12
test r14d, r14d
jne 0x1400123e8
mov r14d, 1
mov edi, r14d
jmp 0x140012463
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 0x140012345
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 0x14001232a
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 0x1400121b4
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 0x140012373
jmp 0x1400121b4
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 0x1400121b9
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
call fcn.140010e28
mov rbx, qword [rsp + 0x48]
test eax, eax
js 0x140012441
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.1400274d4
test eax, eax
js 0x140012441
cmp dword [rsp + 0x48], 2
je 0x140012441
mov r14d, 1
mov edi, r14d
jmp 0x140012447
mov r14d, 1
test rbx, rbx
je 0x140012463
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140012463
mov r14d, 1
test r13, r13
jne 0x140012470
test edi, edi
je 0x1400125ef
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
call fcn.140010e28
mov rbx, qword [rsp + 0x48]
test eax, eax
js 0x1400125db
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 0x1400124e9
movzx eax, word [rcx + r13]
test ax, ax
je 0x1400124e9
mov word [rcx], ax
add rcx, 2
sub rdx, r14
jne 0x1400124c7
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
jne 0x140012519
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140012683
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140012683
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 0x140012564
bt eax, 0xe
jae 0x140012599
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DecryptFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140012599
mov rcx, qword [rbp + 0x3c8]
lea r8, str.shellosshell_accesorycommonedpapphelperedpapphelper.cpp
mov edx, 0xd6
call fcn.140007d50
test eax, eax
js 0x1400125db
cmp word [rbp + 0x190], r12w
je 0x1400125d3
lea rcx, [rbp + 0x190]
call fcn.14000f8fc
test eax, eax
jne 0x14001258f
mov edx, dword [0x1400354dc]
xor r8d, r8d
mov rcx, rsi
call fcn.1400112ec
add word [0x14003615c], r14w
jmp 0x1400125db
cmp word [rbp + 0x190], r12w
je 0x1400125d3
lea rdx, [rbp + 0x190]
mov rcx, rbx
call fcn.1400276d0
test eax, eax
jns 0x140012564
mov rcx, qword [rbp + 0x3c8]
lea r8, str.shellosshell_accesorycommonedpapphelperedpapphelper.cpp
mov r9d, eax
mov edx, 0xdc
call fcn.140007d70
jmp 0x1400125db
mov ecx, r14d
call fcn.14000cc84
test rbx, rbx
je 0x1400125ef
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.14000fe20
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.14002389c
mov al, r14b
jmp 0x140012685
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 0x140012662
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 0x140012675
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 0x140012683
call fcn.140011e60
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