Function at 0x1400788b0
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 - 0x1e8]
sub rsp, 0x2c0
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
mov rax, qword [0x1401adf80]
xor rax, rsp
mov qword [rbp + 0x160], rax
lea rcx, [0x140078840]
call fcn.1400bd890
call fcn.1400bd560
test eax, eax
jne 0x14007896b
movdqa xmm0, xmmword [0x14016cec0]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xcc8a92b0
mov word [rsp + 0x54], 0xe9
mov byte [rsp + 0x56], 1
xor edi, edi
nop word [rax + rax]
lea eax, [rdi - 0x31]
xor byte [rsp + rdi + 0x40], al
inc rdi
cmp rdi, 0x15
jb 0x140078940
mov byte [rsp + 0x56], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14012d550]
call fcn.140084180
jmp 0x140079259
call fcn.1400bf460
mov rbx, rax
test rax, rax
jne 0x1400789d2
movdqa xmm0, xmmword [0x14016cf30]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14016cc20]
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x60], 1
xor edi, edi
nop dword [rax + rax]
lea eax, [rdi - 0x31]
xor byte [rsp + rdi + 0x40], al
inc rdi
cmp rdi, 0x1f
jb 0x1400789a0
mov byte [rsp + 0x60], 0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140062f40
jmp 0x140079259
mov rcx, rbx
call fcn.1400bfa30
mov ecx, dword [rax]
mov dword [0x1401bab80], ecx
mov rcx, rbx
call fcn.1400bfa30
mov ecx, dword [rax + 4]
mov dword [0x1401bac00], ecx
mov edx, 1
mov ecx, 0x20007
call fcn.1400b49d0
xor edx, edx
mov ecx, 0x20003
call fcn.1400b49d0
mov edx, 1
mov ecx, 0x20008
call fcn.1400b49d0
mov edx, 1
mov ecx, 0x2000a
call fcn.1400b49d0
mov word [rbp + 0xb0], 0x78
mov byte [rbp + 0xb2], 0
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0xb0]
mov edx, dword [0x1401bac00]
mov ecx, dword [0x1401bab80]
call fcn.1400b51a0
mov qword [0x1401baad8], rax
test rax, rax
jne 0x140078acb
movdqa xmm0, xmmword [0x14016d210]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0x8c8897ff
mov dword [rsp + 0x54], 0xc8928b87
mov word [rsp + 0x58], 0xed
mov byte [rsp + 0x5a], 1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rdi - 0x31]
xor byte [rsp + rdi + 0x40], al
inc rdi
cmp rdi, 0x19
jb 0x140078aa0
mov byte [rsp + 0x5a], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14012d550]
call fcn.140084180
jmp 0x140079259
xor r8d, r8d
mov edx, 0x20005
mov rcx, rax
call fcn.1400b6a60
mov edx, 0x2000d
mov r8d, 1
mov rcx, qword [0x1401baad8]
call fcn.1400b6a60
mov eax, dword [0x1401bac00]
inc eax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov eax, dword [0x1401bab80]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1401baad8]
call fcn.1400b6610
mov rcx, qword [0x1401baad8]
call fcn.1400bdf20
mov ecx, 1
call fcn.1400be0b0
call fcn.1400b0410
test eax, eax
je 0x140078ba2
movdqa xmm0, xmmword [0x14016d460]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14016cde0]
movdqu xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x60], 0xf8d0828a
mov word [rsp + 0x64], 0x100
nop word [rax + rax]
lea eax, [rdi - 0x31]
xor byte [rsp + rdi + 0x40], al
inc rdi
cmp rdi, 0x24
jb 0x140078b70
mov byte [rsp + 0x65], 0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140062f40
jmp 0x140079259
mov rax, qword [0x1401baa38]
test rax, rax
je 0x140078bb4
inc dword [rax + 0xec]
mov ecx, 0x61e8
call qword [0x14012de38]
mov qword [rbp + 0xc8], rax
lea rcx, [rsp + 0x68]
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xb8], rax
test rax, rax
je 0x140078bea
xor edx, edx
mov rcx, rax
call fcn.14003afd0
jmp 0x140078bed
mov rax, rdi
cmp qword [0x1401baa38], 0
jne 0x140078bfe
mov qword [0x1401baa38], rax
mov rcx, rax
call fcn.140040cc0
mov r13, qword [0x1401baa38]
xor ecx, ecx
call fcn.140058c00
mov rbx, qword [0x1401baa38]
xor ecx, ecx
call fcn.140059480
mov dword [rbx + 0x37c0], 0x3f800000
mov qword [rbx + 0x37b8], rdi
mov dword [rbx + 0x37b4], 0x40800000
mov dword [rbx + 0x37f8], 0x40400000
mov dword [rbx + 0x3800], edi
mov dword [rbx + 0x3804], 0x3f800000
mov dword [rbx + 0x37ec], 0x40400000
mov dword [rbx + 0x3798], 0x3f000000
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp + 0x20], xmm6
movups xmmword [rbp + 0x30], xmm6
movups xmmword [rbp + 0x40], xmm6
movups xmmword [rbp + 0x60], xmm6
movups xmmword [rbp + 0x70], xmm6
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0x2c], 1
mov dword [rbp + 0x64], 0x7f7fffff
mov dword [rbp + 0x70], 0x3f800000
mov r12d, 0xffff
mov word [rbp + 0x74], r12w
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x3c], 1
mov byte [rbp + 0x40], 1
mov r15, qword [r13 + 0x50]
movdqa xmm0, xmmword [0x14016cf90]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rbp - 0x80], 0x9084b683
mov dword [rbp - 0x7c], 0x878b8587
mov dword [rbp - 0x78], 0x8c9d9cc9
mov word [rbp - 0x74], 0x100
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx - 0x31]
xor byte [rsp + rcx + 0x70], al
inc rcx
cmp rcx, 0x1c
jb 0x140078cf0
mov byte [rbp - 0x73], 0
lea rdx, [0x140156eec]
lea rcx, [rsp + 0x70]
call fcn.14003c220
mov rbx, rax
test rax, rax
je 0x140078fb2
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x140078fa9
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call qword [0x14012e048]
test eax, eax
jne 0x140078fa9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140078fa9
xor r8d, r8d
mov edx, r14d
mov rcx, rbx
call qword [0x14012e048]
test eax, eax
jne 0x140078fa9
cmp rsi, 0xffffffffffffffff
je 0x140078fa9
mov rax, qword [0x1401baa38]
test rax, rax
je 0x140078d95
inc dword [rax + 0xec]
mov rcx, rsi
call qword [0x14012de38]
mov r14, rax
test rax, rax
je 0x140078fa9
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [0x14012e018]
mov rcx, rbx
cmp rax, rsi
je 0x140078dec
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401baa38]
test rax, rax
je 0x140078dde
dec dword [rax + 0xec]
mov rcx, r14
call qword [0x14012de50]
jmp 0x140078fb2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
mov qword [rbp + 0x10], rax
mov byte [rbp - 0x64], 1
mov dword [rbp - 0x58], 3
mov dword [rbp - 0x54], 1
mov dword [rbp - 0x2c], 0x7f7fffff
mov dword [rbp - 0x20], 0x3f800000
mov word [rbp - 0x1c], r12w
movaps xmm3, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0xd0], xmm3
movaps xmm4, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0xe0], xmm4
movaps xmmword [rbp + 0xf0], xmm1
xorps xmm5, xmm5
movaps xmmword [rbp + 0x100], xmm5
movaps xmm7, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x110], xmm7
movaps xmm2, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x120], xmm2
xorps xmm8, xmm8
movaps xmmword [rbp + 0x130], xmm8
xorps xmm9, xmm9
movaps xmmword [rbp + 0x140], xmm9
movsd xmm10, qword [rbp + 0x10]
movsd qword [rbp + 0x150], xmm10
mov rbx, rsi
movdqa xmm0, xmm2
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x140078f65
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140078ec0
lea r9, [rsp + 0x70]
add r9, rax
lea rax, [rsp + 0x70]
cmp r9, rax
jbe 0x140078efc
nop dword [rax + rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140078efc
cmp al, 0x5c
je 0x140078efc
mov r9, rcx
lea rax, [rsp + 0x70]
cmp rcx, rax
ja 0x140078ee0
movsd xmm0, qword [0x14016c8a8]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, Ordinal_41
lea rcx, [rbp + 0x126]
call fcn.14003c0f0
movsd xmm10, qword [rbp + 0x150]
movaps xmm9, xmmword [rbp + 0x140]
movaps xmm8, xmmword [rbp + 0x130]
movaps xmm2, xmmword [rbp + 0x120]
movaps xmm7, xmmword [rbp + 0x110]
movaps xmm5, xmmword [rbp + 0x100]
movaps xmm1, xmmword [rbp + 0xf0]
movaps xmm4, xmmword [rbp + 0xe0]
movaps xmm3, xmmword [rbp + 0xd0]
movaps xmmword [rbp - 0x70], xmm3
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm5
movaps xmmword [rbp - 0x30], xmm7
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x10], xmm8
movaps xmmword [rbp], xmm9
movsd qword [rbp + 0x10], xmm10
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], ebx
mov dword [rbp - 0x5c], 0x41700000
lea rdx, [rbp - 0x70]
mov rcx, r15
call fcn.14005db00
jmp 0x140078fb2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401baa38]
mov r15, qword [rax + 0x50]
test rax, rax
je 0x140078fc8
inc dword [rax + 0xec]
mov ecx, 0x5320
call qword [0x14012de38]
mov r14, rax
lea rax, [0x14015b2a0]
mov qword [0x1401bf730], rax
lea rsi, [r14 + 0x5320]
mov qword [0x1401bf738], rsi
mov qword [0x1401bf740], r14
mov qword [0x1401bf748], r14
lea rbx, [0x14015b2b0]
mov rcx, rbx
call fcn.140061d70
cmp rax, rbx
je 0x14007902d
cmp qword [0x1401bf748], rsi
ja 0x14007902d
mov rbx, rax
mov rcx, rax
call fcn.140061d70
cmp rax, rbx
jne 0x140079014
movaps xmm0, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm2, xmmword [rbp + 0x30]
movaps xmm3, xmmword [rbp + 0x40]
movaps xmm4, xmmword [rbp + 0x60]
movaps xmm5, xmmword [rbp + 0x70]
movsd xmm1, qword [rbp + 0xa0]
mov byte [rbp - 0x64], 1
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp - 0x70], xmm0
movaps xmmword [rbp - 0x60], xmm2
movaps xmmword [rbp - 0x50], xmm3
movaps xmmword [rbp - 0x40], xmm6
movaps xmmword [rbp - 0x30], xmm4
movaps xmmword [rbp - 0x20], xmm5
movaps xmmword [rbp - 0x10], xmm6
movaps xmmword [rbp], xmm6
movsd qword [rbp + 0x10], xmm1
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], 0x5320
mov dword [rbp - 0x5c], 0x41700000
lea rax, [0x140168b68]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x70]
mov rcx, r15
call fcn.14005db00
mov qword [0x1401baa50], rax
mov dword [r13 + 8], reloc.WLDAP32.dll_Ordinal_32
mov rcx, qword [0x1401baad8]
call fcn.140062790
mov dword [rsp + 0x40], 0xa0b4a6ec
mov dword [rsp + 0x44], 0xb8babda0
mov dword [rsp + 0x48], 0xeaeae9f7
mov word [rsp + 0x4c], 0x100
mov rcx, rdi
lea eax, [rcx - 0x31]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xc
jb 0x1400790e0
mov byte [rsp + 0x4d], 0
mov dword [rbp + 0xb0], edi
mov dword [rbp + 0xb8], edi
lea rdx, [rbp + 0xb0]
mov ecx, 0x821b
call qword [sym.imp.OPENGL32.dll_glGetIntegerv]
lea rdx, [rbp + 0xb8]
mov ecx, 0x821c
call qword [sym.imp.OPENGL32.dll_glGetIntegerv]
mov eax, dword [rbp + 0xb0]
test eax, eax
jne 0x140079165
cmp dword [rbp + 0xb8], eax
jne 0x140079165
mov ecx, 0x1f02
call qword [sym.imp.OPENGL32.dll_glGetString]
lea r9, [rbp + 0xb8]
lea r8, [rbp + 0xb0]
lea rdx, str._d._d
mov rcx, rax
call fcn.14003af70
mov eax, dword [rbp + 0xb0]
lea ecx, [rax + rax*4]
mov eax, dword [rbp + 0xb8]
lea ecx, [rax + rcx*2]
lea eax, [rcx + rcx*4]
add eax, eax
mov dword [0x1401bf7e4], eax
mov rcx, qword [0x1401baa38]
lea rdx, str.imgui_impl_opengl3
mov qword [rcx + 0x88], rdx
cmp eax, 0x140
jb 0x14007919c
or dword [rcx + 0xc], 8
mov rdx, rdi
lea rcx, [0x1401bf7f8]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x40]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400791b0
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400791c3
movzx eax, word [reloc.WS2_32.dll_ioctlsocket]
mov word [rcx], ax
lea rdx, [rbp + 0xc8]
mov ecx, 0x8069
call qword [sym.imp.OPENGL32.dll_glGetIntegerv]
cmp dword [0x1401bf7e4], 0x1c2
setae byte [0x1401bab85]
mov dword [rbp + 0xc0], edi
lea rdx, [rbp + 0xc0]
mov ecx, 0x821d
call qword [sym.imp.OPENGL32.dll_glGetIntegerv]
cmp dword [rbp + 0xc0], 0
jle 0x140079259
nop word [rax + rax]
mov rax, qword [0x1401b24b8]
mov edx, edi
mov ecx, 0x1f03
call rax
test rax, rax
je 0x14007924f
lea rdx, str.GL_ARB_clip_control
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14007924f
mov byte [0x1401bab85], 1
inc edi
cmp edi, dword [rbp + 0xc0]
jl 0x140079220
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140125830
lea r11, [rsp + 0x2c0]
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]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret