Function at 0x1000ca30
Capabilities:
Check if file exists
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100ca1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x10]
lea edi, [esi + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ca7e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 8], 0
je 0x1000cc26
call fcn.1000c350
mov ecx, eax
test ecx, ecx
je 0x1000cd15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
call fcn.1000c350
mov ecx, eax
test ecx, ecx
je 0x1000cd1f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
call fcn.1000c350
mov ecx, eax
test ecx, ecx
je 0x1000cd29
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
call fcn.1000c350
mov ecx, eax
test ecx, ecx
je 0x1000cd33
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
call fcn.1000c350
mov ecx, eax
test ecx, ecx
je 0x1000cd3d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.10008780
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10008780
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.10008780
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push 1
push eax
call fcn.100570c0
add esp, 8
mov byte [ebp - 4], 1
call fcn.1000c780
test eax, eax
je 0x1000cb66
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push dword [esi]
call fcn.100094b0
mov ebx, eax
test ebx, ebx
jne 0x1000cb75
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push dword [esi]
call fcn.100092e0
mov ebx, eax
mov edx, dword [ebp + 8]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000cb96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000cbb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000cbd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000cbeb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000cc05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1000ccd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000ccd1
push 0x100aa65c
lea ecx, [ebp + 8]
call fcn.10007160
lea eax, [ebp + 8]
mov dword [ebp - 4], 2
push eax
push dword [esi]
mov ecx, esi
call fcn.1000bc80
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000cc69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
lea ecx, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [esi + 0x2c], eax
push 0x2001f
setne al
mov dword [ebp - 0x14], 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
mov dword [ebp - 0x10], 0
push eax
call fcn.1000c840
test eax, eax
jne 0x1000ccc1
push edi
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
je 0x1000ccba
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
jmp 0x1000ccd1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000cccf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x100aba80
push dword [esi + 0x1c]
push dword [esi + 0x18]
call edi
cmp dword [esi + 0x24], 0
je 0x1000ccff
push dword [esi + 0x14]
push 0x100aba84
push str.status
push dword [esi + 0x20]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000ba30
push 0x80004005
call fcn.1000ba30
push 0x80004005
call fcn.1000ba30
push 0x80004005
call fcn.1000ba30
push 0x80004005
call fcn.1000ba30
int3