Function at 0x59c328
Capabilities:
Check os version
Delete registry key
Delete registry value
Persist via contextmenuhandlers registry key
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1dfc
call fcn.0059d3d0
mov eax, dword [0x667d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x1e
mov dword [ebp - 0x1ddc], ecx
lea edi, [ebp - 0x1ec]
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
mov dword [ebp - 0x1dfc], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1df4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1de4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1df0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1de0], eax
mov eax, dword [ebp + 0x28]
push 0x4e
mov dword [ebp - 0x1df8], eax
lea eax, [ebp - 0x172]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.005a26c0
mov esi, 0xc8
lea eax, [ebp - 0x3bc]
push esi
push ebx
push eax
call fcn.005a26c0
push esi
lea eax, [ebp - 0x2f4]
push ebx
push eax
call fcn.005a26c0
push esi
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.005a26c0
mov edi, 0x190
lea eax, [ebp - 0x9ac]
push edi
push ebx
push eax
call fcn.005a26c0
push edi
lea eax, [ebp - 0xccc]
push ebx
push eax
call fcn.005a26c0
add esp, 0x48
lea eax, [ebp - 0x1cc4]
push 0x7d0
push ebx
push eax
call fcn.005a26c0
push edi
lea eax, [ebp - 0xe5c]
push ebx
push eax
call fcn.005a26c0
push edi
lea eax, [ebp - 0xb3c]
push ebx
push eax
call fcn.005a26c0
push edi
lea eax, [ebp - 0xfec]
push ebx
push eax
call fcn.005a26c0
add esi, 0x38
lea eax, [ebp - 0x124]
push esi
push ebx
push eax
call fcn.005a26c0
push edi
lea eax, [ebp - 0x81c]
push ebx
push eax
call fcn.005a26c0
add esp, 0x48
lea eax, [ebp - 0x10ec]
push esi
push ebx
push eax
call fcn.005a26c0
push esi
lea eax, [ebp - 0x11ec]
push ebx
push eax
call fcn.005a26c0
push esi
lea eax, [ebp - 0x12ec]
push ebx
push eax
call fcn.005a26c0
mov edi, dword [ebp - 0x1dfc]
lea eax, [ebp - 0x124]
push edi
push dword [ebp - 0x1df4]
push 0x5d82f0
push eax
call fcn.00405e00
mov esi, dword [ebp - 0x1ddc]
add esp, 0x34
cmp byte [esi + 4], bl
je 0x59c538
push edi
push str.ZHPDFReader
lea eax, [ebp - 0x10ec]
push 0x5d82f0
push eax
call fcn.00405e00
push str.ZHPDFReader
lea eax, [ebp - 0x11ec]
push 0x5d6ca0
push eax
call fcn.00405e00
push edi
push str._NNSP
lea eax, [ebp - 0x12ec]
push 0x5d82f0
push eax
call fcn.00405e00
add esp, 0x2c
lea eax, [ebp - 0x10ec]
mov ecx, esi
push eax
push edi
call fcn.0059bb8e
test eax, eax
jne 0x59ce0d
lea eax, [ebp - 0x11ec]
mov ecx, esi
push eax
push edi
call fcn.0059bb8e
test eax, eax
jne 0x59ce0d
lea eax, [ebp - 0x12ec]
mov ecx, esi
push eax
push edi
call fcn.0059bb8e
test eax, eax
jne 0x59ce0d
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x3bc]
push eax
call fcn.005b023d
lea eax, [ebp - 0x3bc]
push edi
push eax
call fcn.005b01cc
lea eax, [ebp - 0x3bc]
push str.OpenWithProgids
push eax
call fcn.005b01cc
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.005b023d
lea eax, [ebp - 0x2f4]
push edi
push eax
call fcn.005b01cc
lea eax, [ebp - 0x2f4]
push str.UserChoice
push eax
call fcn.005b01cc
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.005b023d
lea eax, [ebp - 0x484]
push edi
push eax
call fcn.005b01cc
add esp, 0x40
lea eax, [ebp - 0x484]
push str.OpenWithList
push eax
call fcn.005b01cc
lea eax, [ebp - 0x1ec]
push edi
push eax
call fcn.005b01cc
push dword [esi]
lea eax, [ebp - 0x9ac]
push eax
call fcn.005b023d
lea eax, [ebp - 0x9ac]
push str.SoftwareClasses_
push eax
call fcn.005b01cc
lea eax, [ebp - 0x9ac]
push edi
push eax
call fcn.005b01cc
lea eax, [ebp - 0x9ac]
push eax
lea eax, [ebp - 0xccc]
push eax
call fcn.005b023d
lea eax, [ebp - 0xccc]
push str.OpenWithProgids
push eax
call fcn.005b01cc
push dword [esi]
lea eax, [ebp - 0x81c]
push eax
call fcn.005b023d
add esp, 0x40
lea eax, [ebp - 0x81c]
push str.SoftwareClasses_
push eax
call fcn.005b01cc
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.005b01cc
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x1cc4]
push eax
call fcn.005b023d
lea eax, [ebp - 0x1cc4]
push str.DefaultIcon
push eax
call fcn.005b01cc
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.005b023d
lea eax, [ebp - 0xe5c]
push str._shellopencommand
push eax
call fcn.005b01cc
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0xb3c]
push eax
call fcn.005b023d
lea eax, [ebp - 0xb3c]
push 0x5d884c
push eax
call fcn.005b01cc
add esp, 0x40
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0xfec]
push eax
call fcn.005b023d
lea eax, [ebp - 0xfec]
push str._shellexDropHandler
push eax
call fcn.005b01cc
add esp, 0x10
cmp byte [ebp + 0x24], bl
je 0x59ccaf
push dword [ebp - 0x1de0]
lea eax, [ebp - 0xb3c]
push eax
call fcn.005b01cc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x124]
push eax
push str.ProgId
lea eax, [ebp - 0x2f4]
mov esi, reloc.WS2_32.dll_accept
push eax
push esi
call fcn.0059bceb
test al, al
je 0x59c854
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x124]
push 0
push eax
lea eax, [ebp - 0x3bc]
push eax
push esi
call fcn.0059bcba
test al, al
je 0x59c854
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x124]
push eax
push 0x6568d8
lea eax, [ebp - 0x9ac]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059bceb
test al, al
je 0x59c854
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x124]
push 0
push eax
lea eax, [ebp - 0xccc]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059bcba
test al, al
je 0x59c854
push dword [ebp - 0x1df0]
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x1cc4]
push 0x6568d8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059bceb
test al, al
je 0x59c854
push dword [ebp - 0x1de4]
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0xe5c]
push 0x6568d8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059bceb
test al, al
je 0x59c854
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0xb3c]
push 0
push 0
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059bcba
test al, al
je 0x59c854
push dword [ebp - 0x1de0]
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0xfec]
push 0x6568d8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059bceb
test al, al
je 0x59c854
mov eax, dword [ebp - 0x1df8]
mov byte [eax], bl
jmp 0x59ce0d
mov eax, dword [ebp - 0x1df8]
mov byte [eax], 1
lea eax, [ebp - 0x2f4]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call esi
lea eax, [ebp - 0x3bc]
push eax
push reloc.WS2_32.dll_accept
call esi
lea eax, [ebp - 0x484]
push eax
push reloc.WS2_32.dll_accept
call esi
lea eax, [ebp - 0x1ec]
push eax
push reloc.WS2_32.dll_accept
call esi
lea eax, [ebp - 0x1ec]
mov esi, reloc.WS2_32.dll_accept
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
and dword [ebp - 0x1de8], ebx
lea eax, [ebp - 0x1de8]
push eax
push 0
lea eax, [ebp - 0x1dec]
mov dword [ebp - 0x1dec], 1
push eax
push 0x6568d8
push edi
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x59c99e
push dword [ebp - 0x1de8]
call fcn.005b0cd6
push dword [ebp - 0x1de8]
mov ebx, eax
push 0
push ebx
call fcn.005a26c0
add esp, 0x10
mov dword [ebp - 0x1dec], 1
lea eax, [ebp - 0x1de8]
push eax
push ebx
lea eax, [ebp - 0x1dec]
push eax
push 0x6568d8
push edi
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test ebx, ebx
je 0x59c99e
push ebx
call fcn.005b025f
pop ecx
test eax, eax
je 0x59c99e
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.005b01fd
pop ecx
pop ecx
test eax, eax
je 0x59c99e
push 0x208
lea eax, [ebp - 0x68c]
push 0
push eax
call fcn.005a26c0
push dword [ebp - 0x1df4]
lea eax, [ebp - 0x68c]
push str._sBackup
push eax
call fcn.00405e00
push ebx
call fcn.005b025f
add esp, 0x1c
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
lea eax, [ebp - 0x68c]
push eax
push edi
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x124]
push eax
call fcn.005b025f
pop ecx
xor edi, edi
inc edi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x124]
push eax
push edi
push 0x6568d8
lea eax, [ebp - 0x9ac]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xccc]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x1df0]
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1df0]
lea eax, [ebp - 0x1cc4]
push edi
push 0x6568d8
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x1de4]
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1de4]
lea eax, [ebp - 0xe5c]
push edi
push 0x6568d8
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
push eax
push eax
push edi
push eax
lea eax, [ebp - 0xb3c]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x1de0]
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1de0]
lea eax, [ebp - 0xfec]
push edi
push 0x6568d8
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x3bc]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x124]
push eax
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x124]
push eax
push edi
push str.ProgId
lea eax, [ebp - 0x2f4]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x110
lea eax, [ebp - 0x1dd4]
push 0
push eax
call fcn.005a26c0
add esp, 0xc
mov dword [ebp - 0x1dd8], 0x114
lea eax, [ebp - 0x1dd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1dd4], 6
jb 0x59cc76
cmp dword [ebp - 0x1dd0], 2
jb 0x59ce02
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
push 0x40
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x22c]
push eax
call fcn.005a26c0
mov edi, 0x208
lea eax, [ebp - 0x14f4]
push edi
push 0
push eax
call fcn.005a26c0
push edi
lea eax, [ebp - 0x68c]
push 0
push eax
call fcn.005a26c0
add esp, 0x24
lea eax, [ebp - 0x68c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x68c]
push eax
call fcn.005b025f
pop ecx
test eax, eax
jne 0x59cbb1
call fcn.00404610
mov ecx, eax
call fcn.0043cd98
push eax
lea eax, [ebp - 0x68c]
push eax
call fcn.005b023d
pop ecx
pop ecx
lea eax, [ebp - 0x68c]
push 0x5c
push eax
call fcn.005a2e23
pop ecx
pop ecx
test eax, eax
je 0x59cbcb
xor ecx, ecx
mov word [eax + 2], cx
push str.BKAss.dll
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x14f4]
push 0x5d82f0
push eax
call fcn.00405e00
add esp, 0x10
lea eax, [ebp - 0x14f4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x59cc25
push str.HashAssociation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x59cc25
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x1dfc]
push eax
call ecx
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call fcn.005b0280
pop ecx
test eax, eax
je 0x59ce02
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004433a5
lea eax, [ebp - 0x124]
push eax
call fcn.005b025f
add esp, 0xc
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x22c]
push eax
push 1
push str.Hash
lea eax, [ebp - 0x2f4]
push eax
push esi
jmp 0x59cca4
lea eax, [ebp - 0x124]
push eax
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x124]
push eax
push edi
push 0x6568d8
lea eax, [ebp - 0x1ec]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x59ce02
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x2f4]
push eax
mov ebx, reloc.WS2_32.dll_accept
push ebx
call esi
lea eax, [ebp - 0x3bc]
push eax
push ebx
call esi
lea eax, [ebp - 0x484]
push eax
push ebx
call esi
lea eax, [ebp - 0x1ec]
push eax
push ebx
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [ebp - 0x1ec]
push eax
push ebx
call esi
lea eax, [ebp - 0x124]
dec ebx
push eax
push ebx
call esi
and dword [ebp - 0x1de0], 0
lea eax, [ebp - 0x68c]
push 0x208
push 0
push eax
mov dword [ebp - 0x1de4], 1
call fcn.005a26c0
push dword [ebp - 0x1df4]
lea eax, [ebp - 0x68c]
push str._sBackup
push eax
call fcn.00405e00
add esp, 0x18
lea eax, [ebp - 0x1de0]
push eax
push 0
lea eax, [ebp - 0x1de4]
push eax
lea eax, [ebp - 0x68c]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x59ce0d
push dword [ebp - 0x1de0]
call fcn.005b0cd6
push dword [ebp - 0x1de0]
mov ebx, eax
push 0
push ebx
call fcn.005a26c0
add esp, 0x10
lea eax, [ebp - 0x1de0]
xor esi, esi
inc esi
mov dword [ebp - 0x1de4], esi
push eax
push ebx
lea eax, [ebp - 0x1de4]
push eax
lea eax, [ebp - 0x68c]
push eax
push edi
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test ebx, ebx
je 0x59ce0d
push ebx
call fcn.005b025f
pop ecx
test eax, eax
je 0x59ce02
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.005b01fd
pop ecx
pop ecx
test eax, eax
je 0x59cdef
push ebx
call fcn.005b025f
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
push 0x6568d8
push edi
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x68c]
push eax
push edi
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test ebx, ebx
je 0x59ce0d
push ebx
call fcn.005af8a4
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059d38a
leave
ret 0x24