Function at 0x14016bdf0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rcx
mov eax, dword [0x14021eaa0]
xor eax, dword [0x14021eaa4]
add eax, 0xdfd4a79b
mov ecx, eax
and ecx, 0x3f75fbd4
add ecx, ecx
sub eax, ecx
lea ecx, [rax - 0x408a042c]
mov edx, ecx
and edx, 0x7de7ec34
xor ecx, 0x821813cb
add eax, ecx
add eax, 0xbf75fbd4
sub eax, edx
cmp eax, 0xecbd0444
jne 0x14016be50
movzx eax, byte [rsi]
nop word cs:[rax + rax]
mov ecx, dword [0x14021eaa8]
and ecx, dword [0x14021eaac]
mov eax, ecx
or eax, 0x5df328a2
mov edx, ecx
not edx
mov r8d, eax
and r8d, 0x2709717d
and edx, 0x48600
imul edx, r8d
and eax, 0x58f68e82
or ecx, 0x5df7aea2
imul ecx, eax
add ecx, edx
and ecx, 0x4817050a
movzx eax, byte [rsi]
cmp ecx, 0x3001330d
je 0x14016be50
nop dword [rax]
mov ecx, dword [0x14021eab0]
mov edx, dword [0x14021eab4]
not ecx
not edx
or edx, ecx
not edx
add edx, 0x90b242cd
mov ecx, edx
not ecx
and ecx, 0x66781823
and edx, 0x1987e7dc
sub edx, ecx
or edx, 0x950a7e89
cmp edx, 0xfc2a79e
jb 0x14016bea0
cmp al, 1
jne 0x14016bf02
mov ecx, 0xffffff9d
nop word cs:[rax + rax]
pause
movzx eax, byte [rsi]
cmp al, 1
jne 0x14016bf02
lea edx, [rcx + 1]
test ecx, ecx
mov ecx, edx
jne 0x14016bef0
test al, al
jne 0x14016c020
mov eax, dword [0x14021eac4]
add eax, dword [0x14021eac0]
mov ecx, eax
and ecx, 0x22826fa9
add ecx, ecx
sub eax, ecx
add eax, 0xa2826fa9
or eax, 0x39e645e7
add eax, 0xc156ca6c
cmp eax, 0x3eda6a13
jae 0x14016bf40
mov cl, 1
xor eax, eax
lock cmpxchg byte [rsi], cl
mov cl, 1
nop word cs:[rax + rax]
mov eax, dword [0x14021eac8]
mov edx, dword [0x14021eacc]
mov r8d, eax
not r8d
and r8d, edx
mov r9d, edx
not r9d
and r9d, eax
imul r9d, r8d
mov r8d, eax
and r8d, edx
or eax, edx
imul eax, r8d
add eax, r9d
mov edx, eax
xor edx, 0x5b4ab2b7
add edx, eax
and eax, 0xa4b54d48
sub edx, eax
not edx
or edx, 0x6212d543
mov r8d, edx
not r8d
and edx, 0x125bdfef
mov eax, r8d
and eax, 0x8da42010
imul eax, edx
mov edx, r8d
and edx, 0x10490aac
or r8d, 0x125bdfef
imul r8d, edx
add r8d, eax
xor eax, eax
lock cmpxchg byte [rsi], cl
sete dl
cmp r8d, 0xd3be8445
je 0x14016bf50
nop
mov ecx, dword [0x14021ead0]
and ecx, dword [0x14021ead4]
or ecx, 0x707b6ade
mov r8d, ecx
and r8d, 0x4a19d522
add r8d, r8d
sub ecx, r8d
cmp ecx, 0x894b905d
je 0x14016bfe0
test dl, dl
je 0x14016c020
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, dword [0x14021eab8]
or ecx, dword [0x14021eabc]
imul ecx, ecx, 0xdcd6adc0
cmp ecx, 0x699fd1f9
je 0x14016c020
mov ebx, 0xb654311f
mov r14d, 0x9b0f99eb
lea rdi, [rsp + 0x2f]
mov r15, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitOnAddress]
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, dword [0x14021ead8]
mov edx, dword [0x14021eadc]
mov r8d, ecx
not r8d
and r8d, edx
mov r9d, edx
not r9d
and r9d, ecx
imul r9d, r8d
mov r8d, ecx
and r8d, edx
or ecx, edx
imul ecx, r8d
add ecx, r9d
imul rcx, rbx
shr rcx, 0x3f
imul ecx, ecx, 0xe546a283
imul rcx, r14
shr rcx, 0x35
cmp ecx, 0x3fb395c3
ja 0x14016c060
cmp al, 2
je 0x14016c120
mov cl, 2
xchg byte [rsi], cl
mov eax, dword [0x14021eae0]
sub eax, dword [0x14021eae4]
imul rdx, rax, 0x501e66b1
shr rdx, 0x20
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
or eax, 0xffdecbdb
cmp eax, 0x82655e71
jb 0x14016c0b7
nop word cs:[rax + rax]
mov eax, dword [0x14021eae8]
xor edx, edx
div dword [0x14021eaec]
imul eax, eax, 0x12f69b9d
and eax, 0xa2008804
cmp eax, 0x5a0da89b
je 0x14016c0f0
test cl, cl
je 0x14016c00e
nop dword [rax + rax]
mov eax, dword [0x14021eaf0]
add eax, dword [0x14021eaf4]
mov ecx, eax
not ecx
mov edx, eax
and edx, 0x169165b1
and ecx, 0xe96e9a4e
imul ecx, edx
mov edx, eax
and edx, 0xe96e9a4e
or eax, 0xe96e9a4e
imul eax, edx
add eax, ecx
mov ecx, eax
xor ecx, 0xb5a86625
add ecx, eax
and eax, 0x4a5799da
sub ecx, eax
mov eax, ecx
xor eax, 0x713024ca
or ecx, 0x8ecfdb35
and ecx, eax
cmp ecx, 0x1b857bbc
je 0x14016c120
mov eax, dword [0x14021eaf8]
mov ecx, dword [0x14021eafc]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [rax + rdx*2]
add eax, 0xae060949
not eax
and eax, 0x23bde466
cmp eax, 0xebb418b5
jne 0x14016c1c0
mov byte [rsp + 0x2f], 2
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
mov r9d, 0xffffffff
call fcn.1401501f0
nop
mov eax, dword [0x14021eb00]
xor eax, dword [0x14021eb04]
xor eax, 0x3a25432a
imul r12d, eax, 0xaf64a4f5
or r12d, 0x70a0a4b3
mov byte [rsp + 0x2f], 2
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
mov r9d, 0xffffffff
call r15
cmp r12d, 0xafddd96
jb 0x14016c1c0
mov ecx, dword [0x14021eb08]
and ecx, dword [0x14021eb0c]
mov edx, ecx
and edx, 0xe8a30ec2
xor edx, 0x9616c842
and ecx, 0x68a10680
add ecx, ecx
sub ecx, edx
add ecx, 0x5ef2dd58
cmp ecx, 0x28d9aa41
nop word cs:[rax + rax]
mov ecx, dword [0x14021eb10]
mov edx, dword [0x14021eb14]
not ecx
not edx
and edx, ecx
not edx
and edx, 0x9d160ded
imul rcx, rdx, 0x10418345
shr rcx, 0x20
sub edx, ecx
shr edx, 1
add edx, ecx
shr edx, 0x1e
imul ecx, edx, 0x2254d67a
cmp ecx, 0x675352a6
je 0x14016c240
cmp eax, 1
je 0x14016c2fa
mov eax, dword [0x14021eb18]
mov ecx, dword [0x14021eb1c]
mov edx, ecx
not edx
mov r8d, eax
and r8d, edx
or edx, eax
not edx
imul edx, r8d
mov r8d, eax
and r8d, ecx
or eax, ecx
imul eax, r8d
add eax, edx
mov ecx, eax
not ecx
or eax, 0xfc39ac9a
or ecx, 0x3c65365
and ecx, eax
not ecx
mov eax, ecx
and eax, 0x3abbf295
add eax, eax
neg eax
add eax, ecx
add eax, 0x3abbf295
shr eax, 2
imul rax, rax, 0x560b6527
shr rax, 0x3c
cmp eax, 0xfada8dc6
jbe 0x14016c2f0
call fcn.14014f250
nop dword [rax]
call fcn.14014f250
test bpl, bpl
jne 0x14016c2f0
mov eax, dword [0x14021eb20]
xor eax, dword [0x14021eb24]
or eax, 0xa6bf8d86
imul rax, rax, 0x1a4ce67
shr rax, 0x36
add eax, 0xc0b09a26
cmp eax, 0xe19f4991
ja 0x14016c338
nop word cs:[rax + rax]
movzx eax, byte [rsi]
test bpl, bpl
je 0x14016c340
movzx eax, byte [rsi]
jmp 0x14016c330
mov ecx, dword [0x14021eb28]
mov edx, dword [0x14021eb2c]
mov r8d, edx
not r8d
or r8d, ecx
not ecx
or ecx, edx
not r8d
not ecx
or ecx, r8d
imul ecx, ecx, 0x6a16591b
cmp ecx, 0x9d015ea1
je 0x14016c340
cmp al, 1
jne 0x14016c3d0
mov ecx, 0x64
nop dword [rax + rax]
mov eax, dword [0x14021eb38]
or eax, dword [0x14021eb3c]
imul eax, eax, 0x9a0309ee
add eax, 0xb4a84fb4
cmp eax, 0x6cc5b93b
jae 0x14016c3b0
pause
movzx eax, byte [rsi]
nop word cs:[rax + rax]
pause
movzx eax, byte [rsi]
cmp al, 1
setne r8b
mov edx, ecx
dec edx
sete r9b
test bpl, bpl
jne 0x14016c3b0
or r8b, r9b
mov ecx, edx
je 0x14016c380
nop
mov ecx, dword [0x14021eb30]
and ecx, dword [0x14021eb34]
mov edx, ecx
not edx
and edx, 0x275d95c1
mov r8d, ecx
and r8d, 0x58a26a3e
imul r8d, edx
mov edx, ecx
and edx, 0x275d95c1
or ecx, 0x275d95c1
imul ecx, edx
add ecx, r8d
and ecx, 0x70c4d1a4
xor ecx, 0x700410a4
cmp ecx, 0x1a73285e
jbe 0x14016c3d0
jmp 0x14016c060