Function at 0x14005c560
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x38]
sub rsp, 0x128
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rbp], rax
mov rax, qword [0x1400a8748]
xor ebx, ebx
mov qword [r11 + 8], rsi
xor r9d, r9d
mov qword [rbp - 0x30], rax
lea rsi, [0x1400a8738]
mov qword [rsp + 0x58], rsi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x50], rax
lea edx, [rbx + 1]
mov qword [r11 + 0x10], rdi
lea rax, [rbp - 0x60]
mov qword [r11 + 0x18], r14
xor r8d, r8d
mov qword [r11 - 0x18], r15
lea r14, [0x1400a8720]
mov qword [rsp + 0x48], r14
lea r15, [0x1400a8730]
mov qword [rsp + 0x40], r15
xor ecx, ecx
mov qword [rsp + 0x38], rax
lea rax, [rbp - 8]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x4c], rbx
mov qword [rbp - 0x38], 2
mov qword [rbp - 0x20], 2
mov qword [rbp - 0x60], rbx
mov dword [rbp - 0x50], 0x1c
mov dword [rbp - 0x58], 0x3c
mov dword [rbp - 0x54], 1
mov dword [rbp - 0x3c], 0x20
mov qword [rbp - 0x44], 1
mov qword [rbp - 0x28], 1
mov dword [rbp - 8], 0xb000
mov dword [rbp - 4], 0xa000
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov edi, eax
cmp eax, 0x887a0004
jne 0x14005c6af
mov qword [rsp + 0x58], rsi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x50], rax
lea edx, [rbx + 5]
mov qword [rsp + 0x48], r14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 7
lea rax, [rbp - 8]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
lea rcx, str._____DXGI_ERROR__Created_with_D3D_DRIVER_TYPE_WARP_n
mov edi, eax
call fcn.140007bb0
movaps xmmword [rsp + 0x110], xmm6
test edi, edi
mov r15, qword [rsp + 0x120]
mov r14, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
je 0x14005c877
cmp dword [0x140081088], 2
movups xmm0, xmmword [str.uWE_VS]
movzx eax, byte [0x140076e10]
mov byte [rsp + 0x70], al
movups xmmword [rsp + 0x60], xmm0
jl 0x14005c834
movdqa xmm0, xmmword [str.1111111111111111]
lea rcx, [rsp + 0x64]
movdqa xmm5, xmmword [0x140077a80]
movdqa xmm4, xmmword [0x140077cb0]
movdqa xmm6, xmmword [0x140077b10]
movdqa xmmword [rbp - 0x80], xmm0
mov edx, dword [rbp - 0x80]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140077b40]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140077b40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x14005c730
cmp eax, 0x11
jge 0x14005c86d
movsxd rax, ebx
lea r8, [rsp + 0x60]
add r8, rax
nop
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
inc ebx
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp ebx, 0x11
jl 0x14005c840
lea rcx, [rsp + 0x60]
jmp 0x14005ca82
mov rcx, qword [0x1400a8730]
lea r9, [rbp - 0x70]
mov qword [rbp - 0x70], rbx
lea r8, [0x140076fa8]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x14005c8c6
mov rcx, qword [0x1400a8720]
lea r9, [0x1400a8750]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
jmp 0x14005ca89
cmp byte [0x140077345], bl
movups xmm0, xmmword [str.j_f_ri]
mov eax, dword [0x140077340]
mov dword [rsp + 0x78], eax
movzx eax, word [0x140077344]
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x7c], ax
movsd xmm0, qword [0x140077338]
movsd qword [rsp + 0x70], xmm0
je 0x14005ca7d
cmp dword [0x140081088], 2
jl 0x14005ca44
movdqa xmm0, xmmword [str.1111111111111111]
lea rcx, [rsp + 0x64]
movdqa xmm5, xmmword [0x140077a80]
movdqa xmm4, xmmword [0x140077cb0]
movdqa xmm6, xmmword [0x140077b10]
movdqa xmmword [rbp - 0x80], xmm0
mov edx, dword [rbp - 0x80]
nop dword [rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140077b40]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140077b40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x18
jl 0x14005c940
cmp eax, 0x1e
jge 0x14005ca7d
movsxd rax, ebx
lea r8, [rsp + 0x60]
add r8, rax
nop
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
inc ebx
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp ebx, 0x1e
jl 0x14005ca50
lea rcx, [rsp + 0x60]
call fcn.140007bb0
xor al, al
movaps xmm6, xmmword [rsp + 0x110]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14006b800
add rsp, 0x128
pop rbx
pop rbp
ret