Function at 0x10097f20
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10103866
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb8
mov eax, dword [0x1017d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x101ae500]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x90], eax
xor eax, eax
push str.opengl32.dll
mov dword [ebp - 0x9c], eax
call edi
mov esi, eax
test esi, esi
je 0x10097fb5
push esi
push str.___OpenGL32:_ImageBase:_0x_p_n
call fcn.100164d0
add esp, 8
push str.wglSwapBuffers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push str.___fnWglSwapBuffers:_0x_p_n
mov dword [ebp - 0x9c], eax
call fcn.100164d0
add esp, 8
push str.Begin_CreateDeviceD3D11_n
call fcn.100164d0
add esp, 4
push str.Begin_CreateWindowA_n
call fcn.100164d0
add esp, 4
push 0
call edi
xorps xmm0, xmm0
mov dword [0x101ad924], 0x30
push 0x101ad924
mov dword [0x101ad928], 0x40
mov dword [0x101ad92c], 0x10097cb0
mov dword [0x101ad930], 0
mov dword [0x101ad934], 0
mov dword [0x101ad938], eax
movups xmmword [0x101ad93c], xmm0
mov dword [0x101ad94c], 0x10172428
mov dword [0x101ad950], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x101ad938]
push 0
push 0
push 0x12c
push 0x12c
push 0x64
push 0x64
push 0xcf0000
push 0
push str.Untitled___Notepad
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 0x32
mov dword [0x101ad9d4], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Create_the_D3DDevice_n
call fcn.100164d0
add esp, 4
mov dword [ebp - 0x68], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x74], xmm0
push str.Begin_D3D11CreateDeviceAndSwapChain_n
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 0x1c
mov dword [ebp - 0x64], 0x20
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x1c], 0xb000
mov dword [ebp - 0x18], 0xa000
call fcn.100164d0
add esp, 4
lea eax, [ebp - 0x88]
push 0
push 0
push 0x101ae4f4
push 0x101ae4e8
push eax
push 7
push 2
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 0
call dword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x100982d9
cmp byte [0x10172a21], 0
movups xmm0, xmmword [str.sCWR_PrRNPYx]
mov ax, word [0x10172a20]
mov word [ebp - 0xac], ax
movups xmmword [ebp - 0xc4], xmm0
movq xmm0, qword [0x10172a18]
movq qword [ebp - 0xb4], xmm0
je 0x100982c1
xor edx, edx
cmp dword [0x101ad6e0], 2
mov dword [ebp - 0x44], edx
jl 0x10098290
movaps xmm0, xmmword [str.0000000000000000TG]
movaps xmm4, xmmword [0x10173610]
movaps xmm3, xmmword [0x10173d90]
movaps xmm5, xmmword [0x10173640]
movaps xmm6, xmmword [0x10173750]
movaps xmmword [ebp - 0x40], xmm0
mov ecx, dword [ebp - 0x40]
nop dword [eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0xc4]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + edx - 0xc4], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0xc0]
xorps xmm2, xmm0
movd dword [ebp + edx - 0xc0], xmm2
add edx, 8
cmp edx, 0x18
jl 0x100981a0
mov dword [ebp - 0x44], edx
cmp edx, 0x1a
jge 0x100982c1
nop dword [eax]
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x44]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x30
xor byte [ebp + edx - 0xc4], cl
inc edx
mov dword [ebp - 0x44], edx
cmp edx, 0x1a
jl 0x10098290
push 0x10
push 0
lea eax, [ebp - 0xc4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10098830
cmp dword [0x101ae4f4], 0
je 0x10098830
push str.___GetCurrentContext_n
call fcn.100164d0
add esp, 4
cmp dword [0x101ad8fc], 0
jne 0x10098830
push str.___CreateContext_n
call fcn.100164d0
mov esi, dword [0x101ad8fc]
add esp, 4
test esi, esi
je 0x1009831d
inc dword [esi + 0xb0]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x5bf0
call edi
lea ecx, [ebp - 0x89]
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10098358
push 0
mov ecx, eax
call fcn.10046600
jmp 0x1009835a
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x101ad8fc], eax
call fcn.1004a790
test esi, esi
je 0x10098375
mov dword [0x101ad8fc], esi
push str.___ImGui_ImplWin32_Init_n
call fcn.100164d0
mov esi, dword [0x101ad8fc]
lea eax, [ebp - 0x28]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100984a3
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100984a3
mov eax, dword [0x101ad8fc]
test eax, eax
je 0x100983bb
inc dword [eax + 0xb0]
push 0x38
call edi
mov edi, eax
add esp, 4
test edi, edi
je 0x100983d7
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x100983d9
xor edi, edi
or dword [esi + 0xc], 6
mov edx, dword [ebp - 0x90]
mov dword [esi + 0x74], edi
mov dword [esi + 0x6c], 0x10171954
xor esi, esi
mov dword [edi], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [edi + 0x10], eax
mov eax, dword [0x101ad8fc]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov dword [ebp - 0xc0], str.xinput1_4.dll
mov eax, dword [eax + 0x47a4]
mov dword [ebp - 0xbc], str.xinput1_3.dll
mov dword [ebp - 0xb8], str.xinput9_1_0.dll
mov dword [ebp - 0xb4], str.xinput1_2.dll
mov eax, dword [eax]
mov dword [ebp - 0xb0], str.xinput1_1.dll
mov dword [eax + 0x24], edx
mov byte [edi + 0x25], 1
nop word [eax + eax]
push dword [ebp + esi*4 - 0xc0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x1009847f
inc esi
cmp esi, 5
jl 0x10098460
jmp 0x100984a3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push eax
mov dword [edi + 0x28], eax
call esi
push str.XInputGetState
push dword [ebp - 0x90]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov eax, dword [0x101ad8fc]
lea edx, [ebp - 0x48]
push edx
push 0x10171924
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov eax, dword [0x101ae4f4]
mov dword [ebp - 0x48], 0
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], 0
push 0x10171944
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x10098830
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x101ae4e8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0xa0], edx
mov edx, dword [eax + 0x40]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0xa8], eax
mov eax, dword [ecx + 0x58]
mov dword [ebp - 0x94], eax
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x98], eax
mov eax, dword [ecx + 0x9c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x90], eax
call fcn.10098850
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101ad6d8]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x101ae5a0]
cmp eax, dword [esi + 4]
jle 0x100985c0
push 0x101ae5a0
call fcn.100fe88b
add esp, 4
cmp dword [0x101ae5a0], 0xffffffff
jne 0x100985c0
push 0x101ae4d8
mov edx, 0x10097d40
mov ecx, edi
call fcn.10092100
push 0x101ae5a0
call fcn.100fe83a
add esp, 4
mov eax, dword [0x101ae590]
cmp eax, dword [esi + 4]
jle 0x10098605
push 0x101ae590
call fcn.100fe88b
add esp, 4
cmp dword [0x101ae590], 0xffffffff
jne 0x10098605
mov ecx, dword [ebp - 0xa0]
mov edx, 0x10097d70
push 0x101ae4f0
call fcn.10092100
push 0x101ae590
call fcn.100fe83a
add esp, 4
mov eax, dword [0x101ae594]
cmp eax, dword [esi + 4]
jle 0x1009864a
push 0x101ae594
call fcn.100fe88b
add esp, 4
cmp dword [0x101ae594], 0xffffffff
jne 0x1009864a
mov ecx, dword [ebp - 0xa4]
mov edx, 0x10097da0
push 0x101ae4ec
call fcn.10092100
push 0x101ae594
call fcn.100fe83a
add esp, 4
mov eax, dword [0x101ae588]
cmp eax, dword [esi + 4]
jle 0x1009868f
push 0x101ae588
call fcn.100fe88b
add esp, 4
cmp dword [0x101ae588], 0xffffffff
jne 0x1009868f
mov ecx, dword [ebp - 0xa8]
mov edx, 0x10097dd0
push 0x101ae4d0
call fcn.10092100
push 0x101ae588
call fcn.100fe83a
add esp, 4
mov eax, dword [0x101ae58c]
cmp eax, dword [esi + 4]
jle 0x100986d4
push 0x101ae58c
call fcn.100fe88b
add esp, 4
cmp dword [0x101ae58c], 0xffffffff
jne 0x100986d4
mov ecx, dword [ebp - 0x94]
mov edx, 0x10097cc0
push 0x101ae4dc
call fcn.10092100
push 0x101ae58c
call fcn.100fe83a
add esp, 4
mov eax, dword [0x101ae6b4]
cmp eax, dword [esi + 4]
jle 0x10098719
push 0x101ae6b4
call fcn.100fe88b
add esp, 4
cmp dword [0x101ae6b4], 0xffffffff
jne 0x10098719
mov ecx, dword [ebp - 0x98]
mov edx, 0x10097ce0
push 0x101ae4e0
call fcn.10092100
push 0x101ae6b4
call fcn.100fe83a
add esp, 4
mov eax, dword [0x101ae5a4]
cmp eax, dword [esi + 4]
jle 0x1009875e
push 0x101ae5a4
call fcn.100fe88b
add esp, 4
cmp dword [0x101ae5a4], 0xffffffff
jne 0x1009875e
mov ecx, dword [ebp - 0x90]
mov edx, 0x10097d10
push 0x101ae4d4
call fcn.10092100
push 0x101ae5a4
call fcn.100fe83a
add esp, 4
mov edi, dword [ebp - 0x9c]
push edi
push str.___OpenGL32:_fnWglSwapBuffers:_0x_p_n
call fcn.100164d0
add esp, 8
test edi, edi
je 0x100987c3
mov eax, dword [0x101ae59c]
cmp eax, dword [esi + 4]
jle 0x100987b7
push 0x101ae59c
call fcn.100fe88b
add esp, 4
cmp dword [0x101ae59c], 0xffffffff
jne 0x100987b7
push 0x101ae4e4
mov edx, 0x10097e00
mov ecx, edi
call fcn.10092100
push 0x101ae59c
call fcn.100fe83a
add esp, 4
mov edx, 1
mov ecx, edi
call fcn.100923c0
mov ecx, dword [ebp - 0x18]
mov edx, 1
call fcn.100923c0
mov ecx, dword [ebp - 0xa0]
mov edx, 1
call fcn.100923c0
mov ecx, dword [ebp - 0xa4]
mov edx, 1
call fcn.100923c0
mov ecx, dword [ebp - 0xa8]
mov edx, 1
call fcn.100923c0
mov ecx, dword [ebp - 0x94]
mov edx, 1
call fcn.100923c0
mov ecx, dword [ebp - 0x98]
mov edx, 1
call fcn.100923c0
mov ecx, dword [ebp - 0x90]
mov edx, 1
call fcn.100923c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100fe801
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret