Function at 0x14018c250
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x418
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x390], 0xfffffffffffffffe
mov ebx, r9d
mov dword [rbp + 0x364], r8d
mov qword [rbp + 0x378], rcx
lea r15, [rbp + 0x338]
mov eax, 0x65e365cc
nop word cs:[rax + rax]
mov ecx, dword [0x1405d0cd0]
lea r8d, [rcx - 1]
imul r8d, ecx
test r8b, 1
je 0x14018c2d9
mov ecx, dword [0x14048eb90]
mov ecx, dword [0x1405d0cd0]
lea r8d, [rcx - 1]
imul r8d, ecx
and r8d, 1
mov ecx, dword [0x14056d0b8]
add ecx, eax
cmp r8d, ecx
jne 0x14018c2a0
movsxd rsi, dword [0x14048eb90]
xor eax, eax
lea rcx, [0x14048eb90]
mov r14, rsi
and r14, rcx
add r14, r14
nop word cs:[rax + rax]
test al, al
jne 0x14018c34b
mov ecx, dword [0x1405d0cd4]
mov r11d, dword [0x14056d0b8]
mov r8d, r11d
not r8d
mov r9d, r11d
and r9d, 0x9a1c99d7
mov r10d, r8d
and r10d, 0x65e36628
or r10d, r9d
xor r11d, 0x65e36628
and r8d, 0x1a1c99d7
or r8d, r11d
not r8d
lea r8d, [r10 + r8*2]
cmp ecx, r8d
jl 0x14018c358
mov ecx, dword [0x1405d0cd4]
cmp ecx, 0x2d
jge 0x14018c300
jmp 0x14018c304
mov eax, dword [0x14048ebfc]
mov dword [rbp + 0x370], eax
test rdx, rdx
lea r12, [0x140489d28]
mov qword [rbp + 0x358], rdx
cmovne r12, rdx
mov qword [rbp + 0x348], 0
mov rax, qword [0x14056d0c0]
movabs rcx, 0x8eec59f04b8741d7
xor rcx, rax
movabs rdx, 0xeec59f04b8741d7
and rdx, rax
lea rax, [rcx + rdx*2]
mov qword [rbp + 0x350], rax
mov byte [rbp + 0x338], 0
mov rcx, r12
mov edx, 0xed72135a
mov r8d, 0x53e88a30
call fcn.1400aacc0
mov r13, rax
cmp rax, 0xf
jbe 0x14018c3e3
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.140088ec0
jmp 0x14018c401
mov qword [rbp + 0x348], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.14046c800
mov byte [rbp + r13 + 0x338], 0
lea r12, [0x140489448]
mov qword [rbp + 0x330], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x320], xmm0
mov rdi, qword [rbp + 0x348]
cmp qword [rbp + 0x350], 0x10
jb 0x14018c431
mov r15, qword [rbp + 0x338]
cmp rdi, 0xf
ja 0x14018c450
lea rax, [rbp + 0x310]
movups xmm0, xmmword [r15]
movups xmmword [rax], xmm0
mov r13d, 0xf
jmp 0x14018c4e0
mov eax, edi
and eax, 0xf
mov ecx, edi
not ecx
and ecx, 0xf
mov r13, rdi
and r13, 0xfffffffffffffff0
or r13, rcx
xor r13, rax
movabs rax, 0x7fffffffffffffff
cmp r13, rax
cmovae r13, rax
cmp r13, 0xfff
jb 0x14018c4c1
lea rcx, [r13 + 0x28]
call fcn.14044489c
mov rcx, rax
neg rcx
movabs rdx, 0x7fffffffffffffd9
and rdx, rcx
xor rcx, 0xffffffffffffffd9
lea rdx, [rcx + rdx*2]
neg rdx
mov ecx, edx
not ecx
xor rdx, 0xffffffffffffffe0
and ecx, 0x1f
or rcx, rdx
not rcx
mov qword [rcx - 8], rax
jmp 0x14018c4cd
lea rcx, [r13 + 1]
call fcn.14044489c
mov rcx, rax
mov qword [rbp + 0x310], rcx
lea r8, [rdi + 1]
mov rdx, r15
call fcn.14046c800
mov qword [rbp + 0x320], rdi
mov qword [rbp + 0x328], r13
mov qword [rbp + 0x308], r12
lea rdx, [rbp + 0x308]
mov rcx, qword [rbp + 0x378]
call fcn.14018aaa0
mov dword [rbp + 0x374], eax
cmp dword [rbp + 0x374], 0xfffffffe
je 0x14018c733
cmp qword [0x1405d3560], 0
jne 0x14018c54c
mov ecx, 0x900
call fcn.14044489c
mov qword [rbp + 0x380], rax
mov rcx, rax
call fcn.140084cf0
mov rax, qword [rbp + 0x380]
mov qword [0x1405d3560], rax
mov rax, qword [0x1405d3560]
mov qword [rbp + 0x388], rax
mov rax, qword [rax + 0x700]
mov rcx, qword [rbp + 0x358]
call qword [case.0x14012b313.0]
mov dword [rbp + 0x368], eax
lea rcx, [0x14048eb90]
mov rax, rcx
xor rax, rcx
not rax
and rax, rsi
xor rax, rcx
mov rcx, rax
xor rcx, r14
and rax, r14
mov edx, dword [0x1405d0cd4]
cmp edx, 0x2c
jl 0x14018c5b4
nop
mov edx, dword [0x1405d0cd0]
lea r8d, [rdx - 1]
imul r8d, edx
test r8b, 1
jne 0x14018c5a0
lea rax, [rcx + rax*2]
mov edx, dword [0x14056ba10]
lea ecx, [rdx + 1]
mov dword [0x14056ba10], ecx
mov r9d, edx
not r9d
mov r8d, dword [0x1405d0cd4]
mov r8d, ecx
not r8d
lea r10, [fcn.14018c250]
add r10d, r10d
add r10d, 0x24e0
mov r11d, r10d
not r11d
nop word cs:[rax + rax]
test r11d, r10d
jne 0x14018c600
mov dword [rbp + 0x380], ebx
xor r9d, r8d
xor r8d, ecx
and r8d, edx
xor r8d, ecx
and edx, ecx
or edx, r9d
mov ecx, edx
not ecx
mov ebx, r8d
and ebx, ecx
nop word cs:[rax + rax]
mov r9d, dword [0x1405d0cd0]
lea r10d, [r9 - 1]
imul r10d, r9d
and r10d, 1
mov r9d, dword [0x14056d0b8]
mov r11d, r9d
xor r11d, 0x1a1c9a33
and r11d, r9d
xor r9d, 0x65e365cc
lea r9d, [r9 + r11*2]
cmp r10d, r9d
jne 0x14018c630
xor edx, ecx
and edx, r8d
xor edx, ecx
or ebx, edx
not ebx
xor esi, esi
mov edi, 0
mov dword [rbp + 0x36c], ebx
test ebx, ebx
jne 0x14018c6ec
nop word cs:[rax + rax]
mov ecx, dword [0x1405d0cd0]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x14018c6b2
mov ecx, dword [0x1405d0cd0]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
jne 0x14018c690
mov ecx, dword [0x14056d0b8]
mov edx, dword [0x1405d0cd4]
cmp edx, 0xc
jg 0x14018c6a1
mov edx, ecx
xor edx, 0x65e365cc
and ecx, 0x65e365cc
lea ecx, [rdx + rcx*2]
xor edx, edx
mov esi, 0
mov edi, 0
cmp ecx, dword [rbp + 0x370]
jl 0x14018c854
mov r8d, dword [rbp + 0x368]
cmp r8d, 0xffffffff
je 0x14018c73a
mov eax, dword [0x14056d0b8]
lea ecx, [rax + 0x65e3661c]
add eax, 0x65e365cb
mov edx, ecx
xor edx, eax
and edx, ecx
not ecx
xor eax, ecx
not eax
and eax, ecx
or edx, eax
not edx
or edx, r8d
xor r8d, 0x50
not edx
or edx, r8d
cmp edx, 0xffffffff
mov ebx, dword [rbp + 0x380]
je 0x14018c759
xor ebx, ebx
jmp 0x14018caae
mov rax, qword [rbp + 0x388]
mov rax, qword [rax + 0x6f0]
call qword [case.0x14012b313.0]
mov ebx, dword [rbp + 0x380]
cmp eax, 0x32
je 0x14018c733
mov rdx, qword [rbp + 0x378]
lea rax, [rdx + 0x58]
mov r8d, dword [rbp + 0x374]
movsxd rcx, r8d
imul rcx, rcx, 0x1e8
cmp r8d, 0xffffffff
mov rdx, qword [rdx + 0x60]
lea rcx, [rdx + rcx + 4]
cmove rcx, rax
mov r12d, dword [rcx]
lea rcx, [rbp - 0x30]
mov edx, r12d
call fcn.14018cd50
mov rax, qword [rbp + 0x428]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x420]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x418]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x410]
mov dword [rsp + 0x30], eax
mov r15d, dword [rbp + 0x408]
mov dword [rsp + 0x28], r15d
mov rax, qword [rbp + 0x400]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x30]
mov r14, qword [rbp + 0x358]
mov rdx, r14
mov r8d, dword [rbp + 0x364]
mov r9d, ebx
call fcn.1401866b0
mov rbx, rax
test rax, rax
je 0x14018ca14
lea rcx, [rbp - 0x30]
call fcn.140186370
cmp dword [rbp - 0x1c], 1
jne 0x14018ca37
mov rax, qword [rbp + 0x388]
mov rax, qword [rax + 0x348]
mov rcx, rbx
call qword [case.0x14012b313.0]
cmp r15d, 1
jne 0x14018caa3
mov rax, qword [rbp + 0x388]
mov rax, qword [rax + 0x5e8]
mov rcx, r14
call qword [case.0x14012b313.0]
jmp 0x14018caa3
lea rcx, [fcn.14018c250]
lea r8d, [rcx + rcx]
add r8d, 0x49c0
mov r9d, r8d
not r9d
mov r10b, 1
xor ebx, ebx
xor r14d, r14d
jmp 0x14018c8de
mov rsi, r13
not rsi
mov rdi, r15
not rdi
xor r12, r15
xor r11, r13
and rdi, r14
and rsi, rbx
or rsi, r11
or rdi, r12
not rdi
not rsi
or rsi, r11
or rdi, r12
add edx, 0x8567f8b4
mov r11d, edx
xor r11d, 0xf00e1b66
and edx, 0x700e1b66
lea edx, [r11 + rdx*2]
add edx, ecx
add edx, 0xf06d51c2
mov rbx, rsi
mov r14, rdi
cmp edx, dword [rbp + 0x370]
jge 0x14018c6ec
movsxd r11, edx
test r8d, r9d
mov ecx, dword [0x1405d0cd0]
lea esi, [rcx - 1]
imul esi, ecx
test sil, 1
jne 0x14018c8e4
add r11, rax
nop dword [rax]
mov ecx, dword [0x1405d0cd0]
mov esi, dword [0x14056d0b8]
not esi
add esi, ecx
imul esi, ecx
test sil, 1
jne 0x14018c924
mov ecx, dword [0x1405d0cd4]
cmp ecx, 0x29
jle 0x14018c930
test r10b, r10b
je 0x14018c900
jmp 0x14018c919
mov ecx, dword [0x1405d0cd0]
lea esi, [rcx - 1]
imul esi, ecx
test sil, 1
je 0x14018c949
mov rcx, qword [r11]
mov rcx, qword [r11 + 8]
mov rcx, qword [r11]
mov r11, qword [r11 + 8]
mov esi, dword [0x1405d0cd4]
mov edi, dword [0x14056d0b8]
mov r15d, edi
xor r15d, 0x65e3661f
and edi, 0x65e3661f
lea edi, [r15 + rdi*2]
cmp esi, edi
jl 0x14018c98c
nop word cs:[rax + rax]
cmp dword [0x14056d0b8], 0x9a1c9a34
jne 0x14018c980
not r14
not rbx
mov r13, rbx
and r13, rcx
mov r15, r14
and r15, r11
or r14, r11
or rbx, rcx
mov r11, rbx
not r11
mov r12, r14
not r12
mov ecx, dword [0x1405d0cd0]
lea esi, [rcx - 1]
imul esi, ecx
and esi, 1
mov ecx, dword [0x14056d0b8]
mov edi, ecx
xor edi, 0x65e365cc
and ecx, 0x65e365cc
lea ecx, [rdi + rcx*2]
cmp esi, ecx
jne 0x14018ca00
nop word [rax + rax]
mov ecx, dword [0x14056d0b8]
mov esi, dword [0x1405d0cd4]
cmp esi, 0x54
jl 0x14018c880
nop word cs:[rax + rax]
mov ecx, dword [0x1405d0cd0]
lea esi, [rcx + 1]
imul esi, ecx
test sil, 1
jne 0x14018ca00
jmp 0x14018c9e0
cmp r15d, 1
jne 0x14018caa3
mov rax, qword [rbp + 0x388]
mov rax, qword [rax + 0x5e8]
mov rcx, r14
call qword [case.0x14012b313.0]
jmp 0x14018caa3
mov eax, dword [rbp - 0x20]
mov ecx, eax
xor ecx, 0xfffffffe
test ecx, eax
je 0x14018cb75
and r12d, 4
mov ecx, dword [0x14056d0b8]
mov edx, ecx
xor edx, 0x65e365cc
and ecx, 0x65e365cc
lea ecx, [rdx + rcx*2]
cmp r12d, ecx
je 0x14018cb95
mov ecx, eax
not ecx
mov edx, ecx
and edx, eax
xor edx, ecx
and ecx, 2
and eax, 0xfffffffd
or eax, ecx
and edx, 0xfffffffd
or edx, eax
not edx
test edx, edx
jne 0x14018cb95
mov rax, qword [rbp + 0x388]
mov rax, qword [rax + 0x348]
mov rcx, rbx
call qword [case.0x14012b313.0]
xor ebx, ebx
lea rcx, [rbp - 0x30]
call fcn.14018cff0
mov rax, qword [rbp + 0x350]
cmp rax, 0x10
jb 0x14018cb5e
mov rcx, qword [rbp + 0x338]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14018cb59
mov r8, qword [rcx - 8]
mov rdx, rcx
xor rdx, 0xfffffffffffffff8
movabs r9, 0x7ffffffffffffff8
and r9, rcx
lea rcx, [rdx + r9*2]
movabs rdx, 0x1aeccdecb33e8dc9
mov r9, rcx
xor r9, rdx
and rcx, rdx
lea rcx, [r9 + rcx*2]
sub rcx, r8
movabs rdx, 0xe51332134cc17237
add rdx, rcx
cmp rdx, 0x20
jae 0x14018cbce
neg rax
mov rcx, rax
xor rcx, 0xffffffffffffffd8
movabs rdx, 0x7fffffffffffffd8
and rdx, rax
lea rax, [rcx + rdx*2]
mov rcx, qword [0x14056d0c0]
sub rcx, rax
movabs rdx, 0x8eec59f04b8741c8
add rdx, rcx
mov rcx, r8
call fcn.140195f70
mov rax, rbx
add rsp, 0x418
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp + 0x378]
add rcx, 0x48
lea rdx, [rbp + 0x2f8]
lea r8, [rbp - 0x30]
call fcn.140194cb0
jmp 0x14018caa5
add qword [rbp + 0x378], 0x38
xor eax, eax
cmp dword [rbp + 0x36c], 0
setne al
mov rdx, qword [0x14048ebd0]
mov r8, qword [0x14048ebc8]
xor ecx, ecx
neg rax
sbb rcx, rcx
mov r9d, dword [0x1405d0cd4]
cmp r9d, 0x3f
jge 0x14018cbec
jmp 0x14018cbd3
call fcn.140424a4c
mov r9, r8
sub r9, rsi
mov r10, rdx
sbb r10, rdi
mov r11d, dword [0x1405d0cd4]
cmp r11d, 0x4a
jl 0x14018cc18
mov r9d, 0x65e365e1
nop word cs:[rax + rax]
mov r10d, dword [0x1405d0cd4]
mov r11d, dword [0x14056d0b8]
add r11d, r9d
cmp r10d, r11d
jge 0x14018cc00
jmp 0x14018cbd3
not r9
or r9, rax
not r10
or r10, rcx
not r9
not r10
or r10, r9
setne al
or al, byte [0x1405d0cd8]
and al, 1
mov byte [0x1405d0cd8], al
lea rdx, [rbp + 0x2f8]
lea r8, [rbp - 0x30]
mov rcx, qword [rbp + 0x378]
call fcn.140194cb0
jmp 0x14018caa5