Function at 0x140167628
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov r14, qword [0x140548838]
xor r15d, r15d
test r14, r14
je 0x14016765a
mov r14, qword [r14 + 0x98]
jmp 0x14016765d
mov r14, r15
cmp qword [r14], r15
je 0x140167799
cmp qword [r14 + 0x48], r15
je 0x140167671
call fcn.140167ae8
xor eax, eax
mov dword [rbp + 0x158], 0x375d7276
mov word [rbp + 0x15c], 0x355b
mov ecx, r15d
mov byte [rbp + 0x15e], al
lea r12d, [rax + 1]
movsxd rax, ecx
xor byte [rbp + rax + 0x158], cl
add ecx, r12d
cmp ecx, 6
jb 0x140167693
xor eax, eax
mov byte [rbp + 0x15e], r15b
mov byte [rbp + 0x154], al
mov ecx, r15d
mov dword [rbp + 0x150], 0x6d6b606d
movsxd rax, ecx
xor byte [rbp + rax + 0x150], cl
add ecx, r12d
cmp ecx, 4
jb 0x1401676c1
mov qword [rsp + 0x50], r15
lea rax, [rbp + 0x160]
mov qword [rsp + 0x48], rax
lea rcx, [0x1404ca450]
mov dword [rsp + 0x40], r15d
lea rax, [rbp + 0x158]
mov dword [rsp + 0x38], r15d
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x150]
mov byte [rbp + 0x154], r15b
mov qword [rsp + 0x28], rax
mov edx, 0x2dd
mov qword [rsp + 0x20], r15
call qword [sym.imp.D3DCompiler_43.dll_D3DCompile]
test eax, eax
js 0x140167799
mov rsi, qword [r14]
mov rcx, qword [rbp + 0x160]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140173169.0]
mov rcx, qword [rbp + 0x160]
mov rbx, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
call qword [case.0x140173169.0]
lea rdx, [r14 + 0x28]
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov r8, rbx
mov rdx, rax
mov rcx, rsi
mov rax, rdi
call qword [case.0x140173169.0]
mov rcx, qword [rbp + 0x160]
test eax, eax
je 0x1401677ad
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140173169.0]
xor al, al
add rsp, 0x210
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [0x1404ca8c8]
mov dword [rbp - 0x58], r15d
mov qword [rbp - 0x60], rax
lea rax, [0x1404ca8d8]
mov qword [rbp - 0x40], rax
lea rax, [0x1404ca8e4]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x54], 0x10
mov qword [rbp - 0x4c], r15
mov dword [rbp - 0x44], r15d
mov dword [rbp - 0x38], r15d
mov qword [rbp - 0x34], 0x10
mov qword [rbp - 0x2c], 8
mov dword [rbp - 0x24], r15d
mov dword [rbp - 0x18], r15d
mov qword [rbp - 0x14], 0x1c
mov qword [rbp - 0xc], 0x10
mov dword [rbp - 4], r15d
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140173169.0]
mov rsi, qword [r14]
mov rcx, qword [rbp + 0x160]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140173169.0]
mov rcx, qword [rbp + 0x160]
mov rbx, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
call qword [case.0x140173169.0]
lea rdx, [r14 + 0x30]
mov r8d, 3
mov qword [rsp + 0x28], rdx
mov r9, rax
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov rax, rdi
call qword [case.0x140173169.0]
mov rcx, qword [rbp + 0x160]
test eax, eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jne 0x140167793
call qword [case.0x140173169.0]
mov rcx, qword [r14]
lea r9, [r14 + 0x38]
mov dword [rsp + 0x60], 0x40
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], 2
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x6c], 0x10000
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140173169.0]
xor eax, eax
mov dword [rbp + 0x158], 0x375d7270
mov byte [rbp + 0x15e], al
mov ecx, r15d
mov word [rbp + 0x15c], 0x355b
movsxd rax, ecx
xor byte [rbp + rax + 0x158], cl
add ecx, r12d
cmp ecx, 6
jb 0x1401678f2
xor eax, eax
mov byte [rbp + 0x15e], r15b
mov byte [rbp + 0x154], al
mov ecx, r15d
mov dword [rbp + 0x150], 0x6d6b606d
movsxd rax, ecx
xor byte [rbp + rax + 0x150], cl
add ecx, r12d
cmp ecx, 4
jb 0x140167920
mov qword [rsp + 0x50], r15
lea rax, [rbp + 0x160]
mov qword [rsp + 0x48], rax
lea rcx, [0x1404ca730]
mov dword [rsp + 0x40], r15d
lea rax, [rbp + 0x158]
mov dword [rsp + 0x38], r15d
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x150]
mov byte [rbp + 0x154], r15b
mov qword [rsp + 0x28], rax
mov edx, 0x191
mov qword [rsp + 0x20], r15
call qword [sym.imp.D3DCompiler_43.dll_D3DCompile]
test eax, eax
js 0x140167799
mov rsi, qword [r14]
mov rcx, qword [rbp + 0x160]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140173169.0]
mov rcx, qword [rbp + 0x160]
mov rbx, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
call qword [case.0x140173169.0]
lea rdx, [r14 + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov r8, rbx
mov rdx, rax
mov rcx, rsi
mov rax, rdi
call qword [case.0x140173169.0]
mov rcx, qword [rbp + 0x160]
test eax, eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jne 0x140167793
call qword [case.0x140173169.0]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x108
call fcn.1403ccc50
mov rcx, qword [r14]
lea r8, [r14 + 0x60]
movdqa xmm0, xmmword [0x1404cec90]
lea rdx, [rbp]
mov dword [rbp + 8], r12d
mov dword [rbp + 0xc], 5
movdqa xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], r12d
mov byte [rbp + 0x24], 0xf
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [case.0x140173169.0]
mov rcx, qword [r14]
lea r8, [r14 + 0x58]
xorps xmm0, xmm0
mov qword [rbp - 0x80], r15
movdqu xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x60], 3
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x7c], r12d
mov dword [rsp + 0x78], r12d
mov rax, qword [rcx]
mov rax, qword [rax + 0xb0]
call qword [case.0x140173169.0]
movdqa xmm0, xmmword [0x1404cec20]
lea r8, [r14 + 0x68]
mov rcx, qword [r14]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x7c], r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x74], r12d
mov dword [rbp - 0x80], 8
movups xmm0, xmmword [rsp + 0x74]
mov dword [rsp + 0x70], r15d
movdqu xmmword [rbp - 0x7c], xmm0
mov rdx, qword [rcx]
mov rax, qword [rdx + 0xa8]
lea rdx, [rsp + 0x60]
call qword [case.0x140173169.0]
call fcn.14016743c
mov al, r12b
jmp 0x14016779b