Function at 0x180140ac0
Capabilities:
Encode data using xor
Encrypt data using dpapi
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
xor edi, edi
mov dword [rsp + 0x50], edx
mov rsi, r9
mov dword [rsp + 0x28], edi
mov r14, r8
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x180140c34
movdqa xmm0, xmmword [0x180162520]
lea rdx, [rbp - 0x70]
movdqa xmm1, xmmword [0x180160480]
lea rcx, [rbp - 0x28]
movabs rax, 0xa8ce5db91a41f821
mov qword [rsp + 0x120], rbx
mov qword [rbp - 0x50], rax
movabs rax, 0xabe029e0b910e7d8
mov qword [rbp - 0x48], rax
movabs rax, 0x8d683d311751f608
mov qword [rbp - 0x40], rax
movdqu xmmword [rbp - 0x70], xmm0
movdqu xmmword [rbp - 0x60], xmm1
call fcn.18000e890
lea r8, [rsp + 0x60]
mov edx, 0x100000
movups xmm1, xmmword [rax]
movups xmmword [rsp + 0x60], xmm1
movsd xmm0, qword [rax + 0x10]
movsd qword [rsp + 0x70], xmm0
mov ecx, dword [rax + 0x18]
mov dword [rsp + 0x78], ecx
lea rcx, [0x18017bd90]
movzx eax, byte [rax + 0x1c]
mov byte [rsp + 0x7c], al
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x40]
inc ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180140c13
mov r8d, dword [rsp + 0x40]
mov rcx, rax
mov rdx, qword [rsp + 0x48]
call fcn.18014af30
mov ecx, dword [rsp + 0x40]
mov dword [rsi], ecx
mov qword [r14], rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
mov rbx, qword [rsp + 0x120]
setne dil
mov eax, edi
jmp 0x180140d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180161690]
movabs rcx, 0x4f46522c986050cc
movdqa xmm1, xmmword [0x180161d70]
movabs r10, 0xf437ff3808c16f2b
movdqu xmmword [rbp - 0x70], xmm0
movabs r8, 0xc7df4ab33a54122c
mov r9d, eax
movdqa xmm0, xmmword [0x1801609a0]
mov rdx, rdi
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r10
mov rax, rcx
movdqu xmmword [rbp - 0x60], xmm1
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x30], rcx
nop dword [rax]
nop dword [rax + rax]
imul rax, rcx
add r8, r10
add rax, r8
mov rcx, rax
shl rax, 0x20
shr rcx, 0x20
or rcx, rax
movzx eax, cl
xor al, byte [rbp + rdx - 0x70]
mov byte [rbp + rdx - 0x28], al
inc rdx
mov rax, rcx
cmp rdx, 0x2f
jb 0x180140ca0
movups xmm0, xmmword [rbp - 0x28]
mov byte [rbp + 7], dil
lea r8, [rsp + 0x60]
movups xmm1, xmmword [rbp - 0x18]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rbp - 8]
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rbp - 0x80], xmm0
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
lea r11, [rsp + 0x110]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret