Function at 0x140004810
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rbx, rcx
call qword [sym.imp.mfc140u.dll_CUserToolsManager::CUserToolsManager]
nop
lea rax, vtable.LogWindow.0
mov qword [rbx], rax
lea rsi, [rbx + 0xe8]
mov qword [rbp + 0x240], rsi
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CUserToolsManager::CUserToolsManager]
lea rax, vtable.CEdit.0
mov qword [rsi], rax
mov dword [rsp + 0x60], 0xc
mov byte [rsp + 0x64], 0x4f
mov byte [rsp + 0x65], 0x36
mov byte [rsp + 0x66], 0x50
mov byte [rsp + 0x67], 0x6f
mov byte [rsp + 0x68], 0x7f
mov byte [rsp + 0x69], 0x22
mov byte [rsp + 0x6a], 0x78
mov byte [rsp + 0x6b], 0x74
mov byte [rsp + 0x6c], 0x78
xor eax, eax
mov byte [rsp + 0x6d], al
movzx eax, byte [rsp + 0x64]
xor r14d, r14d
mov eax, r14d
nop word [rax + rax]
movzx ecx, byte [rsp + rax + 0x64]
mov edx, dword [rsp + 0x60]
xor dl, cl
mov byte [rsp + rax + 0x64], dl
inc rax
cmp rax, 9
jb 0x1400048b0
mov byte [rsp + 0x6d], r14b
lea rdx, [rsp + 0x64]
lea rcx, [rbp - 0x70]
call fcn.140004c90
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140022b50
cmp qword [rax + 0x18], 7
jbe 0x1400048f3
mov rax, qword [rax]
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140004914
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor dil, dil
jmp 0x140004920
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dil, 1
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140004964
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000495f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000495f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027468
movdqa xmm0, xmmword [0x14002f490]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r14w
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x1400049b5
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027468
test dil, dil
je 0x140004a8c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.mfc140u.dll_AfxOleRegisterPropertyPageClass]
mov r8, rax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 0x1a8
mov dword [rsp + 0x38], 0x26a
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x10cf0000
lea r9, str.Genshin_Impact
xor edx, edx
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CRichEditDoc::CreateClientItem]
movdqa xmm0, xmmword [0x14002f4b0]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x20], 0x3e8
mov r9, rbx
lea r8, [rsp + 0x70]
mov edx, 0x50200044
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCOutlookBarPane::CopyButtonsList]
xor r9d, r9d
mov edx, 0xcf
lea r8d, [r9 + 1]
mov rcx, qword [rbx + 0x128]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [0x14002d7a0]
lea rcx, [rbp + 0x238]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
lea rdx, [rbp + 0x238]
mov rcx, rbx
call fcn.140004b00
nop
lea rcx, [rbp + 0x238]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rax, rbx
add rsp, 0x300
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret