Function at 0x422860
Capabilities:
Check if file exists
Delete registry key
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4806d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4ad070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x4228a9
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x4228d2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406390
jmp 0x422914
lea ecx, [ebp - 0x2c]
call fcn.00421640
push str.MasterPDF
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x24]
push str._s_s.exe
push eax
call fcn.00406b20
mov byte [ebp - 4], 1
add esp, 0x10
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422914
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x24]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422929
xor edi, edi
jmp 0x422e3a
push str.MasterPDF
lea ecx, [ebp - 0x20]
call fcn.00407e20
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x18]
call fcn.00426620
add esp, 4
mov byte [ebp - 4], 4
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x422967
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00423d30
mov edx, eax
add esp, 4
test edx, edx
jne 0x42298b
xor ecx, ecx
jmp 0x42299f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422990
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00408110
mov edi, dword [ebp - 0x2c]
cmp dword [edi - 0xc], 0
je 0x4229fd
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4229c3
push 0x80004005
call fcn.004027d0
push eax
push edi
call fcn.0045e589
add esp, 8
test eax, eax
je 0x4229fd
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4229d6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push str.previous.pdf
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x18
push str.PDF_Document
push 1
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x422a29
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push str._s_1
push eax
call fcn.00406b20
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
push str.DefaultIcon
call fcn.00405ed0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x1c], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x422a70
sub edx, dword [ebp - 0x1c]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422aaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._shell
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.00405ed0
add esp, 4
push 8
push str.open
push 1
push 0
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422af2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x422b07
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push str.__s_____1____
push eax
call fcn.00406b20
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x38]
push str._shellopencommand
call fcn.00405ed0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x34], ecx
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x422b50
sub edx, dword [ebp - 0x34]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x38]
test eax, eax
mov eax, esi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422b95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea eax, [ebp - 0x1c]
push str.__s___print_to_default____1_
push eax
call fcn.00406b20
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
push str._shellprintcommand
call fcn.00405ed0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x422bd0
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x30]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422c0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea eax, [ebp - 0x1c]
push str.__s___print_to____2_____1_
push eax
call fcn.00406b20
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
push str._shellprinttocommand
call fcn.00405ed0
mov esi, dword [ebp - 0x1c]
add esp, 4
mov ecx, esi
mov edx, dword [eax]
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422c41
sub ecx, dword [ebp - 0x38]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push edx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x34]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422c7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x422d9d
mov eax, dword [ebp - 0x20]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x422c94
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.SoftwareClasses.pdf
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0
push 0x4994f4
push 1
push dword [ebp - 0x20]
push str.SoftwareClasses.pdfOpenWithProgids
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x14], 0x80000001
jne 0x422d94
mov eax, dword [ebp - 0x20]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x422cf0
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.Progid
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push str.Application
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea eax, [ebp - 0x14]
push eax
push 0x40000
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422d84
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x4c]
push eax
push 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x1c], 1
jmp 0x422da4
mov dword [ebp - 0x1c], 0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422dc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422de0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x422dfb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422e19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422e37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x422e55
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x422e74
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret