Function at 0x14004bdb0
Capabilities:
Encode data using xor

Disassembly:
push r15
sub rsp, 0x30
mov r15, qword [rcx + 0x10]
mov r8, rdx
movsxd rax, dword [rcx + 0x1c]
shl rax, 4
add rax, r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rax
cmp r15, rax
je 0x14004c09e
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r13
mov qword [rsp], r14
nop dword [rax]
mov esi, dword [r15 + 4]
mov r13d, dword [r15 + 0xc]
mov r12d, dword [r15]
add r13d, esi
mov eax, dword [r15 + 8]
cmp esi, r13d
jge 0x14004c068
mov r15d, eax
nop
mov rcx, qword [r8 + 8]
mov edi, r12d
mov r10, qword [r8]
mov ebp, r15d
sub edi, dword [r8 + 0x14]
mov eax, dword [r10 + 0xc]
imul eax, esi
movsxd r9, eax
mov eax, esi
sub eax, dword [r8 + 0x18]
add r9, qword [r10]
cdq
mov qword [r8 + 0x20], r9
idiv dword [rcx + 0x18]
imul edx, dword [rcx + 0xc]
movsxd rax, edx
add rax, qword [rcx]
mov qword [r8 + 0x28], rax
movsxd rcx, dword [r10 + 0x10]
mov eax, ecx
imul eax, r12d
movsxd rbx, eax
add rbx, r9
cmp dword [r8 + 0x10], 0xfe
jge 0x14004bf7b
mov r14, rcx
nop dword [rax + rax]
mov rcx, qword [r8 + 8]
mov eax, edi
cdq
inc edi
dec ebp
idiv dword [rcx + 0x14]
mov eax, dword [rcx + 0x10]
imul eax, edx
movsxd rcx, eax
mov rax, qword [r8 + 0x28]
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, r14
test ebp, ebp
jg 0x14004be80
jmp 0x14004c058
mov r11, rcx
nop
mov rcx, qword [r8 + 8]
mov eax, edi
cdq
inc edi
dec ebp
idiv dword [rcx + 0x14]
mov eax, dword [rcx + 0x10]
imul eax, edx
movsxd rcx, eax
mov rax, qword [r8 + 0x28]
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 ebp, ebp
jg 0x14004bf80
inc esi
cmp esi, r13d
jl 0x14004be20
mov r15, qword [rsp + 0x50]
add r15, 0x10
mov qword [rsp + 0x50], r15
cmp r15, qword [rsp + 0x58]
jne 0x14004be00
mov r14, qword [rsp]
mov r13, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop r15
ret