Function at 0x100199b
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 0x1001b97
push ebx
mov dword [ebp - 4], esi
mov edi, 0x100a2e0
mov ebx, pe_nt_image_headers32
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 0x1001a3f
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x1001a10
cmp dword [ebp - 4], ebx
jne 0x1001a59
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [0x100a2e0], 0
jmp 0x1001b96
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001278
lea eax, [ebp - 0x21c]
push eax
call fcn.01005bb8
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1001b1b
push 0x1001268
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 0x1001b1b
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001adc
push 0x1001251
lea eax, [ebp - 0x118]
push eax
call fcn.01005bb8
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 0x1001b3e
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.010038f8
jmp 0x1001b33
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [0x100b4a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001adc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001b96
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 0x1001b5b
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