Function at 0x14005d590
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 - 0x218]
sub rsp, 0x2f0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rdi, qword [0x1400a8710]
test rdi, rdi
je 0x14005d618
inc dword [rdi + 0xec]
mov ecx, 0x56a8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0xa0], rax
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x98], rcx
mov qword [rbp + 0x80], rax
xor ebx, ebx
test rax, rax
je 0x14005d650
xor edx, edx
mov rcx, rax
call fcn.140007c70
jmp 0x14005d653
mov rax, rbx
mov qword [0x1400a8710], rax
call fcn.14000fa30
test rdi, rdi
je 0x14005d66d
mov qword [0x1400a8710], rdi
jmp 0x14005d674
mov rdi, qword [0x1400a8710]
xor ecx, ecx
call fcn.1400281d0
mov rax, qword [0x1400a8710]
mov qword [rax + 0x3834], 0x3f800000
mov dword [rax + 0x383c], 0x40400000
mov dword [rax + 0x380c], ebx
mov dword [rax + 0x3870], 0x40400000
mov dword [rax + 0x386c], 0x40a00000
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp - 0x10], xmm6
movups xmmword [rbp], xmm6
movups xmmword [rbp + 0x10], xmm6
movups xmmword [rbp + 0x20], xmm6
movups xmmword [rbp + 0x30], xmm6
movups xmmword [rbp + 0x40], xmm6
mov qword [rbp + 0x70], rax
mov byte [rbp - 4], 1
mov dword [rbp + 0x34], 0x7f7fffff
mov eax, 0xffff
mov word [rbp + 0x44], ax
mov byte [rbp + 0x10], 0
mov dword [rbp + 8], 5
mov dword [rbp + 0xc], 5
mov dword [rbp + 0x40], 0x3f99999a
lea r12, [0x1400772d8]
mov qword [rbp + 0x28], r12
movups xmm12, xmmword [rbp - 0x10]
movups xmmword [rbp + 0xb0], xmm12
movups xmm13, xmmword [rbp]
movups xmmword [rbp + 0xc0], xmm13
movups xmm14, xmmword [rbp + 0x10]
movups xmmword [rbp + 0xd0], xmm14
movups xmm15, xmmword [rbp + 0x20]
movups xmmword [rbp + 0xe0], xmm15
movups xmm8, xmmword [rbp + 0x30]
movups xmmword [rbp + 0xf0], xmm8
movups xmm7, xmmword [rbp + 0x40]
movups xmmword [rbp + 0x100], xmm7
movups xmmword [rbp + 0x110], xmm6
movups xmmword [rbp + 0x120], xmm6
movsd xmm9, qword [rbp + 0x70]
movsd qword [rbp + 0x130], xmm9
lea r13, [0x140081120]
mov qword [rbp + 0xb0], r13
mov dword [rbp + 0xb8], 0x26368
mov dword [rbp + 0xc4], 0x41800000
mov qword [rbp + 0xe8], r12
lea rdx, [rbp + 0xb0]
mov rcx, qword [rdi + 0x50]
call fcn.14002e720
mov r14, qword [rdi + 0x50]
mov qword [rbp + 0x88], rbx
lea r8, [rbp + 0x88]
lea r15, str.C:WindowsFonts_arialbd.ttf
mov rcx, r15
call fcn.140009830
mov rsi, rax
test rax, rax
je 0x14005d93f
movaps xmm2, xmm12
movups xmmword [rbp + 0xb0], xmm2
movaps xmm3, xmm13
movups xmmword [rbp + 0xc0], xmm3
movaps xmm4, xmm14
movups xmmword [rbp + 0xd0], xmm4
movaps xmm5, xmm15
movups xmmword [rbp + 0xe0], xmm5
movups xmmword [rbp + 0xf0], xmm8
movaps xmm9, xmm7
movups xmmword [rbp + 0x100], xmm7
xorps xmm10, xmm10
movups xmmword [rbp + 0x110], xmm10
xorps xmm11, xmm11
movups xmmword [rbp + 0x120], xmm11
movsd xmm0, qword [rbp + 0x70]
movsd qword [rbp + 0x130], xmm0
movdqa xmm1, xmm7
psrldq xmm1, 6
movd eax, xmm1
test al, al
jne 0x14005d8e1
lea r9, [0x140076abc]
nop dword [rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x14005d877
cmp al, 0x5c
je 0x14005d877
mov r9, rcx
cmp rcx, r15
ja 0x14005d860
movsd xmm0, qword [0x140077578]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x106]
call fcn.140009510
movsd xmm0, qword [rbp + 0x130]
movups xmm11, xmmword [rbp + 0x120]
movups xmm10, xmmword [rbp + 0x110]
movups xmm9, xmmword [rbp + 0x100]
movups xmm8, xmmword [rbp + 0xf0]
movups xmm5, xmmword [rbp + 0xe0]
movups xmm4, xmmword [rbp + 0xd0]
movups xmm3, xmmword [rbp + 0xc0]
movups xmm2, xmmword [rbp + 0xb0]
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rsp + 0x70], xmm3
movups xmmword [rbp - 0x80], xmm4
movups xmmword [rbp - 0x70], xmm5
movups xmmword [rbp - 0x60], xmm8
movups xmmword [rbp - 0x50], xmm9
movups xmmword [rbp - 0x40], xmm10
movups xmmword [rbp - 0x30], xmm11
movsd qword [rbp - 0x20], xmm0
mov qword [rsp + 0x60], rsi
mov eax, dword [rbp + 0x88]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x74], 0x41980000
mov qword [rbp - 0x68], r12
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.14002e720
movups xmm8, xmmword [rbp + 0x30]
movsd xmm9, qword [rbp + 0x70]
movups xmmword [rsp + 0x60], xmm12
movups xmmword [rsp + 0x70], xmm13
movups xmmword [rbp - 0x80], xmm14
movups xmmword [rbp - 0x70], xmm15
movups xmmword [rbp - 0x60], xmm8
movups xmmword [rbp - 0x50], xmm7
movups xmmword [rbp - 0x40], xmm6
movups xmmword [rbp - 0x30], xmm6
movsd qword [rbp - 0x20], xmm9
lea rax, [0x1400a74e0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0xa28
mov dword [rsp + 0x74], 0x41c80000
mov qword [rbp - 0x68], r12
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x50]
call fcn.14002e720
mov qword [0x1400a87b0], rax
movups xmmword [rsp + 0x60], xmm12
movups xmmword [rsp + 0x70], xmm13
movups xmmword [rbp - 0x80], xmm14
movups xmmword [rbp - 0x70], xmm15
movups xmmword [rbp - 0x60], xmm8
movups xmmword [rbp - 0x50], xmm7
movups xmmword [rbp - 0x40], xmm6
movups xmmword [rbp - 0x30], xmm6
movsd qword [rbp - 0x20], xmm9
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x68], 0x26368
mov dword [rsp + 0x74], 0x41c80000
mov qword [rbp - 0x68], r12
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x50]
call fcn.14002e720
mov qword [0x1400a87c8], rax
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbx
mov r14, qword [0x1400a8748]
mov rsi, qword [0x1400a8710]
lea rcx, [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14005da38
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14005dbfd
mov eax, dword [str._FM]
movups xmm0, xmmword [str.wSZXPR]
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x38], xmm0
movzx eax, byte [0x140076f2c]
movsd xmm0, qword [0x140076f20]
mov byte [rsp + 0x54], al
movsd qword [rsp + 0x48], xmm0
cmp dword [0x140081088], 2
jl 0x14005dbb2
movdqa xmm5, xmmword [0x140077a80]
movdqa xmm4, xmmword [0x140077cb0]
movdqa xmm6, xmmword [0x140077b10]
movdqa xmm0, xmmword [str.1111111111111111]
movdqa xmmword [rbp + 0xa0], xmm0
lea rcx, [rsp + 0x3c]
mov edx, dword [rbp + 0xa0]
nop word [rax + rax]
movd xmm2, ebx
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140077b40]
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 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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140077b40]
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, 0x18
jl 0x14005dab0
cmp eax, 0x1d
jge 0x14005dbec
movsxd rax, ebx
lea r8, [rsp + 0x38]
add r8, rax
nop dword [rax]
mov eax, 0x4ec4ec4f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
sub al, cl
add al, 0x31
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1d
jl 0x14005dbc0
lea rcx, [rsp + 0x38]
call fcn.140007bb0
xor al, al
jmp 0x14005de4f
mov rax, qword [0x1400a8710]
test rax, rax
je 0x14005dc0f
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14005dc3c
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 0x14005dc3f
mov rdi, rbx
mov qword [rsi + 0x90], rdi
lea rax, [0x140075848]
mov qword [rsi + 0x80], rax
or dword [rsi + 0xc], 6
mov qword [rdi], r14
mov byte [rdi + 0x2d], 1
mov rax, qword [rbp + 0x98]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0xa0]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1400a8710]
mov rcx, qword [rax + 0x40e0]
mov rax, qword [rcx]
mov qword [rax + 0x28], r14
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x58], rax
mov rsi, rbx
mov rcx, qword [rsp + rsi*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
jne 0x14005dcee
inc rsi
cmp rsi, 5
jl 0x14005dcd0
jmp 0x14005dd1a
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
mov r15, qword [0x1400a8738]
mov r14, qword [0x1400a8720]
mov rsi, qword [0x1400a8710]
test rsi, rsi
je 0x14005dd3a
inc dword [rsi + 0xec]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14005dd7b
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 0x14005dd7e
mov rdi, rbx
mov qword [rsi + 0x98], rdi
lea rax, str.imgui_impl_dx11
mov qword [rsi + 0x88], rax
or dword [rsi + 0xc], 8
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x80], rbx
mov rax, qword [r14]
lea r8, [rbp + 0x90]
lea rdx, [0x140075818]
mov rcx, r14
call qword [rax]
test eax, eax
jne 0x14005de16
mov rcx, qword [rbp + 0x90]
mov rax, qword [rcx]
lea r8, [rbp + 0x88]
lea rdx, [0x140075828]
call qword [rax + 0x30]
test eax, eax
jne 0x14005de16
mov rcx, qword [rbp + 0x88]
mov rax, qword [rcx]
lea r8, [rbp + 0x80]
lea rdx, [0x140075838]
call qword [rax + 0x30]
test eax, eax
jne 0x14005de16
mov qword [rdi], r14
mov qword [rdi + 8], r15
mov rax, qword [rbp + 0x80]
mov qword [rdi + 0x10], rax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x14005de28
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14005de3a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
call qword [rax + 8]
mov al, 1
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14006b800
lea r11, [rsp + 0x2f0]
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]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret