Function at 0x140003660
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
movaps xmmword [rax - 0x38], xmm6
mov rdi, rcx
xor r15d, r15d
mov qword [rcx + 0x58], r15
mov qword [rcx + 0x60], 0xf
mov byte [rcx + 0x48], r15b
mov qword [rcx + 0x68], r15
mov qword [rcx + 0x70], r15
mov qword [rcx + 0x78], r15
mov qword [rcx + 0xb8], r15
mov qword [rcx + 0xc0], r15
mov qword [rcx + 0xc8], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov qword [rcx + 0x20], r15
mov byte [rcx], r15b
mov qword [rcx + 0x28], r15
movdqa xmm6, xmmword [0x140121560]
movdqa xmmword [rsp + 0x70], xmm6
mov rdx, qword [0x14013a648]
test rdx, rdx
jne 0x140003747
lea ecx, [rdx + 0x10]
call fcn.140075634
mov rdx, rax
mov qword [0x14013a648], rax
add rax, 0xf
lea rcx, [rsp + 0x7f]
cmp rdx, rcx
ja 0x140003737
lea rcx, [rsp + 0x70]
cmp rax, rcx
jb 0x140003737
mov rcx, rdx
lea r9, [rsp + 0x70]
sub r9, rdx
lea r8d, [r15 + 0x10]
movzx eax, byte [r9 + rcx]
xor al, 0xd0
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140003722
jmp 0x140003747
movdqa xmm0, xmmword [0x140121550]
pxor xmm0, xmm6
movdqu xmmword [rdx], xmm0
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rdx + r8], 0
jne 0x140003751
lea rcx, [rdi + 0x48]
call fcn.1400064d0
mov byte [rdi + 1], 0
mov qword [rdi + 0x3c], 0xc8
mov dword [rdi + 0x38], 0x190
lea rax, [rbp - 0x80]
mov qword [rbp + 0x48], rax
movdqa xmm6, xmmword [0x1401213b0]
movaps xmmword [rsp + 0x30], xmm6
mov byte [rsp + 0x40], 0xd4
mov ebx, 0x11
mov rdx, qword [0x14013a558]
test rdx, rdx
jne 0x140003813
mov ecx, ebx
call fcn.140075634
mov rdx, rax
mov qword [0x14013a558], rax
mov rax, r15
lea rcx, [rdx + 0x10]
lea r8, [rsp + 0x40]
cmp rdx, r8
ja 0x1400037ce
lea r8, [rsp + 0x30]
cmp rcx, r8
jae 0x1400037e3
movdqa xmm0, xmmword [0x140121590]
pxor xmm0, xmm6
movdqu xmmword [rdx], xmm0
mov eax, 0x10
lea rcx, [rax + rdx]
lea r9, [rsp + 0x30]
sub r9, rdx
mov r8, rbx
sub r8, rax
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
xor al, 0xd4
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140003800
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov r8, rsi
inc r8
cmp byte [rdx + r8], 0
jne 0x140003826
lea rcx, [rbp - 0x80]
call fcn.1400064d0
nop
mov rax, qword [0x14013a6e0]
test rax, rax
jne 0x14000386c
lea ecx, [rax + 0xb]
call fcn.140075634
mov qword [0x14013a6e0], rax
mov dword [rax], 0x52455355
mov dword [rax + 4], 0x642e3233
mov word [rax + 8], 0x6c6c
mov byte [rax + 0xa], 0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov r8, rsi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140003880
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400064d0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.140006ee0
xor ecx, ecx
call rax
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [rdi + 0x38]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [rdi + 0x30], ecx
lea rax, [rbp - 0x40]
mov qword [rbp + 0x48], rax
movdqa xmm6, xmmword [0x1401213f0]
movaps xmmword [rsp + 0x50], xmm6
mov byte [rsp + 0x60], 0xd8
mov rdx, qword [0x14013a5f0]
test rdx, rdx
jne 0x140003946
mov rcx, rbx
call fcn.140075634
mov rdx, rax
mov qword [0x14013a5f0], rax
mov rax, r15
lea rcx, [rdx + 0x10]
lea r8, [rsp + 0x60]
cmp rdx, r8
ja 0x14000390f
lea r8, [rsp + 0x50]
cmp rcx, r8
jae 0x140003924
movdqa xmm0, xmmword [0x1401215d0]
pxor xmm0, xmm6
movdqu xmmword [rdx], xmm0
mov eax, 0x10
lea rcx, [rax + rdx]
lea r8, [rsp + 0x50]
sub r8, rdx
sub rbx, rax
movzx eax, byte [rcx + r8]
xor al, 0xd8
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x140003933
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], 0
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140003960
lea rcx, [rbp - 0x40]
call fcn.1400064d0
nop
mov rax, qword [0x14013a680]
test rax, rax
jne 0x1400039a6
lea ecx, [rax + 0xb]
call fcn.140075634
mov qword [0x14013a680], rax
mov dword [rax], 0x52455355
mov dword [rax + 4], 0x642e3233
mov word [rax + 8], 0x6c6c
mov byte [rax + 0xa], 0
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], 0
mov r8, rsi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400039c0
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400064d0
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.140006ee0
mov ecx, 1
call rax
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [rdi + 0x3c]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [rdi + 0x34], ecx
mov ecx, 0x18
call fcn.1400753a0
mov qword [rbp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, vtable.std::_Ref_count_obj2_class_CSurface_.0
mov qword [rax], rcx
lea rdx, [rax + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0xc0]
call fcn.140005cb0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140003a83
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140003a83
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140003a83
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x158]
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret