Function at 0x20221930
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x202219b0
mov eax, 0x136d98de
nop dword [rax]
mov ecx, dword [0x205b4760]
mov r8d, dword [0x20560dd4]
neg r8d
add r8d, ecx
inc r8d
imul r8d, ecx
test r8b, 1
jne 0x20221979
mov ecx, dword [0x20560dd4]
add ecx, eax
mov r8d, dword [0x205b4764]
cmp r8d, 0x51
jle 0x20221a30
mov ecx, dword [0x205b4760]
mov r8d, dword [0x20560dd4]
mov r9d, ecx
sub r9d, r8d
inc r9d
imul r9d, ecx
and r9d, 1
add r8d, 0x136d98de
cmp r9d, r8d
jne 0x20221940
jmp 0x20221960
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x202219d2
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x202219b0
mov eax, dword [0x205b4764]
cmp eax, 0x49
jg 0x202219c1
test edx, edx
je 0x20221b2c
xor eax, eax
nop word [rax + rax]
test al, al
jne 0x20221a1c
movzx ecx, byte [0x2055f3ad]
mov edx, dword [0x20560dd4]
mov r8d, edx
xor r8d, 0x136d98de
and edx, 0x136d98de
add edx, edx
add edx, r8d
je 0x20221ac7
movzx ecx, byte [0x2055f3ad]
mov ecx, dword [0x205b4764]
cmp ecx, 0x15
jge 0x202219f0
jmp 0x202219f4
cmp edx, ecx
jne 0x20221a5f
mov eax, 0x136d98df
add eax, dword [0x20560dd4]
lea rcx, [fcn.20221930]
add ecx, ecx
add ecx, 0x2ac0
xor ecx, eax
not ecx
test ecx, eax
jne 0x20221ce5
jmp 0x20221cc3
movzx eax, byte [0x2055f48d]
cmp al, 0x84
je 0x20221bc2
mov cl, 0x9b
xor edx, edx
mov r8b, 1
jmp 0x20221a88
cmp al, 0x84
je 0x20221bc2
mov al, 0x40
lock cmpxchg byte [0x2055f48d], cl
je 0x20221b6c
test dl, dl
jne 0x20221ac0
nop dword [rax]
mov r9d, dword [0x205b4760]
lea r10d, [r9 - 1]
imul r10d, r9d
test r10b, 1
je 0x20221a80
nop word cs:[rax + rax]
test r8b, r8b
je 0x20221ac0
jmp 0x20221aa0
movzx eax, byte [0x20560dd0]
add al, 0xb1
cmp cl, al
je 0x20221c2a
mov cl, 0x8c
nop word [rax + rax]
mov eax, dword [0x205b4764]
cmp eax, 0xc
jg 0x20221b20
nop dword [rax + rax]
mov al, 0xb6
lock cmpxchg byte [0x2055f3ad], cl
sete dl
mov r8d, dword [0x205b4764]
cmp r8d, 0x24
jg 0x20221b20
test dl, dl
jne 0x20221bca
cmp al, 6
jne 0x20221ae0
jmp 0x20221c2a
mov al, 0xb6
lock cmpxchg byte [0x2055f3ad], cl
jmp 0x20221af0
movzx eax, byte [0x2055eed7]
movzx ecx, byte [0x20560dd0]
mov edx, ecx
xor dl, 0xaa
and cl, 0x2a
add cl, cl
add cl, dl
cmp al, cl
je 0x20221b64
mov cl, 0x22
nop dword [rax]
mov al, 0x93
lock cmpxchg byte [0x2055eed7], cl
je 0x20221c63
cmp al, 0xff
jne 0x20221b50
lea rax, [0x2055eed0]
ret
xor r8d, r8d
lea rax, [0x2055f480]
lea rcx, [0x20477550]
mov edx, 0x136d98eb
nop word cs:[rax + rax]
movsxd r8, r8d
movzx r9d, byte [r8 + rcx]
xor byte [r8 + rax], r9b
mov r9d, r8d
xor r9d, 1
and r8d, 1
lea r8d, [r9 + r8*2]
mov r9d, dword [0x20560dd4]
add r9d, edx
cmp r8d, r9d
jl 0x20221b90
mov al, 0x84
xchg byte [0x2055f48d], al
lea rax, [0x2055f480]
ret
xor edx, edx
lea rax, [0x2055f3a0]
lea rcx, [0x20477470]
nop word [rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
xor byte [rdx + rax], r8b
mov r8d, edx
xor r8d, 1
and edx, 1
lea edx, [r8 + rdx*2]
cmp edx, 0xd
jl 0x20221be0
mov eax, 0x136d9938
nop word cs:[rax + rax]
mov ecx, dword [0x205b4764]
mov edx, dword [0x20560dd4]
add edx, eax
cmp ecx, edx
jge 0x20221c10
mov al, 6
xchg byte [0x2055f3ad], al
mov eax, dword [0x205b4764]
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 0x20221c40
lea rax, [0x2055f3a0]
ret
xor eax, eax
lea rcx, [0x2055eed0]
lea rdx, [0x20476fb0]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rcx]
movzx r9d, byte [rax + rdx]
mov r10d, r8d
xor r10b, r9b
and r8b, r9b
add r8b, r8b
add r8b, r10b
mov byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 6
jg 0x20221cac
inc rax
jmp 0x20221c80
movzx eax, byte [0x20560dd0]
add al, 0xaa
xchg byte [0x2055eed7], al
lea rax, [0x2055eed0]
ret
movzx eax, byte [0x2055ecca]
movzx ecx, byte [0x20560dd0]
mov edx, dword [0x205b4760]
lea r8d, [rdx - 1]
imul r8d, edx
test r8b, 1
je 0x20221cee
movzx eax, byte [0x2055ecca]
jmp 0x20221cc3
mov edx, ecx
xor dl, 0x2a
and cl, 0x2a
add cl, cl
add cl, dl
cmp al, cl
je 0x20221df1
mov cl, 0x19
nop word cs:[rax + rax]
mov eax, dword [0x205b4760]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
jne 0x20221d60
nop word cs:[rax + rax]
mov al, 0x35
lock cmpxchg byte [0x2055ecca], cl
sete dl
mov r8d, dword [0x205b4764]
cmp r8d, 0x23
jg 0x20221d60
test dl, dl
jne 0x20221d77
cmp al, 0x7f
jne 0x20221d10
jmp 0x20221df1
movzx edx, byte [0x20560dd0]
lea eax, [rdx - 0x20]
add dl, 0xc4
lock cmpxchg byte [0x2055ecca], dl
jmp 0x20221d30
xor eax, eax
lea rcx, [0x2055ecb0]
lea rdx, [0x20476db0]
nop word [rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x19
jg 0x20221da8
inc rax
jmp 0x20221d90
mov eax, 0x136d98de
nop dword [rax]
mov ecx, dword [0x205b4760]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
jne 0x20221ddc
mov ecx, dword [0x205b4760]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x20560dd4]
add ecx, eax
cmp edx, ecx
je 0x20221de9
mov ecx, dword [0x205b4764]
cmp ecx, 0x55
jge 0x20221db0
jmp 0x20221dc1
mov al, 0x7f
xchg byte [0x2055ecca], al
lea rax, [0x2055ecb0]
ret