Function at 0x2021f420
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor eax, eax
test al, al
nop word cs:[rax + rax]
mov eax, dword [0x205b4760]
lea r8d, [rax - 1]
imul r8d, eax
test r8b, 1
jne 0x2021f430
test ecx, ecx
je 0x2021f493
test edx, edx
je 0x2021f4e9
movzx eax, byte [0x2055ed37]
cmp al, 0x49
je 0x2021f607
mov cl, 0x21
nop word cs:[rax + rax]
mov al, 0x40
lock cmpxchg byte [0x2055ed37], cl
je 0x2021f5cf
movzx edx, byte [0x20560dd0]
add dl, 0xf4
cmp al, dl
jne 0x2021f470
jmp 0x2021f607
mov eax, 0x136d98de
add eax, dword [0x20560dd4]
cmp edx, eax
jne 0x2021f577
movzx eax, byte [0x2055f4f8]
movzx ecx, byte [0x20560dd0]
add cl, 0xbc
cmp al, cl
je 0x2021f6e4
mov cl, 0x92
nop word cs:[rax + rax]
mov al, 0x5b
lock cmpxchg byte [0x2055f4f8], cl
je 0x2021f686
cmp al, 0x11
jne 0x2021f4d0
jmp 0x2021f6e4
movzx eax, byte [0x2055edf0]
movzx ecx, byte [0x20560dd0]
add cl, 0x18
cmp al, cl
je 0x2021f67d
xor ecx, ecx
nop word cs:[rax + rax]
mov eax, dword [0x205b4760]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
jne 0x2021f560
nop word cs:[rax + rax]
movzx edx, byte [0x20560dd0]
lea eax, [rdx + 0x65]
add dl, 0x3a
lock cmpxchg byte [0x2055edf0], dl
sete dl
test cl, cl
jne 0x2021f560
test dl, dl
jne 0x2021f61b
cmp al, 0x6d
jne 0x2021f510
jmp 0x2021f67d
movzx edx, byte [0x20560dd0]
lea eax, [rdx + 0x65]
add dl, 0x3a
lock cmpxchg byte [0x2055edf0], dl
jmp 0x2021f530
movzx eax, byte [0x2055ef5e]
cmp al, 0xa7
je 0x2021f700
mov cl, 0xd7
mov dl, 1
jmp 0x2021f598
cmp al, 0xa7
je 0x2021f700
mov al, 0x90
lock cmpxchg byte [0x2055ef5e], cl
je 0x2021f6ed
nop dword [rax + rax]
mov r8d, dword [0x205b4764]
cmp r8d, 0x10
jg 0x2021f5c9
cmp dword [0x20560dd4], 0xec926722
je 0x2021f590
test dl, dl
je 0x2021f5b0
jmp 0x2021f5bd
xor eax, eax
lea rcx, [0x2055ed10]
lea rdx, [0x20476e10]
nop
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x26
jg 0x2021f5f8
inc rax
jmp 0x2021f5e0
movzx eax, byte [0x20560dd0]
add al, 0xf4
xchg byte [0x2055ed37], al
mov eax, dword [0x205b4764]
cmp eax, 0x59
jg 0x2021f7f0
jmp 0x2021f7d5
xor edx, edx
lea rax, [0x2055ede0]
lea rcx, [0x20476ee0]
nop dword [rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rax]
movzx r9d, byte [rdx + rcx]
mov r10d, r8d
xor r10b, r9b
and r8b, r9b
add r8b, r8b
add r8b, r10b
mov byte [rdx + rax], r8b
mov r8d, edx
xor r8d, 1
add edx, edx
and edx, 2
mov r9d, r8d
xor r9d, edx
and edx, r8d
lea edx, [r9 + rdx*2]
cmp edx, 0x10
jl 0x2021f630
movzx eax, byte [0x20560dd0]
add al, 0x18
xchg byte [0x2055edf0], al
lea rax, [0x2055ede0]
pop rbx
ret
xor edx, edx
lea rax, [0x2055f4e0]
lea rcx, [0x204775b0]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, edx
not r8d
mov r9d, r8d
and r9d, 1
mov r10d, edx
and r10d, 0xfffffffe
or r10d, r9d
xor edx, 1
and r8d, 0x7ffffffe
or r8d, edx
not r8d
lea edx, [r10 + r8*2]
cmp edx, 0x18
jl 0x2021f6a0
mov al, 0x11
xchg byte [0x2055f4f8], al
lea rax, [0x2055f4e0]
pop rbx
ret
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x2021f710
jmp 0x2021f709
lea rax, [0x2055ef40]
pop rbx
ret
mov al, 1
test al, al
jne 0x2021f71d
nop
mov eax, dword [0x205b4764]
cmp eax, 0x2a
jge 0x2021f710
jmp 0x2021f709
xor edx, edx
lea r8, [0x2055ef40]
lea r9, [0x20477020]
nop dword [rax]
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
movsxd r10, edx
jmp 0x2021f78e
movzx r11d, byte [r10 + r8]
movzx ecx, byte [r10 + r9]
mov ebx, r11d
shl bl, cl
neg r11b
mov eax, r11d
xor al, bl
and r11b, bl
add r11b, r11b
add r11b, al
mov eax, r11d
sub al, bl
mul bl
add al, r11b
mov byte [r10 + r8], al
mov eax, dword [0x205b4760]
mov ecx, 1
sub ecx, eax
imul ecx, eax
test cl, 1
jne 0x2021f750
movzx eax, byte [r10 + r9]
add byte [r10 + r8], al
mov eax, dword [0x205b4760]
mov ecx, dword [0x20560dd4]
neg ecx
add ecx, eax
inc ecx
imul ecx, eax
test cl, 1
jne 0x2021f750
inc edx
cmp edx, 0x1e
jl 0x2021f730
movzx eax, byte [0x20560dd0]
add al, 0x52
xchg byte [0x2055ef5e], al
jmp 0x2021f700
mov eax, dword [0x205b4760]
mov ecx, dword [0x20560dd4]
not ecx
add ecx, eax
imul ecx, eax
test cl, 1
je 0x2021f803
nop dword [rax]
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x2021f7f0
jmp 0x2021f7d5
lea rax, [0x2055ed10]
pop rbx
ret