Function at 0x14009218c
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x1400d1090]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov rsi, r8
mov rbx, rdx
mov r12, rcx
xor r13d, r13d
cmp qword [rdx + 0x10], r13
jne 0x1400921da
lea eax, [r13 + 6]
jmp 0x14009264b
mov rcx, r8
call fcn.140082058
mov r15d, 0xf
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x38], r13
mov byte [rbp + 0x28], r13b
lea rcx, [rbp + 0x60]
lea rdx, [0x1400c3878]
lea r8d, [r15 + 0x22]
call fcn.14009e430
lea edx, [r15 + 0x20]
mov al, byte [rbp + rdx + 0x5f]
xor byte [rbp + rdx + 0x60], al
dec rdx
test rdx, rdx
jg 0x14009220c
xor byte [rbp + 0x60], 0x1f
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x60]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x28]
call fcn.14007df84
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x28]
call fcn.14008615c
mov rax, qword [0x1400c38b0]
mov qword [rbp + 0x50], rax
movzx eax, word [0x1400c38b8]
mov word [rbp + 0x58], ax
mov al, byte [0x1400c38ba]
mov byte [rbp + 0x5a], al
lea ecx, [rdi + 0xa]
mov al, byte [rbp + rcx + 0x4f]
xor byte [rbp + rcx + 0x50], al
dec rcx
test rcx, rcx
jg 0x140092278
xor byte [rbp + 0x50], 0x2a
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x28]
call fcn.14008601c
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x10], r13
mov byte [rbp], r13b
lea rcx, [rsp + 0x68]
call fcn.14007e1d8
nop
lea rcx, [rbp - 0x78]
call fcn.14007e1d8
nop
mov qword [rsp + 0x58], r13
mov ecx, 0x400
mov qword [rsp + 0x60], rcx
call fcn.14008f4d8
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
call fcn.140091e94
mov qword [rsp + 0x58], r13
mov qword [rbp - 0x10], r15
mov qword [rbp - 0x18], r13
mov byte [rbp - 0x28], r13b
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x28]
call fcn.14007e3c8
nop
cmp qword [rbp + 0x10], r13
jbe 0x14009231b
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x28]
call fcn.14007e3c8
mov dword [rbp + 0x50], r13d
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
mov r8d, 3
lea rdx, [0x1400c2bf4]
lea rcx, [rbp + 0x60]
call fcn.14007df84
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], r13b
xor eax, eax
mov rcx, rdi
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x50]
call fcn.14007df84
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, r12
call fcn.140090de8
mov edi, eax
cmp qword [rbp - 0x38], 0x10
jb 0x1400923ca
mov rcx, qword [rbp - 0x50]
call fcn.14009f17c
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], r13b
cmp qword [rbp + 0x78], 0x10
jb 0x1400923e6
mov rcx, qword [rbp + 0x60]
call fcn.14009f17c
mov ebx, r13d
test edi, edi
je 0x140092502
mov edx, 0x5a2bc0
mov ecx, 0xb9f5b9c
call fcn.14009de44
mov ecx, 0xbb8
call rax
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
mov r8d, 3
lea rdx, [0x1400c2bf4]
lea rcx, [rbp + 0x60]
call fcn.14007df84
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], r13b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x50]
call fcn.14007df84
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, r12
call fcn.140090de8
mov edi, eax
cmp qword [rbp - 0x38], 0x10
jb 0x1400924b3
mov rcx, qword [rbp - 0x50]
call fcn.14009f17c
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], r13b
cmp qword [rbp + 0x78], 0x10
jb 0x1400924cf
mov rcx, qword [rbp + 0x60]
call fcn.14009f17c
inc ebx
cmp ebx, 3
jl 0x1400923e9
test edi, edi
je 0x140092502
cmp edi, 2
je 0x140092590
cmp edi, 4
je 0x140092590
cmp edi, 1
je 0x140092589
cmp edi, 3
je 0x140092589
mov eax, 0x51eb851f
mul dword [rbp + 0x50]
shr edx, 5
mov edi, 4
cmp edx, edi
je 0x1400925b7
cmp edx, 2
jne 0x1400925b5
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], r13b
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.14007df84
nop
lea r8, [rbp]
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.1400962e4
test eax, eax
je 0x140092597
cmp qword [rbp - 0x38], 0x10
jb 0x140092567
mov rcx, qword [rbp - 0x50]
call fcn.14009f17c
mov edi, r13d
cmp qword [rbp - 0x10], 0x10
jb 0x14009257a
mov rcx, qword [rbp - 0x28]
call fcn.14009f17c
cmp qword [rbp + 0x10], r13
jbe 0x1400925cb
or rdi, 0xffffffffffffffff
jmp 0x1400922dd
mov edi, 1
jmp 0x1400925ba
mov edi, 3
jmp 0x1400925ba
cmp qword [rbp - 0x38], 0x10
jb 0x1400925a7
mov rcx, qword [rbp - 0x50]
call fcn.14009f17c
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x40], r13
mov byte [rbp - 0x50], r13b
jmp 0x1400925ba
jmp 0x1400925ba
mov edi, r13d
cmp qword [rbp - 0x10], 0x10
jb 0x1400925cb
mov rcx, qword [rbp - 0x28]
call fcn.14009f17c
nop
lea rcx, [rsp + 0x50]
call fcn.140080fa4
nop
mov r8, qword [rbp - 0x70]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.14007e120
nop
mov rcx, qword [rbp - 0x70]
call fcn.14009f17c
nop
mov r8, qword [rsp + 0x70]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.14007e120
nop
mov rcx, qword [rsp + 0x70]
call fcn.14009f17c
nop
cmp qword [rbp + 0x18], 0x10
jb 0x14009262d
mov rcx, qword [rbp]
call fcn.14009f17c
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x10], r13
mov byte [rbp], r13b
cmp qword [rbp + 0x40], 0x10
jb 0x140092649
mov rcx, qword [rbp + 0x28]
call fcn.14009f17c
mov eax, edi
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.14009e400
add rsp, 0x1a0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret