Function at 0x140056610
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.140002b90]
call fcn.14008eb60
call fcn.14008e830
test eax, eax
je 0x140056eba
mov rcx, qword [0x1401d0778]
test rcx, rcx
je 0x1400566e2
lea rdx, [0x1401cf718]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rbp + 0x198]
mov rcx, qword [0x1401d0778]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rbp + 0x198]
mov dword [0x1401cf718], eax
mov eax, dword [rbp + 0x19c]
mov dword [0x1401cf71c], eax
mov eax, dword [0x1401cf720]
mov dword [0x14013a150], eax
mov eax, dword [0x1401cf724]
mov dword [0x1401a059c], eax
mov edx, 1
mov ecx, 0x20007
call fcn.1400847b0
xor edx, edx
mov ecx, 0x20003
call fcn.1400847b0
mov edx, 1
mov ecx, 0x20008
call fcn.1400847b0
mov edx, 1
mov ecx, 0x2000a
call fcn.1400847b0
movsd xmm0, qword [str.s_A_t]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x1400c1890]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1400c1894]
mov word [rsp + 0x5c], ax
xor ebx, ebx
mov r14d, dword [0x1400f6f90]
cmp byte [0x1400c1895], bl
je 0x1400568a0
mov r8d, ebx
cmp r14d, 2
jl 0x14005685d
movdqa xmm4, xmmword [0x1400c1ec0]
movdqa xmm2, xmmword [0x1400c1c20]
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, xmmword [0x1400c1c70]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1cf0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400c1da0]
movd xmm0, dword [str.s_A_t]
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
movdqa xmm3, xmmword [0x1400c1c60]
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, xmmword [0x1400c1c70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1cf0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400c1da0]
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
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x140056870
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, dword [0x1401a059c]
mov ecx, dword [0x14013a150]
call fcn.140084f80
mov qword [0x1401ceed0], rax
test rax, rax
je 0x140056eba
mov rcx, rax
call fcn.14008e7f0
mov qword [0x1401cf730], 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 [0x1401ceed0]
call fcn.140086840
mov edx, 0x2000d
mov r8d, 1
mov rcx, qword [0x1401ceed0]
call fcn.140086840
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 [0x1401ceed0]
call fcn.1400863f0
mov rcx, qword [0x1401ceed0]
call fcn.14008f270
mov ecx, 1
call fcn.14008f400
call fcn.1400801f0
test eax, eax
jne 0x140056eba
mov dword [0x1401d07a4], 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 0x1400569aa
mov rdi, rbx
mov qword [rbp + 0xa0], rbx
jmp 0x1400569b1
mov rdi, qword [rbp + 0xa0]
test rdi, rdi
jne 0x1400569d7
mov edx, 0x18
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.cant_fopen
mov qword [rdx + rcx], rax
jmp 0x140056b2a
mov r8, rdi
lea rcx, [rbp + 0xb0]
call fcn.140045530
lea r8, [rbp + 0x194]
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0xb0]
call fcn.140045e00
mov rsi, rax
mov rcx, rdi
test rax, rax
je 0x140056b24
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 [0x1401d07a4], eax
mov eax, dword [rbp + 0x190]
mov dword [0x1401cff40], eax
mov eax, dword [rbp + 0x194]
mov dword [0x1401cf6e8], eax
jmp 0x140056b2a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [0x1401cece0]
test rdi, rdi
je 0x140056b3c
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 0x140056b70
xor edx, edx
mov rcx, rax
call fcn.140002da0
jmp 0x140056b73
mov rax, rbx
mov qword [0x1401cece0], rax
call fcn.14000a260
mov rcx, qword [0x1401ceed0]
test rdi, rdi
je 0x140056b94
mov qword [0x1401cece0], rdi
jmp 0x140056b9b
mov rdi, qword [0x1401cece0]
add rdi, 8
call fcn.14002cf00
mov eax, dword [0x1400c17c0]
mov dword [rsp + 0x58], eax
movzx eax, byte [0x1400c17c4]
movsd xmm0, qword [0x1400c17b8]
mov byte [rsp + 0x5c], al
movsd qword [rsp + 0x50], xmm0
cmp r14d, 2
jl 0x140056cd2
movdqa xmm4, xmmword [0x1400c1ec0]
movdqa xmm2, xmmword [0x1400c1c20]
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, xmmword [0x1400c1c70]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1cf0]
packuswb xmm2, xmm2
mov eax, dword [0x1400c1da0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x1400c17b8]
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
movdqa xmm3, xmmword [0x1400c1c60]
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, xmmword [0x1400c1c70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c1cf0]
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]
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, 0x35
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0xd
jl 0x140056ce0
lea rcx, [rsp + 0x50]
call fcn.14002d950
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, [0x1400c1450]
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.140027980
mov qword [0x1401d0790], 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.140027980
mov qword [0x1401d0798], 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.140027980
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14009ab60
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