Function at 0x140001a54
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov eax, dword [0x1400054f0]
lea r9, [rbp - 0x30]
movsd xmm0, qword [0x1400054e8]
mov r13, rcx
mov dword [rbp - 0x28], eax
xor r8d, r8d
movzx eax, word [0x1400054f4]
mov edi, 0x8d3dcb09
mov word [rbp - 0x24], ax
mov si, 0x38
movsd qword [rbp - 0x30], xmm0
mov eax, edi
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, si
xor word [r9], ax
lea r9, [r9 + 2]
cmp r8d, 7
jl 0x140001aa1
lea rcx, [rbp - 0x30]
call fcn.140003794
mov r9, rax
test rax, rax
je 0x140001ca9
movups xmm0, xmmword [0x140005510]
mov cl, byte [0x140005520]
lea r10, [rbp - 0x22]
mov byte [rbp - 0x12], cl
xor r8d, r8d
movups xmmword [rbp - 0x22], xmm0
mov eax, edi
mul r8d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r8b
inc r8d
sub al, cl
add al, sil
xor byte [r10], al
inc r10
cmp r8d, 0x11
jl 0x140001afa
movups xmm0, xmmword [0x1400054f8]
mov al, byte [0x140005508]
lea r10, [rbp - 0x11]
mov byte [rbp - 1], al
xor r8d, r8d
movups xmmword [rbp - 0x11], xmm0
mov eax, edi
mul r8d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r8b
inc r8d
sub al, cl
add al, sil
xor byte [r10], al
inc r10
cmp r8d, 0x11
jl 0x140001b3a
lea r8, [rbp - 0x22]
mov rcx, r9
lea rdx, [rbp - 0x11]
call fcn.1400021c0
mov rbx, rax
test rax, rax
je 0x140001ca9
cmp byte [0x14000552b], 0
mov ecx, dword [0x140005528]
mov dword [rbp + 0x38], ecx
je 0x140001bb9
xor r8d, r8d
lea r9, [rbp + 0x38]
mov eax, edi
mul r8d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r8b
inc r8d
sub al, cl
add al, sil
xor byte [r9], al
inc r9
cmp r8d, 4
jl 0x140001b94
cmp byte [0x140005527], 0
mov eax, dword [0x140005524]
mov dword [rbp + 0x40], eax
je 0x140001bf7
xor r8d, r8d
lea r9, [rbp + 0x40]
mov eax, edi
mul r8d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r8b
inc r8d
sub al, cl
add al, sil
xor byte [r9], al
inc r9
cmp r8d, 4
jl 0x140001bd2
lea rcx, [rbx - 0x32]
mov edx, 0x32
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x40]
call fcn.140002148
test rax, rax
je 0x140001ca9
movsxd rdi, dword [rbx + 3]
add rdi, 7
add rdi, rbx
je 0x140001ca9
movsxd rsi, dword [rax + 3]
add rsi, 7
add rsi, rax
je 0x140001ca9
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExEnterCriticalRegionAndAcquireResourceExclusive]
mov rbx, qword [rdi]
jmp 0x140001c97
mov rdx, qword [r13 + 8]
mov r15, rbx
mov rcx, qword [rbx + 0x10]
mov r14, rbx
call fcn.1400032e4
test rax, rax
je 0x140001c91
test rdi, rdi
je 0x140001c86
mov rax, qword [rbx]
xorps xmm0, xmm0
mov qword [rdi], rax
xor eax, eax
mov rbx, qword [rbx]
movups xmmword [r14 + 8], xmm0
lea edx, [rax + 5]
xor ecx, ecx
mov dword [r15 + rax + 0x18], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140001c75
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdi, rbx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001c42
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceAndLeaveCriticalRegion]
xor eax, eax
jmp 0x140001cae
mov eax, 0xc0000001
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret