Function at 0x40202a
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 [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push 0
push eax
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x214]
xor ecx, ecx
mov ebx, ecx
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402257
push esi
xor esi, esi
push esi
push str.wextract_cleanup_d
push 0x50
push 0x408530
call fcn.0040171e
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
xor eax, eax
push eax
push eax
push eax
push 0x408530
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4020dc
inc esi
cmp esi, 0xc8
jl 0x40209d
cmp esi, 0xc8
jne 0x4020fb
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x408530], bl
jmp 0x402256
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4011d8
mov edx, edi
lea ecx, [ebp - 0x20c]
call fcn.0040658a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x402179
push 0x4011e4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor ebx, ebx
test esi, esi
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x402179
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x402196
push 0x401140
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.0040658a
jmp 0x402196
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push dword [0x409a3c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4021de
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40219f
sub ecx, edx
mov edx, 0x4091e4
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4021b0
sub edx, esi
lea edi, [ecx + 0x50]
add edi, edx
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4021ec
push eax
push 0x10
push eax
push eax
mov edx, 0x4b5
xor ecx, ecx
call fcn.004044b9
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402256
mov eax, ebx
xor eax, 1
mov dword [0x408580], eax
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
test ebx, ebx
jne 0x402204
mov eax, str._s__D:_s
push 0x4091e4
lea ecx, [ebp - 0x108]
push ecx
push eax
push edi
push esi
call fcn.0040171e
mov ecx, esi
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402220
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push 0x408530
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret