Function at 0x140006370
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 4
jb 0x14000661c
mov rax, rsp
mov qword [rax + 0x18], r8
mov dword [rax + 8], ecx
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rax + 0x10], rbx
xor r10d, r10d
mov qword [rax - 0x20], rbp
xor ebx, ebx
mov qword [rax - 0x28], rsi
mov r12, r8
mov qword [rax - 0x30], r14
mov r13d, edx
mov qword [rax - 0x38], r15
mov edi, ecx
mov dword [r9], 0
test edx, edx
je 0x1400063d9
nop dword [rax + rax]
mov eax, dword [r8 + r10*4]
inc r10d
inc dword [r9]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
add r10d, eax
cmp r10d, r13d
jb 0x1400063c0
mov ecx, dword [r9]
mov eax, 4
mul rcx
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator_1]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
lea eax, [rbx + rdi]
mov rbx, qword [rsp + 0x98]
mov ecx, eax
mov dword [rbx], eax
mov eax, 4
mul rcx
cmovo rax, r15
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator_1]
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
mov rbp, rdi
mul rdi
cmovo rax, r15
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator_1]
mov rdi, qword [rsp + 0xa8]
mov qword [rdi], rax
mov eax, 4
mov ecx, dword [rbx]
mul rcx
cmovo rax, r15
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator_1]
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, r15
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator_1]
lea r8, [rbp*4]
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rax
mov r15, rax
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
test r13d, r13d
je 0x140006534
mov rsi, qword [rsp + 0x90]
xor r11d, r11d
nop dword [rax + rax]
mov eax, dword [r12 + r9*4]
lea r10, [r12 + r9*4]
mov rcx, qword [rsi]
lea r11, [r11 + 4]
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
mov dword [r11 + rcx - 4], r9d
movsxd rdx, r8d
test r8d, r8d
jle 0x140006521
lea rcx, [r10 + 4]
nop word [rax + rax]
movsxd rax, dword [rcx]
lea rcx, [rcx + 4]
inc dword [r15 + rax*4]
sub rdx, 1
jne 0x140006510
inc r9d
add r9d, r8d
cmp r9d, r13d
jb 0x1400064e0
mov rsi, qword [rsp + 0xa0]
xor edx, edx
cmp dword [rsp + 0x70], edx
jbe 0x140006558
xor ecx, ecx
nop
mov rax, qword [rdi]
lea rcx, [rcx + 4]
mov dword [rcx + rax - 4], edx
inc edx
add edx, dword [rcx + r15 - 4]
sub rbp, 1
jne 0x140006540
xor ebp, ebp
xor r12d, r12d
test r13d, r13d
je 0x1400065f1
mov rcx, qword [rsp + 0x80]
mov r15, rdi
mov eax, dword [rcx + r12*4]
lea r10, [rcx + r12*4]
cdq
xor r11d, r11d
mov edi, eax
xor edi, edx
sub edi, edx
movsxd rbx, edi
test edi, edi
jle 0x1400065df
add r10, 4
nop
movsxd rcx, dword [r10]
lea r10, [r10 + 4]
mov rax, qword [r15]
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 0x140006590
mov rcx, qword [rsp + 0x80]
inc r12d
inc ebp
add r12d, edi
cmp r12d, r13d
jb 0x140006571
mov r15, qword [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.mfc140u.dll_operator]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret