Function at 0x1001c76
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 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 0x1001e66
mov dword [ebp - 4], ebx
mov esi, 0x100a300
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 0x1001d1e
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1001cef
cmp dword [ebp - 4], edi
jne 0x1001d37
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x100a300], bl
jmp 0x1001e66
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.01005a24
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001d8f
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 0x1001db5
call edi
test eax, eax
je 0x1001dc5
lea eax, [ebp - 0x118]
push 0x10012c4
push eax
call fcn.01005a24
jmp 0x1001dc5
push dword [0x100b6dc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1001e03
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 0x1001e0e
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.01003c23
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001e66
xor ecx, ecx
cmp dword [ebp - 0xc], eax
sete cl
cmp dword [ebp - 0xc], eax
mov dword [0x100a350], ecx
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
jne 0x1001e2b
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 0x100a300
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