Function at 0x498320
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a3730
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x498361
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x14]
push str.__s____1
push edx
mov dword [esp + 0x44], 0
call fcn.00404650
add esp, 0xc
push edi
lea ecx, [esp + 0x30]
call fcn.004023b0
push str._shellopencommand
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x44], 1
call fcn.00401ba0
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4983d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x498421
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x5d2b58
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49852b
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
push closesocket
call esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push closesocket
call edi
mov edx, dword [esp + 0x1c]
push str.shell
push edx
call esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.shell
push edx
call edi
mov eax, dword [esp + 0x18]
push str.open
push eax
call esi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.open
push eax
call edi
mov ecx, dword [esp + 0x14]
push str.command
push ecx
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.command
push ecx
call edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x24]
push edx
push edi
push 1
push 0
push 0x5d2b58
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x24]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49854b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49856f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret