Function at 0x14049a850
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
test rcx, rcx
jne 0x14049a86f
mov ebp, 0xffffeb80
jmp 0x14049ab88
mov rdi, r9
mov r13, r8
mov rsi, rdx
mov r12, rcx
mov rcx, r9
call fcn.1401ec000
mov ebp, 0xffffef80
test rax, rax
je 0x14049ab88
mov rbx, rax
mov rcx, rdi
mov rdx, r13
call fcn.1401ec000
cmp rax, rbx
jbe 0x14049ab88
mov r15, rax
mov rcx, rsi
call fcn.1401ee050
cmp byte [rbx + rax], 0x20
lea rcx, [rbx + rax]
lea rax, [rbx + rax + 1]
cmovne rax, rcx
lea r14, [rax + 1]
cmp byte [rax], 0xd
cmovne r14, rax
cmp byte [r14], 0xa
jne 0x14049ab88
mov rsi, qword [rsp + 0xb0]
inc r14
mov rcx, r13
call fcn.1401ee050
lea rcx, [r15 + rax]
cmp byte [r15 + rax], 0x20
lea rax, [r15 + rax + 1]
cmovne rax, rcx
cmp byte [rax], 0xd
lea rcx, [rax + 1]
cmovne rcx, rax
lea rax, [rcx + 1]
cmp byte [rcx], 0xa
cmovne rax, rcx
sub rax, rdi
mov qword [rsi], rax
mov rsi, r15
sub rsi, r14
cmp rsi, 0x16
jl 0x14049aaf1
lea rax, [fcn.14049a850]
mov ebx, 3
mov ecx, 3
sub ecx, eax
xor ebp, ebp
xor ecx, eax
sete bpl
mov eax, ebp
not eax
and eax, 1
lea eax, [rbp + rax*2 + 6]
and al, 7
movzx eax, al
movzx ecx, byte [0x14065575b]
bt ecx, eax
jb 0x14049aace
mov al, byte [0x14065575b]
lea rbp, [fcn.14049a850]
sub ebx, ebp
xor ecx, ecx
mov edx, ebx
xor edx, ebp
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [rcx + rdx*2]
add ecx, 6
and cl, 7
xor cl, 7
mov dl, 1
shl dl, cl
or dl, al
lock cmpxchg byte [0x14065575b], dl
jne 0x14049a974
lea rdx, [fcn.14049a850]
mov edi, 3
mov ebp, 3
sub ebp, edx
xor ebx, ebx
xor ebp, edx
sete bl
mov edx, ebx
xor edx, 1
lea edx, [rbx + rdx*2]
add edx, 6
and dl, 7
xor dl, 7
movzx edx, dl
movzx eax, al
bt eax, edx
jae 0x14049aa0a
lea rax, [fcn.14049a850]
sub edi, eax
xor edx, edx
mov ecx, edi
xor ecx, eax
sete dl
mov ecx, edx
not ecx
and ecx, 1
lea ecx, [rdx + rcx*2]
add ecx, 6
and cl, 7
movzx ecx, cl
movzx edx, byte [0x14065575b]
bt edx, ecx
jae 0x14049a9dd
jmp 0x14049aace
lea rax, [fcn.14049a850]
sub edi, eax
xor ecx, ecx
xor edi, eax
sete cl
mov eax, ecx
not eax
and eax, 0x201
lea rdx, [rcx + rax*2]
add rdx, 0x479784fe
mov eax, edx
and al, 7
movzx eax, al
movzx ecx, byte [0x14065575b]
bt ecx, eax
jb 0x14049aa9e
lea rbp, [0x140655740]
xor eax, eax
mov ebx, dword [rbp]
xor ebx, edx
mov edi, edx
mov ecx, eax
shl edi, cl
xor cl, 0x1f
shr edx, cl
mov dword [rbp], ebx
or edx, edi
not ebx
imul edx, ebx
add rbp, 4
inc eax
cmp eax, 6
jne 0x14049aa4a
lea rax, [fcn.14049a850]
mov ecx, 3
sub ecx, eax
xor edx, edx
xor ecx, eax
sete dl
mov eax, edx
not eax
and eax, 1
lea ecx, [rdx + rax*2]
add ecx, 6
and cl, 7
mov al, 1
shl al, cl
or byte [0x14065575b], al
lea rax, [fcn.14049a850]
mov ecx, 3
sub ecx, eax
xor edx, edx
xor ecx, eax
sete dl
mov eax, edx
xor eax, 1
lea ecx, [rdx + rax*2]
add ecx, 6
and cl, 7
xor cl, 7
mov al, 0xfe
rol al, cl
and byte [0x14065575b], al
lea rdx, [0x140655740]
mov r8d, 0x16
mov rcx, r14
call fcn.1401ff280
test eax, eax
jne 0x14049aaf1
mov ebp, 0xffffec00
jmp 0x14049ab88
mov ebp, 0xffffef00
cmp r14, r15
jae 0x14049ab88
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x30]
xor ecx, ecx
xor edx, edx
mov r9, r14
call fcn.1404db700
mov ebp, 0xffffeed4
cmp eax, 0xffffffd4
je 0x14049ab88
mov rdx, qword [rsp + 0x30]
mov ecx, 1
call fcn.14036e420
test rax, rax
jne 0x14049ab3a
mov ebp, 0xffffee80
jmp 0x14049ab88
mov rdi, rax
lea r8, [rsp + 0x30]
mov rdx, qword [r8]
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov r9, r14
call fcn.1404db700
test eax, eax
je 0x14049ab78
mov ebp, eax
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14048a010
mov rcx, rdi
call fcn.14036e430
add ebp, 0xffffef00
jmp 0x14049ab88
mov qword [r12], rdi
mov rax, qword [rsp + 0x30]
mov qword [r12 + 8], rax
xor ebp, ebp
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret