Function at 0x1401f2f0c
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 0x1401f2fce
lea eax, [r13 + 0x20]
mul r15
cmovo rax, r8
mov rcx, rax
call fcn.1401dac8c
cmp r15, r13
mov r12d, r13d
mov rsi, rax
jle 0x1401f2fc2
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 0x1401f2f8f
mov rbp, qword [rsp + 0xd8]
mov r12d, dword [rsp + 0xe8]
or r8, 0xffffffffffffffff
cmp ebx, r13d
jle 0x1401f3303
mov ecx, dword [rdi + 0xdc]
test cl, 2
jne 0x1401f308d
mov eax, ecx
and eax, 4
je 0x1401f3069
test r14b, 4
je 0x1401f2ffc
mov r9d, dword [rdi + 0xc8]
jmp 0x1401f307a
test r14b, 8
je 0x1401f300a
mov r9d, 0x7fff
jmp 0x1401f307a
test r14b, 0x10
je 0x1401f3015
xor r9d, r9d
jmp 0x1401f307a
cmp r12d, r8d
je 0x1401f3064
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 0x1401f3051
mov eax, dword [rsp + 0x64]
sub eax, dword [rsp + 0x5c]
jmp 0x1401f3059
mov eax, dword [rsp + 0x60]
sub eax, dword [rsp + 0x58]
lea r9d, [rax + r12]
mov dword [rsp + 0x20], r11d
jmp 0x1401f307f
test cl, 1
jne 0x1401f2ff3
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.1401f244c
lea rdx, [rsp + 0xd0]
mov r9d, ebx
mov r8, rsi
mov rcx, rdi
call fcn.1401f2300
test r14b, 0x40
mov rcx, qword [rax]
mov qword [rbp], rcx
je 0x1401f32fb
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 0x1401f31d9
lea rbp, [rsi + 4]
mov rcx, r15
mov rax, rbp
test byte [rax + 5], 1
je 0x1401f30f2
cmp dword [rax], r13d
je 0x1401f30f2
add r12d, 1
add rax, 0x20
sub rcx, 1
jne 0x1401f30e3
cmp r12d, r13d
jle 0x1401f31d1
movsxd rcx, r12d
mov eax, 0x18
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1401dac8c
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 0x1401f31c6
test byte [rbp + 5], 1
je 0x1401f31b0
cmp dword [rbp], 0
je 0x1401f31b0
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.1401e8218
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 0x1401f3148
mov r14d, dword [rsp + 0xe0]
xor r13d, r13d
mov rbp, qword [rsp + 0xd8]
mov eax, dword [rdi + 0xdc]
test al, 1
je 0x1401f31f0
test al, 4
je 0x1401f31f0
mov eax, dword [rbp]
mov dword [rdi + 0xc8], eax
cmp ebx, r13d
mov ebp, r13d
jle 0x1401f3216
mov r13, rsi
mov r8, r13
mov edx, ebp
mov rcx, rdi
call fcn.1401f2068
add ebp, 1
add r13, 0x20
cmp ebp, ebx
jl 0x1401f31fb
xor r13d, r13d
cmp r12d, r13d
jle 0x1401f32e6
mov r15, qword [rsp + 0x40]
movsxd r12, r12d
cmp r12, r13
jle 0x1401f32de
lea rbp, [r15 + 8]
mov edx, dword [rbp - 4]
mov rcx, rdi
call fcn.1401dc4b8
test rax, rax
mov r13, rax
je 0x1401f32d0
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], 0x15
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.1401dc910
add rbp, 0x18
sub r12, 1
jne 0x1401f3234
mov rcx, r15
call fcn.1401dacd8
mov eax, dword [rsp + 0xd0]
mov rbp, qword [rsp + 0xd8]
mov dword [rdi + 0x118], eax
mov rcx, rsi
call fcn.1401dacd8
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.140200f00
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