Function at 0x1400a8760
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r13, r8
mov r12, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400a8a51
test rdx, rdx
je 0x1400a8a51
test r8, r8
je 0x1400a8a51
cmp dword [0x14016f83c], 0
je 0x1400a87c5
mov ecx, 0x76
mov rax, qword [0x140173258]
mov word [rax], cx
lea r14, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov qword [rsp + 0x50], r14
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x60], r15b
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.1400a6ef0
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x28], rsi
lea rbp, [0x1401389a0]
test rsi, rsi
je 0x1400a880b
mov rax, qword [rsi]
test rax, rax
cmovne rbp, rax
lea rdx, [r13 + 2]
mov rcx, rbx
call fcn.14001ad10
mov r10, qword [rbx + 8]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r11, rcx
je 0x1400a8a22
mov rcx, rbp
call fcn.1400a6cf0
mov edx, eax
add rdx, r11
add rdx, r13
movzx ecx, byte [r12]
xor cl, dl
movzx edx, cl
and dl, 0xf
shl dl, 3
movzx eax, cl
shr al, 4
and al, 7
or dl, al
and cl, 0x80
or dl, cl
mov byte [r10], dl
lea r14, [r12 + 1]
inc r10
mov qword [rsp + 0x20], 0
lea rax, [r13 - 1]
test rax, rax
je 0x1400a894c
sub r12, r14
movabs rcx, 0xa41a41a41a41a41b
lea rsi, [r13 - 1]
mov rbx, qword [rsp + 0x20]
nop dword [rax + rax]
lea r9, [r14 + rbx]
movzx edi, byte [r12 + r9]
xor dil, byte [r10 - 1]
rol dil, 4
movzx r8d, bl
movzx eax, dil
xor r8, rax
mov rax, rcx
mul r8
mov rcx, r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 7
imul rcx, rcx, 0x9c
mov eax, 0x64
sub rax, rcx
add r8, rax
movsx eax, byte [r15 + rbp]
sub eax, ebx
movzx ecx, dil
add eax, r13d
add eax, ecx
xor edx, edx
div r8
xor dl, byte [r9]
movzx ecx, dl
and cl, 0xf
shl cl, 3
movzx eax, dl
shr al, 4
and al, 7
or cl, al
and dl, 0x80
or cl, dl
mov byte [r10], cl
inc r15
cmp r15, r11
mov eax, 0
cmovae r15, rax
inc r10
inc rbx
cmp rbx, rsi
movabs rcx, 0xa41a41a41a41a41b
jb 0x1400a88a0
mov rbx, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x28]
mov byte [r10], 0
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x48], r13d
mov edi, r13d
mov qword [rsp + 0x40], r13
mov ebp, r13d
mov qword [rsp + 0x38], r13
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400a898d
lea rcx, [rsp + 0x38]
call fcn.14001b150
mov r12d, dword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rcx, qword [rbx + 8]
cmp rcx, rdi
je 0x1400a89c9
test rcx, rcx
je 0x1400a89b2
mov r8, qword [rbx]
xor edx, edx
call fcn.14010ec60
mov rcx, qword [rbx + 8]
call fcn.140108f48
mov qword [rbx + 8], r13
mov qword [rbx + 8], rdi
mov qword [rbx], rbp
mov dword [rbx + 0x10], r12d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x48], r13d
jmp 0x1400a89e3
test rdi, rdi
je 0x1400a89e8
mov r8, rbp
xor edx, edx
mov rcx, rdi
call fcn.14010ec60
mov rcx, rdi
call fcn.140108f48
mov qword [rsp + 0x40], r13
lea rax, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov qword [rsp + 0x50], rax
test rsi, rsi
je 0x1400a8a1e
mov eax, dword [rsi + 0x20]
dec eax
mov dword [rsi + 0x20], eax
jne 0x1400a8a1e
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400a8a16
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
mov al, 1
jmp 0x1400a8a53
mov qword [rsp + 0x50], r14
test rsi, rsi
je 0x1400a8a51
mov eax, dword [rsi + 0x20]
dec eax
mov dword [rsi + 0x20], eax
jne 0x1400a8a51
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400a8a49
call fcn.140108f48
mov rcx, rdi
call fcn.140108f40
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret