Function at 0x1800660bc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
push rbp
push rdi
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
cmp byte [0x1800fb390], 0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
jne 0x18006636f
mov rax, qword [rcx]
lea r8, [rbp + 0x68]
lea rdx, [0x1800a6ff0]
call qword [rax + 0x38]
mov rcx, qword [rbp + 0x68]
lea rdx, [rbp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x140]
mov rax, qword [rbx]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [rax + 0x60]
mov rcx, qword [rbp + 0x10]
mov edx, 0xfffffffc
mov r8, qword [rbp + 0x78]
mov qword [rdi], rcx
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x68]
mov rcx, qword [rbp + 0x68]
lea rdx, [0x1800bff20]
and qword [rbp - 0x68], 0
or r14d, 0xffffffff
mov qword [rsi], rax
mov r8d, 0x8d08
or esi, 0xffffffff
mov dword [rsp + 0x68], r14d
lea rax, [0x1800fb208]
mov dword [rsp + 0x6c], r14d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea ebx, [rsi - 2]
mov dword [rsp + 0x70], r14d
mov dword [rbp - 0x74], ebx
mov dword [rsp + 0x74], r14d
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x7c], esi
mov dword [rbp - 0x80], r14d
mov dword [rbp - 0x7c], r14d
mov dword [rbp - 0x78], r14d
mov dword [rbp - 0x70], r14d
mov dword [rbp - 0x6c], r14d
call sub.d3dx11_43.dll_D3DX11CreateShaderResourceViewFromMemory
and qword [rsp + 0x30], 0
lea rax, [0x1800fb210]
mov rcx, qword [rbp + 0x68]
lea r9, [rbp - 0x60]
and qword [rbp - 0x30], 0
lea rdx, [0x1800c8c30]
mov qword [rsp + 0x28], rax
mov r8d, 0x31036
and qword [rsp + 0x20], 0
mov dword [rbp - 0x60], r14d
mov dword [rbp - 0x5c], r14d
mov dword [rbp - 0x58], r14d
mov dword [rbp - 0x54], r14d
mov dword [rbp - 0x50], r14d
mov dword [rbp - 0x4c], esi
mov dword [rbp - 0x48], r14d
mov dword [rbp - 0x44], r14d
mov dword [rbp - 0x40], r14d
mov dword [rbp - 0x3c], ebx
mov dword [rbp - 0x38], r14d
mov dword [rbp - 0x34], r14d
call sub.d3dx11_43.dll_D3DX11CreateShaderResourceViewFromMemory
xor ecx, ecx
call fcn.180022338
call fcn.18002466c
mov rsi, rax
mov rbx, qword [rax + 0x48]
mov rcx, rbx
mov dword [rax], 0x20
call fcn.180037614
movdqa xmm0, xmmword [0x1800a7800]
mov rcx, rax
movdqa xmm1, xmmword [0x1800a7750]
xor eax, eax
mov byte [rsp + 0x60], al
xor r8d, r8d
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
movsxd rdx, r8d
lea eax, [r8 - 0x53]
inc r8d
xor byte [rsp + rdx + 0x40], al
cmp r8d, 0x20
jb 0x18006625c
movss xmm2, dword [0x18009f94c]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rbx
mov byte [rsp + 0x60], 0
call fcn.180032ca4
mov qword [0x1800fb3a0], rax
mov rbx, qword [rsi + 0x48]
mov rcx, rbx
call fcn.180037614
movdqa xmm0, xmmword [0x1800a7800]
mov rcx, rax
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xa8deeae1
xor r8d, r8d
mov dword [rsp + 0x54], 0xeaa2afae
mov dword [rsp + 0x58], 0xa1b2b1
movsxd rdx, r8d
lea eax, [r8 - 0x53]
inc r8d
xor byte [rsp + rdx + 0x40], al
cmp r8d, 0x1b
jb 0x1800662d1
movss xmm2, dword [0x18009fa70]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rbx
mov byte [rsp + 0x5b], 0
call fcn.180032ca4
mov qword [0x1800fb3a8], rax
mov rbx, qword [rsi + 0x48]
mov rcx, rbx
call fcn.180037614
movss xmm3, dword [0x18009fa80]
lea rdx, [0x1800bf4c0]
mov qword [rsp + 0x28], rax
mov r8d, 0xa58
and qword [rsp + 0x20], 0
mov rcx, rbx
call fcn.180033074
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x68]
mov qword [0x1800fb398], rax
call fcn.1800433d0
mov rcx, qword [rdi]
call fcn.180044270
call fcn.18005ac58
call fcn.1800115d4
mov byte [0x1800fb390], 1
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret