Function at 0x140086f16
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rdx
mov rdi, rcx
mov eax, 0x20
call fcn.140074a70
sub rsp, rax
mov r15, rsp
mov eax, 0x40
call fcn.140074a70
sub rsp, rax
mov r12, rsp
mov rbx, qword [rcx + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x140087665
mov rsi, qword [rdi + 8]
movabs rax, 0xb63b53da2dfaeea6
lea rcx, [rax + 8]
xor rcx, rax
movabs rax, 0x1c8a5379ec278958
lea r13, [rax + 1]
xor r13, rax
add r13, rsi
mov rax, r13
shr rax, 3
movabs rdx, 0x29aade41639158e3
lea r9, [rdx + 1]
xor r9, rdx
imul r9, rax
cmp rsi, rcx
cmovb r9, rsi
mov rax, r9
shr rax, 1
cmp rbx, rax
jae 0x140087057
mov rcx, r13
shr rcx, 4
xor eax, eax
test r13b, 0xf
setne al
mov qword [rbp - 8], rdi
mov rdi, qword [rdi]
add rax, rcx
je 0x140087010
movabs r8, 0x3a3aaf83c69c5b85
xor ecx, ecx
lea rdx, [r8 + 0x10]
xor rdx, r8
movdqa xmm0, xmmword [0x14008b650]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + rcx]
por xmm1, xmm0
movdqa xmmword [rdi + rcx], xmm1
add rcx, rdx
dec rax
jne 0x140086ff6
mov qword [rbp], rbx
movabs rax, 0x92f725fc0187fde9
lea rcx, [rax + 0x10]
xor rcx, rax
cmp r13, rcx
mov qword [rbp - 0x28], r9
jae 0x1400870df
lea rcx, [rdi + 0x10]
sub rsp, 0x20
mov rdx, rdi
mov r8, r13
call fcn.140084cc0
add rsp, 0x20
test r13, r13
jne 0x1400870e9
jmp 0x140087308
movabs rax, 0xd544a2e4d30451fe
lea rcx, [rax + 1]
xor rcx, rax
add rcx, rbx
movabs rax, 0xa75b94d514f66322
lea rdx, [rax + 1]
xor rdx, rax
add r9, rdx
cmp rcx, r9
cmova r9, rcx
movabs rax, 0x3835d022b52cbf26
lea rcx, [rax + 8]
xor rcx, rax
cmp r9, rcx
jae 0x140087327
movabs rax, 0xdda0c5f8291084e2
lea rcx, [rax + 4]
xor rcx, rax
movabs rax, 0xa92edaa9ff806348
lea rdx, [rax + 4]
xor rdx, rax
movabs rax, 0x51ebb7be21d49d73
lea r8, [rax + 8]
xor r8, rax
cmp r9, rcx
cmovb r8, rdx
jmp 0x140087378
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + r13], xmm0
lea rax, [rdi - 0x10]
mov qword [rbp - 0x18], rax
movabs rax, 0xbf390bb8566b03e1
movabs r13, 0xbc10a837b2f9ac9e
movabs r12, 0xaf51024607de12cc
movabs rdx, 0x7aa7aa3d3f1b7d56
movabs r14, 0x4a2e98dc5f490b29
lea rcx, [rdx + 1]
xor rdx, rcx
lea ecx, [rax + 4]
xor ecx, eax
mov dword [rbp - 0x30], ecx
xor ebx, ebx
mov qword [rbp - 0x10], rdx
cmp byte [rdi + rbx], 0x80
jne 0x1400872f8
mov rax, rbx
mov ecx, dword [rbp - 0x30]
shl rax, cl
mov r15, rdi
sub r15, rax
add r15, 0xfffffffffffffff0
mov rax, rbx
shl rax, 4
mov rcx, qword [rbp - 0x18]
sub rcx, rax
mov qword [rbp - 0x20], rcx
mov rax, qword [rbp - 0x20]
mov r8b, byte [rax]
sub rsp, 0x20
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
call fcn.14003d8a9
add rsp, 0x20
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x1400871bd
mov r8, rcx
xor r9d, r9d
lea rdx, [r14 + 0x10]
xor rdx, r14
add r9, rdx
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [rdi + r8]
pmovmskb edx, xmm0
test edx, edx
je 0x14008719f
bsf edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x1400871d7
movdqa xmm0, xmmword [rdi]
pmovmskb edx, xmm0
bsf edx, edx
mov r8, rbx
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rsi
movabs r8, 0x214b01010e1fff48
lea rcx, [r8 + 0x10]
xor rcx, r8
cmp r9, rcx
jb 0x140087292
movabs r8, 0x2af4b8d29cf5a881
lea ecx, [r8 + 4]
xor ecx, r8d
mov r8, rdx
shl r8, cl
neg r8
add r8, rdi
add r8, 0xfffffffffffffff0
mov r9b, byte [rdi + rdx]
movabs r10, 0xb5951a77a0d77c4
lea ecx, [r10 + 0x39]
xor ecx, r10d
shr rax, cl
lea rcx, [rdx - 0x10]
and rcx, rsi
movabs r11, 0x19b4c20e96bbcd81
lea r10, [r11 + 0x10]
xor r10, r11
add r10, rcx
mov byte [rdi + rdx], al
mov byte [rdi + r10], al
cmp r9b, 0xff
je 0x1400872c7
xor eax, eax
mov cl, byte [r15 + rax]
mov dl, byte [r8 + rax]
mov byte [r15 + rax], dl
mov byte [r8 + rax], cl
lea rcx, [r13 + 1]
xor rcx, r13
add rax, rcx
lea rcx, [r12 + 0x10]
xor rcx, r12
cmp rax, rcx
jne 0x140087266
jmp 0x140087167
movabs rdx, 0x873fe867e779ac80
lea ecx, [rdx + 0x39]
xor ecx, edx
shr rax, cl
lea rcx, [rbx - 0x10]
and rcx, rsi
movabs r8, 0xd3f1914f35de5547
lea rdx, [r8 + 0x10]
xor rdx, r8
add rdx, rcx
mov byte [rdi + rbx], al
mov byte [rdi + rdx], al
jmp 0x1400872f4
lea rax, [rbx - 0x10]
and rax, rsi
movabs rdx, 0xd04646501482b640
lea rcx, [rdx + 0x10]
xor rcx, rdx
add rcx, rax
mov al, 0xff
mov byte [rdi + rbx], al
mov byte [rdi + rcx], al
movdqu xmm0, xmmword [r15]
movdqu xmmword [r8], xmm0
mov rdx, qword [rbp - 0x10]
lea rax, [rbx + rdx]
cmp rbx, rsi
mov rbx, rax
jne 0x140087138
movabs r15, 0x8000000000000001
mov rcx, qword [rbp - 0x28]
sub rcx, qword [rbp]
mov rax, qword [rbp - 8]
mov qword [rax + 0x10], rcx
jmp 0x140087651
mov rax, r9
shr rax, 0x3d
jne 0x140087665
shl r9, 3
movabs rax, 0x7f7f3d815d38d660
lea rcx, [rax + 7]
xor rcx, rax
mov rax, r9
xor edx, edx
div rcx
dec rax
bsr rcx, rax
not ecx
mov rax, 0xffffffffffffffff
shr rax, cl
movabs rcx, 0xd0e5e84a9f4e8304
lea r8, [rcx + 1]
xor r8, rcx
add r8, rax
movabs rax, 0x9dab20c4cd852227
lea rdx, [rax + 0x10]
xor rdx, rax
sub rsp, 0x20
mov rcx, r15
call fcn.14003da45
add rsp, 0x20
mov r14, qword [r15]
mov rax, r15
mov r15, qword [r15 + 8]
test r14, r14
je 0x140087651
mov qword [rbp - 8], rdi
mov rdi, qword [rax + 0x10]
mov rsi, qword [rax + 0x18]
movabs rax, 0xd9f1e161a3014827
lea r8, [rax + 0xf]
xor r8, rax
add r8, r15
sub rsp, 0x20
mov rcx, r14
mov dl, 0xff
call fcn.140085360
add rsp, 0x20
movabs rax, 0x556d21f847f373ed
lea rcx, [rax + 0x10]
xor rcx, rax
mov qword [r12 + 0x10], rcx
mov qword [r12 + 0x18], r14
mov qword [r12 + 0x20], r15
mov qword [rbp - 0x48], rdi
mov qword [r12 + 0x28], rdi
mov qword [rbp - 0x28], r12
mov qword [r12 + 0x30], rsi
mov qword [rbp], rbx
test rbx, rbx
je 0x14008758f
mov rax, qword [rbp - 8]
mov r12, qword [rax]
lea rax, [r12 - 0x10]
mov qword [rbp - 0x30], rax
movabs r13, 0xba4c5c6e2363f8a8
movabs rsi, 0x5b88204a6ffafec0
movdqa xmm0, xmmword [r12]
pmovmskb edi, xmm0
not edi
xor ebx, ebx
mov r10, qword [rbp]
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x20], r10
test di, di
jne 0x140087483
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb edi, xmm0
lea rax, [rsi + 0x10]
xor rax, rsi
add rbx, rax
cmp edi, 0xffff
je 0x140087460
not edi
bsf eax, edi
add rax, rbx
mov qword [rbp - 0x18], rax
shl rax, 4
mov rcx, qword [rbp - 0x30]
sub rcx, rax
mov r8b, byte [rcx]
sub rsp, 0x20
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
call fcn.14003d8a9
add rsp, 0x20
mov rcx, rax
and rcx, r15
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1400874e5
xor r8d, r8d
lea rdx, [r13 + 0x10]
xor rdx, r13
add r8, rdx
add rcx, r8
and rcx, r15
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb edx, xmm0
test edx, edx
je 0x1400874c7
mov r10, qword [rbp - 0x20]
mov r11, qword [rbp - 0x18]
bsf edx, edx
add rdx, rcx
and rdx, r15
cmp byte [r14 + rdx], 0
js 0x140087509
movdqa xmm0, xmmword [r14]
pmovmskb ecx, xmm0
bsf edx, ecx
lea rcx, [rdx - 0x10]
and rcx, r15
movabs r9, 0xbeb29660166ab602
lea r8, [r9 + 0x10]
xor r8, r9
add r8, rcx
movabs r9, 0x35644d2523c44384
lea ecx, [r9 + 0x39]
xor ecx, r9d
shr rax, cl
mov byte [r14 + rdx], al
mov byte [r14 + r8], al
movabs rax, 0x11cf8dfc88ddb283
lea ecx, [rax + 4]
xor ecx, eax
shl r11, cl
lea eax, [rdi - 1]
and eax, edi
mov rcx, qword [rbp - 0x10]
sub rcx, r11
movdqu xmm0, xmmword [rcx - 0x10]
movabs r8, 0xbbbf565036ae9d81
lea ecx, [r8 + 4]
xor ecx, r8d
shl rdx, cl
neg rdx
movdqu xmmword [r14 + rdx - 0x10], xmm0
dec r10
mov edi, eax
test r10, r10
jne 0x140087457
movabs rdx, 0xca3b78727701d19e
movabs r8, 0x83ae872ee2e84c61
mov rax, qword [rbp]
mov rcx, qword [rbp - 0x48]
sub rcx, rax
mov r11, qword [rbp - 0x28]
mov qword [r11 + 0x28], rcx
mov qword [r11 + 0x30], rax
xor eax, eax
lea rcx, [rdx + 1]
xor rcx, rdx
lea rdx, [r8 + 4]
xor rdx, r8
mov r10, qword [rbp - 8]
mov r8, qword [r10 + rax*8]
mov r9, qword [r11 + rax*8 + 0x18]
mov qword [r10 + rax*8], r9
mov qword [r11 + rax*8 + 0x18], r8
add rax, rcx
cmp rax, rdx
jne 0x1400875ce
mov rcx, qword [r11 + 0x20]
test rcx, rcx
je 0x140087647
mov rax, rcx
shl rax, 4
movabs rdx, 0x2fa2a7704022e441
lea r8, [rdx + 0x10]
xor r8, rdx
add r8, rax
movabs rdx, 0xaeffd0b2ed616c08
lea r9, [rdx + 0x11]
xor r9, rdx
add r9, rcx
add r9, r8
je 0x140087647
mov r8, qword [r11 + 0x18]
sub r8, rax
add r8, 0xfffffffffffffff0
mov rcx, qword [0x1400a5b60]
sub rsp, 0x20
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
add rsp, 0x20
movabs r15, 0x8000000000000001
mov rax, r15
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2