Function at 0x20223300
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x20223339
test edx, edx
je 0x20223369
movzx eax, byte [0x2055ebc1]
cmp al, 0x71
je 0x202234b4
mov cl, 0x39
nop dword [rax]
mov al, 0xa2
lock cmpxchg byte [0x2055ebc1], cl
je 0x20223435
cmp al, 0x71
jne 0x20223320
jmp 0x202234b4
test edx, edx
je 0x202233a3
movzx eax, byte [0x2055f05d]
cmp al, 0x4c
je 0x202235df
mov cl, 6
nop
mov al, 0xcd
lock cmpxchg byte [0x2055f05d], cl
je 0x202234e3
cmp al, 0x4c
jne 0x20223350
jmp 0x202235df
movzx eax, byte [0x2055f4cd]
cmp al, 0x87
je 0x20223654
mov cl, 0xc6
nop word [rax + rax]
mov al, 0x4e
lock cmpxchg byte [0x2055f4cd], cl
je 0x2022353b
movzx edx, byte [0x20560dd0]
add dl, 0x32
cmp al, dl
jne 0x20223380
jmp 0x20223654
movzx eax, byte [0x2055ed09]
cmp al, 0x35
je 0x2022342d
mov cl, 0x4b
mov edx, 0x136d98df
lea rax, [fcn.20223300]
lea r8d, [rax + rax]
add r8d, 0x4780
nop word [rax + rax]
mov eax, dword [0x205b4764]
cmp eax, 0x4f
jg 0x20223401
mov al, 0x9f
lock cmpxchg byte [0x2055ed09], cl
sete r9b
mov r10d, dword [0x20560dd4]
add r10d, edx
mov r11d, r8d
xor r11d, r10d
not r11d
test r11d, r10d
je 0x20223420
mov al, 0x9f
lock cmpxchg byte [0x2055ed09], cl
mov eax, dword [0x205b4764]
cmp eax, 0x1c
jge 0x202233d0
jmp 0x202233db
test r9b, r9b
jne 0x20223577
cmp al, 0x35
jne 0x202233d0
lea rax, [0x2055ecf0]
ret
xor edx, edx
lea rax, [0x2055eba0]
lea rcx, [0x20476cb0]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rdx + rax]
xor r9b, r8b
mov byte [rdx + rax], r9b
mov r8d, dword [0x20560dd4]
add edx, r8d
add edx, 0x136d98df
cmp edx, 0x21
jl 0x20223450
xor eax, eax
mov cl, 1
nop word cs:[rax + rax]
mov edx, dword [0x205b4764]
cmp edx, 0x4a
jg 0x2022349f
test al, al
je 0x202234a5
test cl, cl
je 0x20223490
jmp 0x2022349b
movzx eax, byte [0x20560dd0]
add al, 0x1c
xchg byte [0x2055ebc1], al
mov eax, dword [0x205b4764]
mov eax, 0x136d98de
nop
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 0x202234c0
lea rax, [0x2055eba0]
ret
xor edx, edx
lea rax, [0x2055f050]
lea rcx, [0x20477130]
nop word cs:[rax + rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, dword [0x20560dd4]
add edx, r8d
add edx, 0x136d98df
cmp edx, 0xd
jl 0x20223500
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x202235fc
jmp 0x202235e7
xor eax, eax
lea rcx, [0x2055f4c0]
lea rdx, [0x20477590]
nop dword [rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xc
jg 0x20223568
inc rax
jmp 0x20223550
mov al, 1
test al, al
jne 0x20223635
jmp 0x2022364a
mov eax, dword [0x205b4760]
nop dword [rax]
mov eax, dword [0x205b4760]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x20223580
xor eax, eax
lea rcx, [0x2055ecf0]
lea rdx, [0x20476df0]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x18
jg 0x202235c8
inc rax
jmp 0x202235b0
movzx eax, byte [0x20560dd0]
add al, 0xe0
xchg byte [0x2055ed09], al
lea rax, [0x2055ecf0]
ret
lea rax, [0x2055f050]
ret
movzx eax, byte [0x20560dd0]
add al, 0xf7
xchg byte [0x2055f05d], al
mov al, 1
test al, al
jne 0x202235df
mov eax, 0x136d98de
nop word cs:[rax + rax]
mov cl, 0x4c
xchg byte [0x2055f05d], cl
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 0x20223610
jmp 0x202235e7
movzx eax, byte [0x20560dd0]
add al, 0x32
xchg byte [0x2055f4cd], al
xor eax, eax
test al, al
je 0x20223654
mov al, 0x87
xchg byte [0x2055f4cd], al
jmp 0x20223635
lea rax, [0x2055f4c0]
ret