Function at 0x18001b7ac
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
mov r14, rdx
mov ecx, 1
call qword [sym.imp.SHCORE.dll_GetScaleFactorForDevice]
nop dword [rax + rax]
xor r15d, r15d
mov dword [rbp + 0x48], eax
xor eax, eax
lea r8, [rbp - 0x10]
xor r9d, r9d
mov qword [rbp - 0xc], rax
mov edi, r15d
mov dword [rbp - 4], eax
lea edx, [r15 + 0x10]
lea ecx, [rdx + 0x32]
mov dword [rbp - 0x10], edx
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
nop dword [rax + rax]
test eax, eax
je 0x18001b846
mov eax, dword [rbp - 0xc]
and eax, 1
je 0x18001b846
lea ecx, [r15 + 5]
call qword [sym.imp.USER32.dll_GetSysColor]
nop dword [rax + rax]
movzx ecx, ax
shr ecx, 8
lea edx, [rcx + rcx*4]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
add edx, ecx
movzx eax, al
lea ecx, [rdx + rax*2]
cmp ecx, 0x400
seta dil
inc edi
lea rcx, [0x180083ff0]
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x10], r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov rsi, qword [0x180083fe8]
lea rcx, [0x180083ff0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
mov edi, r15d
test rsi, rsi
je 0x18001b88b
mov qword [rbp - 0x10], rsi
jmp 0x18001b99a
lea rcx, [0x180083ff0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov rax, qword [0x180083fe8]
test rax, rax
je 0x18001b8b3
mov qword [rbp - 0x10], rax
jmp 0x18001b97f
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov ecx, 0x2c
mov qword [rbp - 0x18], r15
lea rdx, [rbp - 0x18]
call qword [sym.imp.Bcp47Langs.dll_GetUserLanguages]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18001b96a
mov rcx, qword [rbp - 0x18]
lea rdx, [rbp + 0x40]
mov dword [rbp + 0x40], r15d
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsStringHasEmbeddedNull]
nop dword [rax + rax]
cmp dword [rbp + 0x40], r15d
je 0x18001b909
mov edi, 0x80070057
jmp 0x18001b96a
mov rcx, qword [rbp - 0x18]
xor edx, edx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov edi, r15d
or rcx, 0xffffffffffffffff
mov r8, rax
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x18001b925
mov edx, 0x75bcd15
add ecx, ecx
je 0x18001b95f
mov r9d, ecx
imul rcx, rdx, 0x820
mov rax, rdx
shr rax, 2
add rcx, rax
movzx eax, byte [r8]
add rcx, rax
inc r8
xor rdx, rcx
sub r9, 1
jne 0x18001b93b
mov qword [0x180083fe8], rdx
mov qword [rbp - 0x10], rdx
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18001b97f
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
lea rcx, [0x180083ff0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
test edi, edi
js 0x18001ba21
mov r8d, 4
lea rdx, [rbp + 0x48]
mov r9d, r8d
imul rcx, rbx, 0x820
mov rax, rbx
shr rax, 2
add rcx, rax
movzx eax, byte [rdx]
add rcx, rax
inc rdx
xor rbx, rcx
sub r9, 1
jne 0x18001b9a7
lea rdx, [rbp - 0x20]
imul rcx, rbx, 0x820
mov rax, rbx
shr rax, 2
add rcx, rax
movzx eax, byte [rdx]
add rcx, rax
inc rdx
xor rbx, rcx
sub r8, 1
jne 0x18001b9ce
lea rdx, [rbp - 0x10]
mov r8d, 8
imul rcx, rbx, 0x820
mov rax, rbx
shr rax, 2
add rcx, rax
movzx eax, byte [rdx]
add rcx, rax
inc rdx
xor rbx, rcx
sub r8, 1
jne 0x18001b9fb
mov qword [r14], rbx
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret