Function at 0x14004c940
Capabilities:
Encode data using xor

Disassembly:
push r14
sub rsp, 0x20
mov r14, qword [rcx + 0x10]
mov r8, rdx
movsxd rax, dword [rcx + 0x1c]
shl rax, 4
add rax, r14
mov qword [rsp + 0x30], rax
cmp r14, rax
je 0x14004cc0d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r13
mov qword [rsp], r15
nop dword [rax + rax]
mov edi, dword [r14 + 4]
mov r12d, dword [r14 + 0xc]
mov r15d, dword [r14]
add r12d, edi
mov r13d, dword [r14 + 8]
cmp edi, r12d
jge 0x14004cbdc
nop dword [rax + rax]
mov rcx, qword [r8 + 8]
mov ebx, r15d
mov r10, qword [r8]
mov esi, r13d
sub ebx, dword [r8 + 0x14]
mov eax, dword [r10 + 0xc]
imul eax, edi
movsxd r9, eax
mov eax, edi
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
mov rbp, rcx
imul eax, r15d
movsxd r11, eax
add r11, r9
cmp dword [r8 + 0x10], 0xfe
jge 0x14004cb00
nop dword [rax + rax]
mov rcx, qword [r8 + 8]
mov eax, ebx
cdq
inc ebx
dec esi
idiv dword [rcx + 0x14]
mov eax, dword [rcx + 0x10]
imul eax, edx
movsxd rcx, eax
mov rax, qword [r8 + 0x28]
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, rbp
test esi, esi
jg 0x14004ca10
jmp 0x14004cbd1
mov rcx, qword [r8 + 8]
mov eax, ebx
cdq
inc ebx
dec esi
idiv dword [rcx + 0x14]
mov eax, dword [rcx + 0x10]
imul eax, edx
movsxd rcx, eax
mov rax, qword [r8 + 0x28]
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, rbp
test esi, esi
jg 0x14004cb00
inc edi
cmp edi, r12d
jl 0x14004c9b0
add r14, 0x10
cmp r14, qword [rsp + 0x30]
jne 0x14004c990
mov r15, qword [rsp]
mov r13, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret