Function at 0x4d20ab
Capabilities:
Persist via default file association registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x572130
call fcn.00524444
sub esp, 0x3d0
mov eax, 0x100
push ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x20]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
push eax
push 0x2001f
mov esi, 0x622c94
push ebx
push esi
mov dword [ebp - 0x2c], ecx
push bind
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x4d2106
push ebx
push ebx
push str.Registry_Read_Error
call fcn.0054ed65
jmp 0x4d258e
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4d2407
cmp dword [ebp - 0x24], 1
jb 0x4d23d6
lea eax, [ebp - 0x214]
push str.UltraEdit.
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
je 0x4d22e8
mov eax, dword [0x61d784]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
call fcn.0053ebbd
push 0x2e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0053f016
cmp eax, 0xffffffff
je 0x4d22cc
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0053a8b5
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0053ec88
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0053eb4f
lea eax, [ebp - 0x18]
push 0x5b858c
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0053ede4
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0053ec88
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0053eb4f
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x110], ebx
jne 0x4d2204
push dword [ebp - 0x30]
push 0xffffffffffffffff
push 0x18f
push dword [eax + 0xa8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4d22cc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
push 0xf003f
lea eax, [ebp - 0x214]
push ebx
push eax
push bind
mov dword [ebp - 0x1c], 0xc8
mov byte [ebp - 0x2dc], bl
call edi
test eax, eax
jne 0x4d22b8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push str.Old_Default
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d229f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0x20006
push ebx
push dword [ebp - 0x18]
push bind
call edi
test eax, eax
jne 0x4d22af
lea eax, [ebp - 0x2dc]
push eax
call fcn.00525390
pop ecx
inc eax
push eax
lea eax, [ebp - 0x2dc]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d22af
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004d259d
dec dword [ebp - 0x10]
pop ecx
pop ecx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x20]
call fcn.004d259d
dec dword [ebp - 0x10]
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0053eb4f
jmp 0x4d23d6
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x110], ebx
je 0x4d23d6
cmp byte [ebp - 0x214], 0x2e
jne 0x4d23d6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0xf003f
lea eax, [ebp - 0x214]
push ebx
push eax
push bind
call edi
test eax, eax
jne 0x4d23d6
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc8
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
mov byte [ebp - 0x114], bl
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d23cd
lea eax, [ebp - 0x114]
push str.UltraEdit_Document
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
jne 0x4d2397
lea eax, [ebp - 0x114]
push str.UltraEdit_32_Document
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
jne 0x4d2397
lea eax, [ebp - 0x114]
push str.UEStudio_Document
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
je 0x4d23cd
lea eax, [ebp - 0x114]
push str.txtfile
push eax
call fcn.005254b0
lea eax, [ebp - 0x114]
push eax
call fcn.00525390
add esp, 0xc
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x100
inc dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x10]
jmp 0x4d2122
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x110], ebx
je 0x4d2585
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0xf003f
push ebx
push str.txtfile_shellopencommand
push bind
call edi
test eax, eax
jne 0x4d24c6
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc8
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
mov byte [ebp - 0x114], bl
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d24c6
lea eax, [ebp - 0x114]
push 0x5c93f4
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
jne 0x4d2490
lea eax, [ebp - 0x114]
push str.ULTRAEDT.EXE
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
je 0x4d24c6
lea eax, [ebp - 0x114]
push str.NOTEPAD.EXE___1_
push eax
call fcn.005254b0
lea eax, [ebp - 0x114]
push eax
call fcn.00525390
add esp, 0xc
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push ebx
push str.txtfile_shellprintcommand
push bind
call edi
test eax, eax
jne 0x4d257c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc8
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push esi
mov byte [ebp - 0x114], bl
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d257c
lea eax, [ebp - 0x114]
push 0x5c93f4
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
jne 0x4d2546
lea eax, [ebp - 0x114]
push str.ULTRAEDT.EXE
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
je 0x4d257c
lea eax, [ebp - 0x114]
push str.NOTEPAD.EXE__P___1_
push eax
call fcn.005254b0
lea eax, [ebp - 0x114]
push eax
call fcn.00525390
add esp, 0xc
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret