Function at 0x40ec00
Capabilities:
Delete file
Delete registry key
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486550
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4bc1dc]
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 bl, byte [ebp + 0xc]
mov edi, dword [ebp + 8]
test bl, bl
je 0x40ef96
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.0040f070
add esp, 8
mov esi, dword [ebp - 0x58]
mov dword [ebp - 4], 0
test esi, esi
je 0x40eefd
mov eax, dword [esi]
test eax, eax
je 0x40eefd
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40eefd
lea eax, [ebp - 0x4c]
push eax
push 0x497568
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40eecd
mov dword [ebp - 0x54], eax
cmp byte [0x4be2e9], al
je 0x40ece9
cmp byte [ebp + 0x10], al
jne 0x40ed3c
lea eax, [ebp - 0x54]
push eax
push 0x4566b0
push edi
push 0x497964
push dword [0x4be2c4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x40ed3c
push 0x497568
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x58]
call fcn.00403a00
xor al, al
jmp 0x40ef9d
lea eax, [ebp - 0x64]
push eax
call fcn.0040e9a0
add esp, 4
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 4
jne 0x40ed30
push 0x497988
lea ecx, [ebp - 0x48]
call fcn.00402050
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40ed17
mov eax, dword [eax]
jmp 0x40ed19
xor eax, eax
push 0x40
push 0x497944
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x48]
call fcn.00403a00
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.00403a00
movdqu xmm0, xmmword [0x497a10]
mov eax, dword [0x497a40]
push 0x497a44
push dword [ebp - 0x4c]
movdqu xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x14], eax
movdqu xmm0, xmmword [0x497a20]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 1
movdqu xmmword [ebp - 0x34], xmm0
movdqu xmm0, xmmword [0x497a30]
movdqu xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x60]
push 4
push eax
push 4
push 0
push 0x4975e8
push dword [ebp - 0x4c]
call esi
push 0x34
lea eax, [ebp - 0x44]
push eax
push 1
push 0
push 0x497a5c
push dword [ebp - 0x4c]
call esi
push 4
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push 0x4975c0
push dword [ebp - 0x4c]
call esi
push 0x49749c
lea ecx, [ebp - 0x64]
call fcn.00402050
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 5
push 0x497a68
push eax
call fcn.0040e8c0
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00403a00
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40ee19
mov ecx, dword [eax]
test ecx, ecx
je 0x40ee0f
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, eax
mov eax, dword [ebp - 0x50]
jmp 0x40ee11
xor ecx, ecx
test eax, eax
je 0x40ee1b
mov edx, dword [eax]
jmp 0x40ee1d
xor ecx, ecx
xor edx, edx
lea eax, [ecx + ecx]
push eax
push edx
push 2
push 0
push 0x497604
push dword [ebp - 0x4c]
call esi
cmp dword [ebp - 0x54], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40ee42
cmp dword [ebp + 0x14], 0xffffffff
je 0x40eea8
lea eax, [ebp - 0x48]
push eax
push 0x4977f0
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40eea8
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40ee7f
xor edx, edx
mov eax, 0x989680
div ecx
push 4
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push 4
push 0
push 0x497a8c
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40eea3
imul eax, eax, 0x989680
push 4
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push 0x497aac
push dword [ebp - 0x48]
call esi
push dword [ebp - 0x48]
call edi
push dword [ebp - 0x4c]
call fcn.0040ea00
add esp, 4
push dword [ebp - 0x4c]
call edi
lea ecx, [ebp - 0x50]
call fcn.00403a00
lea ecx, [ebp - 0x58]
call fcn.00403a00
jmp 0x40ef9b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x10], 0
jne 0x40eeee
push 0x10
push 0x497944
push 0x497acc
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00403a00
jmp 0x40ef9b
cmp byte [ebp + 0x10], 0
jne 0x40ef8a
push 0x497880
lea ecx, [ebp - 0x50]
call fcn.00402050
push 0x49749c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00402050
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push 0x497858
push eax
call fcn.0040e8c0
add esp, 0xc
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0040e930
lea ecx, [ebp - 0x5c]
call fcn.00403a00
lea ecx, [ebp - 0x60]
call fcn.00403a00
lea ecx, [ebp - 0x50]
call fcn.00403a00
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40ef71
mov eax, dword [eax]
jmp 0x40ef73
xor eax, eax
push 0x10
push 0x497944
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x48]
call fcn.00403a00
lea ecx, [ebp - 0x58]
call fcn.00403a00
xor al, al
jmp 0x40ef9d
call fcn.0040eab0
mov al, bl
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.0046f8ce
mov esp, ebp
pop ebp
ret