Function at 0x140005950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14008f200]
xor rax, rsp
mov qword [rbp], rax
movzx edx, byte [0x14008f39f]
xor ebx, ebx
movzx eax, dl
mov qword [rbp - 0x5c], rbx
neg al
mov qword [rbp - 0x48], 2
mov eax, ebx
mov qword [rbp - 0x30], 2
sbb ecx, ecx
mov qword [rbp - 0x70], rbx
and ecx, 0x3c
mov dword [rbp - 0x60], 0x1c
test dl, dl
mov dword [rbp - 0x68], ecx
mov edx, 1
mov dword [rbp - 0x4c], 0x20
setne al
mov qword [rbp - 0x54], 1
mov dword [rbp - 0x64], eax
xor r9d, r9d
mov rax, qword [0x14008f5c8]
xor r8d, r8d
mov qword [rbp - 0x40], rax
xor ecx, ecx
lea rax, [0x14008f5b0]
mov qword [rbp - 0x38], 1
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [0x14008f5a8]
mov qword [rsp + 0x48], rax
lea rax, [0x14008f5b8]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 0xb000
call sub.d3d11.dll_D3D11CreateDeviceAndSwapChain
mov rcx, qword [0x14008f5b8]
lea r9, [rsp + 0x68]
lea r8, [0x140058fa8]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [0x14008f5a8]
lea r9, [0x14008f5c0]
mov rdx, qword [rsp + 0x68]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x30], 2
lea rcx, str.1.88_WIP
mov qword [rsp + 0x28], 0x14
mov edx, 0x37d0
mov r9d, 8
mov qword [rsp + 0x20], 0x10
mov r8d, 0x418
call fcn.140019b80
xor ecx, ecx
call fcn.1400196c0
call fcn.14001c1c0
mov ecx, ebx
or dword [rax], 3
cmp dword [0x14008f258], 2
movups xmm0, xmmword [str.r_bocXSWNIgzRPK3]
mov r10, qword [rax + 0x48]
movzx eax, word [0x140058fd0]
movups xmmword [rbp - 0x20], xmm0
mov word [rbp - 8], ax
movsd xmm0, qword [0x140058fc8]
movzx eax, byte [0x140058fd2]
movsd qword [rbp - 0x10], xmm0
mov byte [rbp - 6], al
jl 0x140005c3e
movdqa xmm0, xmmword [0x140059590]
lea rdx, [rbp - 0x1c]
movdqa xmm4, xmmword [0x140059550]
movdqa xmm3, xmmword [0x140059680]
movdqa xmm5, xmmword [0x140059570]
movdqa xmmword [rbp - 0x80], xmm0
mov r8d, dword [rbp - 0x80]
movaps xmmword [rsp + 0x110], xmm6
movdqa xmm6, xmmword [0x140059580]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x140005b50
movaps xmm6, xmmword [rsp + 0x110]
cmp ecx, 0x1b
jge 0x140005c7f
movsxd rax, ecx
lea r8, [rbp - 0x20]
add r8, rax
nop dword [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x31
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x1b
jl 0x140005c50
movss xmm2, dword [0x1400594b4]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, r10
call fcn.14002dfa0
mov rcx, qword [0x14008f5c8]
mov qword [0x14008f400], rax
call fcn.14003e5e0
mov rdx, qword [0x14008f5b0]
mov rcx, qword [0x14008f5a8]
call fcn.14003d640
mov rcx, qword [0x14008f5a8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140054ee0
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rbp
ret