Function at 0x140002850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov r14, qword [0x1400a24a8]
lea rdx, [0x1400a24b8]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x140002f0d
xor ebx, ebx
mov qword [0x1400a251c], rbx
mov qword [0x1400a2528], 1
mov qword [0x1400a2544], rbx
mov dword [0x1400a254c], ebx
mov dword [0x1400a2538], 1
mov qword [0x1400a2530], r14
mov dword [0x1400a2524], ebx
mov dword [0x1400a2518], 0x15
mov eax, dword [0x1400a259c]
mov dword [0x1400a2510], eax
mov eax, dword [0x1400a2598]
mov dword [0x1400a2514], eax
mov dword [0x1400a253c], 1
mov dword [0x1400a2540], 0x50
mov rcx, qword [0x1400a24b8]
mov rax, qword [rcx]
lea rdx, [0x1400a2558]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
lea rdx, [0x1400a2510]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, r14
xor edx, edx
lea r8d, [rbx + 1]
call qword [rax + 0xa0]
test eax, eax
js 0x140002ef5
mov rax, qword [0x1400a2578]
test rax, rax
je 0x14000294e
inc dword [rax + 0x3c8]
mov rdx, qword [0x1400a2570]
mov ecx, 0x3bf0
call fcn.140014f90
mov qword [rbp + 0x6f], rax
lea rcx, [rbp + 0x67]
mov qword [rbp + 0x77], rcx
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x140002981
mov rcx, rax
call fcn.140014430
mov rsi, rax
jmp 0x140002984
mov rsi, rbx
mov rax, qword [0x1400a2578]
test rax, rax
cmove rax, rsi
mov qword [0x1400a2578], rax
mov dword [rbp + 0x13], ebx
mov qword [rbp + 0x2f], rbx
lea rcx, str.Window
mov qword [rbp + 7], rcx
xor r8d, r8d
xor edx, edx
call fcn.140015840
mov dword [rbp + 0xf], eax
lea rax, [0x140026410]
mov qword [rbp + 0x17], rax
lea rax, [0x140026490]
mov qword [rbp + 0x1f], rax
lea rax, [0x140026570]
mov qword [rbp + 0x27], rax
lea rdi, [rsi + 0x2db0]
mov eax, dword [rdi]
mov ecx, dword [rdi + 4]
test eax, eax
jne 0x140002a25
mov eax, ebx
test ecx, ecx
jne 0x1400029fc
lea edx, [rcx + 8]
mov rcx, rdi
call fcn.140027610
mov eax, dword [rdi]
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp + 7]
movups xmmword [rax + rcx*8], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmm0, xmmword [rbp + 0x27]
movups xmmword [rax + rcx*8 + 0x20], xmm0
jmp 0x140002a8f
cmp eax, ecx
jne 0x140002a55
lea r8d, [rax + 1]
test ecx, ecx
je 0x140002a3c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140002a41
mov eax, 8
cmp eax, r8d
cmovg r8d, eax
mov edx, r8d
mov rcx, rdi
call fcn.140027610
mov eax, dword [rdi]
test eax, eax
jle 0x140002a74
lfence
mov rdx, qword [rdi + 8]
movsxd rax, dword [rdi]
lea r8, [rax + rax*2]
shl r8, 4
lea rcx, [rdx + 0x30]
call fcn.140050450
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp + 7]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbp + 0x27]
movups xmmword [rax + 0x20], xmm0
inc dword [rdi]
mov byte [rsi], 1
mov rdi, qword [0x1400a2578]
lea rcx, [0x1400a2648]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140002b8d
lea rcx, [0x1400a2640]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140002b8d
mov qword [0x1400a2638], r14
mov rcx, qword [0x1400a2578]
or dword [rcx + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rcx + 0xd8], rax
mov qword [rcx + 0x108], r14
mov dword [rcx + 0x3c], 9
mov dword [rcx + 0x40], 0x25
mov dword [rcx + 0x44], 0x27
mov dword [rcx + 0x48], 0x26
mov dword [rcx + 0x4c], 0x28
mov dword [rcx + 0x50], 0x21
mov dword [rcx + 0x54], 0x22
mov dword [rcx + 0x58], 0x24
mov dword [rcx + 0x5c], 0x23
mov dword [rcx + 0x60], 0x2d
mov dword [rcx + 0x64], 0x2e
mov dword [rcx + 0x68], 8
mov dword [rcx + 0x6c], 0x20
mov dword [rcx + 0x70], 0xd
mov dword [rcx + 0x74], 0x1b
mov dword [rcx + 0x78], 0x41
mov dword [rcx + 0x7c], 0x43
mov dword [rcx + 0x80], 0x56
mov dword [rcx + 0x84], 0x58
mov dword [rcx + 0x88], 0x59
mov dword [rcx + 0x8c], 0x5a
jmp 0x140002b94
mov rcx, qword [0x1400a2578]
mov rax, qword [0x1400a2558]
lea rdx, str.imgui_impl_dx9
mov qword [rcx + 0xe0], rdx
mov qword [0x1400a2628], rax
mov dword [rcx + 0x158c], 0x3fc00000
mov dword [rcx + 0x15c0], 0x3fc00000
mov dword [rcx + 0x155c], 0x3f800000
mov dword [rcx + 0x1560], 0x40200000
mov dword [rcx + 0x1578], 0x40200000
mov dword [rcx + 0x1580], 0x40200000
mov dword [rcx + 0x156c], 0x3f000000
mov dword [rcx + 0x1554], 0x41700000
mov dword [rcx + 0x1558], 0x41700000
mov dword [rcx + 0x155c], 0x40a00000
mov dword [rcx + 0x1584], 0x40a00000
mov dword [rcx + 0x1588], 0x40a00000
mov dword [rcx + 0x158c], 0x40800000
mov dword [rcx + 0x1594], 0x41400000
mov dword [rcx + 0x1598], 0x41000000
mov dword [rcx + 0x159c], 0x41000000
mov dword [rcx + 0x15a0], 0x40c00000
mov dword [rcx + 0x15ac], 0x41c80000
mov dword [rcx + 0x15b4], 0x41700000
mov dword [rcx + 0x15b8], 0x41100000
mov dword [rcx + 0x15bc], 0x40a00000
mov dword [rcx + 0x15c0], 0x40400000
movaps xmm0, xmmword [0x1400935d0]
movups xmmword [rcx + 0x15f0], xmm0
movaps xmm1, xmmword [0x140093530]
movups xmmword [rcx + 0x1600], xmm1
movaps xmm0, xmmword [0x1400934f0]
movups xmmword [rcx + 0x1610], xmm0
movaps xmm1, xmmword [0x140093500]
movups xmmword [rcx + 0x1620], xmm1
movaps xmm0, xmm1
movups xmmword [rcx + 0x1630], xmm1
movaps xmm1, xmmword [0x140093420]
movups xmmword [rcx + 0x1640], xmm1
movaps xmm0, xmmword [0x140093260]
movups xmmword [rcx + 0x1650], xmm0
movaps xmm1, xmmword [0x140093510]
movups xmmword [rcx + 0x1660], xmm1
movaps xmm0, xmmword [0x140093530]
movups xmmword [rcx + 0x1670], xmm0
movaps xmm1, xmmword [0x1400935a0]
movups xmmword [rcx + 0x1680], xmm1
movaps xmm0, xmmword [0x140093510]
movups xmmword [rcx + 0x1690], xmm0
movaps xmm1, xmmword [0x1400933f0]
movups xmmword [rcx + 0x16b0], xmm1
movaps xmm0, xmmword [0x140093500]
movups xmmword [rcx + 0x16a0], xmm0
movaps xmm1, xmmword [0x140093510]
movups xmmword [rcx + 0x16c0], xmm1
movaps xmm0, xmm1
movups xmmword [rcx + 0x16d0], xmm1
movaps xmm1, xmmword [0x140093310]
movups xmmword [rcx + 0x16e0], xmm1
movaps xmm0, xmmword [0x1400935a0]
movups xmmword [rcx + 0x16f0], xmm0
movaps xmm1, xmmword [0x1400934f0]
movups xmmword [rcx + 0x1700], xmm1
movaps xmm0, xmmword [0x140093310]
movups xmmword [rcx + 0x1710], xmm0
movaps xmm1, xmm0
movups xmmword [rcx + 0x1720], xmm0
movaps xmm0, xmmword [0x1400934f0]
movups xmmword [rcx + 0x1730], xmm0
movaps xmm1, xmmword [0x140093510]
movups xmmword [rcx + 0x1740], xmm1
movaps xmm0, xmmword [0x140093530]
movups xmmword [rcx + 0x1750], xmm0
movaps xmm1, xmmword [0x1400935a0]
movups xmmword [rcx + 0x1760], xmm1
movaps xmm0, xmmword [0x140093510]
movups xmmword [rcx + 0x1770], xmm0
movups xmmword [rcx + 0x1780], xmm1
movaps xmm0, xmmword [0x1400934f0]
movups xmmword [rcx + 0x1790], xmm0
movups xmmword [rcx + 0x17a0], xmm1
movaps xmm0, xmmword [0x140093530]
movups xmmword [rcx + 0x17b0], xmm0
movups xmmword [rcx + 0x17c0], xmm1
xorps xmm0, xmm0
movups xmmword [rcx + 0x17d0], xmm0
movups xmmword [rcx + 0x17e0], xmm1
movaps xmm0, xmmword [0x1400934f0]
movups xmmword [rcx + 0x17f0], xmm0
movaps xmm1, xmmword [0x1400933b0]
movups xmmword [rcx + 0x1850], xmm1
movaps xmm0, xmmword [0x1400934c0]
movups xmmword [rcx + 0x1860], xmm0
movups xmmword [rcx + 0x1870], xmm1
movups xmmword [rcx + 0x1880], xmm0
movaps xmm1, xmmword [0x140093360]
movups xmmword [rcx + 0x1890], xmm1
movaps xmm0, xmmword [0x1400933e0]
movups xmmword [rcx + 0x18e0], xmm0
movdqa xmm0, xmmword [0x140093690]
movdqu xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], 0xa6bc8c90
mov dword [rbp - 5], 0xa7fcbdb1
mov dword [rbp - 1], 0x100b3a0
nop word [rax + rax]
lea eax, [rbx - 0x44]
xor byte [rbp + rbx - 0x19], al
inc rbx
cmp rbx, 0x1a
jb 0x140002ea0
mov byte [rbp + 2], 0
lea rax, [0x140092bd4]
mov qword [rsp + 0x20], rax
movss xmm2, dword [0x14009310c]
lea rdx, [rbp - 0x19]
mov rcx, qword [rdi + 0xa0]
call fcn.140032f20
mov rcx, qword [0x1400a24b8]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [0x1400a24b8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, 4
call fcn.140054844
int3
mov ecx, 3
call fcn.140054844
int3