Function at 0x140048e67
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rsi, qword [rcx + 0x18]
movzx r8d, word [rsi + 0x3d2]
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0x20], rax
movzx edx, word [rax + 0x3d2]
lea r15, [r8 + 1]
mov eax, edx
and eax, r15d
mov r12, r15
mov qword [rsp + 0x28], rdx
or r12, rdx
add r12, rax
cmp r12, 0xc
jae 0x14004917a
mov r13, r8
mov rbp, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
movzx ebx, word [rbp + 0x3d2]
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
mov r8, qword [rcx + 0x10]
mov qword [rsp + 0x30], r8
mov word [rsi + 0x3d2], r12w
imul rax, r8, 0x38
lea rcx, [rax + rbp]
add rcx, 0x168
mov rax, qword [rcx + 0x30]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movaps xmmword [rsp + 0x70], xmm2
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov eax, r8d
and eax, 1
mov rdx, r8
xor rdx, 1
lea rdi, [rdx + rax*2]
imul rax, rdi, 0x38
lea rdx, [rax + rbp]
add rdx, 0x168
mov rax, r8
sub rax, rbx
mov r14, rax
not r14
and eax, 0x38
mov r9, r14
and r9, 0xffffffffffffffc7
imul r9, rax
mov eax, r14d
and eax, 0x38
mov r8, r14
or r8, 0x38
imul r8, rax
add r8, r9
call fcn.140070050
mov qword [rsp + 0x38], r13
imul rax, r13, 0x38
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm2, xmmword [rsp + 0x70]
movups xmmword [rsi + rax + 0x168], xmm0
movups xmmword [rsi + rax + 0x178], xmm1
movups xmmword [rsi + rax + 0x188], xmm2
mov rcx, qword [rsp + 0x80]
mov qword [rsi + rax + 0x198], rcx
mov rax, qword [rsp + 0x20]
lea rdx, [rax + 0x168]
imul rax, r15, 0x38
lea rcx, [rsi + rax]
add rcx, 0x168
mov r13, qword [rsp + 0x28]
mov eax, r13d
and eax, 0xffffffc7
mov r9d, r13d
not r9d
and r9d, 0x38
imul r9, rax
mov eax, r13d
and eax, 0x38
mov r8, r13
or r8, 0x38
imul r8, rax
add r8, r9
call fcn.140070050
mov rax, qword [rsp + 0x30]
shl rax, 5
lea rcx, [rax + rbp]
movups xmm0, xmmword [rbp + rax]
movups xmm1, xmmword [rbp + rax + 0x10]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm1
mov rdx, rdi
shl rdx, 5
add rdx, rbp
mov r8, r14
shl r8, 5
call fcn.140070050
mov rax, qword [rsp + 0x38]
shl rax, 5
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rsi + rax], xmm0
movups xmmword [rsi + rax + 0x10], xmm1
mov rcx, r15
shl rcx, 5
add rcx, rsi
shl r13, 5
mov rdx, qword [rsp + 0x20]
mov r8, r13
call fcn.140070050
lea rcx, [rdi*8 + 0x3d8]
add rcx, rbp
mov rdx, qword [rsp + 0x30]
mov eax, edx
and eax, 2
xor rdx, 2
lea rax, [rdx + rax*2]
lea rdx, [rax*8 + 0x3d8]
add rdx, rbp
shl r14, 3
mov r8, r14
call fcn.140070050
cmp rdi, rbx
jae 0x1400490d3
mov rax, rdi
mov rcx, qword [rbp + rdi*8 + 0x3d8]
inc rax
mov qword [rcx + 0x160], rbp
mov word [rcx + 0x3d0], di
mov rdi, rax
cmp rbx, rax
jne 0x1400490b2
dec word [rbp + 0x3d2]
cmp qword [rsp + 0x40], 2
mov rdi, qword [rsp + 0x20]
jb 0x14004914c
lea rcx, [rsi + r15*8]
mov edx, 0x3d8
add rcx, rdx
add rdx, rdi
mov rax, qword [rsp + 0x28]
lea rax, [rax*8]
movabs r8, 0x40334258eac5883a
sub rax, r8
add r8, rax
add r8, 8
call fcn.140070050
mov eax, r15d
and eax, 1
mov rcx, qword [rsi + r15*8 + 0x3d8]
mov qword [rcx + 0x160], rsi
mov word [rcx + 0x3d0], r15w
mov rcx, r15
xor rcx, 1
lea rax, [rcx + rax*2]
cmp r15, r12
mov r15, rax
jne 0x14004911c
mov rcx, qword [0x14008fb30]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rsi
mov rdx, qword [rsp + 0x48]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2