Function at 0x180025b10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov rsi, rcx
cmp qword [r8], rcx
jne 0x180025d1c
mov rdi, rdx
mov qword [rdx], rsi
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
movabs rax, 0x8000000000000000
mov qword [rdx + 0x18], rax
movzx eax, byte [rsi]
cmp eax, 2
je 0x180025b82
cmp eax, 1
jne 0x180025c0e
lea rbx, [rdi + 8]
mov rcx, qword [rsi + 8]
mov rdx, qword [r8 + 8]
call fcn.180027d90
mov qword [rbx], rax
jmp 0x180025d07
mov r14, qword [rsi + 8]
mov rsi, qword [r14 + 8]
mov qword [rdi + 0x10], rsi
mov r15, qword [r8 + 0x10]
lea r12, [r15 + 0x10]
cmp r12, rsi
je 0x180025bf0
lea rbx, [rbp + 0x58]
nop
movups xmm0, xmmword [r12]
movaps xmmword [rbp + 0x50], xmm0
mov byte [r12], 0
mov qword [r12 + 8], 0
movzx edx, byte [r12 - 0x10]
movzx eax, byte [rbp + 0x50]
mov byte [r12 - 0x10], al
mov byte [rbp + 0x50], dl
mov rax, qword [r12 - 8]
mov rcx, qword [rbp + 0x58]
mov qword [r12 - 8], rcx
mov qword [rbp + 0x58], rax
mov rcx, rbx
call fcn.18000bfb0
add r12, 0x10
cmp r12, rsi
jne 0x180025ba0
mov rsi, qword [r14 + 8]
movzx edx, byte [rsi - 0x10]
add rsi, 0xfffffffffffffff8
mov rcx, rsi
call fcn.18000bfb0
add qword [r14 + 8], 0xfffffffffffffff0
mov qword [rdi + 0x10], r15
jmp 0x180025d07
mov qword [rdi + 0x18], 1
lea ecx, [rax - 3]
cmp cl, 5
ja 0x180025e21
cmp qword [r8 + 0x18], 0
jne 0x180025eec
cmp eax, 8
je 0x180025c9e
cmp eax, 3
jne 0x180025d04
mov rbx, qword [rsi + 8]
mov rax, qword [rbx + 0x18]
cmp rax, 0x10
jb 0x180025c7d
mov rcx, qword [rbx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x180025c78
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x18002600d
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1800330b4
lea r14, [rsi + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [r14]
mov edx, 0x20
jmp 0x180025cf8
lea r14, [rsi + 8]
mov rbx, qword [rsi + 8]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180025cf0
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180025cda
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x18002600d
add rdx, 0x27
mov rcx, rax
call fcn.1800330b4
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rbx, qword [r14]
mov edx, 0x28
mov rcx, rbx
call fcn.1800330b4
mov qword [r14], 0
mov byte [rsi], 0
mov rax, rdi
add rsp, 0x100
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
cmp byte [0x1800468d6], 0
jne 0x180025ddb
mov rax, qword [0x180044b70]
movabs r9, 0x9cb9dbabce89d076
add r9, rax
movabs r10, 0x9cb9dbabce89d062
add r10, rax
movabs r11, 0x9cb9dbabce89d061
add r11, rax
mov ecx, 1
xor r8d, r8d
movabs rdi, 0x8618618618618619
lea rbx, [0x1800468b2]
mov rax, rcx
mul rdi
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul r14, rax, 0xffffffffffffffeb
mov rax, r8
mul rdi
add r14, r10
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0xffffffffffffffeb
add rax, r11
movzx eax, byte [r8 + rax]
xor al, byte [r9 + r8]
mov byte [r8 + rbx], al
movzx eax, byte [r8 + r14]
xor al, byte [r9 + r8 + 1]
mov byte [r8 + rbx + 1], al
add r8, 2
add rcx, 2
cmp r8, 0x24
jne 0x180025d70
mov byte [0x1800468d6], 1
lea rdx, [0x1800468b2]
lea rdi, [rbp + 0x50]
mov rcx, rdi
call fcn.180002210
lea rcx, [rbp - 0x60]
mov edx, 0xca
mov r8, rdi
mov r9, rsi
call fcn.1800269e0
movabs rdx, 0x9cb9dbabce89a9d0
add rdx, qword [0x180044b80]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x18002600d
mov rcx, rsi
call fcn.1800274e0
mov qword [rbp + 0x48], rax
cmp byte [0x180046909], 0
jne 0x180025fc8
mov rax, qword [0x180044b70]
movabs r8, 0x9cb9dbabce89d0fb
add r8, rax
movabs rdx, 0x9cb9dbabce89d114
add rdx, rax
movabs r9, 0x9cb9dbabce89d12d
add r9, rax
lea rcx, [0x1800468f0]
cmp r9, rcx
setbe r10b
lea r9, [0x180046909]
cmp r8, r9
setae r9b
or r9b, r10b
cmp r9b, 1
jne 0x180025f48
mov r8, qword [r8]
xor r8, qword [rdx]
mov qword [0x1800468f0], r8
movabs r8, 0x9cb9dbabce89d103
mov r8, qword [rax + r8]
movabs r10, 0x9cb9dbabce89d11c
xor r8, qword [rax + r10]
mov qword [0x1800468f8], r8
movabs r8, 0x9cb9dbabce89d10b
mov r8, qword [rax + r8]
movabs r10, 0x9cb9dbabce89d124
xor r8, qword [rax + r10]
mov qword [0x180046900], r8
mov r8d, 0x18
jmp 0x180025f4b
movabs rcx, 0x9cb9dbabce89d0aa
add rcx, qword [0x180044b70]
call fcn.180031130
lea rdx, [0x1800468d7]
lea rdi, [rbp + 0x50]
mov rcx, rdi
call fcn.180002210
lea rcx, [rbp - 0x28]
mov edx, 0xcd
mov r8, rdi
mov r9, rsi
call fcn.1800269e0
movabs rdx, 0x9cb9dbabce89a9d0
add rdx, qword [0x180044b80]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x18002600d
xor r8d, r8d
mov r10d, 1
movzx r11d, byte [rdx + r8 - 0x19]
xor r11b, byte [rdx + r8]
mov byte [r8 + rcx], r11b
inc r8
dec r10
jne 0x180025f51
test r9b, r9b
jne 0x180025fc1
movabs rdx, 0x9cb9dbabce89d117
add rax, rdx
movzx edx, byte [rax + r8 - 0x1c]
xor dl, byte [rax + r8 - 3]
mov byte [r8 + rcx], dl
movzx edx, byte [rax + r8 - 0x1b]
xor dl, byte [rax + r8 - 2]
mov byte [r8 + rcx + 1], dl
movzx edx, byte [rax + r8 - 0x1a]
xor dl, byte [rax + r8 - 1]
mov byte [r8 + rcx + 2], dl
movzx edx, byte [rax + r8 - 0x19]
xor dl, byte [rax + r8]
mov byte [r8 + rcx + 3], dl
add r8, 4
cmp r8, 0x19
jne 0x180025f79
mov byte [0x180046909], 1
lea rdx, [0x1800468f0]
lea rdi, [rbp + 0x50]
lea r8, [rbp + 0x48]
mov rcx, rdi
call fcn.180027370
lea rcx, [rbp + 0x10]
mov edx, 0x133
mov r8, rdi
mov r9, rsi
call fcn.180026f10
movabs rdx, 0x9cb9dbabce89a9d0
add rdx, qword [0x180044b98]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3