Function at 0x140184590
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov r9, r8
mov rsi, rcx
cmp r8, 0xe
jne 0x1401846da
movabs rax, 0x5f6c616d69636544
xor rax, qword [rdx]
movabs rcx, 0x7265626d754e5f6c
xor rcx, qword [rdx + 6]
or rcx, rax
jne 0x14018482b
movzx eax, byte [0x1402a2221]
mov ecx, 0x200
mov edx, 4
call fcn.1400402e0
test rax, rax
je 0x140184b73
xor ecx, ecx
lea rdx, [0x14021e5f0]
movdqa xmm0, xmmword [0x1401e8dd0]
nop word [rax + rax]
movdqu xmm1, xmmword [rcx + rdx]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rcx], xmm2
add rcx, 0x10
cmp rcx, 0x200
jne 0x140184620
mov rcx, rax
add rcx, 0x200
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0x40
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
call fcn.14017ab40
mov rax, qword [rbp - 0x30]
test rax, rax
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm0
sete byte [rbp - 8]
lea rcx, [rbp - 0x20]
call fcn.140181c00
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmm1, xmmword [rbp - 0x10]
movdqu xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140184a64
cmp r9, 3
je 0x140184787
cmp r9, 8
je 0x140184818
cmp r9, 5
jne 0x14018482b
mov eax, 0x49435341
xor eax, dword [rdx]
movzx ecx, byte [rdx + 4]
xor ecx, 0x49
or ecx, eax
jne 0x14018482b
movzx eax, byte [0x1402a2221]
mov ecx, 8
mov edx, 4
call fcn.1400402e0
test rax, rax
je 0x140184b82
movabs rcx, 0x7f00000000
mov qword [rax], rcx
mov rcx, rax
add rcx, 8
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
call fcn.14017ab40
mov rax, qword [rbp - 0x30]
test rax, rax
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm0
sete byte [rbp - 8]
lea rcx, [rbp - 0x20]
call fcn.140181c00
jmp 0x1401846c4
movzx eax, word [rdx]
xor eax, 0x6e41
movzx ecx, byte [rdx + 2]
xor ecx, 0x79
or cx, ax
jne 0x14018482b
movzx eax, byte [0x1402a2221]
mov ecx, 8
mov edx, 4
call fcn.1400402e0
test rax, rax
je 0x140184b82
movabs rcx, 0x10ffff00000000
mov qword [rax], rcx
mov rcx, rax
add rcx, 8
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
call fcn.14017ab40
mov rax, qword [rbp - 0x30]
test rax, rax
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm0
sete byte [rbp - 8]
lea rcx, [rbp - 0x20]
call fcn.140181c00
jmp 0x1401846c4
movabs rax, 0x64656e6769737341
cmp qword [rdx], rax
je 0x140184a78
mov qword [rbp - 0x48], rsi
mov r12d, 0x25
xor r15d, r15d
lea rax, [0x1402370f0]
mov r13d, 0x25
nop word cs:[rax + rax]
shr r12, 1
add r12, r15
mov rsi, r12
shl rsi, 5
mov rcx, qword [rsi + rax]
mov r8, qword [rsi + rax + 8]
mov rbx, r8
sub rbx, r9
mov rdi, r9
cmovae r8, r9
mov r14, rdx
call fcn.1401bfb80
cdqe
test eax, eax
cmovne rbx, rax
test rbx, rbx
je 0x1401848b2
lea rax, [r12 + 1]
test rbx, rbx
cmovg r13, r12
cmovs r15, rax
mov r12, r13
sub r12, r15
mov rdx, r14
lea rax, [0x1402370f0]
mov r9, rdi
ja 0x140184850
jmp 0x140184a36
lea rdi, [0x1402370f0]
mov rbx, qword [rsi + rdi + 0x18]
test rbx, rbx
je 0x1401849cd
mov r14, qword [rsi + rdi + 0x10]
lea rdi, [rbx*8]
movzx eax, byte [0x1402a2221]
mov edx, 4
mov rcx, rdi
call fcn.1400402e0
test rax, rax
je 0x140184b66
cmp rbx, 0x14
jb 0x14018493b
lea rdx, [rax + rbx*8]
add rdx, 0xfffffffffffffff8
xor ecx, ecx
cmp rdx, rax
jb 0x14018493d
lea rdx, [rax + 4]
lea r8, [rax + rbx*8]
add r8, 0xfffffffffffffffc
cmp r8, rdx
jb 0x14018493d
lea rdx, [rbx - 1]
shr rdx, 0x3d
jne 0x14018493d
lea rcx, [r14 + rbx*8]
cmp rax, rcx
jae 0x140184ab1
lea rcx, [rax + rbx*8]
cmp r14, rcx
jae 0x140184ab1
xor ecx, ecx
mov rdx, rcx
or rdx, 1
test bl, 1
je 0x14018496c
mov r8d, dword [r14 + rcx*8]
mov r9d, dword [r14 + rcx*8 + 4]
cmp r8d, r9d
mov r10d, r9d
cmovb r10d, r8d
cmova r9d, r8d
mov dword [rax + rcx*8], r10d
mov dword [rax + rcx*8 + 4], r9d
mov rcx, rdx
cmp rbx, rdx
je 0x1401849d2
nop word cs:[rax + rax]
mov edx, dword [r14 + rcx*8]
mov r8d, dword [r14 + rcx*8 + 4]
cmp edx, r8d
mov r9d, r8d
cmovb r9d, edx
cmova r8d, edx
mov dword [rax + rcx*8], r9d
mov dword [rax + rcx*8 + 4], r8d
mov edx, dword [r14 + rcx*8 + 8]
mov r8d, dword [r14 + rcx*8 + 0xc]
cmp edx, r8d
mov r9d, r8d
cmovb r9d, edx
cmova r8d, edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r8d
add rcx, 2
cmp rbx, rcx
jne 0x140184980
jmp 0x1401849d2
mov eax, 4
lea rcx, [rax + rbx*8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
call fcn.14017ab40
mov rax, qword [rbp - 0x30]
test rax, rax
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm0
sete byte [rbp - 8]
lea rcx, [rbp - 0x20]
call fcn.140181c00
mov rax, qword [rbp - 0x20]
movups xmm0, xmmword [rbp - 0x18]
movaps xmmword [rbp - 0x60], xmm0
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x50], rcx
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140184a4d
mov rcx, qword [rbp - 0x48]
mov byte [rcx + 8], 1
movabs rax, 0x8000000000000000
mov qword [rcx], rax
jmp 0x140184a64
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov qword [rdx + 0x18], rcx
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rdx + 8], xmm0
mov qword [rdx], rax
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [0x1402219ad]
lea rcx, [rbp - 0x20]
mov r8d, 0xa
call fcn.140184590
mov rax, qword [rbp - 0x20]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140184b34
movzx eax, byte [rbp - 0x18]
mov byte [rsi + 8], al
mov qword [rsi], rcx
jmp 0x140184a64
mov rcx, rbx
and rcx, 0xfffffffffffffffe
xor edx, edx
movdqa xmm0, xmmword [0x1401e8dd0]
nop word cs:[rax + rax]
movdqu xmm1, xmmword [r14 + rdx*8]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rdx*8], xmm2
add rdx, 2
cmp rcx, rdx
jne 0x140184ad0
cmp rbx, rcx
je 0x1401849d2
jmp 0x14018493d
movzx ecx, byte [rbp - 0x18]
movups xmm0, xmmword [rbp - 0x17]
movups xmmword [rbp - 0x37], xmm0
mov rdx, qword [rbp - 8]
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x38], cl
lea rcx, [rbp - 0x40]
call fcn.140181720
movups xmm0, xmmword [rbp - 0x40]
movdqu xmm1, xmmword [rbp - 0x30]
jmp 0x1401846cd
mov ecx, 4
mov rdx, rdi
call fcn.1401c87b0
mov ecx, 4
mov edx, 0x200
call fcn.1401c87b0
mov ecx, 4
mov edx, 8
call fcn.1401c87b0
int3