Function at 0x20220e60
Capabilities:
Encode data using xor

Disassembly:
push rsi
test ecx, ecx
je 0x20220f17
mov eax, dword [0x20560dd4]
mov ecx, eax
xor ecx, 0x136d98de
and eax, 0x136d98de
lea eax, [rcx + rax*2]
cmp edx, eax
jne 0x20220f39
movzx eax, byte [0x2055ef1e]
cmp al, 0xa7
je 0x202210e9
mov cl, 0x4e
mov dl, 1
jmp 0x20220ea8
cmp al, 0xa7
je 0x202210e9
mov al, 0x8a
lock cmpxchg byte [0x2055ef1e], cl
je 0x202210a5
mov r8d, dword [0x205b4760]
mov r9d, dword [0x20560dd4]
lea r10d, [r9 + r8]
dec r10d
imul r10d, r8d
and r10d, 1
mov r8d, r9d
xor r8d, 0x136d98de
and r9d, 0x136d98de
lea r8d, [r8 + r9*2]
cmp r10d, r8d
jne 0x20220f00
nop
test dl, dl
jne 0x20220ea0
nop word cs:[rax + rax]
mov r8d, dword [0x205b4760]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
jne 0x20220f00
jmp 0x20220ef0
mov eax, 0x136d98de
add eax, dword [0x20560dd4]
cmp edx, eax
jne 0x2022107b
xor eax, eax
test al, al
je 0x2022110c
jmp 0x2022111e
movzx eax, byte [0x2055f03f]
cmp al, 0x50
je 0x20221057
xor ecx, ecx
mov dl, 0x26
mov r8b, 1
jmp 0x20220f68
cmp al, 0x50
je 0x20221057
test cl, cl
jne 0x20220fd0
nop dword [rax]
mov al, 0x53
lock cmpxchg byte [0x2055f03f], dl
sete r9b
mov r10d, dword [0x205b4764]
cmp r10d, 0x1b
jge 0x20220fd0
test r9b, r9b
jne 0x20220ff0
mov r9d, dword [0x205b4764]
cmp r9d, 0xc
jg 0x20220fa1
test cl, cl
je 0x20220f60
mov r9d, dword [0x205b4760]
mov r10d, dword [0x20560dd4]
neg r10d
add r10d, r9d
inc r10d
imul r10d, r9d
test r10b, 1
jne 0x20220f90
jmp 0x20220f9d
mov al, 0x53
lock cmpxchg byte [0x2055f03f], dl
test r8b, r8b
je 0x20220fd0
jmp 0x20220f70
mov eax, dword [0x205b4760]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
je 0x2022100c
mov eax, dword [0x205b4764]
cmp eax, 0x2f
jge 0x20220ff0
mov eax, dword [0x205b4764]
cmp eax, 0x32
jg 0x20221001
xor edx, edx
lea rax, [0x2055f030]
lea rcx, [0x20477110]
nop word [rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, edx
xor r8d, 1
and edx, 1
lea edx, [r8 + rdx*2]
cmp edx, 0xf
jl 0x20221030
mov al, 0x50
xchg byte [0x2055f03f], al
mov eax, 0x136d98f4
nop dword [rax]
mov ecx, dword [0x205b4764]
mov edx, dword [0x20560dd4]
add edx, eax
cmp ecx, edx
jge 0x20221060
lea rax, [0x2055f030]
pop rsi
ret
movzx eax, byte [0x2055f321]
cmp al, 7
je 0x20221372
mov cl, 0xce
nop dword [rax]
mov al, 0xd4
lock cmpxchg byte [0x2055f321], cl
je 0x202210f2
cmp al, 7
jne 0x20221090
jmp 0x20221372
xor edx, edx
lea rax, [0x2055ef10]
lea rcx, [0x20476ff0]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, dword [0x20560dd4]
add edx, r8d
add edx, 0x136d98df
cmp edx, 0xe
jl 0x202210c0
mov al, 0xa7
xchg byte [0x2055ef1e], al
lea rax, [0x2055ef10]
pop rsi
ret
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x202212e1
jmp 0x202212d6
movzx eax, byte [0x2055ec86]
mov ecx, dword [0x205b4764]
cmp ecx, 0x1c
jle 0x20221127
movzx eax, byte [0x2055ec86]
jmp 0x2022110c
cmp al, 0x47
je 0x2022129c
mov r8d, 0x136d992c
mov r9b, 0xd2
mov r10d, 0x136d98e0
jmp 0x20221149
cmp cl, 0x47
je 0x2022129c
mov eax, dword [0x205b4764]
mov ecx, dword [0x20560dd4]
add ecx, r8d
cmp eax, ecx
jge 0x202211d0
nop dword [rax]
mov al, 0x50
lock cmpxchg byte [0x2055ec86], r9b
mov ecx, eax
sete al
mov edx, dword [0x205b4760]
lea r11d, [rdx - 1]
imul r11d, edx
and r11d, 1
mov edx, dword [0x20560dd4]
mov esi, edx
xor esi, 0x136d98de
and edx, 0x136d98de
lea edx, [rsi + rdx*2]
cmp r11d, edx
jne 0x202211d0
test al, al
jne 0x20221203
mov edx, dword [0x205b4760]
lea eax, [rdx - 1]
imul eax, edx
mov r11d, dword [0x20560dd4]
add r11d, r10d
xor edx, edx
div r11d
test edx, edx
jne 0x202211f0
jmp 0x202211e0
mov al, 0x50
lock cmpxchg byte [0x2055ec86], r9b
jmp 0x20221160
mov eax, dword [0x205b4764]
cmp eax, 0x52
jl 0x20221140
nop
mov eax, dword [0x205b4760]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
jne 0x202211f0
jmp 0x202211e0
xor eax, eax
lea rcx, [0x2055ec50]
lea rdx, [0x20476d50]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rax + rcx]
xor r9b, r8b
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
cmp r8d, 0x35
jg 0x20221248
inc rax
jmp 0x20221220
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
mov eax, 0x136d98de
add eax, dword [0x20560dd4]
cmp ecx, eax
jne 0x20221271
mov eax, dword [0x205b4764]
cmp eax, 0x5e
jl 0x20221294
mov eax, 0x136d9938
nop word cs:[rax + rax]
mov ecx, dword [0x205b4764]
mov edx, dword [0x20560dd4]
add edx, eax
cmp ecx, edx
jge 0x20221280
jmp 0x20221266
mov al, 0x47
xchg byte [0x2055ec86], al
mov eax, dword [0x205b4764]
cmp eax, 0x25
jg 0x202212c0
mov eax, dword [0x205b4764]
cmp eax, 0x41
jl 0x202212cd
nop word cs:[rax + rax]
mov eax, dword [0x205b4764]
cmp eax, 0x4c
jge 0x202212c0
jmp 0x202212a7
lea rax, [0x2055ec50]
pop rsi
ret
mov eax, dword [0x205b4764]
cmp eax, 0x13
jl 0x2022130d
mov eax, 0x136d98de
nop word cs:[rax + rax]
mov ecx, dword [0x205b4760]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x20560dd4]
add ecx, eax
cmp edx, ecx
jne 0x202212f0
jmp 0x202212d6
xor edx, edx
lea rax, [0x2055f310]
lea rcx, [0x204773e0]
nop dword [rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, edx
xor r8d, 1
and edx, 1
lea edx, [r8 + rdx*2]
cmp edx, 0x11
jl 0x20221320
lea rax, [fcn.20220e60]
add eax, eax
add eax, 0x80
mov ecx, eax
not ecx
test ecx, eax
jne 0x20221368
mov al, 7
xchg byte [0x2055f321], al
mov eax, dword [0x205b4764]
cmp eax, 0x12
jle 0x20221372
mov al, 7
xchg byte [0x2055f321], al
jmp 0x20221355
lea rax, [0x2055f310]
pop rsi
ret