Function at 0x40e680
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 0x483cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b31cc]
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 0x40e9d6
lea eax, [ebp - 0x64]
push 1
push eax
call fcn.0040eab0
add esp, 8
mov esi, dword [ebp - 0x64]
mov dword [ebp - 4], 0
test esi, esi
je 0x40e947
mov eax, dword [esi]
test eax, eax
je 0x40e947
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40e947
lea eax, [ebp - 0x48]
push eax
push 0x48f5f8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40e91d
mov dword [ebp - 0x54], eax
cmp byte [0x4b52a0], al
je 0x40e760
lea eax, [ebp - 0x54]
push eax
push 0x4556b0
push edi
push 0x48f9f4
push dword [0x4b527c]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x40e7ad
push 0x48f5f8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x64]
call fcn.004039e0
xor al, al
jmp 0x40e9dd
lea eax, [ebp - 0x58]
push eax
call fcn.0040e420
add esp, 4
push 0x48fa18
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00402030
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40e788
mov eax, dword [eax]
jmp 0x40e78a
xor eax, eax
push 0x40
push 0x48f9d4
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x4c]
call fcn.004039e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004039e0
movdqu xmm0, xmmword [0x48faa0]
mov eax, dword [0x48fad0]
push 0x48fad4
push dword [ebp - 0x48]
movdqu xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x14], eax
movdqu xmm0, xmmword [0x48fab0]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 1
movdqu xmmword [ebp - 0x34], xmm0
movdqu xmm0, xmmword [0x48fac0]
movdqu xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x60]
push 4
push eax
push 4
push 0
push 0x48f678
push dword [ebp - 0x48]
call edi
push 0x34
lea eax, [ebp - 0x44]
push eax
push 1
push 0
push 0x48faec
push dword [ebp - 0x48]
call edi
push 4
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push 0x48f650
push dword [ebp - 0x48]
call edi
push 0x48f52c
lea ecx, [ebp - 0x58]
call fcn.00402030
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 5
push 0x48faf8
push eax
call fcn.0040e340
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.004039e0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40e88a
mov ecx, dword [eax]
test ecx, ecx
je 0x40e880
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, eax
mov eax, dword [ebp - 0x50]
jmp 0x40e882
xor ecx, ecx
test eax, eax
je 0x40e88c
mov edx, dword [eax]
jmp 0x40e88e
xor ecx, ecx
xor edx, edx
lea eax, [ecx + ecx]
push eax
push edx
push 2
push 0
push 0x48f694
push dword [ebp - 0x48]
call edi
cmp dword [ebp - 0x54], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40e8f8
lea eax, [ebp - 0x4c]
push eax
push 0x48f880
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40e8f8
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40e8d8
mov eax, 0x989680
xor edx, edx
div ecx
mov dword [ebp - 0x54], eax
jmp 0x40e8df
mov dword [ebp - 0x54], 0
push 4
lea eax, [ebp - 0x54]
push eax
push 4
push 0
push 0x48fb1c
push dword [ebp - 0x4c]
call edi
push dword [ebp - 0x4c]
call esi
push dword [ebp - 0x48]
call fcn.0040e480
add esp, 4
push dword [ebp - 0x48]
call esi
lea ecx, [ebp - 0x50]
call fcn.004039e0
lea ecx, [ebp - 0x64]
call fcn.004039e0
jmp 0x40e9db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x10
push 0x48f9d4
push 0x48fb3c
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x64]
xor bl, bl
call fcn.004039e0
jmp 0x40e9db
push 0x48f910
lea ecx, [ebp - 0x4c]
call fcn.00402030
push 0x48f52c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00402030
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push 0x48f8e8
push eax
call fcn.0040e340
add esp, 0xc
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.0040e3b0
lea ecx, [ebp - 0x5c]
call fcn.004039e0
lea ecx, [ebp - 0x60]
call fcn.004039e0
lea ecx, [ebp - 0x4c]
call fcn.004039e0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40e9b1
mov eax, dword [eax]
jmp 0x40e9b3
xor eax, eax
push 0x10
push 0x48f9d4
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x50]
call fcn.004039e0
lea ecx, [ebp - 0x64]
call fcn.004039e0
xor al, al
jmp 0x40e9dd
call fcn.0040e530
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.0046dfbe
mov esp, ebp
pop ebp
ret