Function at 0x140016b98
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, r8
mov rbx, rdx
mov r12, rcx
xor r13d, r13d
cmp qword [rdx + 0x10], r13
jne 0x140016be7
lea eax, [r13 + 6]
jmp 0x14001705c
mov r15d, 0xf
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x38], r13
mov byte [rbp - 0x48], r13b
lea rcx, [rbp + 8]
lea rdx, [0x14003a980]
lea r8d, [r15 + 0x22]
call fcn.1400230b0
lea edx, [r15 + 0x20]
mov al, byte [rbp + rdx + 7]
xor byte [rbp + rdx + 8], al
dec rdx
test rdx, rdx
jg 0x140016c11
xor byte [rbp + 8], 0x9d
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
lea rdi, [rbp + 8]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x48]
call fcn.140002348
mov r9, r14
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14000a82c
lea rdx, [0x14003a3b0]
lea rcx, [rbp - 0x48]
call fcn.14000a6ec
mov r9, r14
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.14000a82c
lea rdx, [0x140039e50]
lea rcx, [rbp - 0x48]
call fcn.14000a6ec
mov dword [rsp + 0x50], r13d
lea rcx, [rsp + 0x58]
call fcn.14000259c
nop
lea rcx, [rsp + 0x78]
call fcn.14000259c
nop
mov qword [rbp - 0x60], r13
mov ecx, 0x400
mov qword [rbp - 0x58], rcx
call fcn.140014420
mov qword [rbp - 0x68], rax
lea rcx, [rsp + 0x58]
call fcn.1400163c0
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x18], r13
mov byte [rbp + 8], r13b
lea esi, [r14 + 7]
mov r8d, esi
lea rdx, str.DELETE
lea rcx, [rbp + 8]
call fcn.140002348
nop
lea rdx, [rbp - 0x48]
lea r14d, [rsi + 0xa]
cmp qword [rbp - 0x30], r14
cmovae rdx, qword [rbp - 0x48]
mov qword [rbp - 8], r15
mov qword [rbp - 0x10], r13
mov byte [rbp - 0x20], r13b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x20]
call fcn.140002348
nop
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.140015c7c
mov edi, eax
cmp qword [rbp - 8], r14
jb 0x140016d77
mov rcx, qword [rbp - 0x20]
call fcn.1400233e4
mov qword [rbp - 8], r15
mov qword [rbp - 0x10], r13
mov byte [rbp - 0x20], r13b
cmp qword [rbp + 0x20], r14
jb 0x140016d92
mov rcx, qword [rbp + 8]
call fcn.1400233e4
mov ebx, r13d
test edi, edi
je 0x140016f7f
mov edx, 0x5a2bc0
mov ecx, 0xb9f5b9c
call fcn.140022154
mov ecx, 0xbb8
call rax
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x18], r13
mov byte [rbp + 8], r13b
mov r8, rsi
lea rdx, str.DELETE
lea rcx, [rbp + 8]
call fcn.140002348
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], r14
cmovae rdx, qword [rbp - 0x48]
mov qword [rbp - 8], r15
mov qword [rbp - 0x10], r13
mov byte [rbp - 0x20], r13b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x20]
call fcn.140002348
nop
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.140015c7c
mov edi, eax
cmp qword [rbp - 8], r14
jb 0x140016e5b
mov rcx, qword [rbp - 0x20]
call fcn.1400233e4
mov qword [rbp - 8], r15
mov qword [rbp - 0x10], r13
mov byte [rbp - 0x20], r13b
cmp qword [rbp + 0x20], r14
jb 0x140016e76
mov rcx, qword [rbp + 8]
call fcn.1400233e4
inc ebx
cmp ebx, 3
jl 0x140016d95
test edi, edi
je 0x140016f7f
cmp edi, 2
je 0x140016f12
cmp edi, 4
je 0x140016f12
cmp edi, 1
je 0x140016ea5
cmp edi, 3
jne 0x140016f7f
lea rcx, [rbp - 0x68]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x80]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x80]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x60]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x60]
call fcn.1400233e4
nop
cmp qword [rbp - 0x30], r14
jb 0x140016f08
mov rcx, qword [rbp - 0x48]
call fcn.1400233e4
mov eax, 1
jmp 0x14001705c
lea rcx, [rbp - 0x68]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x80]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x80]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x60]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x60]
call fcn.1400233e4
nop
cmp qword [rbp - 0x30], r14
jb 0x140016f75
mov rcx, qword [rbp - 0x48]
call fcn.1400233e4
mov eax, 3
jmp 0x14001705c
mov eax, 0x51eb851f
mul dword [rsp + 0x50]
shr edx, 5
cmp edx, 2
jne 0x140016ff7
lea rcx, [rbp - 0x68]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x80]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x80]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x60]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x60]
call fcn.1400233e4
nop
cmp qword [rbp - 0x30], r14
jb 0x140016ff3
mov rcx, qword [rbp - 0x48]
call fcn.1400233e4
xor eax, eax
jmp 0x14001705c
lea rcx, [rbp - 0x68]
call fcn.1400054b8
nop
mov r8, qword [rbp - 0x80]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400024e4
nop
mov rcx, qword [rbp - 0x80]
call fcn.1400233e4
nop
mov r8, qword [rsp + 0x60]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400024e4
nop
mov rcx, qword [rsp + 0x60]
call fcn.1400233e4
nop
cmp qword [rbp - 0x30], r14
jb 0x14001705a
mov rcx, qword [rbp - 0x48]
call fcn.1400233e4
mov eax, esi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140022ee0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret