Function at 0x14003e330
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], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x240
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x14022b2b0]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r14, qword [0x14023b440]
mov rax, qword [0x14023b450]
test rax, rax
je 0x14003e384
inc dword [rax + 0x3b4]
mov rdx, qword [0x14023b448]
mov ecx, 0x3ee8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp + 0x118], rax
lea rcx, [rsp + 0x48]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0x108], rax
xor ebx, ebx
test rax, rax
je 0x14003e3c5
xor edx, edx
mov rcx, rax
call fcn.140050540
mov rcx, rax
jmp 0x14003e3c8
mov rcx, rbx
mov rax, qword [0x14023b450]
test rax, rax
cmove rax, rcx
mov qword [0x14023b450], rax
call fcn.140056680
mov rdi, qword [0x14023b450]
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbx
movdqa xmm0, xmmword [0x14020ab00]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x89b1b7f3
mov word [rsp + 0x44], 0x100
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x14
jb 0x14003e420
mov byte [rsp + 0x45], 0
mov qword [rbp + 0x118], rbx
lea r8, [rbp + 0x118]
lea rcx, [rsp + 0x30]
call fcn.140051c50
mov rsi, rax
test rax, rax
je 0x14003e485
mov rdx, qword [rbp + 0x118]
mov rcx, rax
call fcn.140063290
mov rcx, qword [0x14023b450]
test rcx, rcx
je 0x14003e476
dec dword [rcx + 0x3b4]
mov rdx, qword [0x14023b448]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], rax
mov byte [rbp + 0x7c], 1
mov dword [rbp + 0xb4], 0x7f7fffff
mov dword [rbp + 0xc0], 0x3f800000
mov r12d, 0xffff
mov word [rbp + 0xc4], r12w
mov r15d, 1
mov dword [rbp + 0x88], r15d
mov dword [rbp + 0x8c], r15d
mov byte [rbp + 0x90], r15b
movdqa xmm0, xmmword [0x14020abe0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x86abaaf3
mov word [rsp + 0x44], 0x100
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x14
jb 0x14003e530
mov byte [rsp + 0x45], 0
lea r9, [rbp + 0x70]
movss xmm2, dword [0x140209190]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0xa8]
call fcn.1400708d0
mov rcx, qword [0x14023b450]
mov qword [rcx + 0xb8], rax
movdqa xmm0, xmmword [0x14020abe0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x86abaaf3
mov word [rsp + 0x44], 0x100
mov rcx, rbx
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x14
jb 0x14003e590
mov byte [rsp + 0x45], 0
lea r9, [rbp + 0x70]
movss xmm6, dword [0x140209198]
movaps xmm2, xmm6
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0xa8]
call fcn.1400708d0
mov qword [0x14023b3f0], rax
movdqa xmm0, xmmword [0x14020abe0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x86abaaf3
mov word [rsp + 0x44], 0x100
mov rcx, rbx
nop dword [rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x14
jb 0x14003e5f0
mov byte [rsp + 0x45], 0
lea r9, [rbp + 0x70]
movaps xmm2, xmm6
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0xa8]
call fcn.1400708d0
mov qword [0x14023b410], rax
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], r15b
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], r15d
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov word [rbp - 0x5c], r12w
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp], xmm2
movaps xmmword [rbp + 0x10], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x30], xmm1
movaps xmmword [rbp + 0x40], xmm2
movaps xmmword [rbp + 0x50], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x60], xmm0
lea rsi, [0x14022cab0]
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], 0x42ac
mov dword [rbp - 0xc], 0x41f00000
lea rdx, [rbp - 0x20]
mov rcx, qword [rdi + 0xa8]
call fcn.140070660
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x60], xmm2
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], r15b
mov dword [rsp + 0x68], 3
mov dword [rsp + 0x6c], r15d
mov dword [rbp - 0x6c], 0x7f7fffff
mov dword [rbp - 0x60], 0x3f800000
mov word [rbp - 0x5c], r12w
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp], xmm2
movaps xmmword [rbp + 0x10], xmm2
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x30], xmm1
movaps xmmword [rbp + 0x40], xmm2
movaps xmmword [rbp + 0x50], xmm2
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x60], xmm0
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], 0x42ac
movss xmm0, dword [0x140209208]
movss dword [rbp - 0xc], xmm0
lea rdx, [rbp - 0x20]
mov rcx, qword [rdi + 0xa8]
call fcn.140070660
mov qword [0x14023b400], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
movss xmm3, dword [0x1402091bc]
lea rdx, [0x1401bd7f0]
mov rcx, qword [rdi + 0xa8]
call fcn.140070ba0
mov qword [0x14023b308], rax
movdqa xmm0, xmmword [0x14020abe0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x86abaaf3
mov word [rsp + 0x44], 0x100
mov rcx, rbx
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x14
jb 0x14003e7c0
mov byte [rsp + 0x45], 0
lea r9, [rbp + 0x70]
movaps xmm2, xmm6
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0xa8]
call fcn.1400708d0
mov qword [0x14023b310], rax
movdqa xmm0, xmmword [0x14020abe0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x86abaaf3
mov word [rsp + 0x44], 0x100
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x14
jb 0x14003e820
mov byte [rsp + 0x45], 0
lea r9, [rbp + 0x70]
movaps xmm2, xmm6
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0xa8]
call fcn.1400708d0
mov qword [0x14023b418], rax
movdqa xmm0, xmmword [0x14020abe0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x86abaaf3
mov word [rsp + 0x44], 0x100
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x14
jb 0x14003e880
mov byte [rsp + 0x45], 0
lea r9, [rbp + 0x70]
movaps xmm2, xmm6
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0xa8]
call fcn.1400708d0
mov qword [0x14023b408], rax
movdqa xmm0, xmmword [0x14020abe0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x86abaaf3
mov word [rsp + 0x44], 0x100
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x14
jb 0x14003e8e0
mov byte [rsp + 0x45], 0
lea r9, [rbp + 0x70]
movaps xmm2, xmm6
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0xa8]
call fcn.1400708d0
mov rax, qword [0x14023b450]
mov dword [rax + 0x1560], ebx
mov dword [rax + 0x1564], 0x41000000
mov dword [rax + 0x1568], 0x41000000
mov dword [rax + 0x1574], 0x42000000
mov dword [rax + 0x1578], 0x42000000
mov dword [rax + 0x156c], 0x3f000000
mov dword [rax + 0x157c], 0x3f000000
mov dword [rax + 0x1580], 0x3f000000
mov dword [rax + 0x1598], 0x40800000
mov qword [rax + 0x159c], 0x40000000
mov dword [rax + 0x15a8], 0x41000000
mov dword [rax + 0x15ac], 0x40800000
mov dword [rax + 0x15b0], 0x40800000
mov dword [rax + 0x15b4], 0x40800000
mov qword [rax + 0x15c0], rbx
mov dword [rax + 0x15c8], 0x41a80000
mov dword [rax + 0x15cc], 0x40400000
mov qword [rax + 0x15d0], 0x41400000
mov qword [rax + 0x15d8], 0x3dcccccd
mov dword [rax + 0x15f4], 0x3f000000
mov dword [rax + 0x15f8], 0x3f000000
mov dword [rax + 0x1604], 0x41b00000
mov dword [rax + 0x1608], 0x41b00000
mov dword [rax + 0x160c], 0x40800000
mov dword [rax + 0x1610], 0x40800000
mov byte [rax + 0x1618], r15b
mov dword [rax + 0x161c], 0x3fa00000
mov rcx, r14
call fcn.1400753c0
mov dword [rsp + 0x30], 0xa2aab8ee
mov dword [rsp + 0x34], 0xbabcbba2
mov dword [rsp + 0x38], 0xe8e4e7f5
mov word [rsp + 0x3c], 0x100
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xc
jb 0x14003ea50
mov byte [rsp + 0x3d], 0
mov dword [rbp + 0x100], ebx
mov dword [rbp + 0x108], ebx
lea rdx, [rbp + 0x100]
mov ecx, 0x821b
call qword [sym.imp.OPENGL32.dll_glGetIntegerv]
lea rdx, [rbp + 0x108]
mov ecx, 0x821c
call qword [sym.imp.OPENGL32.dll_glGetIntegerv]
mov eax, dword [rbp + 0x100]
test eax, eax
jne 0x14003ead5
cmp dword [rbp + 0x108], eax
jne 0x14003ead5
mov ecx, 0x1f02
call qword [sym.imp.OPENGL32.dll_glGetString]
lea r9, [rbp + 0x108]
lea r8, [rbp + 0x100]
lea rdx, str._d._d
mov rcx, rax
call fcn.140050450
mov eax, dword [rbp + 0x100]
lea ecx, [rax + rax*4]
mov eax, dword [rbp + 0x108]
lea ecx, [rax + rcx*2]
lea eax, [rcx + rcx*4]
add eax, eax
mov dword [0x140271184], eax
mov rcx, qword [0x14023b450]
lea rdx, str.imgui_impl_opengl3
mov qword [rcx + 0xe0], rdx
cmp eax, 0x140
jb 0x14003eb0c
or dword [rcx + 0xc], 8
mov rdx, rbx
lea rcx, [0x140271198]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x30]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14003eb20
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14003eb33
movzx eax, word [reloc.WS2_32.dll_ioctlsocket]
mov word [rcx], ax
lea rdx, [rbp + 0x118]
mov ecx, 0x8069
call qword [sym.imp.OPENGL32.dll_glGetIntegerv]
cmp dword [0x140271184], 0x1c2
setae byte [0x14025c8e6]
mov dword [rbp + 0x110], ebx
lea rdx, [rbp + 0x110]
mov ecx, 0x821d
call qword [sym.imp.OPENGL32.dll_glGetIntegerv]
cmp dword [rbp + 0x110], 0
jle 0x14003ebd1
nop word [rax + rax]
mov rax, qword [0x140232708]
mov edx, ebx
mov ecx, 0x1f03
call rax
test rax, rax
je 0x14003ebc7
lea rdx, str.GL_ARB_clip_control
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
movzx ecx, byte [0x14025c8e6]
test eax, eax
cmove ecx, r15d
mov byte [0x14025c8e6], cl
inc ebx
cmp ebx, dword [rbp + 0x110]
jl 0x14003eb90
call fcn.14003a8f0
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140154010
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret