Function at 0x1400faae0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 8], rcx
push rbx
push rsi
sub rsp, 0x48
mov rsi, qword [rsp + 0x80]
mov qword [rax - 0x18], rbp
mov rbp, rdx
mov qword [rax - 0x20], rdi
mov rdi, rcx
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov eax, r9d
movsxd rbx, r8d
test rdx, rdx
je 0x1400fac52
test al, 8
jne 0x1400fac52
mov r10, qword [rcx + 0x18]
lea eax, [rbx - 1]
mov qword [rsp + 0x80], r10
mov r9d, 0xd
movsxd r8, eax
test eax, eax
js 0x1400fab68
nop word [rax + rax]
movzx edx, byte [r8 + rbp]
lea ecx, [r9*8]
xor edx, ecx
xor r9d, edx
sub r8, 1
jns 0x1400fab50
xor edx, edx
mov eax, r9d
div dword [r10 + 0x14]
mov rax, qword [r10 + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x1400faba4
nop
mov eax, dword [rdi + 0x1c]
inc eax
cmp ebx, eax
jne 0x1400fab9c
mov r8, rbx
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400fabda
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400fab80
xor r14d, r14d
xor r12d, r12d
mov rdi, qword [rsp + 0x60]
add rdi, 0x34
mov dword [rdi], 0
test r14, r14
je 0x1400fabc5
lea rax, [r14 + 0x10]
mov qword [r14], rax
or dword [rsi + 8], 1
mov rcx, rdi
test r14, r14
je 0x1400fae70
jmp 0x1400fad2a
mov r13d, dword [rdi + 0x18]
lea r12d, [rbx + 0x31]
sub r13d, r12d
call fcn.140195a20
test eax, eax
je 0x1400fac05
xor r14d, r14d
mov rdi, qword [rsp + 0x60]
xor r12d, r12d
add rdi, 0x34
mov dword [rdi], 7
jmp 0x1400fabc5
lea eax, [r13 + 0x1a]
movsxd rcx, eax
call fcn.140160ac0
mov r14, rax
test rax, rax
je 0x1400fabf1
movsxd rdx, r12d
lea rcx, [rax + 0x10]
add rdx, rdi
movsxd r8, r13d
call sub.VCRUNTIME140.dll_memcpy
mov ecx, 0x10
mov rdx, rdi
sub ecx, r12d
movsxd r8, ecx
mov rcx, qword [rsp + 0x80]
add r8, r14
call fcn.1400f0200
lea r12d, [rax + r13]
jmp 0x1400fabaa
mov rcx, qword [rcx + 0x18]
lea r13, [rdi + 0x34]
mov r8d, ebx
lea r9, [rcx + 0x18]
call fcn.1400f0410
mov rcx, qword [rdi + 0x18]
mov dword [r13], eax
mov r12, qword [rcx + 0x18]
test r12, r12
je 0x1400faccb
mov rbx, 0xffffffffffffffff
lea rbp, [r12 + 0x30]
mov rdi, rbx
inc rdi
cmp byte [rdi + rbp], 0
jne 0x1400fac86
xor r8d, r8d
mov rdx, r12
call fcn.1400f0200
mov r12d, dword [r12 + 0x18]
lea eax, [rdi + 1]
sub r12d, edi
cdqe
add rax, rbp
sub r12d, 0x31
mov qword [rsp + 0x80], rax
test rbp, rbp
je 0x1400facda
nop dword [rax + rax]
inc rbx
cmp byte [rbx + rbp], 0
jne 0x1400facc0
jmp 0x1400facdc
xor eax, eax
xor ebp, ebp
mov qword [rsp + 0x80], rax
xor r12d, r12d
xor ebx, ebx
test rax, rax
je 0x1400fae70
cmp dword [r13], 0
jne 0x1400fae70
call fcn.140195a20
test eax, eax
jne 0x1400fae68
lea ecx, [rax + 0x10]
call fcn.140160ac0
mov r14, rax
test rax, rax
je 0x1400fae68
mov qword [rax + 8], 0
mov rdi, r13
mov rax, qword [rsp + 0x80]
mov rcx, r13
mov qword [r14], rax
mov dword [rsi + 0x60], 0
test ebx, ebx
je 0x1400fad69
cmp ebx, dword [rsi + 0x64]
jbe 0x1400fad53
mov r8d, ebx
lea rdx, [rsi + 0x58]
call fcn.14014cd90
test eax, eax
jne 0x1400fad69
mov rdi, qword [rsp + 0x60]
add rdi, 0x34
movsxd rcx, dword [rsi + 0x60]
mov rdx, rbp
add rcx, qword [rsi + 0x58]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
add dword [rsi + 0x60], ebx
mov dword [r14 + 0xc], r12d
lea rdx, [rsi + 0x68]
mov dword [r14 + 8], r12d
mov qword [rsi + 0x10], r14
mov rcx, qword [r14]
call fcn.14014ff20
test byte [rsp + 0x78], 2
mov rbx, qword [rsp + 0x60]
movzx edx, al
mov qword [rsi + 0x20], rdx
mov r8d, dword [r14 + 8]
mov dword [rsi + 0x3c], r8d
je 0x1400fadb0
or dword [rsi + 8], 2
mov rdx, rsi
mov rcx, rbx
call fcn.1400fbe00
jmp 0x1400fae75
cmp dword [rdi], 0
jne 0x1400fae75
mov rax, qword [rbx]
mov edi, edx
mov r9, qword [rsi + 0x10]
cmp dword [rax + 0x5c], 1
jne 0x1400fae1e
cmp r8d, dword [r9 + 0xc]
cmovge r8d, dword [r9 + 0xc]
mov byte [rsi + 0x74], 0
mov dword [rsi + 0x70], 1
cmp edx, r8d
jge 0x1400fae5f
mov rax, qword [r9]
cmp byte [rdx + rax], 0
jne 0x1400fae5f
lea eax, [rdx + 1]
mov byte [rsi + 0x74], 1
mov edx, eax
cmp eax, r8d
jge 0x1400fae0e
mov ecx, eax
mov rax, qword [r9]
cmp byte [rcx + rax], 0
jne 0x1400fae0e
inc edx
movsxd rax, edx
mov qword [rsi + 0x20], rax
jmp 0x1400fae75
movsxd rax, edx
mov qword [rsi + 0x20], rax
mov dword [rsi + 0x70], 0
jmp 0x1400fae75
mov rcx, rdx
inc edx
add rcx, qword [r9]
movzx r8d, byte [rcx]
mov dword [rsp + 0x80], r8d
test r8b, r8b
jns 0x1400fae4f
lea rdx, [rsp + 0x80]
call fcn.140150110
mov r8d, dword [rsp + 0x80]
lea edx, [rdi + rax]
movzx eax, r8b
and al, 1
sar r8d, 1
mov dword [rsi + 0x70], r8d
mov byte [rsi + 0x74], al
movsxd rax, edx
mov qword [rsi + 0x20], rax
jmp 0x1400fae75
mov dword [r13], 7
mov rbx, qword [rsp + 0x60]
test byte [rsi + 8], 2
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
je 0x1400faea6
lea rax, [0x1400fb9f0]
mov qword [rsi + 0x28], rax
add rsp, 0x48
pop rsi
pop rbx
ret
mov rax, qword [rbx]
lea rcx, [0x1400fb260]
lea rdx, [0x1400fb7c0]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rsi + 0x28], rcx
add rsp, 0x48
pop rsi
pop rbx
ret