Function at 0x2023f520
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x2023f5ab
mov eax, dword [0x20564518]
mov ecx, eax
xor ecx, 0xa1ba8bd8
and eax, 0x21ba8bd8
lea eax, [rcx + rax*2]
cmp edx, eax
jne 0x2023f5c9
mov eax, 0xa1ba8bd8
nop dword [rax + rax]
mov ecx, dword [0x205b4928]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x20564518]
add ecx, eax
cmp edx, ecx
jne 0x2023f591
movzx ecx, byte [0x205640a4]
mov edx, dword [0x205b4928]
lea r8d, [rdx - 1]
imul r8d, edx
and r8d, 1
mov edx, dword [0x20564518]
add edx, eax
cmp r8d, edx
je 0x2023f5ff
movzx ecx, byte [0x205640a4]
mov ecx, dword [0x205b4928]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
jne 0x2023f550
jmp 0x2023f56b
test edx, edx
je 0x2023f625
mov eax, dword [0x205b4928]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x2023f7b5
jmp 0x2023f7a8
movzx eax, byte [0x20563ea4]
cmp al, 0x38
je 0x2023f881
mov cl, 0xc7
nop word [rax + rax]
mov al, 3
lock cmpxchg byte [0x20563ea4], cl
je 0x2023f639
movzx edx, byte [0x2056451c]
add dl, 0x34
cmp al, dl
jne 0x2023f5e0
jmp 0x2023f881
cmp cl, 0x7d
je 0x2023f855
mov cl, 0xb9
nop word [rax + rax]
mov al, 0x88
lock cmpxchg byte [0x205640a4], cl
je 0x2023f690
cmp al, 0x7d
jne 0x2023f610
jmp 0x2023f855
mov eax, dword [0x205b492c]
cmp eax, 0x52
jle 0x2023f6e6
jmp 0x2023f6fe
xor eax, eax
lea rcx, [0x20563ea0]
lea rdx, [0x20478340]
nop dword [rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 3
jg 0x2023f670
inc rax
jmp 0x2023f650
mov eax, dword [0x205b4928]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x2023f670
mov al, 1
test al, al
jne 0x2023f85d
jmp 0x2023f877
xor edx, edx
lea rax, [0x20564090]
lea rcx, [0x20478520]
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, 0x14
jl 0x2023f6a0
mov eax, 0xa1ba8bd9
add eax, dword [0x20564518]
lea rcx, [fcn.2023f520]
add ecx, ecx
add ecx, 0x27c0
test ecx, eax
jne 0x2023f84b
jmp 0x2023f838
movzx eax, byte [0x20563f43]
mov ecx, dword [0x205b4928]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x2023f734
mov eax, 0xa1ba8bd8
nop word cs:[rax + rax]
movzx ecx, byte [0x20563f43]
mov ecx, dword [0x205b4928]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x20564518]
add ecx, eax
cmp edx, ecx
jne 0x2023f710
jmp 0x2023f6e6
cmp al, 0x19
je 0x2023f75a
mov cl, 0x96
nop word [rax + rax]
mov al, 0x43
lock cmpxchg byte [0x20563f43], cl
je 0x2023f762
movzx edx, byte [0x2056451c]
add dl, 0x15
cmp al, dl
jne 0x2023f740
lea rax, [0x20563f30]
ret
xor eax, eax
lea rcx, [0x20563f30]
lea rdx, [0x204783c0]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x12
jg 0x2023f798
inc rax
jmp 0x2023f780
mov al, 0x19
xchg byte [0x20563f43], al
lea rax, [0x20563f30]
ret
movzx eax, byte [0x20563ed0]
xor ecx, ecx
test cl, cl
je 0x2023f7be
movzx eax, byte [0x20563ed0]
jmp 0x2023f7a8
cmp al, 0xf
je 0x2023f7e0
mov cl, 0xbf
nop word cs:[rax + rax]
mov al, 0x37
lock cmpxchg byte [0x20563ed0], cl
je 0x2023f7e8
cmp al, 0xf
jne 0x2023f7d0
lea rax, [0x20563ec0]
ret
xor eax, eax
lea rcx, [0x20563ec0]
lea rdx, [0x20478360]
nop dword [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, 0xf
jg 0x2023f828
inc rax
jmp 0x2023f800
mov al, 0xf
xchg byte [0x20563ed0], al
lea rax, [0x20563ec0]
ret
mov al, 0x7d
xchg byte [0x205640a4], al
mov eax, dword [0x205b492c]
cmp eax, 0x39
jle 0x2023f855
mov al, 0x7d
xchg byte [0x205640a4], al
jmp 0x2023f838
lea rax, [0x20564090]
ret
movzx eax, byte [0x2056451c]
add al, 0x34
xchg byte [0x20563ea4], al
mov eax, dword [0x205b492c]
cmp eax, 0x4f
jle 0x2023f881
mov al, 0x38
xchg byte [0x20563ea4], al
jmp 0x2023f85d
lea rax, [0x20563ea0]
ret