Function at 0x5d1264
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 0x607716
mov eax, dword fs:[0]
push eax
mov eax, 0x1b88
call fcn.005ca5b0
mov eax, dword [0x69cef4]
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.005d4520
mov esi, 0xc8
lea eax, [ebp - 0x3c8]
push esi
push ebx
push eax
call fcn.005d4520
push esi
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.005d4520
push esi
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.005d4520
mov esi, 0x190
lea eax, [ebp - 0x7b0]
push esi
push ebx
push eax
call fcn.005d4520
push esi
lea eax, [ebp - 0xe68]
push ebx
push eax
call fcn.005d4520
add esp, 0x48
lea eax, [ebp - 0x1a48]
push 0x7d0
push ebx
push eax
call fcn.005d4520
push esi
lea eax, [ebp - 0x940]
push ebx
push eax
call fcn.005d4520
push esi
lea eax, [ebp - 0x620]
push ebx
push eax
call fcn.005d4520
push esi
lea eax, [ebp - 0xad0]
push ebx
push eax
call fcn.005d4520
push 0x100
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.005d4520
mov edi, dword [ebp - 0x1b78]
push edi
push dword [ebp - 0x1b90]
push 0x608b88
lea eax, [ebp - 0x130]
push eax
call fcn.0040fd00
add esp, 0x4c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.005edac0
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.005eda4f
lea eax, [ebp - 0x3c8]
push str.OpenWithProgids
push eax
call fcn.005eda4f
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.005edac0
lea eax, [ebp - 0x300]
push edi
push eax
call fcn.005eda4f
lea eax, [ebp - 0x300]
push str.UserChoice
push eax
call fcn.005eda4f
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.005edac0
lea eax, [ebp - 0x490]
push edi
push eax
call fcn.005eda4f
add esp, 0x40
lea eax, [ebp - 0x490]
push str.OpenWithList
push eax
call fcn.005eda4f
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.005eda4f
mov esi, dword [ebp - 0x1b84]
lea eax, [ebp - 0x7b0]
push dword [esi]
push eax
call fcn.005edac0
lea eax, [ebp - 0x7b0]
push str.SoftwareClasses_
push eax
call fcn.005eda4f
lea eax, [ebp - 0x7b0]
push edi
push eax
call fcn.005eda4f
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.005edac0
lea eax, [ebp - 0xe68]
push str.OpenWithProgids
push eax
call fcn.005eda4f
push dword [esi]
lea eax, [ebp - 0x1a48]
push eax
call fcn.005edac0
add esp, 0x40
lea eax, [ebp - 0x1a48]
mov edi, str.SoftwareClasses_
push edi
push eax
call fcn.005eda4f
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1a48]
push eax
call fcn.005eda4f
lea eax, [ebp - 0x1a48]
push str.DefaultIcon
push eax
call fcn.005eda4f
push dword [esi]
lea eax, [ebp - 0x940]
push eax
call fcn.005edac0
lea eax, [ebp - 0x940]
push edi
push eax
call fcn.005eda4f
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x940]
push eax
call fcn.005eda4f
lea eax, [ebp - 0x940]
push str._shellopencommand
push eax
call fcn.005eda4f
push dword [esi]
lea eax, [ebp - 0x620]
push eax
call fcn.005edac0
add esp, 0x40
lea eax, [ebp - 0x620]
push edi
push eax
call fcn.005eda4f
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.005eda4f
lea eax, [ebp - 0x620]
push 0x610958
push eax
call fcn.005eda4f
push dword [esi]
lea eax, [ebp - 0xad0]
push eax
call fcn.005edac0
lea eax, [ebp - 0xad0]
push edi
push eax
call fcn.005eda4f
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xad0]
push eax
call fcn.005eda4f
lea eax, [ebp - 0xad0]
push str._shellexDropHandler
push eax
call fcn.005eda4f
add esp, 0x38
cmp byte [ebp + 0x24], bl
je 0x5d1ba4
push dword [ebp - 0x1b7c]
lea eax, [ebp - 0x620]
push eax
call fcn.005eda4f
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.005d0c1b
test al, al
je 0x5d16f4
push ebx
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
lea eax, [ebp - 0x3c8]
push eax
push edi
call fcn.005d0be8
test al, al
je 0x5d16f4
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
push 0x6087e8
lea eax, [ebp - 0x7b0]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d0c1b
test al, al
je 0x5d16f4
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.005d0be8
test al, al
je 0x5d16f4
push dword [ebp - 0x1b8c]
lea eax, [ebp - 0x1a48]
mov ecx, esi
push 0x6087e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d0c1b
test al, al
je 0x5d16f4
push dword [ebp - 0x1b80]
lea eax, [ebp - 0x940]
mov ecx, esi
push 0x6087e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d0c1b
test al, al
je 0x5d16f4
push ebx
push ebx
lea eax, [ebp - 0x620]
mov ecx, esi
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d0be8
test al, al
je 0x5d16f4
push dword [ebp - 0x1b7c]
lea eax, [ebp - 0xad0]
mov ecx, esi
push 0x6087e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d0c1b
test al, al
je 0x5d16f4
mov eax, dword [ebp - 0x1b94]
mov byte [eax], bl
jmp 0x5d1d09
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 0x6087e8
push dword [ebp - 0x1b78]
inc esi
push accept
mov dword [ebp - 0x1b84], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x5d1836
push dword [ebp - 0x1b88]
call fcn.005d9579
push dword [ebp - 0x1b88]
mov ebx, eax
push 0
push ebx
call fcn.005d4520
add esp, 0x10
mov dword [ebp - 0x1b84], esi
lea eax, [ebp - 0x1b88]
push eax
push ebx
lea eax, [ebp - 0x1b84]
push eax
push 0x6087e8
push dword [ebp - 0x1b78]
push accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test ebx, ebx
je 0x5d1836
push ebx
call fcn.005edae2
pop ecx
test eax, eax
je 0x5d1836
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.005eda80
pop ecx
pop ecx
test eax, eax
je 0x5d1836
push 0x208
lea eax, [ebp - 0xcd8]
push 0
push eax
call fcn.005d4520
push dword [ebp - 0x1b90]
lea eax, [ebp - 0xcd8]
push str._sBackup
push eax
call fcn.0040fd00
push ebx
call fcn.005edae2
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.005edae2
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push 0x6087e8
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.005edae2
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b8c]
lea eax, [ebp - 0x1a48]
push esi
push 0x6087e8
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x1b80]
call fcn.005edae2
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b80]
lea eax, [ebp - 0x940]
push esi
push 0x6087e8
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.005edae2
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1b7c]
lea eax, [ebp - 0xad0]
push esi
push 0x6087e8
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.005edae2
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.005d4520
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 0x5d1b6f
cmp dword [ebp - 0x1b6c], 2
jb 0x5d1cfe
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.005d4520
mov edi, 0x208
lea eax, [ebp - 0x1278]
push edi
push 0
push eax
call fcn.005d4520
push edi
lea eax, [ebp - 0x1070]
push 0
push eax
call fcn.005d4520
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.005edae2
pop ecx
test eax, eax
jne 0x5d1a50
call fcn.004438a0
mov ecx, eax
call fcn.0040c490
push eax
lea eax, [ebp - 0x1070]
push eax
call fcn.005edac0
pop ecx
pop ecx
lea eax, [ebp - 0x1070]
push 0x5c
push eax
call fcn.005d5fc0
pop ecx
pop ecx
test eax, eax
je 0x5d1a6a
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.005edae2
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1a60]
call fcn.00407280
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 0x608b88
push eax
call fcn.0040fd00
add esp, 0x10
lea eax, [ebp - 0x1278]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x5d1b07
push str.HashAssociation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5d1b07
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.005edb00
pop ecx
test eax, eax
je 0x5d1b5c
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004305e0
lea eax, [ebp - 0x170]
push eax
call fcn.005edae2
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.00420a80
jmp 0x5d1cfe
lea eax, [ebp - 0x130]
push eax
call fcn.005edae2
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push 0x6087e8
lea eax, [ebp - 0x238]
push eax
push reloc.WS2_32.dll_closesocket
call edi
jmp 0x5d1cfe
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.005d4520
push dword [ebp - 0x1b90]
lea eax, [ebp - 0xcd8]
push str._sBackup
push eax
call fcn.0040fd00
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 0x5d1d09
push dword [ebp - 0x1b7c]
call fcn.005d9579
push dword [ebp - 0x1b7c]
mov ebx, eax
push 0
push ebx
call fcn.005d4520
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 0x5d1d09
push ebx
call fcn.005edae2
pop ecx
test eax, eax
je 0x5d1cfe
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.005eda80
pop ecx
pop ecx
test eax, eax
je 0x5d1cea
push ebx
call fcn.005edae2
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
push 0x6087e8
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 0x5d1d09
push ebx
call fcn.005d9574
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.005ca59c
mov esp, ebp
pop ebp
ret 0x24