Function at 0x140018a10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r15, r8
mov esi, ecx
mov r12, rdx
movaps xmmword [rsp + 0x2c0], xmm6
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x170
call fcn.140068930
xor edi, edi
mov dword [rsp + 0x50], 1
lea rax, [0x1400b1c00]
mov r13, 0xffffffffffffffff
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x60], edi
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x70], 0x1fe78
mov qword [rbp + 0x88], rdi
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0x98], rdi
cmp dword [rsp + 0x70], edi
jne 0x140018b42
cmp dword [rbp - 0x48], 1
je 0x140018aea
lea rcx, [rsp + 0x30]
call fcn.14000f100
test al, al
jne 0x140018aea
mov rax, qword [rsp + 0x38]
neg rax
sbb edx, edx
add edx, 3
cmp dword [rsp + 0x70], edi
jne 0x140018b42
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x70], edx
test rax, rax
je 0x140018b19
lea rcx, [rsp + 0x30]
call rax
jmp 0x140018b14
lea rcx, [rsp + 0x30]
call fcn.14000f000
test al, al
jne 0x140018b0d
cmp dword [rsp + 0x70], edi
jne 0x140018b42
mov rax, qword [rsp + 0x38]
neg rax
sbb edx, edx
add edx, 3
jmp 0x140018ad3
mov dword [rbp - 0x48], 2
mov rax, qword [rsp + 0x30]
cmp dword [rsp + 0x70], edi
jne 0x140018b42
cmp dword [rbp - 0x48], 2
je 0x140018bb2
mov dword [rsp + 0x70], 8
test rax, rax
je 0x140018b42
mov edx, 8
lea rcx, [rsp + 0x30]
call rax
lea rax, [rsp + 0x50]
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
movaps xmm6, xmmword [rsp + 0x20]
mov rdx, rsi
movdqa xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call fcn.14000f2f0
test rax, rax
jne 0x140018b96
cmp dword [rbx + 0x40], edi
jne 0x140018b91
mov rax, qword [rbx]
mov dword [rbx + 0x40], 9
test rax, rax
je 0x140018b91
mov edx, 9
mov rcx, rbx
call rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x310], r14
cmp dword [rbx + 0x40], edi
jne 0x140018bf2
cmp dword [rax], 8
jne 0x140018bd9
mov r14, qword [rbx + 0x58]
add r14, qword [rax + 8]
jmp 0x140018bf5
mov rax, qword [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
movaps xmm6, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm6
mov rbx, qword [rsp + 0x28]
jmp 0x140018b5b
mov dword [rbx + 0x40], 5
mov rax, qword [rbx]
test rax, rax
je 0x140018bf2
mov edx, 5
mov rcx, rbx
call rax
mov r14, rdi
mov rdx, rsi
movdqa xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x20]
call fcn.14000f2f0
movaps xmm6, xmmword [rsp + 0x2c0]
test rax, rax
jne 0x140018c37
cmp dword [rbx + 0x40], edi
jne 0x140018c33
mov rax, qword [rbx]
mov dword [rbx + 0x40], 9
test rax, rax
je 0x140018c33
mov edx, 9
mov rcx, rbx
call rax
lea rax, [rbx + 0x20]
cmp dword [rbx + 0x40], edi
jne 0x140018c5f
cmp dword [rax], 8
jne 0x140018c46
mov esi, dword [rax + 4]
jmp 0x140018c62
mov dword [rbx + 0x40], 5
mov rax, qword [rbx]
test rax, rax
je 0x140018c5f
mov edx, 5
mov rcx, rbx
call rax
mov rsi, rdi
cmp byte [rbp - 8], dil
je 0x140018c79
mov rcx, qword [rbp - 0x18]
call fcn.14006ac0c
mov qword [rbp - 0x18], rdi
mov byte [rbp - 8], dil
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x140018c95
mov rbx, qword [rcx]
call fcn.14006ac0c
mov rcx, rbx
test rbx, rbx
jne 0x140018c85
mov rcx, qword [rsp + 0x78]
mov qword [rbp + 0x98], rdi
test rcx, rcx
je 0x140018cab
call fcn.14006ac0c
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140018cbc
lea rcx, [rsp + 0x30]
call rax
mov qword [rsp + 0x40], rdi
cmp dword [rsp + 0x70], edi
jne 0x140018de9
mov rcx, rsi
mov edx, 1
add rcx, 1
cmovb rcx, r13
call fcn.14006bdc8
mov r11, rax
test rax, rax
je 0x140018de9
mov ecx, edi
lea rdx, [rbp + 0xa0]
nop word [rax + rax]
mov byte [rdx], cl
lea rdx, [rdx + 1]
inc ecx
cmp ecx, 0x100
jl 0x140018d00
mov r9d, edi
lea rbx, str.FF_a_vGDTQ_O_
mov r10d, edi
nop dword [rax]
mov eax, r9d
lea rdx, [rbp + 0xa0]
add rdx, rax
mov eax, r9d
and eax, 0xf
inc r9d
movzx r8d, byte [rdx]
movzx ecx, byte [rax + rbx]
add ecx, r10d
add ecx, r8d
movzx r10d, cl
movzx eax, byte [rbp + r10 + 0xa0]
mov byte [rdx], al
mov byte [rbp + r10 + 0xa0], r8b
cmp r9d, 0x100
jl 0x140018d20
mov qword [rbp + 0x1a0], rdi
mov r10, rsi
mov r8, r11
test rsi, rsi
je 0x140018dd9
mov r9d, edi
sub r14, r11
nop dword [rax]
lea eax, [rdi + 1]
movzx ecx, al
lea r8, [r8 + 1]
mov edi, ecx
movzx edx, byte [rbp + rcx + 0xa0]
lea eax, [r9 + rdx]
movzx r9d, al
movzx eax, byte [rbp + r9 + 0xa0]
mov byte [rbp + rcx + 0xa0], al
mov byte [rbp + r9 + 0xa0], dl
movzx ecx, byte [rbp + rcx + 0xa0]
add rcx, rdx
movzx eax, cl
movzx ecx, byte [rbp + rax + 0xa0]
xor cl, byte [r14 + r8 - 1]
mov byte [r8 - 1], cl
sub r10, 1
jne 0x140018d80
mov qword [r12], r11
test r15, r15
je 0x140018de5
mov qword [r15], rsi
mov al, 1
jmp 0x140018deb
xor al, al
mov r14, qword [rsp + 0x310]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14001a6d0
add rsp, 0x2d0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret