Function at 0x1400857c4
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400d1090]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x60], rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov rax, qword [rbp + 0x80]
mov qword [rsp + 0x48], rax
mov r14, qword [rbp + 0x88]
mov qword [rsp + 0x70], r14
mov rsi, qword [rbp + 0x90]
mov rax, qword [rbp + 0x98]
mov qword [rsp + 0x40], rax
mov r15, qword [rbp + 0xa0]
call fcn.140084850
mov rcx, rax
mov r8, rdi
lea rdx, [rbp - 0x58]
call fcn.14008491c
nop
cmp qword [rbp - 0x48], 0
jne 0x140085890
call fcn.140084850
mov rcx, rax
lea r8, [rbp - 0x58]
mov rdx, rdi
call fcn.1400849c4
mov edi, eax
test eax, eax
jne 0x140085879
cmp qword [rbp - 0x48], 0
jne 0x140085890
cmp qword [rbp - 0x40], 0x10
jb 0x140085889
mov rcx, qword [rbp - 0x58]
call fcn.14009f17c
mov eax, edi
jmp 0x140085e6e
mov rax, qword [str._7XC9X_ED]
mov qword [rbp], rax
mov eax, dword [0x1400c2f40]
mov dword [rbp + 8], eax
movzx eax, word [0x1400c2f44]
mov word [rbp + 0xc], ax
mov r13d, 0xc
mov ecx, r13d
mov al, byte [rbp + rcx - 1]
xor byte [rbp + rcx], al
dec rcx
test rcx, rcx
jg 0x1400858b8
xor byte [rbp], 0x3f
movabs rax, 0x4d6d1f7a08690c
mov qword [rbp - 8], rax
mov r12d, 6
mov ecx, r12d
mov al, byte [rbp + rcx - 9]
xor byte [rbp + rcx - 8], al
dec rcx
test rcx, rcx
jg 0x1400858e3
xor byte [rbp - 8], 0x4e
mov qword [rbp - 0x68], 0xf
and qword [rbp - 0x70], 0
mov byte [rbp - 0x80], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.14007df84
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x30]
call fcn.140086460
mov rdi, rax
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.140085e90
mov rcx, rax
mov rdx, rdi
call fcn.140080dac
nop
cmp qword [rbp - 0x18], 0x10
jb 0x140085965
mov rcx, qword [rbp - 0x30]
call fcn.14009f17c
mov qword [rbp - 0x18], 0xf
xor edi, edi
mov qword [rbp - 0x20], rdi
mov byte [rbp - 0x30], dil
cmp qword [rbp - 0x68], 0x10
jb 0x140085987
mov rcx, qword [rbp - 0x80]
call fcn.14009f17c
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call fcn.14008dee0
test eax, eax
jne 0x1400859d7
cmp qword [rbp - 0x40], 0x10
jb 0x1400859cd
mov rcx, qword [rbp - 0x58]
call fcn.14009f17c
mov eax, 2
jmp 0x140085e6e
mov rax, qword [0x1400c2f48]
mov qword [rbp], rax
mov rax, qword [0x1400c2f50]
mov qword [rbp + 8], rax
mov eax, dword [0x1400c2f58]
mov dword [rbp + 0x10], eax
movzx eax, word [0x1400c2f5c]
mov word [rbp + 0x14], ax
mov r14d, 0x14
mov ecx, r14d
mov al, byte [rbp + rcx - 1]
xor byte [rbp + rcx], al
dec rcx
test rcx, rcx
jg 0x140085a0a
xor byte [rbp], 0xea
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], rdi
mov byte [rbp - 0x80], dil
mov r8, qword [r15 + 8]
mov rdx, qword [r15]
lea rcx, [rbp - 0x80]
call fcn.14007df84
nop
jmp 0x140085ac7
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp]
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.140082774
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x140085afa
mov edx, 0x5a2bc0
mov ecx, 0xb9f5b9c
call fcn.14009de44
mov ecx, 0x1388
call rax
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call fcn.14008dee0
xor edi, edi
test eax, eax
je 0x140085ad5
cmp dword [rsi], 0x193
je 0x140085a44
jmp 0x140085afa
cmp qword [rbp - 0x68], 0x10
jb 0x140085ae5
mov rcx, qword [rbp - 0x80]
call fcn.14009f17c
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], rdi
mov byte [rbp - 0x80], dil
jmp 0x1400859bd
cmp qword [rbp - 0x68], 0x10
jb 0x140085b0a
mov rcx, qword [rbp - 0x80]
call fcn.14009f17c
cmp dword [rsi], 0x191
jne 0x140085e5c
call fcn.140084850
mov rcx, rax
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x30]
call fcn.14008491c
nop
mov rdx, qword [rax + 0x10]
mov qword [rbp - 8], rdx
cmp qword [rax + 0x18], 0x10
jb 0x140085b3f
mov rax, qword [rax]
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov r8, rdx
mov rdi, qword [rbp - 0x48]
cmp rdi, rdx
cmovb r8, rdi
mov rdx, rax
call fcn.1400a7730
movsxd rcx, eax
xor eax, eax
mov rdx, qword [rbp - 8]
cmp rdi, rdx
setne al
cmp rdi, rdx
mov rdx, 0xffffffffffffffff
cmovb eax, edx
test rcx, rcx
cmovne eax, ecx
test eax, eax
sete dil
cmp qword [rbp - 0x18], 0x10
jb 0x140085b9b
mov rcx, qword [rbp - 0x30]
call fcn.14009f17c
test dil, dil
je 0x140085bc8
call fcn.140084850
mov rcx, rax
lea r8, [rbp - 0x58]
mov rdx, qword [rsp + 0x68]
call fcn.1400849c4
mov edi, eax
test eax, eax
jne 0x140085bc3
cmp qword [rbp - 0x48], 0
jne 0x140085bc8
jmp 0x140085879
call fcn.140084850
mov rcx, rax
mov r8, qword [rsp + 0x68]
lea rdx, [rbp - 0x30]
call fcn.14008491c
nop
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140080dac
nop
cmp qword [rbp - 0x18], 0x10
jb 0x140085bfc
mov rcx, qword [rbp - 0x30]
call fcn.14009f17c
mov rax, qword [str.Q_P8W_L6WJ_K]
mov qword [rbp], rax
mov eax, dword [0x1400c2f68]
mov dword [rbp + 8], eax
movzx eax, word [0x1400c2f6c]
mov word [rbp + 0xc], ax
mov al, byte [rbp + r13 - 1]
xor byte [rbp + r13], al
dec r13
test r13, r13
jg 0x140085c1b
xor byte [rbp], 0x30
movabs rax, 0xb898ea8ffd9cf9
mov qword [rbp - 8], rax
mov al, byte [rbp + r12 - 9]
xor byte [rbp + r12 - 8], al
dec r12
test r12, r12
jg 0x140085c3f
xor byte [rbp - 8], 0xbb
mov r13d, 0xf
mov qword [rbp - 0x68], r13
and qword [rbp - 0x70], 0
mov byte [rbp - 0x80], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.14007df84
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x30]
call fcn.140086460
mov rdi, rax
lea rdx, [rbp - 0x80]
mov r12, qword [rsp + 0x70]
mov rcx, r12
call fcn.140085e90
mov rcx, rax
mov rdx, rdi
call fcn.140080dac
nop
cmp qword [rbp - 0x18], 0x10
jb 0x140085cca
mov rcx, qword [rbp - 0x30]
call fcn.14009f17c
mov qword [rbp - 0x18], r13
xor edi, edi
mov qword [rbp - 0x20], rdi
mov byte [rbp - 0x30], dil
cmp qword [rbp - 0x68], 0x10
jb 0x140085ce8
mov rcx, qword [rbp - 0x80]
call fcn.14009f17c
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r12
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x60]
mov rcx, r13
call fcn.14008dee0
test eax, eax
jne 0x140085d26
jmp 0x1400859bd
mov rax, qword [0x1400c2f70]
mov qword [rbp], rax
mov rax, qword [0x1400c2f78]
mov qword [rbp + 8], rax
mov eax, dword [0x1400c2f80]
mov dword [rbp + 0x10], eax
movzx eax, word [0x1400c2f84]
mov word [rbp + 0x14], ax
mov al, byte [rbp + r14 - 1]
xor byte [rbp + r14], al
dec r14
test r14, r14
jg 0x140085d50
xor byte [rbp], 0xf2
mov r14d, 0xf
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], rdi
mov byte [rbp - 0x80], dil
mov r8, qword [r15 + 8]
mov rdx, qword [r15]
lea rcx, [rbp - 0x80]
call fcn.14007df84
nop
jmp 0x140085e01
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp]
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.140082774
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x140085e2d
mov edx, 0x5a2bc0
mov ecx, 0xb9f5b9c
call fcn.14009de44
mov ecx, 0x1388
call rax
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r12
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, r13
call fcn.14008dee0
test eax, eax
je 0x140085e0b
cmp dword [rsi], 0x193
je 0x140085d8b
jmp 0x140085e2d
cmp qword [rbp - 0x68], 0x10
jb 0x140085e1b
mov rcx, qword [rbp - 0x80]
call fcn.14009f17c
mov qword [rbp - 0x68], r14
and qword [rbp - 0x70], 0
mov byte [rbp - 0x80], 0
jmp 0x1400859bd
cmp qword [rbp - 0x68], 0x10
jb 0x140085e3d
mov rcx, qword [rbp - 0x80]
call fcn.14009f17c
cmp dword [rsi], 0x191
jne 0x140085e5c
cmp qword [rbp - 0x40], 0x10
jb 0x140085e55
mov rcx, qword [rbp - 0x58]
call fcn.14009f17c
mov eax, 4
jmp 0x140085e6e
cmp qword [rbp - 0x40], 0x10
jb 0x140085e6c
mov rcx, qword [rbp - 0x58]
call fcn.14009f17c
xor eax, eax
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.14009e400
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret