Function at 0x140011f78
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.140023ab8
lea ebx, [r12 + 1]
test dil, dil
je 0x14001202a
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 0x14001202a
bt eax, 0xe
jae 0x14001202a
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 0x140012743
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 0x1400120fd
cmp dword [0x140036164], r12d
je 0x1400120b9
mov ecx, 1
call fcn.14000cf84
jmp 0x1400120fd
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 0x1400126dd
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 0x1400126d9
mov edx, dword [0x1400354d8]
mov ecx, edx
sub ecx, 2
je 0x140012453
sub ecx, 1
je 0x1400123b3
cmp ecx, 1
jne 0x1400121b5
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 0x1400121c2
mov r14d, 0xd698
jmp 0x1400121ef
lea eax, [rdx - 4]
cmp eax, 1
jbe 0x1400121e9
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 0x1400121f5
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 0x140012231
test edi, edi
je 0x140012260
test eax, eax
jne 0x140012260
mov r9, qword [rsi]
mov r8, qword [0x140034518]
mov rdx, qword [0x1400345b8]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], 0x31
call fcn.14000c760
cmp eax, 2
je 0x1400126d9
xor r15d, r15d
mov r9, rbx
mov dword [rsp + 0x20], edi
mov r8d, r15d
mov edx, r14d
call fcn.14001108c
mov edx, eax
mov r14d, dword [rsp + 0x54]
test edx, edx
je 0x1400126d9
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 0x1400122f5
test r15d, r15d
jne 0x1400122f5
xor r8d, r8d
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.1400113ac
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 0x140012378
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.140011364
mov rcx, qword [rsi]
lea rdx, [rbp - 0x80]
mov dword [rsp + 0x70], eax
call fcn.1400111d8
mov eax, dword [0x1400354d8]
mov dword [rbp + 0x188], eax
cmp dword [0x1400363ac], r12d
je 0x140012386
call fcn.140011f20
cmp word [0x140036180], r12w
mov edi, r12d
je 0x14001251d
mov qword [rsp + 0x48], r12
test r14d, r14d
jne 0x1400124a8
mov r14d, 1
mov edi, r14d
jmp 0x140012523
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 0x140012405
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 0x1400123ea
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 0x140012274
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 0x140012433
jmp 0x140012274
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 0x140012279
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
call fcn.140010ee8
mov rbx, qword [rsp + 0x48]
test eax, eax
js 0x140012501
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.140027594
test eax, eax
js 0x140012501
cmp dword [rsp + 0x48], 2
je 0x140012501
mov r14d, 1
mov edi, r14d
jmp 0x140012507
mov r14d, 1
test rbx, rbx
je 0x140012523
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140012523
mov r14d, 1
test r13, r13
jne 0x140012530
test edi, edi
je 0x1400126af
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
call fcn.140010ee8
mov rbx, qword [rsp + 0x48]
test eax, eax
js 0x14001269b
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 0x1400125a9
movzx eax, word [rcx + r13]
test ax, ax
je 0x1400125a9
mov word [rcx], ax
add rcx, 2
sub rdx, r14
jne 0x140012587
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
jne 0x1400125d9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140012743
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140012743
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 0x140012624
bt eax, 0xe
jae 0x140012659
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DecryptFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140012659
mov rcx, qword [rbp + 0x3c8]
lea r8, str.shellosshell_accesorycommonedpapphelperedpapphelper.cpp
mov edx, 0xd6
call fcn.140007de4
test eax, eax
js 0x14001269b
cmp word [rbp + 0x190], r12w
je 0x140012693
lea rcx, [rbp + 0x190]
call fcn.14000f9bc
test eax, eax
jne 0x14001264f
mov edx, dword [0x1400354dc]
xor r8d, r8d
mov rcx, rsi
call fcn.1400113ac
add word [0x14003615c], r14w
jmp 0x14001269b
cmp word [rbp + 0x190], r12w
je 0x140012693
lea rdx, [rbp + 0x190]
mov rcx, rbx
call fcn.140027790
test eax, eax
jns 0x140012624
mov rcx, qword [rbp + 0x3c8]
lea r8, str.shellosshell_accesorycommonedpapphelperedpapphelper.cpp
mov r9d, eax
mov edx, 0xdc
call fcn.140007e04
jmp 0x14001269b
mov ecx, r14d
call fcn.14000cd44
test rbx, rbx
je 0x1400126af
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.14000fee0
mov edx, r15d
lea rcx, [rsp + 0x70]
call fcn.14002395c
mov al, r14b
jmp 0x140012745
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 0x140012722
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 0x140012735
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 0x140012743
call fcn.140011f20
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