Function at 0x14001ff40
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rdi, rcx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea edx, [rsi + 2]
lea r8d, [rsi + 4]
call qword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov ebx, eax
test eax, eax
je 0x140020044
mov eax, 0x34
mov word [rbp + 0x18], ax
mov eax, 0x6a
mov word [rbp + 0x1a], ax
mov eax, 0x4c
mov word [rbp + 0x1c], ax
mov eax, 0x3a
mov word [rbp + 0x1e], ax
mov word [rbp + 0x20], si
movzx ecx, word [rbp + 0x18]
mov edx, esi
nop dword [rax + rax]
movzx ecx, word [rbp + rdx*2 + 0x18]
sub ecx, 6
mov word [rbp + rdx*2 + 0x18], cx
inc rdx
cmp rdx, 4
jb 0x14001ffe0
mov rcx, qword [0x140063e00]
test rcx, rcx
je 0x140020039
lea rdx, [rbp + 0x18]
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rdx + rax*2], si
jne 0x140020010
lea r8d, [rax*2 + 2]
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x80]
lea rdx, [rbp + 0x18]
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
or ebx, 0xe0ff0000
jmp 0x1400202d3
lea rax, [rsp + 0x78]
mov qword [rbp - 8], rax
mov byte [rbp - 0x50], sil
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov byte [rsp + 0x60], 1
mov dword [rbp + 0x10], 0
mov word [rbp + 0x14], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14002011f
mov dword [rbp + 0x28], 0xc730
mov eax, 0xc71e
mov word [rbp + 0x2c], ax
mov eax, 0xc755
mov word [rbp + 0x2e], ax
mov eax, 0xc774
mov word [rbp + 0x30], ax
mov eax, 0xc77a
mov word [rbp + 0x32], ax
xor eax, eax
mov word [rbp + 0x34], ax
movzx eax, word [rbp + 0x2c]
mov r8, rsi
nop dword [rax]
movzx edx, word [rbp + r8*2 + 0x2c]
mov eax, dword [rbp + 0x28]
movzx ecx, ax
mov eax, edx
xor eax, ecx
mov word [rbp + r8*2 + 0x2c], ax
inc r8
cmp r8, 4
jb 0x1400200e0
mov word [rbp + 0x34], si
lea rcx, [rbp + 0x2c]
call fcn.14001c7d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
or ebx, 0xe0ff0000
jmp 0x1400202ca
lea rax, [rsp + 0x68]
mov qword [rbp], rax
mov byte [rbp - 0x60], 0
lea rax, [rsp + 0x68]
mov qword [rbp - 0x58], rax
mov byte [rsp + 0x61], 1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x34], xmm0
mov qword [rbp - 0x20], 5
mov dword [rbp - 0x3c], 2
mov dword [rbp - 0x40], 0x35
mov dword [rbp - 0x38], esi
mov dword [rbp - 0x24], esi
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x18], rax
lea r9, [rsp + 0x70]
mov r8, qword [rbp - 0x78]
lea rdx, [rbp - 0x40]
mov ecx, 1
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebx, eax
test eax, eax
je 0x1400201f7
mov dword [rbp + 0x38], 0xeefe
mov eax, 0xeed0
mov word [rbp + 0x3c], ax
mov eax, 0xeeca
mov word [rbp + 0x3e], ax
mov eax, 0xeecd
mov word [rbp + 0x40], ax
mov eax, 0xeea4
mov word [rbp + 0x42], ax
xor eax, eax
mov word [rbp + 0x44], ax
movzx eax, word [rbp + 0x3c]
mov r8, rsi
nop dword [rax]
movzx edx, word [rbp + r8*2 + 0x3c]
mov eax, dword [rbp + 0x38]
movzx ecx, ax
mov eax, edx
xor eax, ecx
mov word [rbp + r8*2 + 0x3c], ax
inc r8
cmp r8, 4
jb 0x1400201c0
mov word [rbp + 0x44], si
lea rcx, [rbp + 0x3c]
call fcn.14001c7d0
or ebx, 0xe0ff0000
jmp 0x1400202c0
lea rax, [rsp + 0x70]
mov qword [rbp + 8], rax
mov byte [rbp - 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rbp - 0x68], rax
mov byte [rsp + 0x62], 1
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea edx, [r9 + 2]
lea r8d, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov ebx, eax
test eax, eax
je 0x1400202b4
mov dword [rbp + 0x48], 0x3ebf
mov eax, 0x3e91
mov word [rbp + 0x4c], ax
mov eax, 0x3ef0
mov word [rbp + 0x4e], ax
mov eax, 0x3eee
mov word [rbp + 0x50], ax
mov eax, 0x3edb
mov word [rbp + 0x52], ax
xor eax, eax
mov word [rbp + 0x54], ax
movzx eax, word [rbp + 0x4c]
mov r8, rsi
nop dword [rax + rax]
movzx edx, word [rbp + r8*2 + 0x4c]
mov eax, dword [rbp + 0x48]
movzx ecx, ax
mov eax, edx
xor eax, ecx
mov word [rbp + r8*2 + 0x4c], ax
inc r8
cmp r8, 4
jb 0x140020280
mov word [rbp + 0x54], si
lea rcx, [rbp + 0x4c]
call fcn.14001c7d0
or ebx, 0xe0ff0000
jmp 0x1400202b6
mov ebx, esi
lea rcx, [rbp - 0x68]
call fcn.140021a90
nop
lea rcx, [rbp - 0x58]
call fcn.14001dda0
nop
lea rcx, [rbp - 0x48]
call fcn.140021a90
mov eax, ebx
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.14002fb30
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret