Function at 0x140006720
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 4
jb 0x1400069e0
mov rax, rsp
mov dword [rax + 0x10], edx
mov dword [rax + 8], ecx
push rbp
push rdi
push r13
sub rsp, 0x50
mov qword [rax + 0x18], rbx
mov r13, r8
mov qword [rax - 0x20], rsi
xor ebx, ebx
mov qword [rax - 0x28], r12
xor r8d, r8d
mov qword [rax - 0x30], r14
mov edi, edx
mov qword [rax - 0x38], r15
mov ebp, ecx
mov dword [r9], 0
test edx, edx
je 0x14000678a
nop word [rax + rax]
mov eax, dword [r13 + r8*4]
inc r8d
inc dword [r9]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
add r8d, eax
cmp r8d, edi
jb 0x140006770
mov ecx, dword [r9]
mov eax, 4
mul rcx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
lea eax, [rbx + rbp]
mov rbx, qword [rsp + 0x98]
mov ecx, eax
mov dword [rbx], eax
mov eax, 4
mul rcx
cmovo rax, r12
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator]
mov rsi, qword [rsp + 0xa0]
xor edx, edx
mov rcx, rax
mov qword [rsi], rax
mov r8d, dword [rbx]
shl r8, 2
call sub.VCRUNTIME140.dll_memset
mov eax, 4
mul rbp
cmovo rax, r12
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator]
mov r15, qword [rsp + 0xa8]
mov qword [r15], rax
mov eax, 4
mov ecx, dword [rbx]
mul rcx
cmovo rax, r12
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator]
mov r14, qword [rsp + 0xb0]
xor edx, edx
mov rcx, rax
mov qword [r14], rax
mov r8d, dword [rbx]
shl r8, 2
call sub.VCRUNTIME140.dll_memset
mov eax, 4
mul rbp
cmovo rax, r12
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator]
lea r8, [rbp*4]
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rax
mov r12, rax
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
test edi, edi
je 0x1400068e5
mov rsi, qword [rsp + 0x90]
xor r10d, r10d
nop dword [rax + rax]
mov eax, dword [r13 + r9*4]
lea r10, [r10 + 4]
mov rcx, qword [rsi]
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
mov dword [r10 + rcx - 4], r9d
movsxd rdx, r8d
test r8d, r8d
jle 0x1400068d2
movsxd rcx, r9d
lea rcx, [rcx*4 + 4]
add rcx, r13
movsxd rax, dword [rcx]
lea rcx, [rcx + 4]
inc dword [r12 + rax*4]
sub rdx, 1
jne 0x1400068c1
inc r9d
add r9d, r8d
cmp r9d, edi
jb 0x140006890
mov rsi, qword [rsp + 0xa0]
xor edx, edx
cmp dword [rsp + 0x70], edx
jbe 0x140006908
xor ecx, ecx
nop
mov rax, qword [r15]
lea rcx, [rcx + 4]
mov dword [rcx + rax - 4], edx
inc edx
add edx, dword [rcx + r12 - 4]
sub rbp, 1
jne 0x1400068f0
xor ebp, ebp
xor r15d, r15d
test edi, edi
je 0x1400069b3
mov r12d, dword [rsp + 0x78]
nop word [rax + rax]
mov eax, dword [r13 + r15*4]
xor r11d, r11d
cdq
mov edi, eax
xor edi, edx
sub edi, edx
movsxd rbx, edi
test edi, edi
jle 0x14000699d
mov r12, qword [rsp + 0xa8]
lea r10, [r13 + 4]
movsxd rcx, r15d
lea r10, [r10 + rcx*4]
nop dword [rax]
movsxd rcx, dword [r10]
lea r10, [r10 + 4]
mov rax, qword [r12]
mov r9d, dword [rax + rcx*4]
mov rcx, qword [rsi]
lea r8, [r9*4]
mov edx, dword [rcx + r8]
lea eax, [rdx + 1]
mov dword [rcx + r8], eax
lea ecx, [r9 + 1]
mov rax, qword [r14]
add ecx, edx
inc dword [r8 + rax]
mov rax, qword [rsi]
mov dword [rax + rcx*4], ebp
mov rax, qword [r14]
mov dword [rax + rcx*4], r11d
inc r11d
sub rbx, 1
jne 0x140006950
mov r12d, dword [rsp + 0x78]
inc r15d
inc ebp
add r15d, edi
cmp r15d, r12d
jb 0x140006920
mov r12, qword [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.mfc140u.dll_operator_1]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop rdi
pop rbp
ret