Function at 0x18004ac10
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x40
mov r12, qword [rcx + 0x10]
mov r8, rdx
movsxd rax, dword [rcx + 0x1c]
shl rax, 4
add rax, r12
mov qword [rsp + 0x68], r12
mov qword [rsp], rax
cmp r12, rax
je 0x18004aede
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
nop dword [rax]
movsxd r14, dword [r12 + 4]
mov r13d, dword [r12 + 0xc]
mov ebx, dword [r12 + 8]
add r13d, r14d
mov eax, dword [r12]
mov dword [rsp + 0x60], ebx
cmp r14d, r13d
jge 0x18004aea8
mov rbp, r14
mov r12d, eax
nop dword [rax]
mov r11, qword [r8]
mov eax, r14d
sub eax, dword [r8 + 0x18]
mov esi, ebx
mov r9, qword [r8 + 8]
cdq
mov edi, r12d
movsxd r10, dword [r11 + 0x14]
sub edi, dword [r8 + 0x14]
imul r10, rbp
add r10, qword [r11]
mov qword [r8 + 0x20], r10
idiv dword [r9 + 0x20]
movsxd rax, dword [r9 + 0x14]
movsxd rcx, edx
imul rcx, rax
add rcx, qword [r9]
mov qword [r8 + 0x28], rcx
movsxd rcx, dword [r11 + 0x18]
mov eax, ecx
imul eax, r12d
movsxd rbx, eax
add rbx, r10
cmp dword [r8 + 0x10], 0xfe
jge 0x18004add0
mov r15, rcx
nop
mov rcx, qword [r8 + 8]
mov eax, edi
cdq
inc edi
dec esi
idiv dword [rcx + 0x1c]
mov rax, qword [r8 + 0x28]
imul edx, dword [rcx + 0x18]
movsxd rcx, edx
mov edx, dword [rcx + rax]
mov r11d, edx
and edx, 0xff00ff
shr r11d, 8
imul edx, dword [r8 + 0x10]
and r11d, 0xff00ff
imul r11d, dword [r8 + 0x10]
mov ecx, 0x100
shr edx, 8
and edx, 0xff00ff
shr r11d, 8
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub ecx, eax
mov eax, dword [rbx]
mov r10d, eax
shr eax, 8
and eax, 0xff00ff
and r10d, 0xff00ff
imul eax, ecx
imul r10d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r10d, 8
add r11d, eax
and r10d, 0xff00ff
add r10d, edx
mov eax, r11d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
shl r11d, 8
sub edx, eax
mov eax, r10d
shl edx, 8
shr eax, 8
or edx, r11d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r10d
and ecx, 0xff00ff
xor ecx, edx
mov dword [rbx], ecx
add rbx, r15
test esi, esi
jg 0x18004acf0
jmp 0x18004ae90
mov r11, rcx
mov rcx, qword [r8 + 8]
mov eax, edi
cdq
inc edi
dec esi
idiv dword [rcx + 0x1c]
mov rax, qword [r8 + 0x28]
imul edx, dword [rcx + 0x18]
movsxd rcx, edx
mov edx, dword [rcx + rax]
mov r10d, edx
and edx, 0xff00ff
shr r10d, 8
and r10d, 0xff00ff
mov ecx, 0x100
mov eax, r10d
shr eax, 0x10
sub ecx, eax
mov eax, dword [rbx]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, ecx
imul r9d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r9d, edx
mov eax, r10d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
shl r10d, 8
sub edx, eax
mov eax, r9d
shl edx, 8
shr eax, 8
or edx, r10d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r9d
and ecx, 0xff00ff
xor ecx, edx
mov dword [rbx], ecx
add rbx, r11
test esi, esi
jg 0x18004add3
mov ebx, dword [rsp + 0x60]
inc r14d
inc rbp
cmp r14d, r13d
jl 0x18004ac90
mov r12, qword [rsp + 0x68]
add r12, 0x10
mov qword [rsp + 0x68], r12
cmp r12, qword [rsp]
jne 0x18004ac60
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop r12
ret