Function at 0x1001da5
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 [0x10012fc]
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.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001f95
mov dword [ebp - 4], ebx
mov esi, 0x100a310
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 0x1001e4d
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001e1e
cmp dword [ebp - 4], edi
jne 0x1001e66
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x100a310], bl
jmp 0x1001f95
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 0x1001344
push eax
call fcn.01005c38
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001ebe
push 0x1001334
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 0x1001ee4
call edi
test eax, eax
je 0x1001ef4
lea eax, [ebp - 0x118]
push 0x10012fc
push eax
call fcn.01005c38
jmp 0x1001ef4
push dword [0x100b6dc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1001f32
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 0x1001f3d
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003e44
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001f95
xor ecx, ecx
cmp dword [ebp - 0xc], eax
sete cl
cmp dword [ebp - 0xc], eax
mov dword [0x100a360], ecx
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
jne 0x1001f5a
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 0x100a310
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