Function at 0x59bea7
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.0059cf50
mov eax, dword [0x667ce0]
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.005a2240
mov esi, 0xc8
lea eax, [ebp - 0x3bc]
push esi
push ebx
push eax
call fcn.005a2240
push esi
lea eax, [ebp - 0x2f4]
push ebx
push eax
call fcn.005a2240
push esi
lea eax, [ebp - 0x484]
push ebx
push eax
call fcn.005a2240
mov edi, 0x190
lea eax, [ebp - 0x9ac]
push edi
push ebx
push eax
call fcn.005a2240
push edi
lea eax, [ebp - 0xccc]
push ebx
push eax
call fcn.005a2240
add esp, 0x48
lea eax, [ebp - 0x1cc4]
push 0x7d0
push ebx
push eax
call fcn.005a2240
push edi
lea eax, [ebp - 0xe5c]
push ebx
push eax
call fcn.005a2240
push edi
lea eax, [ebp - 0xb3c]
push ebx
push eax
call fcn.005a2240
push edi
lea eax, [ebp - 0xfec]
push ebx
push eax
call fcn.005a2240
add esi, 0x38
lea eax, [ebp - 0x124]
push esi
push ebx
push eax
call fcn.005a2240
push edi
lea eax, [ebp - 0x81c]
push ebx
push eax
call fcn.005a2240
add esp, 0x48
lea eax, [ebp - 0x10ec]
push esi
push ebx
push eax
call fcn.005a2240
push esi
lea eax, [ebp - 0x11ec]
push ebx
push eax
call fcn.005a2240
push esi
lea eax, [ebp - 0x12ec]
push ebx
push eax
call fcn.005a2240
mov edi, dword [ebp - 0x1dfc]
lea eax, [ebp - 0x124]
push edi
push dword [ebp - 0x1df4]
push 0x5d82b8
push eax
call fcn.00405d80
mov esi, dword [ebp - 0x1ddc]
add esp, 0x34
cmp byte [esi + 4], bl
je 0x59c0b7
push edi
push str.ZHPDFReader
lea eax, [ebp - 0x10ec]
push 0x5d82b8
push eax
call fcn.00405d80
push str.ZHPDFReader
lea eax, [ebp - 0x11ec]
push 0x5d6c90
push eax
call fcn.00405d80
push edi
push str._NNSP
lea eax, [ebp - 0x12ec]
push 0x5d82b8
push eax
call fcn.00405d80
add esp, 0x2c
lea eax, [ebp - 0x10ec]
mov ecx, esi
push eax
push edi
call fcn.0059b70d
test eax, eax
jne 0x59c98c
lea eax, [ebp - 0x11ec]
mov ecx, esi
push eax
push edi
call fcn.0059b70d
test eax, eax
jne 0x59c98c
lea eax, [ebp - 0x12ec]
mov ecx, esi
push eax
push edi
call fcn.0059b70d
test eax, eax
jne 0x59c98c
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x3bc]
push eax
call fcn.005afda6
lea eax, [ebp - 0x3bc]
push edi
push eax
call fcn.005afd35
lea eax, [ebp - 0x3bc]
push str.OpenWithProgids
push eax
call fcn.005afd35
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.005afda6
lea eax, [ebp - 0x2f4]
push edi
push eax
call fcn.005afd35
lea eax, [ebp - 0x2f4]
push str.UserChoice
push eax
call fcn.005afd35
lea eax, [ebp - 0x1ec]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.005afda6
lea eax, [ebp - 0x484]
push edi
push eax
call fcn.005afd35
add esp, 0x40
lea eax, [ebp - 0x484]
push str.OpenWithList
push eax
call fcn.005afd35
lea eax, [ebp - 0x1ec]
push edi
push eax
call fcn.005afd35
push dword [esi]
lea eax, [ebp - 0x9ac]
push eax
call fcn.005afda6
lea eax, [ebp - 0x9ac]
push str.SoftwareClasses_
push eax
call fcn.005afd35
lea eax, [ebp - 0x9ac]
push edi
push eax
call fcn.005afd35
lea eax, [ebp - 0x9ac]
push eax
lea eax, [ebp - 0xccc]
push eax
call fcn.005afda6
lea eax, [ebp - 0xccc]
push str.OpenWithProgids
push eax
call fcn.005afd35
push dword [esi]
lea eax, [ebp - 0x81c]
push eax
call fcn.005afda6
add esp, 0x40
lea eax, [ebp - 0x81c]
push str.SoftwareClasses_
push eax
call fcn.005afd35
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.005afd35
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x1cc4]
push eax
call fcn.005afda6
lea eax, [ebp - 0x1cc4]
push str.DefaultIcon
push eax
call fcn.005afd35
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0xe5c]
push eax
call fcn.005afda6
lea eax, [ebp - 0xe5c]
push str._shellopencommand
push eax
call fcn.005afd35
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0xb3c]
push eax
call fcn.005afda6
lea eax, [ebp - 0xb3c]
push 0x5d8814
push eax
call fcn.005afd35
add esp, 0x40
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0xfec]
push eax
call fcn.005afda6
lea eax, [ebp - 0xfec]
push str._shellexDropHandler
push eax
call fcn.005afd35
add esp, 0x10
cmp byte [ebp + 0x24], bl
je 0x59c82e
push dword [ebp - 0x1de0]
lea eax, [ebp - 0xb3c]
push eax
call fcn.005afd35
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.0059b86a
test al, al
je 0x59c3d3
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x124]
push 0
push eax
lea eax, [ebp - 0x3bc]
push eax
push esi
call fcn.0059b839
test al, al
je 0x59c3d3
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x124]
push eax
push 0x656858
lea eax, [ebp - 0x9ac]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059b86a
test al, al
je 0x59c3d3
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.0059b839
test al, al
je 0x59c3d3
push dword [ebp - 0x1df0]
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0x1cc4]
push 0x656858
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059b86a
test al, al
je 0x59c3d3
push dword [ebp - 0x1de4]
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0xe5c]
push 0x656858
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059b86a
test al, al
je 0x59c3d3
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0xb3c]
push 0
push 0
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059b839
test al, al
je 0x59c3d3
push dword [ebp - 0x1de0]
mov ecx, dword [ebp - 0x1ddc]
lea eax, [ebp - 0xfec]
push 0x656858
push eax
push reloc.WS2_32.dll_closesocket
call fcn.0059b86a
test al, al
je 0x59c3d3
mov eax, dword [ebp - 0x1df8]
mov byte [eax], bl
jmp 0x59c98c
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 0x656858
push edi
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x59c51d
push dword [ebp - 0x1de8]
call fcn.005b07e2
push dword [ebp - 0x1de8]
mov ebx, eax
push 0
push ebx
call fcn.005a2240
add esp, 0x10
mov dword [ebp - 0x1dec], 1
lea eax, [ebp - 0x1de8]
push eax
push ebx
lea eax, [ebp - 0x1dec]
push eax
push 0x656858
push edi
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test ebx, ebx
je 0x59c51d
push ebx
call fcn.005afdc8
pop ecx
test eax, eax
je 0x59c51d
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.005afd66
pop ecx
pop ecx
test eax, eax
je 0x59c51d
push 0x208
lea eax, [ebp - 0x68c]
push 0
push eax
call fcn.005a2240
push dword [ebp - 0x1df4]
lea eax, [ebp - 0x68c]
push str._sBackup
push eax
call fcn.00405d80
push ebx
call fcn.005afdc8
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.005afdc8
pop ecx
xor edi, edi
inc edi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x124]
push eax
push edi
push 0x656858
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.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1df0]
lea eax, [ebp - 0x1cc4]
push edi
push 0x656858
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x1de4]
call fcn.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1de4]
lea eax, [ebp - 0xe5c]
push edi
push 0x656858
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.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1de0]
lea eax, [ebp - 0xfec]
push edi
push 0x656858
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.005afdc8
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.005a2240
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 0x59c7f5
cmp dword [ebp - 0x1dd0], 2
jb 0x59c981
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.005a2240
mov edi, 0x208
lea eax, [ebp - 0x14f4]
push edi
push 0
push eax
call fcn.005a2240
push edi
lea eax, [ebp - 0x68c]
push 0
push eax
call fcn.005a2240
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.005afdc8
pop ecx
test eax, eax
jne 0x59c730
call fcn.00404590
mov ecx, eax
call fcn.0043c9f8
push eax
lea eax, [ebp - 0x68c]
push eax
call fcn.005afda6
pop ecx
pop ecx
lea eax, [ebp - 0x68c]
push 0x5c
push eax
call fcn.005a29a3
pop ecx
pop ecx
test eax, eax
je 0x59c74a
xor ecx, ecx
mov word [eax + 2], cx
push str.BKAss.dll
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x14f4]
push 0x5d82b8
push eax
call fcn.00405d80
add esp, 0x10
lea eax, [ebp - 0x14f4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x59c7a4
push str.HashAssociation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x59c7a4
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.005afdf0
pop ecx
test eax, eax
je 0x59c981
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00442ff8
lea eax, [ebp - 0x124]
push eax
call fcn.005afdc8
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 0x59c823
lea eax, [ebp - 0x124]
push eax
call fcn.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x124]
push eax
push edi
push 0x656858
lea eax, [ebp - 0x1ec]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x59c981
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.005a2240
push dword [ebp - 0x1df4]
lea eax, [ebp - 0x68c]
push str._sBackup
push eax
call fcn.00405d80
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 0x59c98c
push dword [ebp - 0x1de0]
call fcn.005b07e2
push dword [ebp - 0x1de0]
mov ebx, eax
push 0
push ebx
call fcn.005a2240
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 0x59c98c
push ebx
call fcn.005afdc8
pop ecx
test eax, eax
je 0x59c981
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.005afd66
pop ecx
pop ecx
test eax, eax
je 0x59c96e
push ebx
call fcn.005afdc8
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
push 0x656858
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 0x59c98c
push ebx
call fcn.005af424
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059cf09
leave
ret 0x24