Function at 0x14004b8e0
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 0x14004bbbc
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]
movsxd rdi, dword [r15 + 4]
mov r13d, dword [r15 + 0xc]
mov r12d, dword [r15]
add r13d, edi
mov eax, dword [r15 + 8]
cmp edi, r13d
jge 0x14004bb86
mov rbp, rdi
mov r15d, eax
nop dword [rax]
nop word [rax + rax]
mov r11, qword [r8]
mov eax, edi
sub eax, dword [r8 + 0x18]
mov ebx, r12d
mov r9, qword [r8 + 8]
cdq
sub ebx, dword [r8 + 0x14]
mov esi, r15d
movsxd r10, dword [r11 + 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
mov r14, rcx
imul eax, r12d
movsxd r11, eax
add r11, r10
cmp dword [r8 + 0x10], 0xfe
jge 0x14004baa4
nop
mov rcx, qword [r8 + 8]
mov eax, ebx
cdq
inc ebx
dec esi
idiv dword [rcx + 0x1c]
mov rax, qword [r8 + 0x28]
imul edx, dword [rcx + 0x18]
movsxd rcx, edx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r10d, edx
shl r10d, 0x10
or r10d, edx
mov edx, 0x100
imul r10d, dword [r8 + 0x10]
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r11]
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
and r9d, 0xff00ff
add r9d, r10d
add r10d, eax
mov eax, r10d
shr eax, 8
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 [r11], edx
add r11, r14
test esi, esi
jg 0x14004b9c0
jmp 0x14004bb73
mov rcx, qword [r8 + 8]
mov eax, ebx
cdq
inc ebx
dec esi
idiv dword [rcx + 0x1c]
mov rax, qword [r8 + 0x28]
imul edx, dword [rcx + 0x18]
movsxd rcx, edx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r10d, edx
shl r10d, 0x10
or r10d, edx
mov edx, 0x100
mov eax, r10d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r11]
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
and r9d, 0xff00ff
add r9d, r10d
add r10d, eax
mov eax, r10d
shr eax, 8
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 [r11], edx
add r11, r14
test esi, esi
jg 0x14004baa4
inc edi
inc rbp
cmp edi, r13d
jl 0x14004b960
mov r15, qword [rsp + 0x50]
add r15, 0x10
mov qword [rsp + 0x50], r15
cmp r15, qword [rsp + 0x58]
jne 0x14004b930
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