Function at 0x14016d6b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov eax, dword [0x140541268]
mov r8d, eax
xor r8d, 0xbc252bb4
and eax, 0x3c252bb4
lea eax, [r8 + rax*2]
cmp ecx, eax
jne 0x14016d76c
mov eax, dword [0x1405a6ea8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
nop word cs:[rax + rax]
xor eax, eax
test al, al
jne 0x14016d6f0
test edx, edx
je 0x14016d7a9
movzx eax, byte [0x140540e57]
nop word cs:[rax + rax]
cmp al, 0x12
je 0x14016d9be
movzx ecx, byte [0x140541278]
mov edx, ecx
xor dl, 0x93
mov eax, ecx
and al, 0x13
add al, al
add al, dl
add cl, 0xbd
lock cmpxchg byte [0x140540e57], cl
jne 0x14016d710
xor eax, eax
lea rcx, [0x140540e50]
lea rdx, [0x1404619c0]
nop dword [rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 6
jg 0x14016d843
inc rax
jmp 0x14016d750
test edx, edx
je 0x14016d7d9
movzx eax, byte [0x140540f25]
cmp al, 0xae
je 0x14016da96
mov cl, 0x54
nop word cs:[rax + rax]
mov al, 0xe
lock cmpxchg byte [0x140540f25], cl
je 0x14016d857
cmp al, 0xae
jne 0x14016d790
jmp 0x14016da96
movzx eax, byte [0x14054105f]
cmp al, 0x62
je 0x14016d985
mov cl, 0x79
nop word [rax + rax]
mov al, 0xd7
lock cmpxchg byte [0x14054105f], cl
je 0x14016d876
cmp al, 0x62
jne 0x14016d7c0
jmp 0x14016d985
movzx eax, byte [0x140540f5e]
cmp al, 0x69
je 0x14016da66
movzx ecx, byte [0x140541278]
lea eax, [rcx + 0x2b]
add cl, 0xba
lock cmpxchg byte [0x140540f5e], cl
je 0x14016d932
mov ecx, dword [0x1405a6eac]
cmp ecx, 0x36
jg 0x14016d830
nop
mov ecx, dword [0x1405a6ea8]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x14016d7e0
nop word cs:[rax + rax]
mov ecx, dword [0x1405a6ea8]
lea edx, [rcx + 1]
imul edx, ecx
test dl, 1
jne 0x14016d830
jmp 0x14016d810
mov eax, dword [0x1405a6eac]
cmp eax, 0x48
jl 0x14016d990
jmp 0x14016d9a1
lea rax, [fcn.14016d6b0]
add eax, eax
add eax, 0xf80
mov ecx, eax
not ecx
test ecx, eax
jne 0x14016dac0
jmp 0x14016daa2
xor r8d, r8d
mov r9d, 0xbc252be8
lea r10, [0x140541050]
lea r11, [0x140461bb0]
mov bl, 1
jmp 0x14016d8ad
inc r8d
cmp r8d, 0xf
jge 0x14016d941
mov eax, dword [0x1405a6eac]
mov ecx, dword [0x140541268]
add ecx, r9d
movsxd rsi, r8d
cmp eax, ecx
jge 0x14016d8e0
nop word cs:[rax + rax]
movzx eax, byte [rsi + r11]
xor byte [rsi + r10], al
test bl, bl
jne 0x14016d8a0
nop dword [rax]
movzx ecx, byte [rsi + r10]
movzx eax, byte [rsi + r11]
sub al, cl
sub al, cl
mul cl
mov edx, eax
shl dl, cl
mov edi, eax
mov ecx, edx
shl dil, cl
mov ecx, eax
neg cl
mov edx, ecx
xor dl, dil
and dil, cl
add dil, dil
add dil, dl
sub dil, al
mov edx, ecx
xor dl, dil
and dil, cl
add dil, dil
add dil, dl
xor dil, al
mov byte [rsi + r10], dil
mov eax, dword [0x1405a6eac]
cmp eax, 0x15
jge 0x14016d8e0
jmp 0x14016d8d0
xor eax, eax
test al, al
jne 0x14016d9f0
jmp 0x14016d9c7
mov eax, 0xbc252c08
xor ecx, ecx
nop dword [rax + rax]
mov edx, dword [0x1405a6eac]
mov r8d, dword [0x140541268]
add r8d, eax
cmp edx, r8d
jl 0x14016d979
mov edx, dword [0x1405a6ea8]
lea r8d, [rdx + 1]
imul r8d, edx
test r8b, 1
jne 0x14016d950
test cl, cl
jne 0x14016d965
mov al, 0x62
xchg byte [0x14054105f], al
lea rax, [0x140541050]
pop rbx
pop rdi
pop rsi
ret
mov eax, dword [0x1405a6ea8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x14016d9b6
mov al, 1
nop word cs:[rax + rax]
test al, al
je 0x14016d9b0
jmp 0x14016d990
mov al, 0x12
xchg byte [0x140540e57], al
lea rax, [0x140540e50]
jmp 0x14016d98c
mov eax, dword [0x1405a6eac]
mov ecx, dword [0x140541268]
mov edx, ecx
xor edx, 0xbc252c05
and ecx, 0x3c252c05
lea ecx, [rdx + rcx*2]
cmp eax, ecx
jl 0x14016d9fd
nop dword [rax + rax]
mov eax, dword [0x1405a6eac]
cmp eax, 0x59
jge 0x14016d9f0
jmp 0x14016d9c7
xor edx, edx
lea rax, [0x140540f50]
lea rcx, [0x140461ab0]
nop dword [rax]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
add byte [rdx + rax], r8b
mov r8d, dword [0x140541268]
add edx, r8d
add edx, 0xbc252bb5
add r8d, 0xbc252bc2
cmp edx, r8d
jl 0x14016da10
mov eax, dword [0x1405a6eac]
cmp eax, 0x2c
jge 0x14016da5c
mov al, 0x69
xchg byte [0x140540f5e], al
mov eax, dword [0x1405a6ea8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x14016da66
mov al, 0x69
xchg byte [0x140540f5e], al
jmp 0x14016da43
mov eax, dword [0x1405a6eac]
nop dword [rax]
mov eax, dword [0x1405a6ea8]
mov ecx, dword [0x140541268]
neg ecx
add ecx, eax
inc ecx
imul ecx, eax
test cl, 1
jne 0x14016da70
lea rax, [0x140540f50]
jmp 0x14016d98c
lea rax, [0x140540f10]
jmp 0x14016d98c
mov eax, dword [0x1405a6eac]
mov ecx, 0xbc252bd3
add ecx, dword [0x140541268]
cmp eax, ecx
jl 0x14016dae3
nop word [rax + rax]
mov eax, dword [0x1405a6eac]
mov ecx, dword [0x140541268]
mov edx, ecx
xor edx, 0xbc252bef
and ecx, 0x3c252bef
lea ecx, [rdx + rcx*2]
cmp eax, ecx
jge 0x14016dac0
jmp 0x14016daa2
xor eax, eax
lea rcx, [0x140540f10]
lea rdx, [0x140461a70]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x14
jg 0x14016db18
inc rax
jmp 0x14016db00
movzx eax, byte [0x140541278]
add al, 0x35
xchg byte [0x140540f25], al
jmp 0x14016da96