Function at 0x140021670
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400a94c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x18], rdx
xor edi, edi
mov dword [rbp - 0x60], 0xfae2f5f0
mov dword [rbp - 0x5c], 0xe9e6ebe7
mov word [rbp - 0x58], 0x100
mov ecx, edi
nop dword [rax + rax]
lea eax, [rcx - 0x7b]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 8
jb 0x1400216c0
mov byte [rbp - 0x57], 0
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1400130e0
nop
cmp byte [rbx], 0
jne 0x1400216fb
mov byte [rbx], 1
call fcn.1400159d0
mov qword [rbx + 8], rax
cmp byte [rbx], 1
jne 0x14002171a
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
mov rcx, qword [rbx + 8]
call fcn.140015710
mov rdx, qword [rax]
add rdx, 0x40
jmp 0x14002171e
mov rdx, qword [rbp - 0x18]
lea rcx, [r14 + 0xa0]
call fcn.140013210
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140021769
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021764
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021764
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400852d4
mov dword [rbp - 0x60], 0x100f6ec
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x7b]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 2
jb 0x140021780
mov byte [rbp - 0x5d], 0
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x5e]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1400130e0
nop
cmp byte [rbx], 0
jne 0x1400217bb
mov byte [rbx], 1
call fcn.1400159d0
mov qword [rbx + 8], rax
cmp byte [rbx], 1
jne 0x1400217da
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
mov rcx, qword [rbx + 8]
call fcn.140015710
mov rdx, qword [rax]
add rdx, 0x40
jmp 0x1400217de
mov rdx, qword [rbp - 0x18]
lea rcx, [r14 + 0xc0]
call fcn.140013210
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140021829
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021824
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021824
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400852d4
mov dword [rbp - 0x60], 0xeceef1ed
mov word [rbp - 0x5c], 0x100
mov rcx, rdi
nop dword [rax]
lea eax, [rcx - 0x7b]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 4
jb 0x140021840
mov byte [rbp - 0x5b], 0
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x5c]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1400130e0
nop
cmp byte [rbx], 0
jne 0x14002187b
mov byte [rbx], 1
call fcn.1400159d0
mov qword [rbx + 8], rax
cmp byte [rbx], 1
jne 0x14002189a
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
mov rcx, qword [rbx + 8]
call fcn.140015710
mov rcx, qword [rax]
add rcx, 0x40
jmp 0x14002189e
mov rcx, qword [rbp - 0x18]
movzx esi, byte [rcx]
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x1400218df
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400218da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400218da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400852d4
mov word [rbp - 0x5c], 0x100
mov rcx, rdi
test sil, sil
jne 0x14002197e
mov dword [rbp - 0x60], 0xede9e9eb
nop dword [rax + rax]
lea eax, [rcx - 0x7b]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 4
jb 0x140021900
mov byte [rbp - 0x5b], 0
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x5c]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1400130e0
lea rcx, [r14 + 0xe0]
lea rdx, [rbp - 0x48]
call fcn.14001a870
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140021a39
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021a34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021a34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rbp - 0x60], 0xeceef1ed
nop word [rax + rax]
lea eax, [rcx - 0x7b]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 4
jb 0x140021990
mov byte [rbp - 0x5b], 0
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x5c]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1400130e0
nop
cmp byte [rbx], 0
jne 0x1400219cb
mov byte [rbx], 1
call fcn.1400159d0
mov qword [rbx + 8], rax
cmp byte [rbx], 1
jne 0x1400219ea
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
mov rcx, qword [rbx + 8]
call fcn.140015710
mov rdx, qword [rax]
add rdx, 0x40
jmp 0x1400219ee
mov rdx, qword [rbp - 0x18]
lea rcx, [r14 + 0xe0]
call fcn.140013210
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140021a39
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021a34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021a34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400852d4
mov dword [rbp - 0x60], 0xe9e2f4e6
mov dword [rbp - 0x5c], 0xedefeffd
mov dword [rbp - 0x58], 0x100ebf9
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x7b]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 0xa
jb 0x140021a60
mov byte [rbp - 0x55], 0
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x56]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1400130e0
nop
cmp byte [rbx], 0
jne 0x140021a9b
mov byte [rbx], 1
call fcn.1400159d0
mov qword [rbx + 8], rax
cmp byte [rbx], 1
jne 0x140021aba
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
mov rcx, qword [rbx + 8]
call fcn.140015710
mov rdx, qword [rax]
add rdx, 0x40
jmp 0x140021abe
mov rdx, qword [rbp - 0x18]
lea rcx, [r14 + 0x100]
call fcn.140013210
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140021b09
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021b04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021b04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400852d4
mov dword [rbp - 0x60], 0xfcf4e7e9
mov dword [rbp - 0x5c], 0xe5ece5e5
mov word [rbp - 0x58], 0xe3
mov byte [rbp - 0x56], 1
nop dword [rax]
nop word [rax + rax]
lea eax, [rdi - 0x7b]
xor byte [rbp + rdi - 0x60], al
inc rdi
cmp rdi, 9
jb 0x140021b30
mov byte [rbp - 0x56], 0
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x57]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1400130e0
nop
cmp byte [rbx], 0
jne 0x140021b6b
mov byte [rbx], 1
call fcn.1400159d0
mov qword [rbx + 8], rax
cmp byte [rbx], 1
jne 0x140021b8a
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x28]
mov rcx, qword [rbx + 8]
call fcn.140015710
mov rdx, qword [rax]
add rdx, 0x40
jmp 0x140021b8e
mov rdx, qword [rbp - 0x18]
lea rcx, [r14 + 0x120]
call fcn.140013210
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140021bda
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021bd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021bd4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400852d4
nop
lea rcx, [rbx + 8]
movzx edx, byte [rbx]
call fcn.14001cb80
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140085270
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret