Function at 0x422e90
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 0x4d0888
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x517ba0]
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 - 0x870], eax
mov dword [ebp - 0x880], edi
je 0x423401
push 0x104
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e299c
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x24c]
push 0x4e29b8
push eax
call fcn.00402e90
lea eax, [ebp - 0x24c]
push eax
push 0x4e29d4
call fcn.004237d0
add esp, 0x18
test al, al
jne 0x422f41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x422f41
push edi
lea ecx, [ebp - 0x884]
call fcn.004229a0
mov esi, dword [ebp - 0x884]
or edi, 1
jmp 0x422fa1
push 0xc
call fcn.004a4441
mov esi, eax
add esp, 4
mov dword [ebp - 0x880], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x422f85
lea eax, [ebp - 0x24c]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x42351e
jmp 0x422f87
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x884], esi
test esi, esi
je 0x423528
mov edi, 1
mov dword [ebp - 4], 1
test esi, esi
je 0x423327
mov eax, dword [esi]
test eax, eax
je 0x423327
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x423327
lea eax, [ebp - 0x86c]
push eax
push 0x4e2a60
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4232f2
mov dword [ebp - 0x868], eax
cmp byte [0x51cf33], al
je 0x423058
cmp byte [ebp + 0x10], al
jne 0x42311c
lea eax, [ebp - 0x868]
push eax
push 0x492140
push dword [ebp - 0x870]
push 0x4e2e3c
push dword [0x51cf38]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x42311c
push 0x4e2a60
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x86c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x884]
call fcn.00403090
xor al, al
jmp 0x423503
push 0x104
lea eax, [ebp - 0x65c]
push eax
push 0x4e28a8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xc
call fcn.004a4441
mov esi, eax
add esp, 4
mov dword [ebp - 0x87c], esi
mov byte [ebp - 4], 9
test esi, esi
je 0x4230b0
lea eax, [ebp - 0x65c]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x423532
jmp 0x4230b2
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x87c], esi
test esi, esi
je 0x42353c
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 0xa
jne 0x42310d
push 0x4e2e60
lea ecx, [ebp - 0x874]
call fcn.004229a0
mov eax, dword [ebp - 0x874]
test eax, eax
je 0x4230ec
mov eax, dword [eax]
jmp 0x4230ee
xor eax, eax
push 0x40
push 0x4e23b8
push eax
push dword [ebp - 0x870]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x874]
call fcn.00403090
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], 1
call fcn.00403090
movups xmm0, xmmword [0x4e2ee8]
mov eax, dword [0x4e2f18]
push 0x4e2f1c
push dword [ebp - 0x86c]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x14], eax
movups xmm0, xmmword [0x4e2ef8]
mov dword [ebp - 0x888], 0
mov dword [ebp - 0x880], 1
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x4e2f08]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x888]
push 4
push eax
push 4
push 0
push 0x4e2ae0
push dword [ebp - 0x86c]
call esi
push 0x34
lea eax, [ebp - 0x44]
push eax
push 1
push 0
push 0x4e2f34
push dword [ebp - 0x86c]
call esi
push 4
lea eax, [ebp - 0x880]
push eax
push 4
push 0
push 0x4e2ab8
push dword [ebp - 0x86c]
call esi
push 0x4e299c
lea ecx, [ebp - 0x87c]
call fcn.004229a0
push eax
lea eax, [ebp - 0x878]
mov byte [ebp - 4], 0xb
push 0x4e2f40
push eax
call fcn.00422a40
add esp, 0xc
lea ecx, [ebp - 0x87c]
call fcn.00403090
mov eax, dword [ebp - 0x878]
test eax, eax
je 0x423210
mov ecx, dword [eax]
test ecx, ecx
je 0x423210
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, eax
mov eax, dword [ebp - 0x878]
jmp 0x423212
xor ecx, ecx
add ecx, ecx
test eax, eax
je 0x42321c
mov eax, dword [eax]
jmp 0x42321e
xor eax, eax
push ecx
push eax
push 2
push 0
push 0x4e2afc
push dword [ebp - 0x86c]
call esi
cmp dword [ebp - 0x868], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x423246
cmp dword [ebp + 0x14], 0xffffffff
je 0x4232c4
lea eax, [ebp - 0x870]
push eax
push 0x4e2ce8
push dword [ebp - 0x86c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4232c4
mov ecx, dword [ebp - 0x868]
test ecx, ecx
je 0x423295
xor edx, edx
mov eax, 0x989680
div ecx
push 4
mov dword [ebp - 0x868], eax
lea eax, [ebp - 0x868]
push eax
push 4
push 0
push 0x4e2f64
push dword [ebp - 0x870]
call esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4232bc
imul eax, eax, 0x989680
push 4
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push 0x4e2f84
push dword [ebp - 0x870]
call esi
push dword [ebp - 0x870]
call edi
push 0
push dword [ebp - 0x86c]
call fcn.00422c70
add esp, 8
push dword [ebp - 0x86c]
call edi
lea ecx, [ebp - 0x878]
call fcn.00403090
lea ecx, [ebp - 0x884]
jmp 0x4234fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x10], 0
jne 0x423318
push 0x10
push 0x4e23b8
push 0x4e2fa4
push dword [ebp - 0x870]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp + 0xc], 0
lea ecx, [ebp - 0x884]
jmp 0x4234fb
cmp byte [ebp + 0x10], 0
jne 0x4233ef
push 0x4e299c
lea ecx, [ebp - 0x87c]
call fcn.004229a0
push eax
lea eax, [ebp - 0x888]
mov byte [ebp - 4], 2
push 0x4e2d50
push eax
call fcn.00422a40
add esp, 0xc
mov esi, eax
push 0x4e2d78
lea ecx, [ebp - 0x874]
mov byte [ebp - 4], 3
call fcn.004229a0
mov eax, dword [esi]
mov byte [ebp - 4], 5
mov dword [ebp - 0x878], eax
test eax, eax
je 0x423384
lock inc dword [eax + 8]
lea eax, [ebp - 0x874]
or edi, 2
push eax
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x880], edi
call fcn.00422b10
lea ecx, [ebp - 0x874]
call fcn.00403090
lea ecx, [ebp - 0x888]
call fcn.00403090
lea ecx, [ebp - 0x87c]
call fcn.00403090
mov eax, dword [ebp - 0x878]
test eax, eax
je 0x4233ce
mov eax, dword [eax]
jmp 0x4233d0
xor eax, eax
push 0x10
push 0x4e23b8
push eax
push dword [ebp - 0x870]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x878]
call fcn.00403090
lea ecx, [ebp - 0x884]
call fcn.00403090
xor al, al
jmp 0x423503
lea eax, [ebp - 0x868]
push eax
push 0x4e2a60
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x423500
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e2ce8
push dword [ebp - 0x868]
call esi
push 0x4e2d00
push dword [ebp - 0x868]
call esi
push 0x4e2d14
push dword [ebp - 0x868]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e2ab8
push dword [ebp - 0x868]
call esi
push 0x4e2ac4
push dword [ebp - 0x868]
call esi
push 0x4e2ae0
push dword [ebp - 0x868]
call esi
push 0x4e2afc
push dword [ebp - 0x868]
call esi
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e2d20
lea ecx, [ebp - 0x880]
call fcn.004229a0
push eax
lea eax, [ebp - 0x864]
mov dword [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.00422a40
add esp, 0xc
lea ecx, [ebp - 0x880]
call fcn.00403090
mov eax, dword [ebp - 0x874]
test eax, eax
je 0x4234ec
mov eax, dword [eax]
jmp 0x4234ee
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x874]
call fcn.00403090
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.004a4433
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004a5e60
push 0x8007000e
call fcn.004a5e60
push 0x8007000e
call fcn.004a5e60
push 0x8007000e
call fcn.004a5e60
int3