Function at 0x14000d810
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rbp], rax
xorps xmm0, xmm0
xor eax, eax
xor edi, edi
mov qword [rbp - 0x10], rax
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x60], 0x5c
mov dword [rbp - 0x5c], 0x40000000
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 8], eax
movups xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x40], rdi
movups xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x50], rdi
movups xmmword [rbp - 0x20], xmm0
jbe 0x14000d87c
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov edx, 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov r8d, 4
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x14000db8b
xorps xmm0, xmm0
mov dword [rsp + 0x7c], edi
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
lea rcx, str.S_1_15_2_1
movdqu xmmword [rsp + 0x64], xmm0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
test eax, eax
je 0x14000db82
mov rax, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov ecx, 1
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x58], 0x1f01ff
mov dword [rsp + 0x5c], 2
mov dword [rsp + 0x60], 3
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x78], 5
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
jne 0x14000db79
cmp qword [rbx + 0x18], 0xf
jbe 0x14000d93b
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 1
mov qword [rsp + 0x28], rax
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
test eax, eax
jne 0x14000db70
mov rcx, qword [0x14003b480]
lea r9, [rbp - 0x60]
mov edx, 0x444
mov qword [rsp + 0x128], rsi
mov r8d, 1
mov dword [rbp - 0x4c], 0xff00
call qword [sym.imp.USER32.dll_SendMessageW]
cmp byte [0x140030483], dil
movsd xmm0, qword [0x140030478]
mov eax, dword [0x140030480]
movsd qword [rbp - 0x78], xmm0
mov dword [rbp - 0x70], eax
je 0x14000daef
cmp dword [0x14003a0a0], 2
mov ecx, edi
jl 0x14000dab5
movdqa xmm2, xmmword [0x140030c40]
mov ecx, 8
movdqa xmm4, xmmword [0x140030ca0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140030c60]
psubd xmm2, xmm0
movd xmm0, dword [0x140030478]
andps xmm2, xmmword [0x140030c70]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140030c90]
xorps xmm2, xmm0
movd dword [rbp - 0x78], xmm2
movdqa xmm2, xmmword [0x140030c50]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140030c60]
psubd xmm2, xmm0
movd xmm0, dword [rbp - 0x74]
andps xmm2, xmmword [0x140030c70]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140030c90]
xorps xmm2, xmm0
movd dword [rbp - 0x74], xmm2
movsxd rax, ecx
lea r8, [rbp - 0x78]
add r8, rax
nop
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x38
xor byte [r8 - 1], al
cmp ecx, 0xc
jl 0x14000dac0
mov rsi, 0xffffffffffffffff
mov dword [rsp + 0x28], edi
mov r9d, esi
mov qword [rsp + 0x20], rdi
lea r8, [rbp - 0x78]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovb rax, rsi
mov rcx, rax
call fcn.14002869c
mov r9d, esi
mov dword [rsp + 0x28], ebx
lea r8, [rbp - 0x78]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [0x14003b480]
mov r9, rdi
xor r8d, r8d
mov edx, 0xc2
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call fcn.140028340
mov rsi, qword [rsp + 0x128]
mov al, 1
jmp 0x14000db99
lea rcx, str._Permissions_Failed_n
jmp 0x14000db92
lea rcx, str._SetEntriesInAclA_n
jmp 0x14000db92
lea rcx, str._ConvertStringSidToSidA_failed_n
jmp 0x14000db92
lea rcx, str._Check_Your_.dll_n
call fcn.14000d290
xor al, al
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140028320
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret