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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1002292
push edi
mov dword [ebp - 0x210], ebx
mov esi, 0x100c600
mov edi, 0xc8
push dword [ebp - 0x210]
push str.wextract_cleanup_d
push 0x50
push esi
call fcn.01001f59
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002113
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], edi
jl 0x10020d4
cmp dword [ebp - 0x210], edi
jne 0x1002132
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x100c600], bl
jmp 0x1002291
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001314
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01007460
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x210], eax
je 0x10021be
push 0x1001304
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x210]
mov edi, eax
neg edi
sbb edi, edi
neg edi
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
je 0x10021be
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10021d6
push 0x10012e1
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01007460
jmp 0x10021d6
push esi
lea eax, [ebp - 0x108]
push eax
push dword [0x100db04]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100221a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x100d2a4
push edi
call esi
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebx + eax + 0x50]
push eax
push 0x40
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x1002228
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.010037d6
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002291
xor ecx, ecx
cmp dword [ebp - 0x218], eax
sete cl
cmp dword [ebp - 0x218], eax
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
mov dword [0x100c650], ecx
jne 0x100224b
mov eax, str._s__D:_s
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
push dword [ebp - 0x210]
push ebx
call fcn.01001f59
add esp, 0x14
push ebx
call esi
inc eax
push eax
push ebx
push 1
push 0
push 0x100c600
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b33
leave
ret