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

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x100a2cc]
push esi
push edi
push 0x40
pop ecx
mov dword [ebp + 0x19c], eax
xor eax, eax
mov byte [ebp + 0x98], 0
lea edi, [ebp + 0x99]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
pop ecx
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x6c], 0
lea edi, [ebp - 0x6b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x7c]
push eax
xor esi, esi
lea eax, [ebp - 0x74]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001bf4
push ebx
mov dword [ebp - 0x70], esi
mov edi, 0x100a2e0
mov ebx, pe_nt_image_headers32
push dword [ebp - 0x70]
push str.wextract_cleanup_d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001aa5
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], ebx
jl 0x1001a76
cmp dword [ebp - 0x70], ebx
jne 0x1001abf
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x100a2e0], 0
jmp 0x1001bf3
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001298
lea eax, [ebp - 0x6c]
push eax
call fcn.01005f34
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [ebp - 0x70], eax
je 0x1001b78
push 0x1001288
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x70]
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x1001b78
push ebx
lea eax, [ebp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001b39
push 0x1001271
lea eax, [ebp + 0x98]
push eax
call fcn.01005f34
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100ac44
call esi
mov ebx, eax
lea eax, [ebp + 0x98]
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 0x1001b9b
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003a62
jmp 0x1001b90
push ebx
lea eax, [ebp + 0x98]
push eax
push dword [0x100b4a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001b39
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001bf3
xor ecx, ecx
cmp dword [ebp - 0x78], eax
sete cl
cmp dword [ebp - 0x78], eax
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
mov dword [0x100a330], ecx
jne 0x1001bb8
mov eax, str._s__D:_s
push 0x100ac44
lea ecx, [ebp + 0x98]
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 - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
call fcn.01005e37
add ebp, 0x1a0
leave
ret