Function at 0x1400a6770
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x1d0
movaps xmmword [rsp + 0x1c0], xmm6
mov rax, qword [0x140510618]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
cmp byte [0x1407a9f6c], r15b
jne 0x1400a6aad
mov byte [0x1407a9f6c], 1
mov edx, 0x1a
mov eax, 0x26
cmp dword [0x1407ac9c4], r15d
cmovne edx, eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [0x14039b920]
movdqa xmm6, xmmword [0x1404d3d00]
mov dword [rsp + 0x50], 0x4a001a18
mov word [rsp + 0x54], 0x4242
mov edx, 0x14
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1407bbde0], eax
jg 0x1400a6ae2
lea r8, [0x1407bbdf0]
cmp byte [0x1407bbe06], r15b
je 0x1400a6860
movdqa xmm0, xmmword [0x1404d3b30]
pxor xmm0, xmmword [0x1407bbdf0]
movdqa xmmword [0x1407bbdf0], xmm0
mov eax, 0x10
xor byte [rax + r8], 0x2e
inc rax
cmp rax, 0x17
jb 0x1400a6852
lea rcx, [rsp + 0xa0]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], r15b
jne 0x1400a6870
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400a6880
test rbx, rbx
jne 0x1400a68cf
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xa0]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], r15b
jne 0x1400a68b4
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x60]
mov r14d, 1
jmp 0x1400a692d
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], r15
mov ecx, 0x40
call fcn.1403606d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x30], 2
lea r8, [rsp + 0x80]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140017000
mov rbx, rax
mov rdi, 0xffffffffffffffff
lea r14d, [rdi + 7]
mov rcx, qword [0x1407af570]
call fcn.14036070c
mov rcx, qword [rbx]
mov qword [0x1407af570], rcx
mov rcx, qword [rbx + 8]
mov qword [0x1407af578], rcx
mov qword [rbx], r15
mov qword [rbx + 8], r15
test r14b, 4
je 0x1400a696a
and r14d, 0xfffffffb
mov rcx, qword [rsp + 0x40]
call fcn.14036070c
nop
test r14b, 2
je 0x1400a69e7
and r14d, 0xfffffffd
mov rcx, qword [rsp + 0x80]
mov rsi, qword [rcx + 8]
cmp byte [rsi + 0x19], 0
jne 0x1400a69dc
nop word [rax + rax]
mov r8, qword [rsi + 0x10]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x80]
call fcn.14001a610
mov rbx, rsi
mov rsi, qword [rsi]
mov rcx, qword [rbx + 0x30]
call fcn.14036070c
mov rcx, qword [rbx + 0x20]
call fcn.14036070c
mov edx, 0x40
mov rcx, rbx
call fcn.14036070c
cmp byte [rsi + 0x19], 0
je 0x1400a6990
mov rcx, qword [rsp + 0x80]
mov edx, 0x40
call fcn.14036070c
nop
test r14b, 1
je 0x1400a69f7
mov rcx, qword [rsp + 0x60]
call fcn.14036070c
mov rcx, qword [0x1407af580]
call fcn.14036070c
mov qword [0x1407af580], r15
mov qword [0x1407af588], r15
lea rdx, [0x1407af520]
mov rcx, qword [0x1407af570]
call fcn.140336cc0
test eax, eax
je 0x1400a6a99
lea rcx, [0x1407af520]
call fcn.140336ca0
mov rbx, rax
mov rcx, qword [0x1407af580]
call fcn.14036070c
test rbx, rbx
jne 0x1400a6a60
mov qword [0x1407af588], r15
mov qword [0x1407af580], r15
xor al, al
jmp 0x1400a6ab4
inc rdi
cmp byte [rbx + rdi], 0
jne 0x1400a6a60
mov qword [0x1407af588], rdi
lea rcx, [rdi + 1]
call fcn.140360c28
mov qword [0x1407af580], rax
mov r8, qword [0x1407af588]
inc r8
mov rdx, rbx
mov rcx, rax
call fcn.140362f30
xor al, al
jmp 0x1400a6ab4
call fcn.1400a6fd0
nop
mov al, 1
mov byte [0x1407a9f6d], al
jmp 0x1400a6ab4
movzx eax, byte [0x1407a9f6d]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1403606b0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, [0x1407bbde0]
call fcn.1403608c8
cmp dword [0x1407bbde0], 0xffffffff
jne 0x1400a6825
movaps xmmword [0x1407bbdf0], xmm6
mov eax, dword [rsp + 0x50]
mov dword [0x1407bbe00], eax
movzx eax, word [rsp + 0x54]
mov word [0x1407bbe04], ax
mov byte [0x1407bbe06], 0x2e
lea rcx, [0x140399b30]
call fcn.140360c10
lea rcx, [0x1407bbde0]
call fcn.140360868
nop
jmp 0x1400a6825