Function at 0x6d2033
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 [0x6d8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x214]
mov esi, ebx
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x6d2254
push edi
mov edi, ebx
push edi
push str.wextract_cleanup_d
push 0x50
push 0x6d8530
call fcn.006d16e6
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push 0x6d8530
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d20e1
inc edi
cmp edi, 0xc8
jl 0x6d20a4
cmp edi, 0xc8
jne 0x6d2100
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x6d8530], bl
jmp 0x6d2253
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x6d11b8
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.006d6659
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6d2179
push 0x6d11c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
push edi
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
neg esi
je 0x6d2179
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x6d2191
push 0x6d1120
mov edx, ebx
lea ecx, [ebp - 0x108]
call fcn.006d6659
jmp 0x6d2191
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [0x6d9a3c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x6d21d9
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6d219a
sub ecx, edx
mov edx, 0x6d91e4
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x6d21ab
sub edx, edi
lea ebx, [ecx + 0x50]
add ebx, edx
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x6d21e7
push eax
push 0x10
push eax
push eax
mov edx, 0x4b5
xor ecx, ecx
call fcn.006d44d8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6d2253
xor eax, eax
test esi, esi
sete al
mov dword [0x6d8580], eax
mov eax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
test esi, esi
jne 0x6d2201
mov eax, str._s__D:_s
push 0x6d91e4
lea ecx, [ebp - 0x108]
push ecx
push eax
push ebx
push edi
call fcn.006d16e6
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6d221d
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 1
push 0
push 0x6d8530
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.006d6e20
mov esp, ebp
pop ebp
ret