Function at 0x1401ece50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test ecx, ecx
je 0x1401ece95
test edx, edx
je 0x1401eceb3
movzx eax, byte [0x14047dcb9]
cmp al, 0x8d
je 0x1401ecf9c
mov cl, 0xbf
nop word cs:[rax + rax]
mov al, 0xb3
lock cmpxchg byte [0x14047dcb9], cl
je 0x1401ecf09
cmp al, 0x8d
jne 0x1401ece80
jmp 0x1401ecf9c
test edx, edx
je 0x1401ecec7
mov eax, dword [0x1404bebe8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
jne 0x1401ed04b
jmp 0x1401ed039
mov eax, dword [0x1404bebec]
cmp eax, 0x29
jle 0x1401ed1b0
jmp 0x1401ed1c2
movzx eax, byte [0x14047dd0d]
movzx ecx, byte [0x14047fa40]
add cl, 0x92
cmp al, cl
je 0x1401ed025
mov cl, 0xd2
nop word cs:[rax + rax]
mov al, 0xb3
lock cmpxchg byte [0x14047dd0d], cl
je 0x1401ecfa8
cmp al, 0xe7
jne 0x1401ecef0
jmp 0x1401ed025
mov edx, 1
mov r8d, 0xfffffffe
xor r9d, r9d
lea r10, [0x14047dcb0]
lea r11, [0x1403972b0]
nop word cs:[rax + rax]
mov eax, dword [0x1404bebec]
cmp eax, 0x61
jg 0x1401ecf5a
nop dword [rax + rax]
movzx eax, byte [r9 + r11]
xor byte [r9 + r10], al
mov eax, dword [0x1404bebe8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
je 0x1401ecf80
movzx eax, byte [r9 + r10]
movzx ecx, byte [r9 + r11]
shl al, cl
sub al, cl
mul cl
xor al, cl
mov byte [r9 + r10], al
jmp 0x1401ecf40
lea eax, [r9 + 1]
cmp eax, 8
jg 0x1401ecf94
inc r9
dec edx
add r8d, 2
jmp 0x1401ecf30
mov al, 0x8d
xchg byte [0x14047dcb9], al
lea rax, [0x14047dcb0]
jmp 0x1401ed02c
xor eax, eax
lea rcx, [0x14047dd00]
lea rdx, [0x1403972f0]
nop dword [rax + rax]
movzx r8d, byte [rax + rdx]
xor byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xc
jg 0x1401ecfd8
inc rax
jmp 0x1401ecfc0
mov eax, dword [0x1404bebec]
cmp eax, 0x45
jge 0x1401ed010
mov al, 0xe7
xchg byte [0x14047dd0d], al
mov ecx, dword [0x1404bebe8]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, 0x136d98e0
add ecx, dword [0x14047fa44]
xor edx, edx
div ecx
test edx, edx
je 0x1401ed025
nop word [rax + rax]
mov al, 0xe7
xchg byte [0x14047dd0d], al
mov eax, dword [0x1404bebec]
cmp eax, 0xb
jge 0x1401ed010
jmp 0x1401ecfe3
lea rax, [0x14047dd00]
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movzx eax, byte [0x14047e004]
mov ecx, dword [0x1404bebec]
cmp ecx, 0x5a
jle 0x1401ed054
movzx eax, byte [0x14047e004]
jmp 0x1401ed039
cmp al, 0x5b
je 0x1401ed1a4
mov bl, 0x89
mov edi, 0x136d98df
lea r14, [fcn.1401ece50]
lea ebp, [r14 + r14]
add ebp, 0x3b80
mov r15d, 0x136d98e9
lea rsi, [0x1401ee6b0]
jmp 0x1401ed0cd
mov al, 1
lock cmpxchg byte [0x14047e004], bl
mov ecx, dword [0x14047fa44]
add ecx, r15d
call fcn.140327f1c
mov qword [0x1404beb88], rax
mov rcx, rsi
call fcn.1403477e0
mov eax, dword [0x14047fa44]
add eax, edi
lea ecx, [r14 + r14]
add ecx, 0x4140
test ecx, eax
je 0x1401ed0f5
mov ecx, dword [0x1404bebe8]
lea eax, [rcx - 1]
imul eax, ecx
mov ecx, dword [0x14047fa44]
lea r8d, [rcx + 0x136d98e0]
xor edx, edx
div r8d
add ecx, 0x136d98de
cmp edx, ecx
jne 0x1401ed090
mov al, 1
lock cmpxchg byte [0x14047e004], bl
sete cl
mov edx, dword [0x14047fa44]
add edx, edi
test ebp, edx
jne 0x1401ed090
test cl, cl
jne 0x1401ed125
movzx ecx, byte [0x14047fa40]
add cl, 6
cmp al, cl
jne 0x1401ed0cd
jmp 0x1401ed1a4
xor edx, edx
lea rax, [0x14047dff0]
lea rcx, [0x1403975e0]
nop word cs:[rax + rax]
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]
mov r8d, dword [0x14047fa44]
mov r9d, r8d
xor r9d, 0x136d98f2
and r8d, 0x136d98f2
lea r8d, [r9 + r8*2]
cmp edx, r8d
jl 0x1401ed140
mov al, 1
nop dword [rax]
mov ecx, dword [0x1404bebec]
cmp ecx, 0x15
jg 0x1401ed196
mov ecx, dword [0x1404bebec]
cmp ecx, 0x2d
jle 0x1401ed19c
test al, al
je 0x1401ed180
jmp 0x1401ed18b
mov al, 0x5b
xchg byte [0x14047e004], al
lea rax, [0x14047dff0]
jmp 0x1401ed02c
movzx eax, byte [0x14047de4d]
mov ecx, dword [0x1404bebec]
cmp ecx, 0x10
jle 0x1401ed1cb
movzx eax, byte [0x14047de4d]
jmp 0x1401ed1b0
cmp al, 0xb
je 0x1401ed283
mov cl, 0xad
nop word cs:[rax + rax]
mov al, 0xe
lock cmpxchg byte [0x14047de4d], cl
je 0x1401ed200
cmp al, 0xb
jne 0x1401ed1e0
jmp 0x1401ed283
mov ecx, dword [0x1404bebe8]
mov edx, dword [0x14047fa44]
mov eax, ecx
sub eax, edx
add eax, 0xec926721
imul eax, ecx
mov ecx, edx
xor ecx, 0x136d98e0
and edx, 0x136d98e0
lea ecx, [rcx + rdx*2]
xor edx, edx
div ecx
test edx, edx
jne 0x1401ed200
xor eax, eax
lea rcx, [0x14047de40]
lea rdx, [0x140397430]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xc
jg 0x1401ed268
inc rax
jmp 0x1401ed250
mov eax, dword [0x1404bebe8]
nop
mov eax, dword [0x1404bebec]
cmp eax, 0x48
jg 0x1401ed270
mov al, 0xb
xchg byte [0x14047de4d], al
mov eax, 0x136d98de
nop dword [rax + rax]
mov ecx, dword [0x1404bebe8]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
jne 0x1401ed2b2
mov ecx, dword [0x1404bebe8]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x1401ed2cf
mov ecx, dword [0x1404bebe8]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
mov ecx, dword [0x14047fa44]
add ecx, eax
cmp edx, ecx
jne 0x1401ed290
jmp 0x1401ed2a1
lea rax, [0x14047de40]
jmp 0x1401ed02c