Function at 0x1800c8ad0
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 r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1801b65c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, qword [0x1801f1d70]
test rdi, rdi
je 0x1800c8b13
inc dword [rdi + 0xf4]
mov ecx, 0x5df0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x27], rax
lea rcx, [rbp - 0x29]
mov qword [rbp + 0x1f], rcx
mov qword [rbp - 0x19], rax
xor ebx, ebx
test rax, rax
je 0x1800c8b41
xor edx, edx
mov rcx, rax
call fcn.18007de20
jmp 0x1800c8b44
mov rax, rbx
mov qword [0x1801f1d70], rax
call fcn.1800818f0
test rdi, rdi
je 0x1800c8b5e
mov qword [0x1801f1d70], rdi
jmp 0x1800c8b65
mov rdi, qword [0x1801f1d70]
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbx
mov rax, qword [rdi + 0x58]
or dword [rax], 1
movups xmm0, xmmword [0x180197448]
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x180197458]
movsd qword [rbp + 7], xmm0
mov eax, dword [0x180197460]
mov dword [rbp + 0xf], eax
movzx eax, word [0x180197464]
mov word [rbp + 0x13], ax
mov r15d, dword [0x1801b6570]
movdqa xmm6, xmmword [0x180198100]
cmp byte [0x180197465], 0
je 0x1800c8d1c
mov ecx, ebx
cmp r15d, 2
jl 0x1800c8ce4
movdqa xmm4, xmmword [0x180198060]
movdqa xmm3, xmmword [0x180198470]
movdqa xmm5, xmmword [str.11116666]
movdqa xmm0, xmmword [str.00000000000000005555555555555555]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp - 5]
mov r8d, dword [rbp - 0x19]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 0x1800c8c00
cmp ecx, 0x1e
jge 0x1800c8d1c
movsxd rax, ecx
lea r8, [rbp - 9]
add r8, rax
nop
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1e
jl 0x1800c8cf0
movss xmm2, dword [0x180197ef4]
lea rdx, [rbp - 9]
mov rcx, qword [rdi + 0x58]
call fcn.1800a0b10
movups xmm0, xmmword [0x180197448]
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x180197458]
movsd qword [rbp + 7], xmm0
mov eax, dword [0x180197460]
mov dword [rbp + 0xf], eax
movzx eax, word [0x180197464]
mov word [rbp + 0x13], ax
cmp byte [0x180197465], 0
je 0x1800c8ebd
mov ecx, ebx
cmp r15d, 2
jl 0x1800c8e87
movdqa xmm4, xmmword [0x180198060]
movdqa xmm3, xmmword [0x180198470]
movdqa xmm5, xmmword [str.11116666]
movdqa xmm0, xmmword [str.00000000000000005555555555555555]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp - 5]
mov r8d, dword [rbp - 0x19]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 0x1800c8da3
cmp ecx, 0x1e
jge 0x1800c8ebd
movsxd rax, ecx
lea r8, [rbp - 9]
add r8, rax
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1e
jl 0x1800c8e91
movss xmm2, dword [0x180197ef0]
lea rdx, [rbp - 9]
mov rcx, qword [rdi + 0x58]
call fcn.1800a0b10
movups xmm0, xmmword [0x180197448]
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x180197458]
movsd qword [rbp + 7], xmm0
mov eax, dword [0x180197460]
mov dword [rbp + 0xf], eax
movzx eax, word [0x180197464]
mov word [rbp + 0x13], ax
cmp byte [0x180197465], 0
je 0x1800c906c
mov ecx, ebx
cmp r15d, 2
jl 0x1800c9034
movdqa xmm4, xmmword [0x180198060]
movdqa xmm3, xmmword [0x180198470]
movdqa xmm5, xmmword [str.11116666]
movdqa xmm0, xmmword [str.00000000000000005555555555555555]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp - 5]
mov r8d, dword [rbp - 0x19]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 0x1800c8f50
cmp ecx, 0x1e
jge 0x1800c906c
movsxd rax, ecx
lea r8, [rbp - 9]
add r8, rax
nop
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1e
jl 0x1800c9040
movss xmm2, dword [0x180197ef8]
lea rdx, [rbp - 9]
mov rcx, qword [rdi + 0x58]
call fcn.1800a0b10
movups xmm0, xmmword [0x180197448]
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x180197458]
movsd qword [rbp + 7], xmm0
mov eax, dword [0x180197460]
mov dword [rbp + 0xf], eax
movzx eax, word [0x180197464]
mov word [rbp + 0x13], ax
cmp byte [0x180197465], 0
je 0x1800c920d
mov ecx, ebx
cmp r15d, 2
jl 0x1800c91d7
movdqa xmm4, xmmword [0x180198060]
movdqa xmm3, xmmword [0x180198470]
movdqa xmm5, xmmword [str.11116666]
movdqa xmm0, xmmword [str.00000000000000005555555555555555]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp - 5]
mov r8d, dword [rbp - 0x19]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 0x1800c90f3
cmp ecx, 0x1e
jge 0x1800c920d
movsxd rax, ecx
lea r8, [rbp - 9]
add r8, rax
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1e
jl 0x1800c91e1
movss xmm2, dword [0x180197f00]
lea rdx, [rbp - 9]
mov rcx, qword [rdi + 0x58]
call fcn.1800a0b10
mov rax, qword [0x1801f1d70]
mov dword [rax + 0x3824], 0x40800000
mov dword [rax + 0x3814], 0x40800000
mov dword [rax + 0x3858], 0x40c00000
mov dword [rax + 0x3860], 0x40800000
mov dword [rax + 0x3868], 0x40800000
call fcn.18005cf80
mov rax, qword [0x1801f2060]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x150]
mov rdi, qword [0x1801f1d70]
test rdi, rdi
je 0x1800c9283
inc dword [rdi + 0xf4]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1800c92b2
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x1800c92b5
mov rax, rbx
mov qword [rdi + 0xa0], rax
lea rcx, str.imgui_impl_dx9
mov qword [rdi + 0x90], rcx
or dword [rdi + 0xc], 8
mov qword [rax], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov r14, qword [0x1801f2010]
mov rsi, qword [0x1801f1d70]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800c941e
lea rcx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800c941e
mov rax, qword [0x1801f1d70]
test rax, rax
je 0x1800c931e
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1800c934b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x1800c934e
mov rdi, rbx
mov qword [rsi + 0x98], rdi
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x88], rax
or dword [rsi + 0xc], 6
mov qword [rdi], r14
mov rax, qword [rbp + 0x1f]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x27]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1801f1d70]
mov rax, qword [rax + 0x4890]
mov rcx, qword [rax]
mov qword [rcx + 0x28], r14
mov byte [rdi + 0x2d], 1
lea rax, str.xinput1_4.dll
mov qword [rbp - 9], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 1], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 7], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0xf], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x17], rax
mov rsi, rbx
mov rcx, qword [rbp + rsi*8 - 9]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
jne 0x1800c93f2
inc rsi
cmp rsi, 5
jl 0x1800c93d4
jmp 0x1800c941e
mov qword [rdi + 0x30], r14
lea rdx, str.XInputGetCapabilities
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
movups xmm0, xmmword [str.Y__G_TZBeUPYJ_A]
movups xmmword [rbp - 9], xmm0
movzx eax, word [0x180197568]
mov word [rbp + 7], ax
cmp byte [0x180197569], 0
je 0x1800c959c
cmp r15d, 2
jl 0x1800c9564
movdqa xmm4, xmmword [0x180198060]
movdqa xmm3, xmmword [0x180198470]
movdqa xmm5, xmmword [str.11116666]
movdqa xmm0, xmmword [str.00000000000000005555555555555555]
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 5]
mov edx, dword [rbp - 0x19]
nop word [rax + rax]
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x1800c9480
cmp eax, 0x12
jge 0x1800c959c
movsxd rax, ebx
lea r8, [rbp - 9]
add r8, rax
nop
mov eax, 0x5397829d
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, bl
sub al, cl
add al, 0x30
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x12
jl 0x1800c9570
lea rax, [rbp - 9]
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 9]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1800c95b0
mov qword [rbp - 0x11], rax
lea rdx, [0x180193490]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18005eed0
mov edx, 0x24
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x18019348c]
call fcn.18005eed0
mov r8d, 4
lea rdx, [0x180196620]
mov rcx, rax
call fcn.18006ede0
lea rdx, str.e_0m
mov rcx, rax
call fcn.18005eed0
nop
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 0x19]
call fcn.18006a3c0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800f15d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret