Function at 0x5d16bd
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
push 0xffffffffffffffff
push 0x607be0
mov eax, dword fs:[0]
push eax
mov eax, 0x1b88
call fcn.005caa70
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b84], ecx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x238]
push 0x1e
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
mov dword [ebp - 0x1b78], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1b90], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1b80], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1b8c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1b7c], eax
mov eax, dword [ebp + 0x28]
push 0x4e
mov dword [ebp - 0x1b94], eax
lea eax, [ebp - 0x1be]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.005d4960
mov esi, 0xc8
lea eax, [ebp - 0x3c8]
push esi
push ebx
push eax
call fcn.005d4960
push esi
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.005d4960
push esi
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.005d4960
mov esi, 0x190
lea eax, [ebp - 0x7b0]
push esi
push ebx
push eax
call fcn.005d4960
push esi
lea eax, [ebp - 0xe68]
push ebx
push eax
call fcn.005d4960
add esp, 0x48
lea eax, [ebp - 0x1a48]
push 0x7d0
push ebx
push eax
call fcn.005d4960
push esi
lea eax, [ebp - 0x940]
push ebx
push eax
call fcn.005d4960
push esi
lea eax, [ebp - 0x620]
push ebx
push eax
call fcn.005d4960
push esi
lea eax, [ebp - 0xad0]
push ebx
push eax
call fcn.005d4960
push 0x100
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.005d4960
mov edi, dword [ebp - 0x1b78]
push edi
push dword [ebp - 0x1b90]
push 0x609b88
lea eax, [ebp - 0x130]
push eax
call fcn.0040f920
add esp, 0x4c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.005edf33
lea eax, [ebp - 0x3c8]
push str.OpenWithProgids
push eax
call fcn.005edf33
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x300]
push edi
push eax
call fcn.005edf33
lea eax, [ebp - 0x300]
push str.UserChoice
push eax
call fcn.005edf33
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x490]
push edi
push eax
call fcn.005edf33
add esp, 0x40
lea eax, [ebp - 0x490]
push str.OpenWithList
push eax
call fcn.005edf33
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.005edf33
mov esi, dword [ebp - 0x1b84]
lea eax, [ebp - 0x7b0]
push dword [esi]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x7b0]
push str.SoftwareClasses_
push eax
call fcn.005edf33
lea eax, [ebp - 0x7b0]
push edi
push eax
call fcn.005edf33
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.005edfa4
lea eax, [ebp - 0xe68]
push str.OpenWithProgids
push eax
call fcn.005edf33
push dword [esi]
lea eax, [ebp - 0x1a48]
push eax
call fcn.005edfa4
add esp, 0x40
lea eax, [ebp - 0x1a48]
mov edi, str.SoftwareClasses_
push edi
push eax
call fcn.005edf33
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1a48]
push eax
call fcn.005edf33
lea eax, [ebp - 0x1a48]
push str.DefaultIcon
push eax
call fcn.005edf33
push dword [esi]
lea eax, [ebp - 0x940]
push eax
call fcn.005edfa4
lea eax, [ebp - 0x940]
push edi
push eax
call fcn.005edf33
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x940]
push eax
call fcn.005edf33
lea eax, [ebp - 0x940]
push str._shellopencommand
push eax
call fcn.005edf33
push dword [esi]
lea eax, [ebp - 0x620]
push eax
call fcn.005edfa4
add esp, 0x40
lea eax, [ebp - 0x620]
push edi
push eax
call fcn.005edf33
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.005edf33
lea eax, [ebp - 0x620]
push 0x611978
push eax
call fcn.005edf33
push dword [esi]
lea eax, [ebp - 0xad0]
push eax
call fcn.005edfa4
lea eax, [ebp - 0xad0]
push edi
push eax
call fcn.005edf33
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xad0]
push eax
call fcn.005edf33
lea eax, [ebp - 0xad0]
push str._shellexDropHandler
push eax
call fcn.005edf33
add esp, 0x38
cmp byte [ebp + 0x24], bl
je 0x5d1ffd
push dword [ebp - 0x1b7c]
lea eax, [ebp - 0x620]
push eax
call fcn.005edf33
pop ecx
pop ecx
lea eax, [ebp - 0x130]
mov edi, reloc.WS2_32.dll_accept
push eax
push str.ProgId
lea eax, [ebp - 0x300]
mov ecx, esi
push eax
push edi
call fcn.005d1074
test al, al
je 0x5d1b4d
push ebx
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
lea eax, [ebp - 0x3c8]
push eax
push edi
call fcn.005d1041
test al, al
je 0x5d1b4d
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
push 0x6097e8
lea eax, [ebp - 0x7b0]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d1074
test al, al
je 0x5d1b4d
push ebx
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
lea eax, [ebp - 0xe68]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d1041
test al, al
je 0x5d1b4d
push dword [ebp - 0x1b8c]
lea eax, [ebp - 0x1a48]
mov ecx, esi
push 0x6097e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d1074
test al, al
je 0x5d1b4d
push dword [ebp - 0x1b80]
lea eax, [ebp - 0x940]
mov ecx, esi
push 0x6097e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d1074
test al, al
je 0x5d1b4d
push ebx
push ebx
lea eax, [ebp - 0x620]
mov ecx, esi
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d1041
test al, al
je 0x5d1b4d
push dword [ebp - 0x1b7c]
lea eax, [ebp - 0xad0]
mov ecx, esi
push 0x6097e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d1074
test al, al
je 0x5d1b4d
mov eax, dword [ebp - 0x1b94]
mov byte [eax], bl
jmp 0x5d2162
mov eax, dword [ebp - 0x1b94]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [eax], 1
lea eax, [ebp - 0x300]
push eax
push edi
call esi
lea eax, [ebp - 0x3c8]
push eax
push edi
call esi
lea eax, [ebp - 0x490]
push eax
push edi
call esi
lea eax, [ebp - 0x238]
push eax
push edi
call esi
lea eax, [ebp - 0x238]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
and dword [ebp - 0x1b88], ebx
lea eax, [ebp - 0x1b88]
push eax
push 0
lea eax, [ebp - 0x1b84]
xor esi, esi
push eax
push 0x6097e8
push dword [ebp - 0x1b78]
inc esi
push accept
mov dword [ebp - 0x1b84], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x5d1c8f
push dword [ebp - 0x1b88]
call fcn.005d9999
push dword [ebp - 0x1b88]
mov ebx, eax
push 0
push ebx
call fcn.005d4960
add esp, 0x10
mov dword [ebp - 0x1b84], esi
lea eax, [ebp - 0x1b88]
push eax
push ebx
lea eax, [ebp - 0x1b84]
push eax
push 0x6097e8
push dword [ebp - 0x1b78]
push accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test ebx, ebx
je 0x5d1c8f
push ebx
call fcn.005edfc6
pop ecx
test eax, eax
je 0x5d1c8f
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.005edf64
pop ecx
pop ecx
test eax, eax
je 0x5d1c8f
push 0x208
lea eax, [ebp - 0xcd8]
push 0
push eax
call fcn.005d4960
push dword [ebp - 0x1b90]
lea eax, [ebp - 0xcd8]
push str._sBackup
push eax
call fcn.0040f920
push ebx
call fcn.005edfc6
add esp, 0x1c
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
lea eax, [ebp - 0xcd8]
push eax
push dword [ebp - 0x1b78]
push accept
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x130]
push eax
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push 0x6097e8
lea eax, [ebp - 0x7b0]
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 - 0x130]
push eax
lea eax, [ebp - 0xe68]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x1b8c]
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b8c]
lea eax, [ebp - 0x1a48]
push esi
push 0x6097e8
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x1b80]
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b80]
lea eax, [ebp - 0x940]
push esi
push 0x6097e8
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
push eax
push eax
push esi
push eax
lea eax, [ebp - 0x620]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x1b7c]
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b7c]
lea eax, [ebp - 0xad0]
push esi
push 0x6097e8
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 - 0x130]
push eax
lea eax, [ebp - 0x3c8]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x130]
push eax
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push str.ProgId
lea eax, [ebp - 0x300]
push eax
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call edi
push 0x110
lea eax, [ebp - 0x1b70]
push 0
push eax
call fcn.005d4960
add esp, 0xc
mov dword [ebp - 0x1b74], 0x114
lea eax, [ebp - 0x1b74]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1b70], 6
jb 0x5d1fc8
cmp dword [ebp - 0x1b6c], 2
jb 0x5d2157
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
push 0x40
push 0
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x170]
push eax
call fcn.005d4960
mov edi, 0x208
lea eax, [ebp - 0x1278]
push edi
push 0
push eax
call fcn.005d4960
push edi
lea eax, [ebp - 0x1070]
push 0
push eax
call fcn.005d4960
add esp, 0x24
lea eax, [ebp - 0x1070]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1070]
push eax
call fcn.005edfc6
pop ecx
test eax, eax
jne 0x5d1ea9
call fcn.00443920
mov ecx, eax
call fcn.0040c090
push eax
lea eax, [ebp - 0x1070]
push eax
call fcn.005edfa4
pop ecx
pop ecx
lea eax, [ebp - 0x1070]
push 0x5c
push eax
call fcn.005d63e0
pop ecx
pop ecx
test eax, eax
je 0x5d1ec3
xor ecx, ecx
mov word [eax + 2], cx
and dword [ebp - 0x1a50], 0
xor eax, eax
mov dword [ebp - 0x1a4c], 7
mov word [ebp - 0x1a60], ax
and dword [ebp - 4], eax
mov edi, str.Assh.dll
push edi
call fcn.005edfc6
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1a60]
call fcn.00407210
cmp dword [ebp - 0x1a4c], 8
lea eax, [ebp - 0x1a60]
cmovae eax, dword [ebp - 0x1a60]
push eax
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x1278]
push 0x609b88
push eax
call fcn.0040f920
add esp, 0x10
lea eax, [ebp - 0x1278]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x5d1f60
push str.HashAssociation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5d1f60
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push dword [ebp - 0x1b78]
call eax
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.005edff0
pop ecx
test eax, eax
je 0x5d1fb5
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004307f0
lea eax, [ebp - 0x170]
push eax
call fcn.005edfc6
add esp, 0xc
mov edi, reloc.WS2_32.dll_accept
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x170]
push eax
push esi
push str.Hash
lea eax, [ebp - 0x300]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0
push esi
lea ecx, [ebp - 0x1a60]
call fcn.00420750
jmp 0x5d2157
lea eax, [ebp - 0x130]
push eax
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push 0x6097e8
lea eax, [ebp - 0x238]
push eax
push reloc.WS2_32.dll_closesocket
call edi
jmp 0x5d2157
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x300]
push eax
mov edi, reloc.WS2_32.dll_accept
push edi
call esi
lea eax, [ebp - 0x3c8]
push eax
push edi
call esi
lea eax, [ebp - 0x490]
push eax
push edi
call esi
lea eax, [ebp - 0x238]
push eax
push edi
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [ebp - 0x238]
push eax
push edi
call esi
lea eax, [ebp - 0x130]
dec edi
push eax
push edi
call esi
xor ebx, ebx
mov dword [ebp - 0x1b80], 1
push 0x208
lea eax, [ebp - 0xcd8]
mov dword [ebp - 0x1b7c], ebx
push ebx
push eax
call fcn.005d4960
push dword [ebp - 0x1b90]
lea eax, [ebp - 0xcd8]
push str._sBackup
push eax
call fcn.0040f920
add esp, 0x18
lea eax, [ebp - 0x1b7c]
push eax
push ebx
lea eax, [ebp - 0x1b80]
push eax
lea eax, [ebp - 0xcd8]
push eax
push dword [ebp - 0x1b78]
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x5d2162
push dword [ebp - 0x1b7c]
call fcn.005d9999
push dword [ebp - 0x1b7c]
mov ebx, eax
push 0
push ebx
call fcn.005d4960
add esp, 0x10
lea eax, [ebp - 0x1b7c]
xor esi, esi
inc esi
mov dword [ebp - 0x1b80], esi
push eax
push ebx
lea eax, [ebp - 0x1b80]
push eax
lea eax, [ebp - 0xcd8]
push eax
push dword [ebp - 0x1b78]
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test ebx, ebx
je 0x5d2162
push ebx
call fcn.005edfc6
pop ecx
test eax, eax
je 0x5d2157
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.005edf64
pop ecx
pop ecx
test eax, eax
je 0x5d2143
push ebx
call fcn.005edfc6
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
push 0x6097e8
push dword [ebp - 0x1b78]
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0xcd8]
push eax
push dword [ebp - 0x1b78]
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test ebx, ebx
je 0x5d2162
push ebx
call fcn.005d9994
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005caa5c
mov esp, ebp
pop ebp
ret 0x24