Function at 0x1400565f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x238]
sub rsp, 0x330
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
movaps xmmword [rax - 0x78], xmm12
movaps xmmword [rax - 0x88], xmm13
mov rax, qword [0x1400f6f40]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
lea rcx, [fcn.140002a40]
call fcn.14008eaa0
call fcn.14008e770
test eax, eax
je 0x140056eac
mov rcx, qword [0x1401d0758]
test rcx, rcx
je 0x1400566c2
lea rdx, [0x1401cf700]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rbp + 0x198]
mov rcx, qword [0x1401d0758]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rbp + 0x198]
mov dword [0x1401cf700], eax
mov eax, dword [rbp + 0x19c]
mov dword [0x1401cf704], eax
mov eax, dword [0x1401cf708]
mov dword [0x14013a150], eax
mov eax, dword [0x1401cf70c]
mov dword [0x1401a059c], eax
mov edx, 1
mov ecx, 0x20007
call fcn.1400846f0
xor edx, edx
mov ecx, 0x20003
call fcn.1400846f0
mov edx, 1
mov ecx, 0x20008
call fcn.1400846f0
mov edx, 1
mov ecx, 0x2000a
call fcn.1400846f0
movsd xmm0, qword [0x1400c14e0]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x1400c14e8]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1400c14ec]
mov word [rsp + 0x5c], ax
xor ebx, ebx
mov r14d, dword [0x1400f6f90]
cmp byte [0x1400c14ed], bl
je 0x140056883
mov r8d, ebx
cmp r14d, 2
jl 0x140056845
movdqa xmm4, xmmword [0x1400c1f10]
movdqa xmm2, xmmword [0x1400c1c90]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c1ce0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1d60]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.3333333333333333]
movd xmm0, dword [0x1400c14e0]
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
movdqa xmm3, xmmword [0x1400c1cd0]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c1ce0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1d60]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.3333333333333333]
movd xmm0, dword [rsp + 0x54]
xorps xmm2, xmm0
movd dword [rsp + 0x54], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
mov eax, 0x8d3dcb09
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x140056850
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, dword [0x1401a059c]
mov ecx, dword [0x14013a150]
call fcn.140084ec0
mov qword [0x1401ceec0], rax
test rax, rax
je 0x140056eac
mov rcx, rax
call fcn.14008e730
mov qword [0x1401cf710], rax
mov edx, 0xffffffec
mov r8d, 0x800a0
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongA]
xor r8d, r8d
mov edx, 0x20005
mov rcx, qword [0x1401ceec0]
call fcn.140086780
mov edx, 0x2000d
mov r8d, 1
mov rcx, qword [0x1401ceec0]
call fcn.140086780
mov eax, dword [0x1401a059c]
inc eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
mov eax, dword [0x14013a150]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1401ceec0]
call fcn.140086330
mov rcx, qword [0x1401ceec0]
call fcn.14008f1b0
mov ecx, 1
call fcn.14008f340
call fcn.140080130
test eax, eax
jne 0x140056eac
mov dword [0x1401d078c], ebx
mov dword [rbp + 0x190], ebx
mov dword [rbp + 0x194], ebx
lea r8, [0x1400ba6e4]
lea rdx, str.C:logo.png
lea rcx, [rbp + 0xa0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x14005698d
mov rdi, rbx
mov qword [rbp + 0xa0], rbx
jmp 0x140056994
mov rdi, qword [rbp + 0xa0]
test rdi, rdi
jne 0x1400569ba
mov edx, 0x18
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.cant_fopen
mov qword [rdx + rcx], rax
jmp 0x140056b0d
mov r8, rdi
lea rcx, [rbp + 0xb0]
call fcn.140045400
lea r8, [rbp + 0x194]
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0xb0]
call fcn.140045cd0
mov rsi, rax
mov rcx, rdi
test rax, rax
je 0x140056b07
mov edx, dword [rbp + 0x170]
sub edx, dword [rbp + 0x178]
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [rbp + 0x198]
mov ecx, 1
call qword [sym.imp.OPENGL32.dll_glGenTextures]
mov edx, dword [rbp + 0x198]
mov ecx, 0xde1
call qword [sym.imp.OPENGL32.dll_glBindTexture]
mov edx, 0x2801
mov ecx, 0xde1
mov r8d, 0x2601
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov edx, 0x2800
mov ecx, 0xde1
mov r8d, 0x2601
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov edx, 0x2802
mov ecx, 0xde1
mov r8d, 0x812f
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
mov edx, 0x2803
mov ecx, 0xde1
mov r8d, 0x812f
call qword [sym.imp.OPENGL32.dll_glTexParameteri]
xor edx, edx
mov ecx, 0xcf2
call qword [sym.imp.OPENGL32.dll_glPixelStorei]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0x1401
mov dword [rsp + 0x30], 0x1908
mov dword [rsp + 0x28], ebx
mov eax, dword [rbp + 0x194]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x190]
xor edx, edx
mov ecx, 0xde1
mov r8d, 0x1908
call qword [sym.imp.OPENGL32.dll_glTexImage2D]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rbp + 0x198]
mov dword [0x1401d078c], eax
mov eax, dword [rbp + 0x190]
mov dword [0x1401cff20], eax
mov eax, dword [rbp + 0x194]
mov dword [0x1401cf6d8], eax
jmp 0x140056b0d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [0x1401cecd0]
test rdi, rdi
je 0x140056b1f
inc dword [rdi + 0xf4]
mov ecx, 0x5588
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x90], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x98], rcx
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140056b53
xor edx, edx
mov rcx, rax
call fcn.140002c50
jmp 0x140056b56
mov rax, rbx
mov qword [0x1401cecd0], rax
call fcn.14000a110
mov rcx, qword [0x1401ceec0]
test rdi, rdi
je 0x140056b77
mov qword [0x1401cecd0], rdi
jmp 0x140056b7e
mov rdi, qword [0x1401cecd0]
add rdi, 8
call fcn.14002cdd0
mov eax, dword [0x1400c1508]
mov dword [rsp + 0x58], eax
movzx eax, byte [0x1400c150c]
movsd xmm0, qword [0x1400c1500]
mov byte [rsp + 0x5c], al
movsd qword [rsp + 0x50], xmm0
cmp r14d, 2
jl 0x140056cbd
movdqa xmm4, xmmword [0x1400c1f10]
movdqa xmm2, xmmword [0x1400c1c90]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c1ce0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1d60]
packuswb xmm2, xmm2
mov eax, dword [str.3333333333333333]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x1400c1500]
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
movdqa xmm3, xmmword [0x1400c1cd0]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c1ce0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1d60]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x54]
xorps xmm2, xmm1
movd dword [rsp + 0x54], xmm2
mov ebx, 8
movsxd rax, ebx
lea r8, [rsp + 0x50]
add r8, rax
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, bl
sub al, cl
add al, 0x33
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0xd
jl 0x140056cd0
lea rcx, [rsp + 0x50]
call fcn.14002d820
xorps xmm13, xmm13
xor eax, eax
movups xmmword [rbp], xmm13
movups xmmword [rbp + 0x10], xmm13
movups xmmword [rbp + 0x20], xmm13
movups xmmword [rbp + 0x30], xmm13
movups xmmword [rbp + 0x40], xmm13
movups xmmword [rbp + 0x50], xmm13
mov qword [rbp + 0x80], rax
mov byte [rbp + 0xc], 1
mov dword [rbp + 0x44], 0x7f7fffff
mov eax, 0xffff
mov word [rbp + 0x54], ax
mov byte [rbp + 0x20], 0
mov dword [rbp + 0x18], 5
mov dword [rbp + 0x1c], 5
mov dword [rbp + 0x50], 0x3f99999a
lea rbx, [0x1400c1460]
mov qword [rbp + 0x38], rbx
movups xmm12, xmmword [rbp]
movups xmmword [rsp + 0x70], xmm12
movups xmm11, xmmword [rbp + 0x10]
movups xmmword [rbp - 0x80], xmm11
movups xmm10, xmmword [rbp + 0x20]
movups xmmword [rbp - 0x70], xmm10
movups xmm9, xmmword [rbp + 0x30]
movups xmmword [rbp - 0x60], xmm9
movups xmm8, xmmword [rbp + 0x40]
movups xmmword [rbp - 0x50], xmm8
movups xmm7, xmmword [rbp + 0x50]
movups xmmword [rbp - 0x40], xmm7
movups xmmword [rbp - 0x30], xmm13
movups xmmword [rbp - 0x20], xmm13
movsd xmm6, qword [rbp + 0x80]
movsd qword [rbp - 0x10], xmm6
lea rax, [0x1400f6fe0]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x41d7c
mov dword [rbp - 0x7c], 0x41700000
mov qword [rbp - 0x58], rbx
lea rdx, [rsp + 0x70]
mov rcx, qword [rdi + 0x50]
call fcn.140027820
mov qword [0x1401d0778], rax
movups xmmword [rsp + 0x70], xmm12
movups xmmword [rbp - 0x80], xmm11
movups xmmword [rbp - 0x70], xmm10
movups xmmword [rbp - 0x60], xmm9
movups xmmword [rbp - 0x50], xmm8
movups xmmword [rbp - 0x40], xmm7
movups xmmword [rbp - 0x30], xmm13
movups xmmword [rbp - 0x20], xmm13
movsd qword [rbp - 0x10], xmm6
lea rax, [0x14013a190]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x421a8
mov dword [rbp - 0x7c], 0x41880000
mov qword [rbp - 0x58], rbx
lea rdx, [rsp + 0x70]
mov rcx, qword [rdi + 0x50]
call fcn.140027820
mov qword [0x1401d0780], rax
movups xmmword [rsp + 0x70], xmm12
movups xmmword [rbp - 0x80], xmm11
movups xmmword [rbp - 0x70], xmm10
movups xmmword [rbp - 0x60], xmm9
movups xmmword [rbp - 0x50], xmm8
movups xmmword [rbp - 0x40], xmm7
movups xmmword [rbp - 0x30], xmm13
movups xmmword [rbp - 0x20], xmm13
movsd qword [rbp - 0x10], xmm6
lea rax, [0x1401a0b60]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x6bc
mov dword [rbp - 0x7c], 0x41880000
mov qword [rbp - 0x58], rbx
lea rdx, [rsp + 0x70]
mov rcx, qword [rdi + 0x50]
call fcn.140027820
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14009aaa0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
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]
mov rsp, r11
pop rbp
ret