Function at 0x140208a58
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 0x140208b1a
lea eax, [r13 + 0x20]
mul r15
cmovo rax, r8
mov rcx, rax
call fcn.1401f0b44
cmp r15, r13
mov r12d, r13d
mov rsi, rax
jle 0x140208b0e
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 0x140208adb
mov rbp, qword [rsp + 0xd8]
mov r12d, dword [rsp + 0xe8]
or r8, 0xffffffffffffffff
cmp ebx, r13d
jle 0x140208e4f
mov ecx, dword [rdi + 0xdc]
test cl, 2
jne 0x140208bd9
mov eax, ecx
and eax, 4
je 0x140208bb5
test r14b, 4
je 0x140208b48
mov r9d, dword [rdi + 0xc8]
jmp 0x140208bc6
test r14b, 8
je 0x140208b56
mov r9d, 0x7fff
jmp 0x140208bc6
test r14b, 0x10
je 0x140208b61
xor r9d, r9d
jmp 0x140208bc6
cmp r12d, r8d
je 0x140208bb0
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 0x140208b9d
mov eax, dword [rsp + 0x64]
sub eax, dword [rsp + 0x5c]
jmp 0x140208ba5
mov eax, dword [rsp + 0x60]
sub eax, dword [rsp + 0x58]
lea r9d, [rax + r12]
mov dword [rsp + 0x20], r11d
jmp 0x140208bcb
test cl, 1
jne 0x140208b3f
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.140207f9c
lea rdx, [rsp + 0xd0]
mov r9d, ebx
mov r8, rsi
mov rcx, rdi
call fcn.140207e50
test r14b, 0x40
mov rcx, qword [rax]
mov qword [rbp], rcx
je 0x140208e47
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 0x140208d25
lea rbp, [rsi + 4]
mov rcx, r15
mov rax, rbp
test byte [rax + 5], 1
je 0x140208c3e
cmp dword [rax], r13d
je 0x140208c3e
add r12d, 1
add rax, 0x20
sub rcx, 1
jne 0x140208c2f
cmp r12d, r13d
jle 0x140208d1d
movsxd rcx, r12d
mov eax, 0x18
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1401f0b44
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 0x140208d12
test byte [rbp + 5], 1
je 0x140208cfc
cmp dword [rbp], 0
je 0x140208cfc
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.1401fe098
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 0x140208c94
mov r14d, dword [rsp + 0xe0]
xor r13d, r13d
mov rbp, qword [rsp + 0xd8]
mov eax, dword [rdi + 0xdc]
test al, 1
je 0x140208d3c
test al, 4
je 0x140208d3c
mov eax, dword [rbp]
mov dword [rdi + 0xc8], eax
cmp ebx, r13d
mov ebp, r13d
jle 0x140208d62
mov r13, rsi
mov r8, r13
mov edx, ebp
mov rcx, rdi
call fcn.140207bb8
add ebp, 1
add r13, 0x20
cmp ebp, ebx
jl 0x140208d47
xor r13d, r13d
cmp r12d, r13d
jle 0x140208e32
mov r15, qword [rsp + 0x40]
movsxd r12, r12d
cmp r12, r13
jle 0x140208e2a
lea rbp, [r15 + 8]
mov edx, dword [rbp - 4]
mov rcx, rdi
call fcn.1401f2380
test rax, rax
mov r13, rax
je 0x140208e1c
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.1401f27e0
add rbp, 0x18
sub r12, 1
jne 0x140208d80
mov rcx, r15
call fcn.1401f0b88
mov eax, dword [rsp + 0xd0]
mov rbp, qword [rsp + 0xd8]
mov dword [rdi + 0x118], eax
mov rcx, rsi
call fcn.1401f0b88
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.140216930
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