Function at 0x20306b80
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
test ecx, ecx
je 0x20306cb4
mov eax, dword [0x204a6a74]
cmp eax, 0x10
nop word cs:[rax + rax]
mov eax, dword [0x204a6a70]
mov ecx, dword [0x20492770]
neg ecx
add ecx, eax
add ecx, 0xd8085ab0
imul ecx, eax
test cl, 1
jne 0x20306ba0
test edx, edx
jne 0x20306c57
movzx eax, byte [0x20491455]
cmp al, 0x9c
je 0x20306eb7
mov ecx, 0x27f7a597
mov dl, 0xb0
mov r8b, 1
nop
mov eax, dword [0x204a6a74]
mov r9d, dword [0x20492770]
add r9d, ecx
cmp eax, r9d
jge 0x20306c30
nop word cs:[rax + rax]
mov al, 0x9a
lock cmpxchg byte [0x20491455], dl
sete r9b
test r8b, r8b
je 0x20306c30
test r9b, r9b
jne 0x20306dae
cmp al, 0x9c
jne 0x20306be0
jmp 0x20306eb7
mov al, 0x9a
lock cmpxchg byte [0x20491455], dl
test r8b, r8b
je 0x20306c30
jmp 0x20306c00
movzx eax, byte [0x20491492]
mov eax, dword [0x204a6a70]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x20306c50
movzx eax, byte [0x20491492]
movzx ecx, byte [0x20492774]
mov edx, dword [0x204a6a74]
cmp edx, 0x3e
jge 0x20306c50
add cl, 0xe2
cmp al, cl
je 0x20306da2
nop dword [rax]
movzx ecx, byte [0x20492774]
lea eax, [rcx - 0x52]
add cl, 0x1a
lock cmpxchg byte [0x20491492], cl
je 0x20306d57
cmp al, 0xb7
jne 0x20306c90
jmp 0x20306da2
test edx, edx
je 0x20306cf9
movzx eax, byte [0x20491aac]
movzx ecx, byte [0x20492774]
mov edx, ecx
xor dl, 0x53
and cl, 0x53
add cl, cl
add cl, dl
cmp al, cl
je 0x20306fdf
mov cl, 0x19
nop dword [rax]
mov al, 0x39
lock cmpxchg byte [0x20491aac], cl
je 0x20306e78
cmp al, 0x28
jne 0x20306ce0
jmp 0x20306fdf
movzx eax, byte [0x20491b7d]
cmp al, 0xb2
je 0x20306fa6
mov cl, 0x43
xor edx, edx
nop dword [rax]
mov eax, dword [0x204a6a74]
cmp eax, 0x1e
jg 0x20306d40
mov al, 0x3c
lock cmpxchg byte [0x20491b7d], cl
sete r8b
test dl, dl
jne 0x20306d40
test r8b, r8b
jne 0x20306eea
cmp al, 0xb2
jne 0x20306d10
jmp 0x20306fa6
mov al, 0x3c
lock cmpxchg byte [0x20491b7d], cl
mov eax, dword [0x204a6a74]
cmp eax, 0x4e
jge 0x20306d10
jmp 0x20306d1b
xor r8d, r8d
lea rax, [0x20491490]
lea rcx, [0x203a2270]
mov edx, 0x27f7a551
nop dword [rax]
movsxd r8, r8d
movzx r9d, byte [r8 + rcx]
add byte [r8 + rax], r9b
mov r9d, r8d
xor r9d, 1
and r8d, 1
lea r8d, [r9 + r8*2]
mov r9d, dword [0x20492770]
add r9d, edx
cmp r8d, r9d
jl 0x20306d70
mov al, 0xb7
xchg byte [0x20491492], al
lea rax, [0x20491490]
jmp 0x20306fad
xor r9d, r9d
lea r10, [0x20491440]
lea r11, [0x203a2220]
lea rax, [fcn.20306b80]
lea esi, [rax + rax]
add esi, 0x1680
mov edi, esi
not edi
jmp 0x20306ded
inc r9d
cmp r9d, 0x15
jge 0x20306ea8
cmp dword [0x20492770], 0xd8085ab1
movsxd rbx, r9d
jne 0x20306e20
nop dword [rax]
movzx eax, byte [rbx + r11]
xor byte [rbx + r10], al
mov eax, dword [0x204a6a74]
cmp eax, 0x39
jl 0x20306de0
nop word cs:[rax + rax]
movzx eax, byte [rbx + r10]
movzx edx, byte [rbx + r11]
sub al, dl
mul dl
mov ecx, eax
sub al, dl
mul dl
mov edx, eax
mov eax, ecx
sub al, dl
mul dl
mov edx, eax
sub cl, al
mov eax, ecx
mul dl
mov r8d, eax
mov ecx, edx
shl r8b, cl
mov eax, r8d
sub al, dl
mul dl
mov ecx, eax
shl r8b, cl
sub r8b, al
mov eax, r8d
mul cl
sub al, cl
mov edx, eax
neg dl
dec al
xor al, dl
and al, cl
xor al, dl
mov byte [rbx + r10], al
test edi, esi
jne 0x20306e20
jmp 0x20306e00
xor eax, eax
lea rcx, [0x20491aa0]
lea rdx, [0x203a2880]
nop dword [rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xb
jg 0x20306ec3
inc rax
jmp 0x20306e90
movzx eax, byte [0x20492774]
add al, 0xc7
xchg byte [0x20491455], al
lea rax, [0x20491440]
jmp 0x20306fad
mov eax, dword [0x204a6a74]
nop dword [rax]
mov eax, dword [0x204a6a74]
cmp eax, 0x37
jg 0x20306ed0
mov al, 1
test al, al
je 0x20306fce
jmp 0x20306fb1
xor ecx, ecx
lea r8, [0x20491b70]
lea r9, [0x203a2950]
mov r10d, 0x27f7a551
mov r11b, 1
jmp 0x20306f1b
inc ecx
cmp ecx, 0xd
jge 0x20306f9e
mov eax, dword [0x204a6a70]
lea edx, [rax - 1]
imul edx, eax
movsxd rsi, ecx
test dl, 1
jne 0x20306f60
nop
movzx eax, byte [rsi + r9]
add byte [rsi + r8], al
mov edx, dword [0x204a6a70]
lea eax, [rdx - 1]
imul eax, edx
mov edi, dword [0x20492770]
add edi, r10d
xor edx, edx
div edi
test edx, edx
je 0x20306f10
nop word cs:[rax + rax]
movzx eax, byte [rsi + r9]
mov edx, eax
sub dl, byte [rsi + r8]
movzx ebx, byte [0x20492774]
mov edi, ebx
sub dil, dl
add dil, al
mov eax, ebx
xor al, 0x2b
and bl, 0x2b
add bl, bl
add bl, al
sub bl, dl
add bl, dil
add bl, 0x2b
mov eax, ebx
sub al, dl
add al, bl
mov byte [rsi + r8], al
test r11b, r11b
je 0x20306f60
jmp 0x20306f30
mov al, 0xb2
xchg byte [0x20491b7d], al
lea rax, [0x20491b70]
pop rbx
pop rdi
pop rsi
ret
mov al, 0x28
xchg byte [0x20491aac], al
mov eax, dword [0x204a6a74]
mov ecx, 0x27f7a5a5
add ecx, dword [0x20492770]
cmp eax, ecx
jl 0x20306fdf
movzx eax, byte [0x20492774]
add al, 0x53
xchg byte [0x20491aac], al
jmp 0x20306fb1
lea rax, [0x20491aa0]
jmp 0x20306fad