Function at 0x14003aac6
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbx, rdx
mov r15, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x30], rax
test r9, r9
je 0x14003aafe
mov r12, r9
movzx r9d, word [rsp + 0xa0]
jmp 0x14003ab0d
lea r12, [rsp + 0x27]
mov byte [r12], 0
mov r9w, 1
movsx edi, r8w
xor ecx, ecx
mov eax, ecx
cdq
idiv edi
movzx esi, byte [rbx + rdx]
shl esi, 0x18
xor esi, dword [r15 + rcx + 0x1000]
mov dword [r15 + rcx + 0x1000], esi
lea eax, [rcx + 1]
cdq
idiv edi
movzx ebp, byte [rbx + rdx]
shl ebp, 0x10
xor ebp, esi
mov dword [r15 + rcx + 0x1000], ebp
lea eax, [rcx + 2]
cdq
idiv edi
movzx esi, byte [rbx + rdx]
shl esi, 8
xor esi, ebp
mov dword [r15 + rcx + 0x1000], esi
lea eax, [rcx + 3]
cdq
idiv edi
movzx eax, byte [rbx + rdx]
xor eax, esi
mov dword [r15 + rcx + 0x1000], eax
add rcx, 4
cmp rcx, 0x48
jne 0x14003ab13
lea rax, [rsp + 0x28]
mov qword [rax], 0
movsx ebp, r9w
xor r13d, r13d
mov edi, 8
xor eax, eax
mov ebx, eax
xor esi, esi
xor r14d, r14d
lea eax, [rbx + r14]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, esi
not cl
and cl, 0x18
shl eax, cl
mov ecx, r14d
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc r14d
add esi, edi
cmp r14d, edi
jne 0x14003ab9c
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14003a6b8
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4 + 0x1000], eax
mov eax, dword [rsp + 0x2c]
mov edx, 4
or rcx, rdx
mov dword [r15 + rcx + 0x1000], eax
lea eax, [rbx + r14]
cmp r13, 0x10
lea r13, [r13 + 2]
jb 0x14003ab95
add ebx, r14d
xor r13d, r13d
mov esi, 8
mov edi, ebx
xor ebx, ebx
xor r14d, r14d
lea eax, [rdi + r14]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, ebx
not cl
and cl, 0x18
shl eax, cl
mov ecx, r14d
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc r14d
add ebx, esi
cmp r14d, esi
jne 0x14003ac25
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14003a6b8
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4], eax
mov eax, dword [rsp + 0x2c]
mov edx, 4
or rcx, rdx
mov dword [r15 + rcx], eax
lea ebx, [rdi + r14]
cmp r13, 0xfe
lea r13, [r13 + 2]
jb 0x14003ac1e
add edi, r14d
xor r13d, r13d
mov ebx, 8
mov esi, edi
xor edi, edi
xor r14d, r14d
lea eax, [rsi + r14]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, edi
not cl
and cl, 0x18
shl eax, cl
mov ecx, r14d
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc r14d
add edi, ebx
cmp r14d, ebx
jne 0x14003aca9
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14003a6b8
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4 + 0x400], eax
mov eax, dword [rsp + 0x2c]
mov edx, 4
or rcx, rdx
mov dword [r15 + rcx + 0x400], eax
lea edi, [rsi + r14]
cmp r13, 0xfe
lea r13, [r13 + 2]
jb 0x14003aca2
add esi, r14d
xor r13d, r13d
mov edi, 8
mov ebx, esi
xor esi, esi
xor r14d, r14d
lea eax, [rbx + r14]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, esi
not cl
and cl, 0x18
shl eax, cl
mov ecx, r14d
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc r14d
add esi, edi
cmp r14d, edi
jne 0x14003ad39
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14003a6b8
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4 + 0x800], eax
mov eax, dword [rsp + 0x2c]
mov edx, 4
or rcx, rdx
mov dword [r15 + rcx + 0x800], eax
lea esi, [rbx + r14]
cmp r13, 0xfe
lea r13, [r13 + 2]
jb 0x14003ad32
add ebx, r14d
xor r13d, r13d
mov edi, 8
xor esi, esi
xor r14d, r14d
lea eax, [rbx + r14]
cdq
idiv ebp
movsxd rax, edx
movzx eax, byte [r12 + rax]
mov ecx, esi
not cl
and cl, 0x18
shl eax, cl
mov ecx, r14d
and ecx, 0xfffffffc
xor dword [rsp + rcx + 0x28], eax
inc r14d
add esi, edi
cmp r14d, edi
jne 0x14003adc7
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
lea r8, [rsp + 0x28]
mov r9, r15
call fcn.14003a6b8
mov eax, dword [rsp + 0x28]
lea rcx, [r13*4]
mov dword [r15 + r13*4 + 0xc00], eax
mov eax, dword [rsp + 0x2c]
mov edx, 4
or rcx, rdx
mov dword [r15 + rcx + 0xc00], eax
add ebx, r14d
cmp r13, 0xfe
lea r13, [r13 + 2]
jb 0x14003adc2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007d5e0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret