Function at 0x140084d20
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 r14, rdx
mov rdx, qword [rcx + 0x18]
cmp rdx, 0xffffffffffffffff
je 0x140085586
mov r8, rcx
mov rsi, qword [rcx + 8]
lea rbx, [rsi + 1]
mov rax, rbx
shr rax, 3
mov r9, rbx
and r9, 0xfffffffffffffff8
sub r9, rax
cmp rsi, 8
mov rcx, r9
cmovb rcx, rsi
mov rax, rcx
shr rax, 1
cmp rdx, rax
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x28], r8
jae 0x140084dae
mov qword [rsp + 0x48], r9
mov rdi, qword [r8]
mov rcx, rbx
shr rcx, 4
xor eax, eax
test bl, 0xf
setne al
add rax, rcx
je 0x140085111
cmp rax, 1
jne 0x140085099
xor edx, edx
jmp 0x1400850f7
lea rax, [rdx + 1]
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x140084dd5
xor eax, eax
cmp rcx, 4
setae al
lea r15, [rax*4 + 4]
jmp 0x140084e22
movabs rax, 0x1ffffffffffffffe
inc rax
cmp rcx, rax
ja 0x140085586
shl rcx, 3
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 r15, 0xffffffffffffffff
shr r15, cl
inc r15
mov ecx, 0x18
mov rax, r15
mul rcx
jo 0x140085586
mov r12, rax
cmp rax, 0xfffffffffffffff0
ja 0x140085586
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r15 + 0x10]
mov rbp, r12
add rbp, r13
jb 0x140085586
movabs rax, 0x7ffffffffffffff0
cmp rbp, rax
ja 0x140085586
movzx eax, byte [0x14031a2c8]
xor ecx, ecx
mov rdx, rbp
call fcn.1401dbaa0
test rax, rax
je 0x14008558b
mov rdi, rax
lea rbp, [r15 - 1]
mov rax, r15
shr rax, 3
mov rcx, r15
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r15, 9
cmovb rcx, rbp
mov qword [rsp + 0x30], rcx
add rdi, r12
mov rcx, rdi
mov dl, 0xff
mov r8, r13
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140085028
mov qword [rsp + 0x48], rbx
mov rax, qword [rsp + 0x28]
mov r15, qword [rax]
movdqa xmm0, xmmword [r15]
pmovmskb r12d, xmm0
not r12d
lea rax, [r15 - 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [r14]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 8]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x20], r15
mov r14, rcx
jmp 0x140084f69
lea ecx, [r12 - 1]
and ecx, r12d
dec r14
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rbp
mov byte [rdi + rdx], al
mov byte [rdi + r8 + 0x10], al
not r13
lea rax, [r13*2]
add rax, r13
not rdx
lea rdx, [rdx + rdx*2]
mov r9, qword [rsp + 0x20]
mov r8, qword [r9 + rax*8 + 0x10]
mov qword [rdi + rdx*8 + 0x10], r8
movdqu xmm0, xmmword [r9 + rax*8]
movdqu xmmword [rdi + rdx*8], xmm0
mov r12d, ecx
test r14, r14
je 0x14008501c
test r12w, r12w
jne 0x140084f8f
nop
movdqa xmm0, xmmword [r15 + 0x10]
add r15, 0x10
pmovmskb r12d, xmm0
add rbx, 0x10
cmp r12d, 0xffff
je 0x140084f70
not r12d
tzcnt r13d, r12d
add r13, rbx
mov rax, r13
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x58]
mov r8, qword [rcx + rax*8 + 8]
mov r9, qword [rcx + rax*8 + 0x10]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
call fcn.1401a0030
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140084ff7
mov r8d, 0x10
nop dword [rax + rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140084fe0
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [rdi + rdx], 0
js 0x140084f10
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140084f10
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x48]
jmp 0x140085035
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
sub rcx, qword [rsp + 0x50]
mov qword [rax], rdi
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rcx
test rsi, rsi
je 0x140085575
mov ecx, 0x18
mov rax, rbx
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x140085575
mov r8, qword [rsp + 0x20]
sub r8, rax
mov rcx, qword [0x14031a288]
xor edx, edx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401fb9c4
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x140201ee0]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r8]
por xmm1, xmm0
movdqa xmmword [rdi + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rdi + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x1400850c0
test al, 1
je 0x140085111
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi + rdx]
por xmm0, xmmword [0x140201ee0]
movdqa xmmword [rdi + rdx], xmm0
cmp rbx, 0x10
jae 0x140085132
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memmove
test rbx, rbx
jne 0x14008513b
xor ecx, ecx
jmp 0x140085567
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + rbx], xmm0
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
movabs r13, 0x736f6d6570736575
xor r13, rax
movabs r12, 0x646f72616e646f6d
xor r12, rcx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x38], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x30], rax
xor ecx, ecx
xor ebx, ebx
mov qword [rsp + 0x60], rsi
jmp 0x1400851b4
shr rax, 0x39
lea rcx, [rbx - 0x10]
and rcx, rsi
mov byte [rdi + rbx], al
mov byte [rdi + rcx + 0x10], al
xor ecx, ecx
lea rax, [rbx + 1]
cmp rbx, rsi
mov rbx, rax
je 0x14008555a
cmp cl, byte [rdi + rbx]
jno 0x1400851a4
mov rax, rbx
not rax
lea rax, [rax + rax*2]
lea rax, [rdi + rax*8]
mov qword [rsp + 0x40], rax
mov rax, rbx
neg rax
lea rax, [rax + rax*2]
lea rax, [rdi + rax*8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], rbx
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x58]
mov r15, qword [rax - 0x10]
mov r11, qword [rax - 8]
mov rax, r11
and rax, 0xfffffffffffffff8
je 0x140085290
mov rbp, qword [rsp + 0x38]
mov r8, r12
mov r10, qword [rsp + 0x30]
xor r9d, r9d
mov rdx, r13
nop dword [rax]
mov rcx, qword [r15 + r9]
xor r10, rcx
add rdx, r8
rol r8, 0xd
add rbp, r10
xor r8, rdx
rol r10, 0x10
xor r10, rbp
rol rdx, 0x20
add rbp, r8
add rdx, r10
rol r8, 0x11
xor r8, rbp
rol r10, 0x15
rol rbp, 0x20
xor r10, rdx
xor rdx, rcx
add r9, 8
cmp r9, rax
jb 0x140085220
mov ebx, r11d
and ebx, 7
cmp ebx, 4
jb 0x1400852ae
mov r14d, dword [r15 + r9]
mov eax, 4
mov ecx, eax
or ecx, 1
cmp ecx, ebx
jb 0x1400852bc
jmp 0x1400852e7
mov r10, qword [rsp + 0x30]
mov r8, r12
mov rbp, qword [rsp + 0x38]
mov rdx, r13
xor r9d, r9d
mov ebx, r11d
and ebx, 7
cmp ebx, 4
jae 0x14008526e
xor r14d, r14d
xor eax, eax
mov ecx, eax
or ecx, 1
cmp ecx, ebx
jae 0x1400852e7
lea rcx, [r15 + rax]
mov rsi, r12
mov r12, r13
movzx r13d, word [r9 + rcx]
lea ecx, [rax*8]
shl r13, cl
or r14, r13
mov r13, r12
mov r12, rsi
mov rsi, qword [rsp + 0x60]
or rax, 2
cmp eax, ebx
jae 0x140085300
add r9, rax
movzx r9d, byte [r15 + r9]
shl eax, 3
mov ecx, eax
shl r9, cl
or r14, r9
jmp 0x140085305
test rbx, rbx
je 0x140085357
lea ecx, [rbx*8]
mov eax, 0xff
shl rax, cl
or rax, r14
cmp rbx, 7
jne 0x140085360
xor r10, rax
add rdx, r8
add rbp, r10
rol r8, 0xd
rol r10, 0x10
xor r8, rdx
xor r10, rbp
rol rdx, 0x20
add rbp, r8
add rdx, r10
rol r8, 0x11
xor r8, rbp
rol r10, 0x15
xor r10, rdx
rol rbp, 0x20
xor rdx, rax
xor eax, eax
jmp 0x140085360
mov eax, 0xff
nop dword [rax]
mov rbx, 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 rbp, r10
xor r8, rdx
rol r10, 0x10
xor r10, rbp
rol rdx, 0x20
add rbp, r8
add rdx, r10
rol r8, 0x11
xor r8, rbp
rol r10, 0x15
rol rbp, 0x20
xor r10, rdx
xor rdx, r11
xor rbp, 0xff
add rdx, r8
add rbp, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
rol rdx, 0x20
xor r10, rbp
add rbp, r8
rol r8, 0x11
add rdx, r10
xor r8, rbp
rol r10, 0x15
xor r10, rdx
rol rbp, 0x20
add rdx, r8
add rbp, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
rol rdx, 0x20
xor r10, rbp
add rbp, r8
rol r8, 0x11
add rdx, r10
xor r8, rbp
rol r10, 0x15
xor r10, rdx
rol rbp, 0x20
add rdx, r8
add rbp, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
xor r10, rbp
add rbp, r8
rol r8, 0x11
rol r10, 0x15
mov rax, rbp
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, rbp
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x140085488
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x140085470
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x1400854a4
movdqa xmm0, xmmword [rdi]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, rbx
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rsi
cmp r9, 0x10
jb 0x140085190
mov rcx, rdx
not rcx
lea rcx, [rcx + rcx*2]
lea rcx, [rdi + rcx*8]
movzx r8d, byte [rdi + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rdi + rdx], al
mov byte [rdi + r9 + 0x10], al
cmp r8b, 0xff
je 0x140085530
mov r8, qword [rsp + 0x40]
mov rax, qword [r8]
mov rdx, qword [rcx]
mov qword [r8], rdx
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov rdx, qword [rcx + 8]
mov qword [r8 + 8], rdx
mov qword [rcx + 8], rax
mov rax, qword [r8 + 0x10]
mov rdx, qword [rcx + 0x10]
mov qword [r8 + 0x10], rdx
mov qword [rcx + 0x10], rax
jmp 0x1400851f0
lea rax, [rbx - 0x10]
and rax, rsi
mov byte [rdi + rbx], 0xff
mov byte [rdi + rax + 0x10], 0xff
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rcx], xmm0
jmp 0x1400851a2
cmp rsi, 8
mov rcx, qword [rsp + 0x48]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400786c0
mov rcx, rbp
call fcn.140078700
int3