Function at 0x140005810
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x140072010]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
mov qword [rbp + 0xf4], rdi
mov qword [rbp + 0x108], 2
mov qword [rbp + 0x120], 2
mov qword [rbp + 0xe0], rdi
mov dword [rbp + 0xf0], 0x1c
mov dword [rbp + 0xe8], 0x3c
mov dword [rbp + 0xec], 1
mov dword [rbp + 0x104], 0x20
mov rax, qword [0x1400729b0]
mov rcx, qword [rax]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0xfc], 1
mov qword [rbp + 0x118], 1
mov dword [rbp + 0x138], 0xb000
mov dword [rbp + 0x13c], 0xa000
lea rax, [0x140072870]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x50], rax
lea rax, [0x140072878]
mov qword [rsp + 0x48], rax
lea rax, [0x140072898]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x138]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov rcx, qword [0x140072898]
mov rax, qword [rcx]
lea r9, [rbp + 0xd0]
lea r8, [0x140046aa0]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x140072878]
mov rax, qword [rcx]
lea r9, [0x1400728e0]
xor r8d, r8d
mov rdx, qword [rbp + 0xd0]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0xd0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rsi, qword [0x1400728f0]
test rsi, rsi
je 0x1400059a5
inc dword [rsi + 0xf4]
mov ecx, 0x5e58
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x38], rcx
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1400059d2
xor edx, edx
mov rcx, rax
call fcn.140010280
jmp 0x1400059d5
mov rax, rdi
mov qword [0x1400728f0], rax
call fcn.140013f40
test rsi, rsi
je 0x1400059ef
mov qword [0x1400728f0], rsi
jmp 0x1400059f6
mov rsi, qword [0x1400728f0]
or dword [rsi + 8], 3
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp - 0x60], xmm6
movups xmmword [rbp - 0x50], xmm6
movups xmmword [rbp - 0x40], xmm6
movups xmmword [rbp - 0x20], xmm6
movups xmmword [rbp - 0x10], xmm6
mov qword [rbp + 0x20], rax
mov byte [rbp - 0x54], 1
mov dword [rbp - 0x1c], 0x7f7fffff
mov dword [rbp - 0x10], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0xc], ax
mov byte [rbp - 0x18], 1
mov byte [rbp - 0x40], 1
mov dword [rbp - 0x48], 2
mov dword [rbp - 0x44], 2
mov rcx, qword [0x1400729b0]
mov rcx, qword [rcx]
call fcn.14003b190
call fcn.14003b020
movups xmm0, xmmword [str.v_fkoPT_SJMc]
movups xmmword [rsp + 0x68], xmm0
movsd xmm0, qword [0x140069c58]
movsd qword [rsp + 0x78], xmm0
movzx eax, word [0x140069c60]
mov word [rbp - 0x80], ax
movzx eax, byte [0x140069c62]
mov byte [rbp - 0x7e], al
mov ecx, edi
mov eax, 5
lea edx, [rax + 0x1a]
mov r13d, dword [0x140072018]
cmp r13d, 2
jl 0x140005bea
movdqa xmm5, xmmword [0x14006b710]
movdqa xmm4, xmmword [0x14006b8a0]
movd xmm7, eax
movdqa xmm8, xmmword [0x14006b750]
movd xmm9, edx
movdqa xmm0, xmmword [0x14006b7c0]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rsp + 0x6c]
mov r8d, dword [rbp - 0x70]
nop
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm7
movdqa xmm0, xmm1
psrld xmm0, xmm9
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006b7a0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm7
movdqa xmm0, xmm1
psrld xmm0, xmm9
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006b7a0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x140005ae0
cmp ecx, 0x1b
jge 0x140005c2e
movsxd rax, ecx
lea r8, [rsp + 0x68]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
sub al, dl
add al, 0x35
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1b
jl 0x140005c00
movss xmm2, dword [0x14006b57c]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsi + 0x58]
call fcn.140035bb0
mov qword [0x140072888], rax
mov r12, qword [rsi + 0x58]
mov rax, qword [0x1400728f0]
test rax, rax
je 0x140005c61
inc dword [rax + 0xf4]
mov ecx, 0x286ac
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
lea rax, [0x140046bb0]
mov qword [0x140072a60], rax
lea r14, [r15 + 0x286ac]
mov qword [0x140072a68], r14
mov qword [0x140072a70], r15
mov qword [0x140072a78], r15
lea rbx, [0x140046bc0]
mov rcx, rbx
call fcn.1400395d0
cmp rax, rbx
je 0x140005cc9
nop dword [rax]
cmp qword [0x140072a78], r14
ja 0x140005cc9
mov rbx, rax
mov rcx, rax
call fcn.1400395d0
cmp rax, rbx
jne 0x140005cb0
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbp + 0x40], xmm0
movups xmm2, xmmword [rbp - 0x50]
movups xmm3, xmmword [rbp - 0x40]
movups xmm4, xmmword [rbp - 0x20]
movups xmm5, xmmword [rbp - 0x10]
movsd xmm1, qword [rbp + 0x20]
mov byte [rbp + 0x4c], 1
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm2
movups xmmword [rbp - 0x40], xmm3
movups xmmword [rbp - 0x30], xmm6
movups xmmword [rbp - 0x20], xmm4
movups xmmword [rbp - 0x10], xmm5
movups xmmword [rbp], xmm6
movups xmmword [rbp + 0x10], xmm6
movsd qword [rbp + 0x20], xmm1
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x58], 0x286ac
mov dword [rbp - 0x4c], 0x41b00000
lea rax, [0x140069b20]
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.1400358e0
mov qword [0x140072890], rax
movups xmm0, xmmword [str.v_fkoPT_SJMc]
movups xmmword [rsp + 0x68], xmm0
movsd xmm0, qword [0x140069c58]
movsd qword [rsp + 0x78], xmm0
movzx eax, word [0x140069c60]
mov word [rbp - 0x80], ax
movzx eax, byte [0x140069c62]
mov byte [rbp - 0x7e], al
cmp r13d, 2
jl 0x140005ec8
movdqa xmm5, xmmword [0x14006b710]
movdqa xmm4, xmmword [0x14006b8a0]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [0x14006b750]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x14006b7c0]
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x6c]
mov edx, dword [rbp - 0x70]
nop dword [rax]
movd xmm2, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006b7a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdi + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006b7a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edi, 8
mov eax, edi
lea rcx, [rcx + 8]
cmp edi, 0x18
jl 0x140005dc0
cmp eax, 0x1b
jge 0x140005f0f
movsxd rax, edi
lea r8, [rsp + 0x68]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, dil
sub al, dl
add al, 0x35
xor byte [r8], al
inc edi
lea r8, [r8 + 1]
cmp edi, 0x1b
jl 0x140005ee0
movss xmm2, dword [0x14006b56c]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsi + 0x58]
call fcn.140035bb0
mov qword [0x1400728a0], rax
mov rcx, qword [0x1400729b0]
mov rcx, qword [rcx]
call fcn.14003b190
call fcn.14003b020
mov rcx, qword [0x140072878]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov al, 1
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140042ac0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret