Function at 0x14004c5b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r13
sub rsp, 0x58
mov r13, qword [rcx + 0x10]
mov rbx, rdx
movsxd rax, dword [rcx + 0x1c]
shl rax, 4
add rax, r13
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x20], rax
cmp r13, rax
je 0x14004c8c4
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
nop
mov eax, dword [r13]
movsxd r14, dword [r13 + 4]
mov r12d, dword [r13 + 8]
mov dword [rsp + 0x70], eax
mov eax, dword [r13 + 0xc]
add eax, r14d
mov dword [rsp + 0x80], eax
cmp r14d, eax
jge 0x14004c88f
mov r13d, dword [rsp + 0x70]
mov r15, r14
nop
mov r10, qword [rbx]
mov eax, r14d
sub eax, dword [rbx + 0x18]
mov esi, r13d
mov r9, qword [rbx + 8]
mov edi, r12d
sub esi, dword [rbx + 0x14]
movsxd rdx, dword [r10 + 0x14]
movsxd rbp, eax
imul rdx, r15
add rdx, qword [r10]
mov qword [rbx + 0x20], rdx
movsxd rax, dword [r9 + 0x14]
imul rbp, rax
add rbp, qword [r9]
mov qword [rbx + 0x28], rbp
movsxd r8, dword [r10 + 0x18]
mov eax, r8d
imul eax, r13d
cdqe
add rax, rdx
cmp dword [rbx + 0x10], 0xfe
jge 0x14004c779
mov rbp, r8
nop word [rax + rax]
mov rcx, qword [rbx + 8]
mov edx, esi
inc esi
dec edi
imul edx, dword [rcx + 0x18]
mov rcx, qword [rbx + 0x28]
movsxd rdx, edx
mov r8d, dword [rdx + rcx]
mov r11d, r8d
and r8d, 0xff00ff
shr r11d, 8
imul r8d, dword [rbx + 0x10]
and r11d, 0xff00ff
imul r11d, dword [rbx + 0x10]
mov edx, 0x100
shr r8d, 8
and r8d, 0xff00ff
shr r11d, 8
and r11d, 0xff00ff
mov ecx, r11d
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rax]
mov r10d, ecx
shr ecx, 8
and ecx, 0xff00ff
and r10d, 0xff00ff
imul ecx, edx
imul r10d, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr r10d, 8
add r11d, ecx
and r10d, 0xff00ff
add r10d, r8d
mov ecx, r11d
shr ecx, 8
mov r8d, 0x100
and ecx, 0xff00ff
shl r11d, 8
sub r8d, ecx
mov ecx, r10d
shl r8d, 8
shr ecx, 8
or r8d, r11d
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r10d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, rbp
test edi, edi
jg 0x14004c690
jmp 0x14004c873
movsxd rdx, dword [r9 + 0x18]
mov ecx, edx
imul ecx, esi
movsxd r11, ecx
add r11, rbp
cmp r8d, edx
jne 0x14004c7b2
cmp dword [r9 + 0x10], 1
jne 0x14004c7b2
cmp dword [r10 + 0x10], 1
jne 0x14004c7b2
imul edx, r12d
mov rcx, rax
movsxd r8, edx
mov rdx, r11
call fcn.140279770
jmp 0x14004c873
mov rsi, r8
mov rbp, rdx
nop dword [rax + rax]
mov r8d, dword [r11]
mov edx, 0x100
mov r10d, r8d
add r11, rbp
and r8d, 0xff00ff
shr r10d, 8
and r10d, 0xff00ff
dec edi
mov ecx, r10d
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rax]
mov r9d, ecx
shr ecx, 8
and ecx, 0xff00ff
and r9d, 0xff00ff
imul ecx, edx
imul r9d, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr r9d, 8
add r10d, ecx
and r9d, 0xff00ff
add r9d, r8d
mov ecx, r10d
shr ecx, 8
mov r8d, 0x100
and ecx, 0xff00ff
shl r10d, 8
sub r8d, ecx
mov ecx, r9d
shl r8d, 8
shr ecx, 8
or r8d, r10d
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r9d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, rsi
test edi, edi
jg 0x14004c7c0
inc r14d
inc r15
cmp r14d, dword [rsp + 0x80]
jl 0x14004c630
mov r13, qword [rsp + 0x88]
add r13, 0x10
mov qword [rsp + 0x88], r13
cmp r13, qword [rsp + 0x20]
jne 0x14004c600
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x78]
add rsp, 0x58
pop r13
pop rbx
ret