Function at 0x5d1893
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 0x607d90
mov eax, dword fs:[0]
push eax
mov eax, 0x1b88
call fcn.005cabd0
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.005d4b40
mov esi, 0xc8
lea eax, [ebp - 0x3c8]
push esi
push ebx
push eax
call fcn.005d4b40
push esi
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.005d4b40
push esi
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.005d4b40
mov esi, 0x190
lea eax, [ebp - 0x7b0]
push esi
push ebx
push eax
call fcn.005d4b40
push esi
lea eax, [ebp - 0xe68]
push ebx
push eax
call fcn.005d4b40
add esp, 0x48
lea eax, [ebp - 0x1a48]
push 0x7d0
push ebx
push eax
call fcn.005d4b40
push esi
lea eax, [ebp - 0x940]
push ebx
push eax
call fcn.005d4b40
push esi
lea eax, [ebp - 0x620]
push ebx
push eax
call fcn.005d4b40
push esi
lea eax, [ebp - 0xad0]
push ebx
push eax
call fcn.005d4b40
push 0x100
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.005d4b40
mov edi, dword [ebp - 0x1b78]
push edi
push dword [ebp - 0x1b90]
push 0x609b88
lea eax, [ebp - 0x130]
push eax
call fcn.0040fd80
add esp, 0x4c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.005ee140
lea eax, [ebp - 0x3c8]
push edi
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x3c8]
push str.OpenWithProgids
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.005ee140
lea eax, [ebp - 0x300]
push edi
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x300]
push str.UserChoice
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.005ee140
lea eax, [ebp - 0x490]
push edi
push eax
call fcn.005ee0cf
add esp, 0x40
lea eax, [ebp - 0x490]
push str.OpenWithList
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.005ee0cf
mov esi, dword [ebp - 0x1b84]
lea eax, [ebp - 0x7b0]
push dword [esi]
push eax
call fcn.005ee140
lea eax, [ebp - 0x7b0]
push str.SoftwareClasses_
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x7b0]
push edi
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.005ee140
lea eax, [ebp - 0xe68]
push str.OpenWithProgids
push eax
call fcn.005ee0cf
push dword [esi]
lea eax, [ebp - 0x1a48]
push eax
call fcn.005ee140
add esp, 0x40
lea eax, [ebp - 0x1a48]
mov edi, str.SoftwareClasses_
push edi
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1a48]
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x1a48]
push str.DefaultIcon
push eax
call fcn.005ee0cf
push dword [esi]
lea eax, [ebp - 0x940]
push eax
call fcn.005ee140
lea eax, [ebp - 0x940]
push edi
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x940]
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x940]
push str._shellopencommand
push eax
call fcn.005ee0cf
push dword [esi]
lea eax, [ebp - 0x620]
push eax
call fcn.005ee140
add esp, 0x40
lea eax, [ebp - 0x620]
push edi
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x620]
push 0x611978
push eax
call fcn.005ee0cf
push dword [esi]
lea eax, [ebp - 0xad0]
push eax
call fcn.005ee140
lea eax, [ebp - 0xad0]
push edi
push eax
call fcn.005ee0cf
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xad0]
push eax
call fcn.005ee0cf
lea eax, [ebp - 0xad0]
push str._shellexDropHandler
push eax
call fcn.005ee0cf
add esp, 0x38
cmp byte [ebp + 0x24], bl
je 0x5d21d3
push dword [ebp - 0x1b7c]
lea eax, [ebp - 0x620]
push eax
call fcn.005ee0cf
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.005d124a
test al, al
je 0x5d1d23
push ebx
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
lea eax, [ebp - 0x3c8]
push eax
push edi
call fcn.005d1217
test al, al
je 0x5d1d23
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.005d124a
test al, al
je 0x5d1d23
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.005d1217
test al, al
je 0x5d1d23
push dword [ebp - 0x1b8c]
lea eax, [ebp - 0x1a48]
mov ecx, esi
push 0x6097e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d124a
test al, al
je 0x5d1d23
push dword [ebp - 0x1b80]
lea eax, [ebp - 0x940]
mov ecx, esi
push 0x6097e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d124a
test al, al
je 0x5d1d23
push ebx
push ebx
lea eax, [ebp - 0x620]
mov ecx, esi
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d1217
test al, al
je 0x5d1d23
push dword [ebp - 0x1b7c]
lea eax, [ebp - 0xad0]
mov ecx, esi
push 0x6097e8
push eax
push reloc.WS2_32.dll_closesocket
call fcn.005d124a
test al, al
je 0x5d1d23
mov eax, dword [ebp - 0x1b94]
mov byte [eax], bl
jmp 0x5d2338
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 0x5d1e65
push dword [ebp - 0x1b88]
call fcn.005d9b79
push dword [ebp - 0x1b88]
mov ebx, eax
push 0
push ebx
call fcn.005d4b40
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 0x5d1e65
push ebx
call fcn.005ee162
pop ecx
test eax, eax
je 0x5d1e65
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.005ee100
pop ecx
pop ecx
test eax, eax
je 0x5d1e65
push 0x208
lea eax, [ebp - 0xcd8]
push 0
push eax
call fcn.005d4b40
push dword [ebp - 0x1b90]
lea eax, [ebp - 0xcd8]
push str._sBackup
push eax
call fcn.0040fd80
push ebx
call fcn.005ee162
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.005ee162
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.005ee162
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.005ee162
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.005ee162
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.005ee162
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.005d4b40
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 0x5d219e
cmp dword [ebp - 0x1b6c], 2
jb 0x5d232d
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.005d4b40
mov edi, 0x208
lea eax, [ebp - 0x1278]
push edi
push 0
push eax
call fcn.005d4b40
push edi
lea eax, [ebp - 0x1070]
push 0
push eax
call fcn.005d4b40
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.005ee162
pop ecx
test eax, eax
jne 0x5d207f
call fcn.00443e10
mov ecx, eax
call fcn.0040c4f0
push eax
lea eax, [ebp - 0x1070]
push eax
call fcn.005ee140
pop ecx
pop ecx
lea eax, [ebp - 0x1070]
push 0x5c
push eax
call fcn.005d65c0
pop ecx
pop ecx
test eax, eax
je 0x5d2099
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.005ee162
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1a60]
call fcn.004072f0
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.0040fd80
add esp, 0x10
lea eax, [ebp - 0x1278]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x5d2136
push str.HashAssociation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5d2136
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.005ee180
pop ecx
test eax, eax
je 0x5d218b
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004307d0
lea eax, [ebp - 0x170]
push eax
call fcn.005ee162
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.00420bb0
jmp 0x5d232d
lea eax, [ebp - 0x130]
push eax
call fcn.005ee162
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 0x5d232d
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.005d4b40
push dword [ebp - 0x1b90]
lea eax, [ebp - 0xcd8]
push str._sBackup
push eax
call fcn.0040fd80
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 0x5d2338
push dword [ebp - 0x1b7c]
call fcn.005d9b79
push dword [ebp - 0x1b7c]
mov ebx, eax
push 0
push ebx
call fcn.005d4b40
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 0x5d2338
push ebx
call fcn.005ee162
pop ecx
test eax, eax
je 0x5d232d
lea eax, [ebp - 0x130]
push eax
push ebx
call fcn.005ee100
pop ecx
pop ecx
test eax, eax
je 0x5d2319
push ebx
call fcn.005ee162
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 0x5d2338
push ebx
call fcn.005d9b74
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.005cabbc
mov esp, ebp
pop ebp
ret 0x24