Function at 0x14004ad10
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 0x14004b014
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 eax, dword [r12 + 0xc]
mov ebx, dword [r12 + 8]
add eax, r14d
mov r13d, dword [r12]
mov dword [rsp + 0x60], ebx
cmp r14d, eax
jge 0x14004afde
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, r13d
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, r13d
movsxd rbx, eax
add rbx, r10
cmp dword [r8 + 0x10], 0xfe
jge 0x14004aee9
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
sub edx, eax
mov eax, r11d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r11d
or ecx, r10d
shr eax, 8
xor edx, ecx
shl r11d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r11d
xor edx, ecx
mov dword [rbx], edx
add rbx, r15
test esi, esi
jg 0x14004adf0
jmp 0x14004afc6
mov r11, rcx
nop dword [rax]
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
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r10d
or ecx, r9d
shr eax, 8
xor edx, ecx
shl r10d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r10d
xor edx, ecx
mov dword [rbx], edx
add rbx, r11
test esi, esi
jg 0x14004aef0
mov ebx, dword [rsp + 0x60]
inc r14d
inc rbp
cmp r14d, r12d
jl 0x14004ad90
mov r12, qword [rsp + 0x68]
add r12, 0x10
mov qword [rsp + 0x68], r12
cmp r12, qword [rsp]
jne 0x14004ad60
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