Function at 0x140046760
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x14005a010]
xor rax, rsp
mov qword [rbp - 9], rax
mov r14, rcx
mov rbx, qword [0x14005c168]
test rbx, rbx
je 0x1400467ae
inc dword [rbx + 0xf4]
mov ecx, 0x5dd8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x19], rax
lea rcx, [rsp + 0x30]
mov qword [rbp - 0x21], rcx
mov qword [rbp - 0x39], rax
xor r12d, r12d
test rax, rax
je 0x1400467de
xor edx, edx
mov rcx, rax
call fcn.14000ef30
jmp 0x1400467e1
mov rax, r12
mov qword [0x14005c168], rax
call fcn.140012940
test rbx, rbx
je 0x1400467fb
mov qword [0x14005c168], rbx
jmp 0x140046802
mov rbx, qword [0x14005c168]
mov dword [rbx + 0x38a8], 0x3f666666
mov dword [rbx + 0x38ac], 0x3f666666
mov dword [rbx + 0x38b0], 0x3f666666
mov dword [rbx + 0x38b4], 0x3f666666
mov dword [rbx + 0x38b8], 0x3f19999a
mov dword [rbx + 0x38bc], 0x3f19999a
mov dword [rbx + 0x38c0], 0x3f19999a
mov dword [rbx + 0x38c4], 0x3f800000
mov dword [rbx + 0x38c8], 0x3db851ec
mov dword [rbx + 0x38cc], 0x3db851ec
mov dword [rbx + 0x38d0], 0x3e19999a
mov dword [rbx + 0x38d4], 0x3f800000
mov dword [rbx + 0x38e8], 0x3d4ccccd
mov dword [rbx + 0x38ec], 0x3d4ccccd
mov dword [rbx + 0x38f0], 0x3dcccccd
mov dword [rbx + 0x38f4], 0x3f59999a
mov dword [rbx + 0x38f8], 0x3f333333
mov dword [rbx + 0x38fc], 0x3f333333
mov dword [rbx + 0x3900], 0x3f333333
mov qword [rbx + 0x3904], 0x3f266666
mov qword [rbx + 0x390c], r12
mov qword [rbx + 0x3914], r12
mov dword [rbx + 0x391c], r12d
mov dword [rbx + 0x3920], 0x3c23d70a
mov dword [rbx + 0x3924], 0x3f800000
mov dword [rbx + 0x3928], 0x3f666666
mov dword [rbx + 0x392c], 0x3f4ccccd
mov dword [rbx + 0x3930], 0x3f4ccccd
mov dword [rbx + 0x3934], 0x3ecccccd
mov dword [rbx + 0x3938], 0x3f666666
mov dword [rbx + 0x393c], 0x3f266666
mov dword [rbx + 0x3940], 0x3f266666
mov qword [rbx + 0x3944], 0x3ee66666
mov qword [rbx + 0x394c], r12
mov qword [rbx + 0x3954], 0x3f547ae1
mov dword [rbx + 0x3968], 0x3ecccccd
mov dword [rbx + 0x396c], 0x3ecccccd
mov dword [rbx + 0x3970], 0x3f4ccccd
mov dword [rbx + 0x3974], 0x3e4ccccd
mov qword [rbx + 0x395c], r12
mov dword [rbx + 0x3964], 0x3f5eb852
mov dword [rbx + 0x3978], 0x3c23d70a
mov dword [rbx + 0x397c], 0x3c23d70a
mov dword [rbx + 0x3980], 0x3ca3d70a
mov dword [rbx + 0x3984], 0x3f4ccccd
mov dword [rbx + 0x3988], 0x3e4ccccd
mov dword [rbx + 0x398c], 0x3e800000
mov dword [rbx + 0x3990], 0x3e99999a
mov dword [rbx + 0x3994], 0x3f19999a
mov dword [rbx + 0x3998], 0x3f0ccccd
mov dword [rbx + 0x399c], 0x3f07ae14
mov dword [rbx + 0x39a0], 0x3f0ccccd
mov dword [rbx + 0x39a4], 0x3f028f5c
mov dword [rbx + 0x39a8], 0x3f0f5c29
mov dword [rbx + 0x39ac], 0x3f0f5c29
mov dword [rbx + 0x39b0], 0x3f0f5c29
mov dword [rbx + 0x39b4], 0x3f800000
mov dword [rbx + 0x39b8], 0x3f0f5c29
mov dword [rbx + 0x39bc], 0x3f0f5c29
mov dword [rbx + 0x39c0], 0x3f0f5c29
mov dword [rbx + 0x39c4], 0x3f68f5c3
mov dword [rbx + 0x39c8], 0x3f666666
mov dword [rbx + 0x39cc], 0x3f666666
mov dword [rbx + 0x39d0], 0x3f666666
mov dword [rbx + 0x39d4], 0x3f547ae1
mov dword [rbx + 0x39d8], 0x3f333333
mov dword [rbx + 0x39dc], 0x3f333333
mov dword [rbx + 0x39e0], 0x3f333333
mov dword [rbx + 0x39e4], 0x3f1eb852
mov dword [rbx + 0x39e8], 0x3e99999a
mov dword [rbx + 0x39ec], 0x3e99999a
mov dword [rbx + 0x39f0], 0x3e99999a
mov dword [rbx + 0x39f4], 0x3f570a3d
mov dword [rbx + 0x39f8], 0x3ef5c28f
mov dword [rbx + 0x39fc], 0x3f3851ec
mov dword [rbx + 0x3a00], 0x3f63d70a
mov dword [rbx + 0x3a04], 0x3efae148
mov dword [rbx + 0x3a08], 0x3f000000
mov dword [rbx + 0x3a0c], 0x3f30a3d7
mov dword [rbx + 0x3a10], 0x3f7d70a4
mov dword [rbx + 0x3a14], 0x3f2e147b
mov dword [rbx + 0x3a18], 0x3f4ccccd
mov dword [rbx + 0x3a1c], 0x3f000000
mov dword [rbx + 0x3a20], 0x3f000000
mov dword [rbx + 0x3a24], 0x3f800000
mov dword [rbx + 0x3a28], 0x3e99999a
mov dword [rbx + 0x3a2c], 0x3f30a3d7
mov dword [rbx + 0x3a30], 0x3f800000
mov dword [rbx + 0x3a34], 0x3f07ae14
mov dword [rbx + 0x3a38], 0x3ee147ae
mov dword [rbx + 0x3a3c], 0x3f1c28f6
mov dword [rbx + 0x3a40], 0x3f5c28f6
mov dword [rbx + 0x3a44], 0x3f800000
mov dword [rbx + 0x3a48], 0x3ec28f5c
mov dword [rbx + 0x3a4c], 0x3f1eb852
mov dword [rbx + 0x3a50], 0x3f547ae1
mov dword [rbx + 0x3a54], 0x3f800000
mov dword [rbx + 0x3a88], 0x3f800000
mov dword [rbx + 0x3a8c], 0x3f800000
mov dword [rbx + 0x3a90], 0x3f800000
mov dword [rbx + 0x3a94], 0x3f59999a
mov dword [rbx + 0x3a98], 0x3f800000
mov dword [rbx + 0x3a9c], 0x3f800000
mov dword [rbx + 0x3aa0], 0x3f800000
mov dword [rbx + 0x3aa4], 0x3f19999a
mov dword [rbx + 0x3aa8], 0x3f800000
mov dword [rbx + 0x3aac], 0x3f800000
mov dword [rbx + 0x3ab0], 0x3f800000
mov dword [rbx + 0x3ab4], 0x3f666666
mov dword [rbx + 0x3b08], 0x3f800000
mov dword [rbx + 0x3b0c], 0x3f800000
mov dword [rbx + 0x3b10], 0x3f800000
mov dword [rbx + 0x3b14], 0x3f800000
mov dword [rbx + 0x3b18], 0x3f666666
mov qword [rbx + 0x3b1c], 0x3f333333
mov dword [rbx + 0x3b24], 0x3f800000
mov dword [rbx + 0x3b28], 0x3f666666
mov qword [rbx + 0x3b2c], 0x3f333333
mov dword [rbx + 0x3b34], 0x3f800000
mov dword [rbx + 0x3b38], 0x3f800000
mov qword [rbx + 0x3b3c], 0x3f19999a
mov dword [rbx + 0x3b44], 0x3f800000
mov qword [rbx + 0x3b98], r12
mov dword [rbx + 0x3ba0], 0x3f800000
mov dword [rbx + 0x3ba4], 0x3eb33333
movups xmm0, xmmword [str.q_thb_YVMH_QQ42]
movups xmmword [rsp + 0x38], xmm0
movsd xmm0, qword [0x140052948]
movsd qword [rbp - 0x71], xmm0
mov eax, dword [0x140052950]
mov dword [rbp - 0x69], eax
movzx eax, byte [0x140052954]
mov byte [rbp - 0x65], al
mov ecx, r12d
cmp dword [0x14005a018], 2
jl 0x140046e60
movdqa xmm5, xmmword [0x140052c30]
movdqa xmm4, xmmword [0x140052d60]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x140052cb0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x140052d20]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp - 0x7d]
mov r8d, dword [rbp - 0x19]
nop dword [rax]
nop dword [rax + rax]
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
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 [0x140052d10]
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
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 [0x140052d10]
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 0x140046d60
cmp ecx, 0x1d
jge 0x140046e9c
movsxd rax, ecx
lea r8, [rsp + 0x38]
add r8, rax
nop dword [rax + 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, 0x32
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1d
jl 0x140046e70
movss xmm2, dword [0x140052b44]
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 0x58]
call fcn.1400336c0
mov rsi, qword [r14]
mov rdi, qword [0x14005c168]
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140046ffa
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140046ffa
mov rax, qword [0x14005c168]
test rax, rax
je 0x140046ef2
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140046f1f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
jmp 0x140046f22
mov rbx, r12
mov qword [rdi + 0x98], rbx
lea rax, [0x140052628]
mov qword [rdi + 0x88], rax
or dword [rdi + 0xc], 6
mov qword [rbx], rsi
mov rax, qword [rbp - 0x21]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp - 0x19]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x14005c168]
mov rcx, qword [rax + 0x4878]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
mov byte [rbx + 0x2d], 1
lea rax, str.xinput1_4.dll
mov qword [rbp - 0x61], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x59], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x51], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x49], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x41], rax
mov rdi, r12
nop dword [rax + rax]
mov rcx, qword [rbp + rdi*8 - 0x61]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140046fce
inc rdi
cmp rdi, 5
jl 0x140046fb0
jmp 0x140046ffa
mov qword [rbx + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
mov r15, qword [r14 + 0x60]
mov rsi, qword [r14 + 0x58]
mov rdi, qword [0x14005c168]
test rdi, rdi
je 0x140047014
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140047055
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov dword [rax + 0x70], 0x1388
mov dword [rax + 0x74], 0x2710
jmp 0x140047058
mov rbx, r12
mov qword [rdi + 0xa0], rbx
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
or dword [rdi + 0xc], 8
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x39], r12
mov rax, qword [rsi]
lea r8, [rbp - 0x31]
lea rdx, [0x1400525f8]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x1400470d5
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
lea r8, [rbp - 0x29]
lea rdx, [0x140052608]
call qword [rax + 0x30]
test eax, eax
jne 0x1400470d5
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
lea r8, [rbp - 0x39]
lea rdx, [0x140052618]
call qword [rax + 0x30]
test eax, eax
jne 0x1400470d5
mov qword [rbx], rsi
mov qword [rbx + 8], r15
mov rax, qword [rbp - 0x39]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400470e4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400470f3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400499d0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret