Function at 0x1000f220
Capabilities:
Encode data using xor
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x10029760
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x10040bd0]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [sym.imp.ucrtbased.dll_malloc]
mov dword [ebp - 0x10], 0x1002db40
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x1c], 0x104
je 0x1000f2ca
mov eax, dword [edi + 0xf]
inc eax
push eax
call ecx
mov ebx, eax
add esp, 4
mov eax, dword [edi + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000f2c0
sub esi, ebx
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + edi + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x1000f2a7
mov ecx, dword [sym.imp.ucrtbased.dll_malloc]
mov byte [eax + ebx], 0
mov dword [ebp - 0x10], 0x1002db70
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x1000f31f
mov eax, dword [ebx + 0xf]
inc eax
push eax
call ecx
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000f319
sub esi, edi
nop word [eax + eax]
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x1000f300
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jle 0x1000f341
call fcn.10010130
jmp 0x1000f4c2
mov dword [ebp - 0x10], 0x1002dba0
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x1000f394
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000f38e
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x1000f375
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000f4b9
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x1002dbd0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000f4b4
push 1
push 0x40
push 8
push 0x1002dbd4
lea ecx, [ebp - 0xcc]
call fcn.10004a10
mov dword [ebp - 0x10], 0x1002dbdc
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 4], 0
cmp byte [ebx + 0x13], 0
je 0x1000f44f
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000f449
sub esi, edi
nop dword [eax]
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x1000f430
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.100045b0
add esp, 8
push eax
call fcn.100045b0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.100054f0
test eax, eax
jne 0x1000f495
push eax
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push str.Temp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.10010130
lea ecx, [ebp - 0xcc]
call fcn.10005000
jmp 0x1000f4b9
call fcn.10010130
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10027810
lea esp, [ebp + 0x108]
pop ebp
ret