Function at 0x1001cac
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dl, byte [0x10012d4]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x21b]
mov byte [ebp - 0x21c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoft_Windows_CurrentVersion_RunOnce
push 0x80000002
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001e9c
mov dword [ebp - 4], ebx
mov esi, 0x100a300
mov edi, pe_nt_image_headers32
push dword [ebp - 4]
push str.wextract_cleanup_d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001d54
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001d25
cmp dword [ebp - 4], edi
jne 0x1001d6d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x100a300], bl
jmp 0x1001e9c
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call edi
lea eax, [ebp - 0x21c]
push 0x100131c
push eax
call fcn.01005aa9
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001dc5
push 0x100130c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xc], ebx
lea eax, [ebp - 0x118]
push esi
push eax
je 0x1001deb
call edi
test eax, eax
je 0x1001dfb
lea eax, [ebp - 0x118]
push 0x10012d4
push eax
call fcn.01005aa9
jmp 0x1001dfb
push dword [0x100b6dc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1001e39
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x118]
push eax
call esi
mov edi, 0x100ae84
mov ebx, eax
push edi
call esi
lea eax, [ebx + eax + 0x50]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x1001e44
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003d0d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001e9c
xor ecx, ecx
cmp dword [ebp - 0xc], eax
sete cl
cmp dword [ebp - 0xc], eax
mov dword [0x100a350], ecx
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
jne 0x1001e61
mov eax, str._s__D:_s
lea ecx, [ebp - 0x118]
push edi
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebx
call esi
inc eax
push eax
push ebx
push 1
push 0
push 0x100a300
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret