Function at 0x1401587a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x170], xmm6
mov qword [rbp + 0x168], 0xfffffffffffffffe
mov qword [rbp + 0x158], r9
mov r13, r8
mov bx, dx
mov rdi, rcx
movzx eax, byte [0x1404ee748]
mov qword [rbp + 0x160], rax
xorps xmm6, xmm6
movaps xmmword [rbp + 0x90], xmm6
mov dword [rbp + 0xa0], 0
mov rcx, qword [rcx]
lea rdx, [rbp + 0x90]
call fcn.1402c3dd0
mov r15d, dword [rbp + 0x90]
mov r14, qword [rdi]
mov rsi, qword [rdi + 8]
movups xmmword [rbp + 0x119], xmm6
movaps xmmword [rbp + 0x110], xmm6
mov word [rbp + 0x124], 0x8000
mov byte [rbp + 0x129], 9
xor eax, eax
test byte [r14], 2
sete al
mov eax, dword [r14 + rax*4 + 0x14]
lea rcx, [rbp + 0x11c]
mov dword [rbp + 0x11c], eax
mov edx, dword [rsi + 0x10]
call fcn.1401e61a0
mov dword [rbp + 0x118], r15d
lea rax, [r14 + 0x10]
test byte [r14 + 8], 4
lea rcx, [rsi + 0x20]
cmove rcx, rax
mov eax, dword [rcx]
mov dword [rbp + 0x110], eax
mov eax, dword [rsi + 0x24]
mov dword [rbp + 0x114], eax
lea r8, [rbp + 0x94]
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x110]
mov r9d, 0x10
call fcn.140200d70
mov byte [rbp + 0x50], 0
mov rdx, qword [rdi + 0x10]
test byte [rdx + 3], 4
je 0x1401588f1
mov r9, qword [rdi + 0x18]
lea rcx, [rbp + 0xc8]
mov r8d, ebx
call fcn.140158110
cmp byte [rbp + 0x50], 0
lea rdx, [rbp + 0x58]
movups xmm0, xmmword [rbp + 0xc8]
movups xmmword [rbp + 0x58], xmm0
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0x68], rax
jne 0x1401588e8
mov byte [rbp + 0x50], 1
lea rcx, [rbp - 0x60]
call fcn.140200e20
mov rax, qword [rbp + 0x158]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140158fc2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
lea rdx, [rbp - 0x60]
call qword [case.0x14014757d.0]
mov r12, qword [rdi]
mov byte [rbp + 0xa8], 0
movups xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xc0], 0
mov ecx, 0x10
call fcn.14037638c
mov qword [rbp + 0xb0], rax
mov rcx, rax
add rcx, 0x10
mov qword [rbp + 0xc0], rcx
movups xmmword [rax], xmm6
mov qword [rbp + 0xb8], rcx
movups xmm0, xmmword [r12 + 0x44]
movups xmmword [rax], xmm0
mov byte [rbp + 0x130], 0
movups xmmword [rbp + 0x138], xmm6
mov qword [rbp + 0x148], 0
mov ecx, 0x20
call fcn.14037638c
mov qword [rbp + 0x138], rax
mov rcx, rax
add rcx, 0x20
mov qword [rbp + 0x148], rcx
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [rbp + 0x140], rcx
mov dword [rbp + 0x150], 0
mov r14, qword [rbp + 0xb0]
mov rbx, qword [rbp + 0xb8]
sub rbx, r14
cmp rbx, 0x21
jb 0x1401589dd
lea rcx, [rbp + 0x130]
mov rdx, rbx
call fcn.14015af40
mov r15, qword [rbp + 0x138]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14039e2f0
add r15, rbx
mov qword [rbp + 0x140], r15
call fcn.1402a36f0
mov rcx, rax
mov edx, 0xffffffff
call fcn.1402a3500
mov dword [rbp + 0x150], eax
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x140]
sub rdx, rcx
mov r8d, dword [0x14049b6bc]
mov r9, qword [rbp + 0x160]
mov r15d, r9d
neg r15d
add r8d, r15d
add r8d, 0xc49c
movsxd r9, r8d
add r9, qword [0x14049b6d0]
mov r8d, eax
mov rax, r9
call qword [case.0x14014757d.0]
mov rax, qword [rdi + 8]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0xc8], rax
mov eax, dword [r12 + 0x40]
mov dword [rbp + 0xd0], eax
movzx eax, byte [rbp + 0x130]
mov byte [rbp + 0xd8], al
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], 0
mov rbx, qword [rbp + 0x138]
mov r14, qword [rbp + 0x140]
cmp rbx, r14
je 0x140158b17
sub r14, rbx
cmp r14, 0x1000
jb 0x140158ae1
cmp byte [0x1404ee748], 0
jne 0x140158ac7
cmp r14, 0xffffffffffffffd9
jae 0x140158fc7
lea rcx, [r14 + 0x27]
call fcn.14037638c
mov rcx, rax
add rcx, 0x27
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x140158aec
mov rcx, r14
call fcn.14037638c
mov rcx, rax
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rcx
lea rsi, [rcx + r14]
mov qword [rbp + 0xf0], rsi
mov rdx, rbx
mov r8, r14
call fcn.14039e2f0
mov qword [rbp + 0xe8], rsi
mov eax, dword [rbp + 0x150]
mov dword [rbp + 0xf8], eax
call fcn.1402a36f0
movsxd r14, dword [0x1403bdef0]
mov ecx, dword [0x1404ee8fc]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x140158b4a
mov dword [0x1404ee918], 1
lea rcx, [0x1403bdef0]
add r14, rcx
nop word cs:[rax + rax]
mov ecx, dword [0x1404ee900]
cmp ecx, 0x3b
jg 0x140158b82
mov esi, dword [0x1403bdef8]
mov ecx, dword [0x1404ee8fc]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
je 0x140158b95
mov ecx, dword [0x1403bdef8]
mov ecx, dword [0x1404ee900]
cmp ecx, 0x3d
jge 0x140158b60
jmp 0x140158b6b
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0xc8]
mov r8, rax
call fcn.140203e00
mov qword [rbp + 0x108], r15
mov rbx, qword [rbp + 0xe0]
mov r15d, dword [0x1404ee8f8]
lea ecx, [r15 + 1]
mov dword [0x1404ee8f8], ecx
test r15d, ecx
mov dword [rbp + 0x12c], ecx
mov r12, r13
je 0x140158bda
xor r13d, r13d
jmp 0x140158bfd
xor eax, eax
xor r13d, r13d
test esi, esi
jle 0x140158bfd
nop word cs:[rax + rax]
cdqe
xor r13, qword [r14 + rax]
add eax, 8
cmp eax, esi
jl 0x140158bf0
test rbx, rbx
je 0x140158c75
mov r14, qword [rbp + 0xf0]
sub r14, rbx
mov rcx, rbx
xor edx, edx
mov r8, r14
call fcn.14039e9a0
cmp r14, 0x1000
jb 0x140158c49
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x20
jae 0x140158fcc
mov rcx, r14
xor rcx, 0x27
and r14d, 0x27
lea r14, [rcx + r14*2]
mov rbx, rax
mov eax, dword [0x14049b6ac]
or eax, dword [rbp + 0x160]
add eax, 0xc49c
cdqe
add rax, qword [0x14049b6e0]
mov rcx, rbx
mov rdx, r14
mov r8d, 0xa270e721
call qword [case.0x14014757d.0]
mov rcx, qword [rdi]
xor edx, edx
call fcn.1402c3ae0
xorps xmm0, xmm0
movaps xmmword [rbp + 0x70], xmm0
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x18]
mov qword [rbp + 0x80], rcx
mov rax, qword [rax + 8]
mov qword [rbp + 0x70], rax
cmp qword [0x1404f12d0], 0
jne 0x140158cef
mov ecx, 0xb0
call fcn.14037638c
xorps xmm0, xmm0
movups xmmword [rax + 0x9d], xmm0
movups xmmword [rax + 0x90], xmm0
movups xmmword [rax + 0x80], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [0x1404f12d0], rax
mov rax, qword [0x1404f12d0]
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x18]
lea rdx, [rbp + 0x70]
call fcn.1401e7790
lea rcx, [rbp + 0xc8]
lea rdx, [rbp + 0x18]
lea r8, [rbp - 0x20]
call fcn.1401e8bc0
lea rcx, [rbp + 0xc8]
lea rdx, [rbp - 0x60]
mov r8, r12
call fcn.1401e8cb0
mov esi, eax
mov rbx, qword [rbp + 0xd8]
test rbx, rbx
mov r14, qword [rbp + 0x160]
je 0x140158dbb
mov rdi, qword [rbp + 0xe8]
sub rdi, rbx
mov rcx, rbx
xor edx, edx
mov r8, rdi
call fcn.14039e9a0
cmp rdi, 0x1000
jb 0x140158d92
mov rax, qword [rbx - 8]
cmp byte [0x1404ee91c], 0
jne 0x140158d81
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x140158fd1
mov rcx, rdi
xor rcx, 0x27
and edi, 0x27
lea rdi, [rcx + rdi*2]
mov rbx, rax
mov eax, dword [0x14049b6ac]
add eax, r14d
add eax, 0xc49c
cdqe
add rax, qword [0x14049b6e0]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0xa270e721
call qword [case.0x14014757d.0]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140158e1d
mov rdx, qword [rbp + 0x28]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140158dfa
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x140158fd6
mov rcx, rdx
xor rcx, 0x27
and edx, 0x27
lea rdx, [rcx + rdx*2]
mov rcx, rax
mov eax, dword [0x14049b6ac]
xor eax, r14d
add eax, 0xc49c
cdqe
add rax, qword [0x14049b6e0]
mov r8d, 0xa270e721
call qword [case.0x14014757d.0]
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x140158e88
mov rdi, qword [rbp - 8]
sub rdi, rbx
mov rcx, rbx
xor edx, edx
mov r8, rdi
call fcn.14039e9a0
cmp rdi, 0x1000
jb 0x140158e5f
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x20
jae 0x140158fdb
add rdi, 0x27
mov rbx, rax
mov eax, dword [0x14049b6ac]
add eax, r14d
add eax, 0xc49c
cdqe
add rax, qword [0x14049b6e0]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0xa270e721
call qword [case.0x14014757d.0]
mov rbx, qword [rbp + 0x138]
test rbx, rbx
je 0x140158ef9
mov rdi, qword [rbp + 0x148]
sub rdi, rbx
mov rcx, rbx
xor edx, edx
mov r8, rdi
call fcn.14039e9a0
cmp rdi, 0x1000
jb 0x140158ed0
mov rax, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x140158fe0
add rdi, 0x27
mov rbx, rax
mov eax, dword [0x14049b6ac]
add eax, r14d
add eax, 0xc49c
cdqe
add rax, qword [0x14049b6e0]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0xa270e721
call qword [case.0x14014757d.0]
mov rbx, qword [rbp + 0xb0]
test rbx, rbx
je 0x14015906e
mov rdi, qword [rbp + 0xc0]
sub rdi, rbx
mov rcx, rbx
xor edx, edx
mov r8, rdi
call fcn.14039e9a0
cmp rdi, 0x1000
jb 0x140159045
mov rax, qword [rbx - 8]
mov rcx, rbx
xor rcx, 0xfffffffffffffff8
movabs rdx, 0x7ffffffffffffff8
and rdx, rbx
lea rcx, [rcx + rdx*2]
sub rcx, rax
and r15d, dword [rbp + 0x12c]
xor edx, edx
cmp r15d, 1
sbb rdx, rdx
mov r8, qword [0x1403be000]
sub r8, r13
movabs r9, 0x35aad434d3ed28e6
add r9, r8
mov r8d, dword [0x1404ee900]
movabs r8, 0xca552bcb2c12d71a
add r8, r9
not rdx
nop word [rax + rax]
mov r9d, dword [0x1404ee900]
cmp r9d, 0x2c
jg 0x140158f90
xor rdx, r8
mov r9d, dword [0x1404ee900]
test rdx, r8
setne dl
or dl, byte [0x1404ee91c]
mov r8d, dword [0x1404ee900]
cmp r8d, 0x14
jle 0x140158fe5
jmp 0x140159008
call fcn.140378014
call fcn.14006e7a0
call fcn.140356a3c
call fcn.140356a3c
call fcn.140356a3c
call fcn.140356a3c
call fcn.140356a3c
mov r8d, edx
and r8b, 1
mov byte [0x1404ee91c], r8b
mov r8d, dword [0x1404ee8fc]
lea r9d, [r8 - 1]
imul r9d, r8d
test r9b, 1
je 0x140159038
mov r8d, edx
and r8b, 1
nop
mov byte [0x1404ee91c], r8b
mov r9d, dword [0x1404ee8fc]
lea r10d, [r9 - 1]
imul r10d, r9d
mov dword [0x1404ee910], 1
test r10b, 1
jne 0x140159010
jmp 0x140158fe5
cmp rcx, 0x20
jae 0x1401590b6
add rdi, 0x27
mov rbx, rax
mov eax, dword [0x14049b6ac]
add eax, r14d
add eax, 0xc49c
cdqe
add rax, qword [0x14049b6e0]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0xa270e721
call qword [case.0x14014757d.0]
mov rdi, qword [rbp + 0x158]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140159099
cmp rcx, rdi
setne dl
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x14014757d.0]
mov qword [rdi + 0x38], 0
mov eax, esi
movaps xmm6, xmmword [rbp + 0x170]
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.140356a3c
int3