Function at 0x1400497a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r13, rdx
mov rdx, qword [rcx + 0x18]
cmp rdx, 0xffffffffffffffff
je 0x140049fe6
mov r10, rcx
mov rsi, qword [rcx + 8]
lea rbp, [rsi + 1]
mov rax, rbp
shr rax, 3
mov r8, rbp
and r8, 0xfffffffffffffff8
sub r8, rax
cmp rsi, 8
mov rax, r8
cmovb rax, rsi
movabs r9, 0x7ffffffffffffff0
mov rcx, rax
shr rcx, 1
cmp rdx, rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x30], r10
jae 0x140049839
mov qword [rsp + 0x48], r8
mov rbx, qword [r10]
mov rcx, rbp
shr rcx, 4
xor eax, eax
test bpl, 0xf
setne al
add rax, rcx
je 0x140049b61
cmp rax, 1
jne 0x140049af2
xor edx, edx
jmp 0x140049b47
cmp rdx, rax
cmova rax, rdx
cmp rax, 7
jae 0x140049859
xor ecx, ecx
cmp rax, 3
setae cl
lea r14, [rcx*4 + 4]
jmp 0x1400498ba
movabs rcx, 0x1ffffffffffffffe
cmp rax, rcx
ja 0x140049fe6
movabs r8, 0x7fffffffffffffe
lea rcx, [rax*8 + 8]
movabs rdx, 0x2492492492492493
mov rax, rcx
mul rdx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 2
dec rcx
bsr rcx, rcx
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
cmp r14, r8
ja 0x140049fe6
inc r14
mov r15, r14
shl r15, 5
lea r12, [r14 + 0x10]
mov rdx, r15
add rdx, r12
jb 0x140049fe6
cmp rdx, r9
ja 0x140049fe6
movzx eax, byte [0x141e7b110]
xor ecx, ecx
call fcn.140041110
test rax, rax
je 0x140049fe6
mov rbx, rax
lea rdi, [r14 - 1]
mov rax, r14
shr rax, 3
mov rcx, r14
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r14, 9
cmovb rcx, rdi
mov qword [rsp + 0x28], rcx
add rbx, r15
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call fcn.14005c768
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140049a98
mov qword [rsp + 0x48], rbp
mov rax, qword [rsp + 0x30]
mov r12, qword [rax]
movdqa xmm0, xmmword [r12]
pmovmskb r15d, xmm0
not r15d
lea rax, [r12 - 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [r13]
mov qword [rsp + 0x40], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x20], r12
mov r13, rcx
jmp 0x1400499d4
lea ecx, [r15 - 1]
and ecx, r15d
dec r13
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rdi
mov byte [rbx + rdx], al
mov byte [rbx + r8 + 0x10], al
not r14
shl r14, 5
not rdx
shl rdx, 5
mov rax, qword [rsp + 0x20]
movdqu xmm0, xmmword [rax + r14]
movdqu xmm1, xmmword [rax + r14 + 0x10]
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r15d, ecx
test r13, r13
je 0x140049a8c
test r15w, r15w
jne 0x140049a00
nop word [rax + rax]
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r15d, xmm0
add rbp, 0x10
cmp r15d, 0xffff
je 0x1400499e0
not r15d
tzcnt r14d, r15d
add r14, rbp
mov rax, r14
shl rax, 5
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
call fcn.140005710
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140049a67
mov r8d, 0x10
nop word [rax + rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140049a50
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x140049980
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140049980
mov rax, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
jmp 0x140049aa5
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x28]
sub rcx, qword [rsp + 0x50]
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rcx
test rsi, rsi
movabs rax, 0x7ffffffffffffff0
je 0x140049fd1
shl rbp, 5
mov r8, qword [rsp + 0x20]
sub r8, rbp
mov rcx, qword [0x141e7b0f0]
xor edx, edx
mov rsi, rax
call fcn.14004e948
mov rax, rsi
jmp 0x140049fd1
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x1400608e0]
nop word [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x140049b10
test al, 1
je 0x140049b61
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x1400608e0]
movdqa xmmword [rbx + rdx], xmm0
cmp rbp, 0x10
jae 0x140049b82
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rbp
call fcn.14005c830
test rbp, rbp
jne 0x140049b8b
xor ecx, ecx
jmp 0x140049fb9
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rbp], xmm0
mov rax, qword [r13]
mov rcx, qword [r13 + 8]
movabs rbp, 0x736f6d6570736575
xor rbp, rax
movabs r13, 0x646f72616e646f6d
xor r13, rcx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x38], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edi, edi
mov qword [rsp + 0x60], rsi
jmp 0x140049c04
shr rax, 0x39
lea rcx, [rdi - 0x10]
and rcx, rsi
mov byte [rbx + rdi], al
mov byte [rbx + rcx + 0x10], al
xor ecx, ecx
lea rax, [rdi + 1]
cmp rdi, rsi
mov rdi, rax
je 0x140049fac
cmp cl, byte [rbx + rdi]
jno 0x140049bf4
mov rax, rdi
not rax
shl rax, 5
add rax, rbx
mov qword [rsp + 0x40], rax
mov rax, rdi
shl rax, 5
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x20], rdi
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x58]
mov r12, qword [rax - 0x18]
mov r11, qword [rax - 0x10]
mov rax, r11
and rax, 0xfffffffffffffff8
je 0x140049ce0
mov r9, qword [rsp + 0x38]
mov r8, r13
mov r10, qword [rsp + 0x28]
xor edi, edi
mov rdx, rbp
nop dword [rax]
mov rcx, qword [r12 + rdi]
xor r10, rcx
add rdx, r8
rol r8, 0xd
add r9, r10
xor r8, rdx
rol r10, 0x10
xor r10, r9
rol rdx, 0x20
add r9, r8
add rdx, r10
rol r8, 0x11
xor r8, r9
rol r10, 0x15
rol r9, 0x20
xor r10, rdx
xor rdx, rcx
add rdi, 8
cmp rdi, rax
jb 0x140049c70
mov r14d, r11d
and r14d, 7
cmp r14d, 4
jb 0x140049cff
mov r15d, dword [r12 + rdi]
mov eax, 4
mov ecx, eax
or ecx, 1
cmp ecx, r14d
jb 0x140049d0e
jmp 0x140049d38
mov r10, qword [rsp + 0x28]
mov r8, r13
mov r9, qword [rsp + 0x38]
mov rdx, rbp
xor edi, edi
mov r14d, r11d
and r14d, 7
cmp r14d, 4
jae 0x140049cc0
xor r15d, r15d
xor eax, eax
mov ecx, eax
or ecx, 1
cmp ecx, r14d
jae 0x140049d38
lea rcx, [r12 + rax]
mov rsi, r13
mov r13, rbp
movzx ebp, word [rdi + rcx]
lea ecx, [rax*8]
shl rbp, cl
or r15, rbp
mov rbp, r13
mov r13, rsi
mov rsi, qword [rsp + 0x60]
or rax, 2
cmp eax, r14d
jae 0x140049d60
add rdi, rax
movzx edi, byte [r12 + rdi]
shl eax, 3
mov ecx, eax
shl rdi, cl
or r15, rdi
jmp 0x140049d65
test r14, r14
je 0x140049db8
lea ecx, [r14*8]
mov eax, 0xff
shl rax, cl
or rax, r15
cmp r14, 7
jne 0x140049dc0
xor r10, rax
add rdx, r8
add r9, r10
rol r8, 0xd
rol r10, 0x10
xor r8, rdx
xor r10, r9
rol rdx, 0x20
add r9, r8
add rdx, r10
rol r8, 0x11
xor r8, r9
rol r10, 0x15
xor r10, rdx
rol r9, 0x20
xor rdx, rax
xor eax, eax
jmp 0x140049dc0
mov eax, 0xff
nop dword [rax]
mov rdi, qword [rsp + 0x20]
shl r11, 0x38
movabs rcx, 0x100000000000000
add r11, rcx
or r11, rax
xor r10, r11
add rdx, r8
rol r8, 0xd
add r9, r10
xor r8, rdx
rol r10, 0x10
xor r10, r9
rol rdx, 0x20
add r9, r8
add rdx, r10
rol r8, 0x11
xor r8, r9
rol r10, 0x15
rol r9, 0x20
xor r10, rdx
xor rdx, r11
xor r9, 0xff
add rdx, r8
add r9, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
rol rdx, 0x20
xor r10, r9
add r9, r8
rol r8, 0x11
add rdx, r10
xor r8, r9
rol r10, 0x15
xor r10, rdx
rol r9, 0x20
add rdx, r8
add r9, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
rol rdx, 0x20
xor r10, r9
add r9, r8
rol r8, 0x11
add rdx, r10
xor r8, r9
rol r10, 0x15
xor r10, rdx
rol r9, 0x20
add rdx, r8
add r9, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
xor r10, r9
add r9, r8
rol r8, 0x11
rol r10, 0x15
mov rax, r9
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, r9
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x140049ee8
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x140049ed0
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x140049f04
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, rdi
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rsi
cmp r9, 0x10
jb 0x140049be0
mov rcx, rdx
not rcx
shl rcx, 5
add rcx, rbx
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
cmp r8b, 0xff
je 0x140049f80
mov rax, qword [rsp + 0x40]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rcx]
movups xmmword [rax], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [rax + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x140049c40
lea rax, [rdi - 0x10]
and rax, rsi
mov byte [rbx + rdi], 0xff
mov byte [rbx + rax + 0x10], 0xff
mov rax, qword [rsp + 0x40]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x140049bf2
cmp rsi, 8
mov rcx, qword [rsp + 0x48]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2