Function at 0x41e4c0
Capabilities:
Delete file
Delete registry key
Delete registry value
Get common file path
Persist via windows service
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1e56
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x670], edi
je 0x41e9cd
push 0x104
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x67c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e53b0
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x454]
push 0x4e53cc
push eax
call fcn.00402dc0
lea eax, [ebp - 0x454]
push eax
push 0x4e53e8
call fcn.0041ed10
add esp, 0x18
test al, al
jne 0x41e571
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41e571
push edi
lea ecx, [ebp - 0x67c]
call fcn.0041e020
or edi, 1
jmp 0x41e588
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x67c]
call fcn.0041e020
mov edi, 1
mov esi, dword [ebp - 0x67c]
mov dword [ebp - 4], 0
test esi, esi
je 0x41e8f3
mov eax, dword [esi]
test eax, eax
je 0x41e8f3
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x41e8f3
lea eax, [ebp - 0x674]
push eax
push 0x4e5470
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41e8be
mov dword [ebp - 0x660], eax
cmp byte [0x52e19f], al
je 0x41e645
cmp byte [ebp + 0x10], al
jne 0x41e6da
lea eax, [ebp - 0x660]
push eax
push 0x4953e0
push dword [ebp - 0x680]
push 0x4e584c
push dword [0x52e7d8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x41e6da
push 0x4e5470
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x674]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x67c]
call fcn.00402fd0
xor al, al
jmp 0x41eb02
push 0x104
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x678], 0
push eax
push 0x4e52bc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x678]
call fcn.0041e020
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 8
jne 0x41e6cb
push 0x4e5870
lea ecx, [ebp - 0x668]
mov dword [ebp - 0x668], 0
call fcn.0041e020
mov eax, dword [ebp - 0x668]
test eax, eax
je 0x41e6aa
mov eax, dword [eax]
jmp 0x41e6ac
xor eax, eax
push 0x40
push 0x4e4e40
push eax
push dword [ebp - 0x680]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x668]
call fcn.00402fd0
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 0
call fcn.00402fd0
movups xmm0, xmmword [0x4e58f8]
mov eax, dword [0x4e5928]
push 0x4e592c
push dword [ebp - 0x674]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x14], eax
movups xmm0, xmmword [0x4e5908]
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x66c], 1
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x4e5918]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 4
lea eax, [ebp - 0x670]
push eax
push 4
push 0
push 0x4e54f0
push dword [ebp - 0x674]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x34
lea eax, [ebp - 0x44]
push eax
push 1
push 0
push 0x4e5944
push dword [ebp - 0x674]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x66c]
push eax
push 4
push 0
push 0x4e54c8
push dword [ebp - 0x674]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4e53b0
lea ecx, [ebp - 0x678]
mov dword [ebp - 0x664], 0
call fcn.0041e020
push eax
lea eax, [ebp - 0x664]
mov byte [ebp - 4], 9
push 0x4e5950
push eax
call fcn.0041e0d0
add esp, 0xc
lea ecx, [ebp - 0x678]
call fcn.00402fd0
mov eax, dword [ebp - 0x664]
test eax, eax
je 0x41e7de
mov ecx, dword [eax]
test ecx, ecx
je 0x41e7de
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, eax
mov eax, dword [ebp - 0x664]
jmp 0x41e7e0
xor ecx, ecx
add ecx, ecx
test eax, eax
je 0x41e7ea
mov eax, dword [eax]
jmp 0x41e7ec
xor eax, eax
push ecx
push eax
push 2
push 0
push 0x4e550c
push dword [ebp - 0x674]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x660], 0
jne 0x41e812
cmp dword [ebp + 0x14], 0
je 0x41e88c
lea eax, [ebp - 0x668]
push eax
push 0x4e56f8
push dword [ebp - 0x674]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41e88c
mov ecx, dword [ebp - 0x660]
test ecx, ecx
je 0x41e865
xor edx, edx
mov eax, 0x989680
div ecx
push 4
mov dword [ebp - 0x660], eax
lea eax, [ebp - 0x660]
push eax
push 4
push 0
push 0x4e5974
push dword [ebp - 0x668]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push 0x4e5994
push dword [ebp - 0x668]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x668]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [ebp - 0x674]
call fcn.0041e240
add esp, 8
push dword [ebp - 0x674]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x664]
call fcn.00402fd0
lea ecx, [ebp - 0x67c]
jmp 0x41eafa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x10], 0
jne 0x41e8e4
push 0x10
push 0x4e4e40
push 0x4e59b4
push dword [ebp - 0x680]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp + 0xc], 0
lea ecx, [ebp - 0x67c]
jmp 0x41eafa
cmp byte [ebp + 0x10], 0
jne 0x41e9bb
push 0x4e53b0
lea ecx, [ebp - 0x664]
call fcn.0041e020
push eax
lea eax, [ebp - 0x66c]
mov byte [ebp - 4], 1
push 0x4e5760
push eax
call fcn.0041e0d0
add esp, 0xc
mov esi, eax
push 0x4e5788
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 2
call fcn.0041e020
mov eax, dword [esi]
mov byte [ebp - 4], 4
mov dword [ebp - 0x668], eax
test eax, eax
je 0x41e950
lock inc dword [eax + 8]
lea eax, [ebp - 0x678]
or edi, 4
push eax
lea ecx, [ebp - 0x668]
mov dword [ebp - 0x670], edi
call fcn.0041e140
lea ecx, [ebp - 0x678]
call fcn.00402fd0
lea ecx, [ebp - 0x66c]
call fcn.00402fd0
lea ecx, [ebp - 0x664]
call fcn.00402fd0
mov eax, dword [ebp - 0x668]
test eax, eax
je 0x41e99a
mov eax, dword [eax]
jmp 0x41e99c
xor eax, eax
push 0x10
push 0x4e4e40
push eax
push dword [ebp - 0x680]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x668]
call fcn.00402fd0
lea ecx, [ebp - 0x67c]
call fcn.00402fd0
xor al, al
jmp 0x41eb02
lea eax, [ebp - 0x660]
push eax
push 0x4e5470
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41eaff
push 0x4e56f8
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e5710
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e5724
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e54c8
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e54d4
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e54f0
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e550c
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e5730
lea ecx, [ebp - 0x66c]
mov dword [ebp - 0x664], edi
call fcn.0041e020
mov esi, eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x664]
mov dword [ebp - 0x664], 0
call fcn.0041e020
push esi
lea ecx, [ebp - 0x664]
mov dword [ebp - 0x670], 2
call fcn.0041e140
lea ecx, [ebp - 0x66c]
call fcn.00402fd0
mov eax, dword [ebp - 0x664]
test eax, eax
je 0x41eaeb
mov eax, dword [eax]
jmp 0x41eaed
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x664]
call fcn.00402fd0
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret