Function at 0x140058330
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
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 [0x140197f80]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
lea rcx, [fcn.140003d70]
call fcn.1400acfb0
call fcn.1400acc80
test eax, eax
je 0x140058aac
mov rcx, qword [0x1402725f8]
test rcx, rcx
je 0x1400583fe
lea rdx, [0x140271588]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rbp + 0x198]
mov rcx, qword [0x1402725f8]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rbp + 0x198]
mov dword [0x140271588], eax
mov eax, dword [rbp + 0x19c]
mov dword [0x14027158c], eax
mov eax, dword [0x140271590]
mov dword [0x1401db194], eax
mov eax, dword [0x140271594]
mov dword [0x140241b9c], eax
mov edx, 1
mov ecx, 0x20007
call fcn.1400a2c00
xor edx, edx
mov ecx, 0x20003
call fcn.1400a2c00
mov edx, 1
mov ecx, 0x20008
call fcn.1400a2c00
mov edx, 1
mov ecx, 0x2000a
call fcn.1400a2c00
movsd xmm0, qword [str.fwCSETXC_]
movsd qword [rsp + 0x50], xmm0
movzx eax, word [0x1401554e8]
mov word [rsp + 0x58], ax
cmp byte [0x1401554e9], 0
je 0x14005848c
mov byte [rsp + 0x50], 0x54
xor byte [rsp + 0x51], 0x33
xor byte [rsp + 0x52], 0x34
xor byte [rsp + 0x53], 0x35
xor byte [rsp + 0x54], 0x36
xor byte [rsp + 0x55], 0x37
xor byte [rsp + 0x56], 0x38
xor byte [rsp + 0x57], 0x39
xor byte [rsp + 0x58], 0x3a
xor byte [rsp + 0x59], 0x3b
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, dword [0x140241b9c]
mov ecx, dword [0x1401db194]
call fcn.1400a33d0
mov qword [0x140270d30], rax
test rax, rax
je 0x140058aac
mov rcx, rax
call fcn.1400acc40
mov qword [0x140271598], rax
lea edx, [rbx - 0x14]
mov r8d, 0x800a0
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongA]
xor r8d, r8d
mov edx, 0x20005
mov rcx, qword [0x140270d30]
call fcn.1400a4c90
mov edx, 0x2000d
lea r8d, [rbx + 1]
mov rcx, qword [0x140270d30]
call fcn.1400a4c90
mov eax, dword [0x140241b9c]
inc eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
mov eax, dword [0x1401db194]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x140270d30]
call fcn.1400a4840
mov rcx, qword [0x140270d30]
call fcn.1400ad640
lea ecx, [rbx + 1]
call fcn.1400ad7d0
call fcn.14009e640
test eax, eax
jne 0x140058aac
mov dword [0x14027262c], ebx
mov dword [rbp + 0x190], ebx
mov dword [rbp + 0x194], ebx
lea r8, [0x14014c664]
lea rdx, str.C:EnekoLizarragaAnsoMasJuanCruzLizarragaMasMaiderAnsoAritzmeniMasFernandoAnso.png
lea rcx, [rbp + 0xa0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x140058591
mov edi, ebx
mov qword [rbp + 0xa0], rbx
jmp 0x140058598
mov rdi, qword [rbp + 0xa0]
test rdi, rdi
jne 0x1400585be
mov edx, Ordinal_26
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rax, str.cant_fopen
mov qword [rdx + rcx], rax
jmp 0x140058711
mov r8, rdi
lea rcx, [rbp + 0xb0]
call fcn.140047800
lea r8, [rbp + 0x194]
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0xb0]
call fcn.1400480d0
mov rsi, rax
mov rcx, rdi
test rax, rax
je 0x14005870b
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 [0x14027262c], eax
mov eax, dword [rbp + 0x190]
mov dword [0x140271db0], eax
mov eax, dword [rbp + 0x194]
mov dword [0x140271560], eax
jmp 0x140058711
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [0x140270b40]
test rdi, rdi
je 0x140058723
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 0x140058757
xor edx, edx
mov rcx, rax
call fcn.140003f80
jmp 0x14005875a
mov rax, rbx
mov qword [0x140270b40], rax
call fcn.14000b9c0
mov rcx, qword [0x140270d30]
test rdi, rdi
je 0x14005877b
mov qword [0x140270b40], rdi
jmp 0x140058782
mov rdi, qword [0x140270b40]
add rdi, 8
call fcn.14002e7e0
mov eax, dword [0x1401563d0]
mov dword [rsp + 0x58], eax
movzx eax, byte [0x1401563d4]
movsd xmm0, qword [0x1401563c8]
mov byte [rsp + 0x5c], al
movsd qword [rsp + 0x50], xmm0
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400588be
movdqa xmm4, xmmword [0x140156b80]
movdqa xmm2, xmmword [0x140156850]
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 [0x1401568a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140156990]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.2222222222222222]
movd xmm0, dword [0x1401563c8]
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
movdqa xmm3, xmmword [0x140156890]
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 [0x1401568a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140156990]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.2222222222222222]
movd xmm0, dword [rsp + 0x54]
xorps xmm2, xmm0
movd dword [rsp + 0x54], xmm2
mov ebx, 8
movsxd rax, ebx
lea r8, [rsp + 0x50]
add r8, rax
nop dword [rax]
mov eax, 0x8fb823ef
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, bl
sub al, cl
add al, 0x32
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0xd
jl 0x1400588d0
lea rcx, [rsp + 0x50]
call fcn.14002f230
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, [0x140155368]
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, [0x140198020]
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.140029410
mov qword [0x140272618], 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, [0x1401db1d0]
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.140029410
mov qword [0x140272620], 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, [0x140241ba0]
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.140029410
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140119520
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
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