Function at 0x1400825d0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [rcx]
xor r13d, r13d
mov r12d, r9d
mov r14d, r8d
mov rbp, rdx
mov dword [rdx], r13d
mov dword [rdx + 4], r13d
xor r9d, r9d
mov edx, 0x418
xor r8d, r8d
mov rdi, rcx
mov rsi, r13
call qword [rax + 0x220]
or r8, 0xffffffffffffffff
cmp eax, r13d
mov rbx, rax
movsxd r15, eax
je 0x140082692
lea eax, [r13 + 0x20]
mul r15
cmovo rax, r8
mov rcx, rax
call fcn.14002a48c
cmp r15, r13
mov r12d, r13d
mov rsi, rax
jle 0x140082686
lea rbp, [rax + 8]
mov r13, r15
mov r10, qword [rdi]
lea r9, [rbp - 8]
movsxd r8, r12d
mov edx, 0x417
mov rcx, rdi
call qword [r10 + 0x220]
xor byte [rbp], 4
add rbp, 0x20
add r12d, 1
sub r13, 1
jne 0x140082653
mov rbp, qword [rsp + 0xd8]
mov r12d, dword [rsp + 0xe8]
or r8, 0xffffffffffffffff
cmp ebx, r13d
jle 0x1400829c7
mov ecx, dword [rdi + 0xdc]
test cl, 2
jne 0x140082751
mov eax, ecx
and eax, 4
je 0x14008272d
test r14b, 4
je 0x1400826c0
mov r9d, dword [rdi + 0xc8]
jmp 0x14008273e
test r14b, 8
je 0x1400826ce
mov r9d, 0x7fff
jmp 0x14008273e
test r14b, 0x10
je 0x1400826d9
xor r9d, r9d
jmp 0x14008273e
cmp r12d, r8d
je 0x140082728
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_SetRectEmpty]
mov r11, qword [rdi]
mov r8d, r14d
lea rdx, [rsp + 0x58]
and r8d, 2
mov rcx, rdi
call qword [r11 + 0x280]
mov r11d, r14d
and r11d, 0x20
je 0x140082715
mov eax, dword [rsp + 0x64]
sub eax, dword [rsp + 0x5c]
jmp 0x14008271d
mov eax, dword [rsp + 0x60]
sub eax, dword [rsp + 0x58]
lea r9d, [rax + r12]
mov dword [rsp + 0x20], r11d
jmp 0x140082743
test cl, 1
jne 0x1400826b7
mov eax, r14d
and al, 2
neg al
sbb r9d, r9d
and r9d, 0x7fff
mov dword [rsp + 0x20], r13d
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call fcn.140081a24
lea rdx, [rsp + 0xd0]
mov r9d, ebx
mov r8, rsi
mov rcx, rdi
call fcn.1400818d8
test r14b, 0x40
mov rcx, qword [rax]
mov qword [rbp], rcx
je 0x1400829bf
cmp r15, r13
mov eax, dword [rdi + 0x118]
mov qword [rsp + 0x40], r13
mov r12d, r13d
mov dword [rdi + 0x118], r13d
mov dword [rsp + 0xd0], eax
jle 0x14008289d
lea rbp, [rsi + 4]
mov rcx, r15
mov rax, rbp
test byte [rax + 5], 1
je 0x1400827b6
cmp dword [rax], r13d
je 0x1400827b6
add r12d, 1
add rax, 0x20
sub rcx, 1
jne 0x1400827a7
cmp r12d, r13d
jle 0x140082895
movsxd rcx, r12d
mov eax, reloc.OLEAUT32.dll_SafeArrayGetElement
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002a48c
xor ecx, ecx
xor edx, edx
mov r14, rax
mov qword [rsp + 0x40], rax
movsxd rax, r12d
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rax
mov r12d, r13d
add r14, 8
cmp rdx, rax
jge 0x14008288a
test byte [rbp + 5], 1
je 0x140082874
cmp dword [rbp], 0
je 0x140082874
mov dword [r14 - 8], r13d
mov eax, dword [rbp]
lea r8, [rsp + 0x68]
mov dword [r14 - 4], eax
mov rax, qword [rdi]
mov edx, r13d
mov rcx, rdi
call qword [rax + 0x2e8]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.1400485cc
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
movdqu xmm5, xmmword [rsp + 0x68]
movdqu xmmword [r14], xmm5
mov rax, qword [rsp + 0x58]
add rdx, 1
add r12d, 1
add r14, 0x18
mov qword [rsp + 0x48], rdx
add rcx, 1
add r13d, 1
add rbp, 0x20
cmp rcx, r15
mov qword [rsp + 0x50], rcx
jl 0x14008280c
mov r14d, dword [rsp + 0xe0]
xor r13d, r13d
mov rbp, qword [rsp + 0xd8]
mov eax, dword [rdi + 0xdc]
test al, 1
je 0x1400828b4
test al, 4
je 0x1400828b4
mov eax, dword [rbp]
mov dword [rdi + 0xc8], eax
cmp ebx, r13d
mov ebp, r13d
jle 0x1400828da
mov r13, rsi
mov r8, r13
mov edx, ebp
mov rcx, rdi
call fcn.140081640
add ebp, 1
add r13, 0x20
cmp ebp, ebx
jl 0x1400828bf
xor r13d, r13d
cmp r12d, r13d
jle 0x1400829aa
mov r15, qword [rsp + 0x40]
movsxd r12, r12d
cmp r12, r13
jle 0x1400829a2
lea rbp, [r15 + 8]
mov edx, dword [rbp - 4]
mov rcx, rdi
call fcn.140044aec
test rax, rax
mov r13, rax
je 0x140082994
mov rcx, qword [rax + 0x40]
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r11, qword [rbp]
mov ecx, dword [rsp + 0x5c]
mov ebx, dword [rsp + 0x58]
mov rax, qword [rdi]
mov edx, dword [rbp - 8]
sub ebx, r11d
shr r11, 0x20
lea r8, [rsp + 0x58]
sub ecx, r11d
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], ecx
mov rcx, rdi
call qword [rax + 0x2e8]
mov r11d, dword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
shr rax, 0x20
lea r8d, [rbx + r11]
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayUnlock
add eax, dword [rsp + 0x5c]
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x48], r8d
mov r9, qword [rsp + 0x48]
xor edx, edx
mov rcx, r13
shr r9, 0x20
call fcn.14004538c
add rbp, 0x18
sub r12, 1
jne 0x1400828f8
mov rcx, r15
call fcn.14002a4d0
mov eax, dword [rsp + 0xd0]
mov rbp, qword [rsp + 0xd8]
mov dword [rdi + 0x118], eax
mov rcx, rsi
call fcn.14002a4d0
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_SetRectEmpty]
mov rax, qword [rdi]
mov ebx, r14d
and ebx, 2
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov r8d, ebx
call qword [rax + 0x280]
mov r11d, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x58]
sub r11d, dword [rsp + 0x64]
sub eax, dword [rsp + 0x60]
and r14d, 1
add dword [rbp + 4], r11d
add dword [rbp], eax
lea rdx, [rsp + 0xd8]
mov r9d, ebx
mov r8d, r14d
mov rcx, rdi
call fcn.140088adc
mov rax, qword [rsp + 0xd8]
cmp dword [rbp], eax
cmovg eax, dword [rbp]
mov dword [rbp], eax
mov eax, dword [rsp + 0xdc]
cmp dword [rbp + 4], eax
cmovg eax, dword [rbp + 4]
mov dword [rbp + 4], eax
mov rax, rbp
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret