Function at 0x1000ca30
Capabilities:
Delete registry value
Encode data using xor

Disassembly:
sub esp, 0x120
mov eax, dword [0x10041bd0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp + 0x10], 0x1002d318
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x1000caac
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebp, dword [ebx + 0xf]
add esp, 4
xor edx, edx
mov edi, eax
test ebp, ebp
je 0x1000caa6
sub esi, edi
nop
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
cmp edx, ebp
jb 0x1000ca90
mov byte [edi + ebp], 0
mov esi, edi
lea eax, [esp + 0x14]
push eax
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1000cad2
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
call ebx
push dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov dword [esp + 0x10], 0x1002d370
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebp + 0x13], 0
je 0x1000cb44
mov eax, dword [ebp + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0xf]
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000cb38
sub esi, ebx
mov edi, eax
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + ebp + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x1000cb18
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov esi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [esp + 0x18]
push eax
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000cb64
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
call ebx
push dword [esp + 0x18]
call edi
mov dword [esp + 0x10], 0x1002d3c8
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebp + 0x13], 0
je 0x1000cbca
mov eax, dword [ebp + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0xf]
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000cbc4
sub esi, ebx
mov edi, eax
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + ebp + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x1000cba4
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov esi, ebx
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000cbf2
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x1c]
call edi
mov dword [esp + 0x10], 0x1002d420
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebp + 0x13], 0
je 0x1000cc58
mov eax, dword [ebp + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0xf]
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000cc52
sub esi, ebx
mov edi, eax
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + ebp + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x1000cc32
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov esi, ebx
lea eax, [esp + 0x20]
push eax
push 1
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000cc80
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x20]
call edi
mov dword [esp + 0x10], 0x1002d478
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add esi, 0x14
cmp byte [ebp + 0x13], 0
je 0x1000cce6
mov eax, dword [ebp + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0xf]
xor edx, edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000cce0
sub esi, ebx
mov edi, eax
mov eax, edx
lea ecx, [edx + ebx]
and eax, 7
inc edx
mov al, byte [eax + ebp + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x1000ccc0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov byte [eax + ebx], 0
mov esi, ebx
lea eax, [esp + 0x24]
push eax
push 0xf013f
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000cd11
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x24]
call edi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100282d0
add esp, 0x120
ret