Function at 0x401d56
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, 0x218
mov eax, dword [0x40700c]
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 - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401f8b
push edi
mov edi, ebx
push edi
push str.wextract_cleanup_d
push 0x50
push 0x407658
call fcn.00401425
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
push ebx
push ebx
push ebx
push 0x407658
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401e10
inc edi
cmp edi, 0xc8
jl 0x401dd3
cmp edi, 0xc8
jne 0x401e2f
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x407658], bl
jmp 0x401f8a
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call ebx
push edi
mov eax, 0x4010dc
lea ecx, [ebp - 0x20c]
call fcn.00406177
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401eab
push 0x4010e8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
neg esi
push edi
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
neg esi
je 0x401eab
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call ebx
test eax, eax
je 0x401ec8
push edi
mov eax, 0x401044
lea ecx, [ebp - 0x108]
call fcn.00406177
jmp 0x401ec8
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
push dword [0x408244]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401f11
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401ed1
sub ecx, edx
mov edx, 0x408304
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x401ee2
sub edx, edi
lea ebx, [ecx + 0x50]
add ebx, edx
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor eax, eax
test edi, edi
jne 0x401f1f
push eax
push 0x10
push eax
push eax
push 0x4b5
push eax
call fcn.004040e2
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401f8a
test esi, esi
sete al
mov dword [0x407650], eax
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
test esi, esi
jne 0x401f37
mov eax, str._s__D:_s
push 0x408304
lea ecx, [ebp - 0x108]
push ecx
push eax
push ebx
push edi
call fcn.00401425
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f53
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 1
xor eax, eax
push eax
push 0x407658
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004068a6
leave
ret