Function at 0x1402176f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov eax, 0x136d98de
mov r8d, dword [0x1404b04d4]
add r8d, eax
cmp ecx, r8d
jne 0x140217739
test edx, edx
je 0x140217785
mov eax, dword [0x1404ef658]
mov ecx, dword [0x1404b04d4]
neg ecx
add ecx, eax
inc ecx
imul ecx, eax
test cl, 1
jne 0x1402179b0
jmp 0x140217995
add eax, dword [0x1404b04d4]
cmp edx, eax
jne 0x140217757
mov eax, dword [0x1404ef65c]
cmp eax, 0x2c
jle 0x140217a5c
jmp 0x140217a6e
movzx eax, byte [0x1404ae6f3]
cmp al, 0x99
je 0x140217804
mov cl, 0x81
nop dword [rax + rax]
mov al, 0x72
lock cmpxchg byte [0x1404ae6f3], cl
je 0x14021779f
cmp al, 0x99
jne 0x140217770
jmp 0x140217804
mov eax, dword [0x1404ef658]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
jne 0x140217845
jmp 0x140217838
xor eax, eax
lea rcx, [0x1404ae6f0]
lea rdx, [0x1403c6260]
nop
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 2
jg 0x1402177c8
inc rax
jmp 0x1402177b0
xor eax, eax
nop word [rax + rax]
mov ecx, dword [0x1404ef65c]
cmp ecx, 0x38
jg 0x1402177df
test al, al
je 0x1402177ec
mov ecx, dword [0x1404ef65c]
cmp ecx, 0x1b
jge 0x1402177d0
jmp 0x1402177db
movzx eax, byte [0x1404b04d0]
mov ecx, eax
xor cl, 0x44
and al, 0x44
add al, al
add al, cl
xchg byte [0x1404ae6f3], al
xor eax, eax
nop word cs:[rax + rax]
test al, al
jne 0x14021781f
mov ecx, dword [0x1404ef65c]
cmp ecx, 0x12
jle 0x14021782c
mov ecx, dword [0x1404ef65c]
cmp ecx, 0x28
jge 0x140217810
jmp 0x140217814
lea rax, [0x1404ae6f0]
jmp 0x140217986
movzx eax, byte [0x1404ae6be]
xor ecx, ecx
test cl, cl
je 0x14021784e
movzx eax, byte [0x1404ae6be]
jmp 0x140217838
cmp al, 0xd
je 0x14021797f
mov cl, 7
nop dword [rax + rax]
mov al, 0x95
lock cmpxchg byte [0x1404ae6be], cl
je 0x140217880
cmp al, 0xd
jne 0x140217860
jmp 0x14021797f
mov eax, dword [0x1404b04d4]
mov ecx, eax
xor ecx, 0x136d98de
and eax, 0x136d98de
add eax, eax
add eax, ecx
je 0x1402178aa
mov eax, dword [0x1404ef658]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x140217880
mov eax, dword [0x1404ef658]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
jne 0x140217899
mov edi, 0xffffffff
mov ebx, 1
xor r14d, r14d
lea r15, [0x1404ae6b0]
lea r12, [0x1403c6220]
lea rsi, [0x14021d890]
nop dword [rax]
mov eax, dword [0x1404ef65c]
cmp eax, 0x18
jg 0x140217919
nop dword [rax + rax]
movzx eax, byte [r14 + r15]
movzx ecx, byte [r14 + r12]
mov edx, eax
xor dl, cl
and al, cl
add al, al
add al, dl
mov byte [r14 + r15], al
mov eax, dword [0x1404ef658]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x140217960
movzx ebp, byte [r14 + r15]
mov ecx, 0xa
call fcn.14035b68c
mov qword [0x1404ef610], rax
mov rcx, rsi
call fcn.1403769c0
movzx ecx, byte [r14 + r12]
shl bpl, cl
shl bpl, cl
sub cl, bpl
mov eax, ebp
shl al, cl
mov edx, ebp
mov ecx, eax
shl dl, cl
add dl, bpl
mov byte [r14 + r15], dl
jmp 0x1402178f0
lea eax, [r14 + 1]
cmp eax, 0xd
jg 0x140217977
add edi, 3
add ebx, 0xfffffffd
inc r14
jmp 0x1402178e0
mov al, 0xd
xchg byte [0x1404ae6be], al
lea rax, [0x1404ae6b0]
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx eax, byte [0x1404ae3ef]
mov cl, 1
test cl, cl
jne 0x1402179db
nop word cs:[rax + rax]
movzx eax, byte [0x1404ae3ef]
mov eax, dword [0x1404ef658]
mov ecx, dword [0x1404b04d4]
mov edx, eax
sub edx, ecx
inc edx
imul edx, eax
and edx, 1
add ecx, 0x136d98de
cmp edx, ecx
jne 0x1402179b0
jmp 0x140217995
movzx ecx, byte [0x1404b04d0]
mov edx, ecx
xor dl, 0x10
and cl, 0x10
add cl, cl
add cl, dl
cmp al, cl
je 0x140217a50
mov cl, 0xc6
nop word cs:[rax + rax]
mov al, 0xe5
lock cmpxchg byte [0x1404ae3ef], cl
je 0x140217a12
cmp al, 0x65
jne 0x140217a00
jmp 0x140217a50
xor eax, eax
lea rcx, [0x1404ae3d0]
lea rdx, [0x1403c5f60]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0x1e
jg 0x140217a48
inc rax
jmp 0x140217a30
mov al, 0x65
xchg byte [0x1404ae3ef], al
lea rax, [0x1404ae3d0]
jmp 0x140217986
movzx eax, byte [0x1404ae7cd]
mov ecx, dword [0x1404ef65c]
cmp ecx, 0x60
jl 0x140217a7d
mov al, 1
movzx ecx, byte [0x1404ae7cd]
test al, al
je 0x140217a70
jmp 0x140217a5c
cmp al, 0xbf
je 0x140217afe
mov cl, 0xb0
nop word cs:[rax + rax]
mov al, 0x6f
lock cmpxchg byte [0x1404ae7cd], cl
je 0x140217aa2
cmp al, 0xbf
jne 0x140217a90
jmp 0x140217afe
xor edx, edx
lea rax, [0x1404ae7c0]
lea rcx, [0x1403c6320]
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, edx
xor r8d, 1
and edx, 1
lea edx, [r8 + rdx*2]
cmp edx, 0xd
jl 0x140217ac0
movzx eax, byte [0x1404b04d0]
add al, 0x6a
xchg byte [0x1404ae7cd], al
lea rax, [0x1404ae7c0]
jmp 0x140217986