Function at 0x10019c3
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
and byte [ebp - 0x118], 0
push esi
push edi
and byte [ebp - 0x21c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
pop ecx
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001bbf
push ebx
mov dword [ebp - 4], esi
mov edi, 0x100a2e0
mov ebx, 0xc8
push dword [ebp - 4]
push str.wextract_cleanup_d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001a67
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x1001a38
cmp dword [ebp - 4], ebx
jne 0x1001a81
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [0x100a2e0], 0
jmp 0x1001bbe
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100127c
lea eax, [ebp - 0x21c]
push eax
call fcn.01005b5f
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1001b43
push 0x100126c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x1001b43
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001b04
push 0x1001254
lea eax, [ebp - 0x118]
push eax
call fcn.01005b5f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100ac44
call esi
mov ebx, eax
lea eax, [ebp - 0x118]
push eax
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 0x1001b66
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.010038f9
jmp 0x1001b5b
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [0x100b4a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001b04
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001bbe
xor ecx, ecx
cmp dword [ebp - 0xc], eax
sete cl
cmp dword [ebp - 0xc], eax
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
mov dword [0x100a330], ecx
jne 0x1001b83
mov eax, str._s__D:_s
push 0x100ac44
lea ecx, [ebp - 0x118]
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 edi
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 ebx
pop edi
pop esi
leave
ret