Function at 0x1001b46
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
mov dl, byte [0x10012c4]
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 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001d36
mov dword [ebp - 4], ebx
mov esi, 0x100b5a0
mov edi, 0xc8
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 0x1001bee
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001bbf
cmp dword [ebp - 4], edi
jne 0x1001c07
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x100b5a0], bl
jmp 0x1001d36
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 0x100130c
push eax
call fcn.01005925
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001c5f
push 0x10012fc
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 0x1001c85
call edi
test eax, eax
je 0x1001c95
lea eax, [ebp - 0x118]
push 0x10012c4
push eax
call fcn.01005925
jmp 0x1001c95
push dword [0x100f8dc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1001cd3
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x118]
push eax
call esi
mov edi, 0x100f084
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 0x1001cde
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003ae7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001d36
xor ecx, ecx
cmp dword [ebp - 0xc], eax
sete cl
cmp dword [ebp - 0xc], eax
mov dword [0x100b5f0], ecx
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
jne 0x1001cfb
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 0x100b5a0
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