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.140019cd0
xor ecx, ecx
call fcn.140019810
call fcn.14001c310
mov r8d, ebx
or dword [rax], 3
cmp dword [0x14008f258], 2
movups xmm0, xmmword [str.u_rdnSUXRIL]
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 0x140005c3b
movdqa xmm0, xmmword [0x140059590]
lea rcx, [rbp - 0x1c]
movdqa xmm4, xmmword [0x140059550]
movdqa xmm3, xmmword [0x1400596c0]
movdqa xmm5, xmmword [0x140059570]
movdqa xmmword [rbp - 0x80], xmm0
mov edx, dword [rbp - 0x80]
movaps xmmword [rsp + 0x110], xmm6
movdqa xmm6, xmmword [0x140059580]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 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
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x18
jl 0x140005b42
movaps xmm6, xmmword [rsp + 0x110]
cmp r8d, 0x1b
jge 0x140005c84
movsxd rax, r8d
lea r9, [rbp - 0x20]
add r9, rax
nop word [rax + rax]
mov eax, 0x92492493
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x36
xor byte [r9 - 1], al
cmp r8d, 0x1b
jl 0x140005c50
movss xmm2, dword [0x1400594b4]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, r10
call fcn.14002e0f0
mov rcx, qword [0x14008f5c8]
mov qword [0x14008f400], rax
call fcn.14003e730
mov rdx, qword [0x14008f5b0]
mov rcx, qword [0x14008f5a8]
call fcn.14003d790
mov rcx, qword [0x14008f5a8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140055030
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rbp
ret