Function at 0x1400d7210
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
mov qword [rsp + 0x58], rcx
cmp rdx, 2
jb 0x1400d78e9
mov rsi, rdx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x1400d7255
xor edx, edx
div rsi
jmp 0x1400d7259
xor edx, edx
div esi
mov qword [rsp + 0x60], rax
cmp rsi, 0x1001
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
jae 0x1400d728c
mov rax, rsi
shr rax, 1
mov rcx, rsi
sub rcx, rax
cmp rcx, 0x40
mov eax, 0x40
cmovb rax, rcx
jmp 0x1400d729e
mov rcx, rsi
call fcn.1400fb260
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
add rax, 0xfffffffffffffff8
mov qword [rsp + 0x70], rax
mov r13d, 1
xor r12d, r12d
xor r14d, r14d
mov qword [rsp + 0x80], rsi
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x58]
lea rax, [rax + r12*8]
mov qword [rsp + 0x48], rax
sub rsi, r12
jbe 0x1400d7350
cmp rsi, qword [rsp + 0x50]
jae 0x1400d7370
cmp byte [rsp + 0x350], 0
je 0x1400d7381
cmp rsi, 0x20
mov eax, 0x20
cmovae rsi, rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.1400e0c00
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov eax, esi
lea rsi, [rax*2 + 1]
jmp 0x1400d758b
xor esi, esi
mov eax, 1
mov qword [rsp + 0x68], rax
cmp r14, 2
jae 0x1400d75e0
jmp 0x1400d7876
mov r11, r8
cmp rsi, 2
jae 0x1400d7395
mov r10, rsi
jmp 0x1400d7580
mov rax, qword [rsp + 0x50]
cmp rax, rsi
cmovb rsi, rax
add rsi, rsi
jmp 0x1400d758b
mov r10, qword [rsp + 0x48]
lea rax, [r10 + 8]
mov r8d, dword [r10 + 8]
mov edi, dword [r10 + 0xc]
xor edx, edx
cmp edi, dword [r10 + 4]
setb dl
xor ecx, ecx
cmp r8d, dword [r10]
setb cl
cmove ecx, edx
test cl, cl
mov rbx, rsi
je 0x1400d73e6
cmp rsi, 2
jne 0x1400d743a
mov r10d, 2
mov ecx, 1
mov r8, rax
cmp rcx, 1
jne 0x1400d74f0
xor edx, edx
jmp 0x1400d7546
mov r10d, 2
cmp rsi, 2
je 0x1400d7580
mov edx, 2
nop dword [rax + rax]
mov r10d, r8d
mov r11d, edi
mov r9, qword [rsp + 0x48]
mov r8d, dword [r9 + rdx*8]
mov edi, dword [r9 + rdx*8 + 4]
xor esi, esi
cmp edi, r11d
setb sil
xor r11d, r11d
cmp r8d, r10d
setb r11b
cmove r11d, esi
test r11b, r11b
jne 0x1400d7496
inc rdx
cmp rbx, rdx
jne 0x1400d7400
jmp 0x1400d7479
mov edx, 2
nop
mov r10d, r8d
mov r11d, edi
mov r9, qword [rsp + 0x48]
mov r8d, dword [r9 + rdx*8]
mov edi, dword [r9 + rdx*8 + 4]
xor esi, esi
cmp edi, r11d
setb sil
xor r11d, r11d
cmp r8d, r10d
setb r11b
cmove r11d, esi
cmp r11b, 1
jne 0x1400d7496
inc rdx
cmp rbx, rdx
jne 0x1400d7440
mov rsi, rbx
mov rdx, rbx
cmp rdx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jb 0x1400d72ee
jmp 0x1400d74ae
mov rsi, rbx
cmp rdx, qword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jb 0x1400d72ee
mov r11, r8
test cl, cl
je 0x1400d7575
mov r10d, 1
cmp rdx, 2
jb 0x1400d7580
mov rcx, rdx
shr rcx, 1
mov r8, qword [rsp + 0x48]
lea r8, [r8 + rdx*8]
lea r9, [rcx*8]
sub r8, r9
mov r10, rdx
cmp rcx, 1
je 0x1400d73df
mov r9, rcx
and r9, 0xfffffffffffffffe
lea r11, [r8 + rcx*8]
add r11, 0xfffffffffffffff8
xor edx, edx
movabs r15, 0x1ffffffffffffffe
nop dword [rax + rax]
mov rsi, qword [r11]
mov rdi, qword [rax + rdx*8 - 8]
mov qword [rax + rdx*8 - 8], rsi
mov qword [r11], rdi
mov rsi, rdx
xor rsi, r15
add rsi, rcx
mov rdi, qword [r8 + rsi*8]
mov rbx, qword [rax + rdx*8]
mov qword [rax + rdx*8], rdi
mov qword [r8 + rsi*8], rbx
add rdx, 2
add r11, 0xfffffffffffffff0
cmp r9, rdx
jne 0x1400d7510
test cl, 1
je 0x1400d7569
mov rax, rdx
not rax
add rcx, rax
mov rax, qword [r8 + rcx*8]
mov r11, qword [rsp + 0x48]
mov r9, qword [r11 + rdx*8]
mov qword [r11 + rdx*8], rax
mov qword [r8 + rcx*8], r9
mov r9, qword [rsp + 0x40]
mov r11, qword [rsp + 0x38]
jmp 0x1400d7580
mov r10, rdx
nop dword [rax + rax]
lea rsi, [r10*2 + 1]
mov r8, r11
mov rax, r13
shr rax, 1
mov qword [rsp + 0x68], rsi
shr rsi, 1
lea rdx, [r12 + r12]
sub rdx, rax
lea rax, [rsi + r12*2]
mov rcx, qword [rsp + 0x60]
imul rdx, rcx
imul rax, rcx
xor rax, rdx
je 0x1400d75c9
bsr rsi, rax
xor rsi, 0x3f
cmp r14, 2
jae 0x1400d75e0
jmp 0x1400d7876
mov esi, 0x40
cmp r14, 2
jb 0x1400d7876
nop dword [rax + rax]
mov rax, qword [rsp + 0x70]
lea rax, [rax + r12*8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r12
jmp 0x1400d762d
mov r12, r13
mov rdx, r10
sub r8, rdx
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
lea r13, [rbp*2 + 1]
mov r12, qword [rsp + 0x88]
cmp r14, 1
jbe 0x1400d7870
cmp byte [rsp + r14 + 0x95], sil
jb 0x1400d7876
dec r14
mov rdi, qword [rsp + r14*8 + 0xd8]
mov r15, rdi
shr r15, 1
mov rbx, r13
shr rbx, 1
lea rbp, [r15 + rbx]
cmp rbp, r9
ja 0x1400d7680
mov eax, edi
or eax, r13d
and eax, 1
jne 0x1400d7680
add rbp, rbp
mov r13, rbp
cmp r14, 1
ja 0x1400d762d
jmp 0x1400d7870
mov rax, r12
sub rax, rbp
mov rcx, qword [rsp + 0x58]
lea r12, [rcx + rax*8]
test dil, 1
jne 0x1400d76f0
mov rax, r15
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rcx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, r12
mov rdx, r15
call fcn.1400e0c00
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
test r13b, 1
je 0x1400d76f6
cmp r13, 2
jae 0x1400d7743
jmp 0x1400d7613
test r13b, 1
jne 0x1400d76dd
lea rcx, [r12 + r15*8]
mov rax, rbx
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rdx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rdx, rbx
call fcn.1400e0c00
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
cmp r13, 2
jb 0x1400d7613
cmp rdi, 2
jb 0x1400d7613
cmp r15, rbx
mov rdi, rbx
cmovb rdi, r15
cmp rdi, r9
ja 0x1400d7613
lea r13, [r12 + r15*8]
cmp rbx, r15
mov rdx, r12
cmovb rdx, r13
mov rcx, r8
lea r8, [rdi*8]
call sub.VCRUNTIME140.dll_memcpy
mov r10, qword [rsp + 0x38]
lea r8, [r10 + rdi*8]
cmp rbx, r15
jae 0x1400d77fd
mov rax, qword [rsp + 0x78]
nop word cs:[rax + rax]
mov ecx, dword [r8 - 8]
mov edx, dword [r8 - 4]
xor r9d, r9d
cmp edx, dword [r13 - 4]
setb r9b
xor edx, edx
cmp ecx, dword [r13 - 8]
setb dl
cmove edx, r9d
test dl, dl
mov rcx, r8
cmovne rcx, r13
mov rcx, qword [rcx - 8]
mov qword [rax], rcx
movzx ecx, dl
xor dl, 1
movzx edx, dl
lea r13, [r13 + rdx*8 - 8]
lea r8, [r8 + rcx*8]
add r8, 0xfffffffffffffff8
cmp r13, r12
je 0x1400d75f8
add rax, 0xfffffffffffffff8
cmp r8, r10
jne 0x1400d77a0
jmp 0x1400d75f8
mov rdx, r10
test rdi, rdi
je 0x1400d75fe
nop dword [rax]
mov ecx, dword [r13]
mov eax, dword [r13 + 4]
xor r9d, r9d
cmp eax, dword [rdx + 4]
setb r9b
xor eax, eax
cmp ecx, dword [rdx]
setb al
cmove eax, r9d
mov ecx, eax
xor cl, 1
test al, al
mov r9, rdx
cmovne r9, r13
mov r9, qword [r9]
mov qword [r12], r9
movzx ecx, cl
lea rdx, [rdx + rcx*8]
add r12, 8
cmp rdx, r8
je 0x1400d75fe
movzx eax, al
lea r13, [r13 + rax*8]
cmp r13, qword [rsp + 0x48]
jne 0x1400d7810
jmp 0x1400d75fe
mov r14d, 1
mov qword [rsp + r14*8 + 0xd8], r13
mov byte [rsp + r14 + 0x96], sil
mov rsi, qword [rsp + 0x80]
cmp rsi, r12
jbe 0x1400d78a9
inc r14
mov r13, qword [rsp + 0x68]
mov rax, r13
shr rax, 1
add r12, rax
jmp 0x1400d72d0
test r13b, 1
jne 0x1400d78e9
mov rax, rsi
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rcx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.1400e0c00
nop
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret