Function at 0x422410
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 0x4cd2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x513b94]
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 0x422981
push 0x104
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4de69c
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x24c]
push 0x4de6b8
push eax
call fcn.00402420
lea eax, [ebp - 0x24c]
push eax
push 0x4de6d4
call fcn.00422d50
add esp, 0x18
test al, al
jne 0x4224c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4224c1
push edi
lea ecx, [ebp - 0x884]
call fcn.00421f20
mov esi, dword [ebp - 0x884]
or edi, 1
jmp 0x422521
push 0xc
call fcn.004a0e21
mov esi, eax
add esp, 4
mov dword [ebp - 0x880], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x422505
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 0x422a9e
jmp 0x422507
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x884], esi
test esi, esi
je 0x422aa8
mov edi, 1
mov dword [ebp - 4], 1
test esi, esi
je 0x4228a7
mov eax, dword [esi]
test eax, eax
je 0x4228a7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4228a7
lea eax, [ebp - 0x86c]
push eax
push 0x4de760
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x422872
mov dword [ebp - 0x868], eax
cmp byte [0x518edb], al
je 0x4225d8
cmp byte [ebp + 0x10], al
jne 0x42269c
lea eax, [ebp - 0x868]
push eax
push 0x48f0d0
push dword [ebp - 0x870]
push 0x4deb3c
push dword [0x518ee0]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
jne 0x42269c
push 0x4de760
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.00402620
xor al, al
jmp 0x422a83
push 0x104
lea eax, [ebp - 0x65c]
push eax
push 0x4de5a8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xc
call fcn.004a0e21
mov esi, eax
add esp, 4
mov dword [ebp - 0x87c], esi
mov byte [ebp - 4], 9
test esi, esi
je 0x422630
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 0x422ab2
jmp 0x422632
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x87c], esi
test esi, esi
je 0x422abc
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 0xa
jne 0x42268d
push 0x4deb60
lea ecx, [ebp - 0x874]
call fcn.00421f20
mov eax, dword [ebp - 0x874]
test eax, eax
je 0x42266c
mov eax, dword [eax]
jmp 0x42266e
xor eax, eax
push 0x40
push 0x4de0b8
push eax
push dword [ebp - 0x870]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x874]
call fcn.00402620
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], 1
call fcn.00402620
movups xmm0, xmmword [0x4debe8]
mov eax, dword [0x4dec18]
push 0x4dec1c
push dword [ebp - 0x86c]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x14], eax
movups xmm0, xmmword [0x4debf8]
mov dword [ebp - 0x888], 0
mov dword [ebp - 0x880], 1
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x4dec08]
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 0x4de7e0
push dword [ebp - 0x86c]
call esi
push 0x34
lea eax, [ebp - 0x44]
push eax
push 1
push 0
push 0x4dec34
push dword [ebp - 0x86c]
call esi
push 4
lea eax, [ebp - 0x880]
push eax
push 4
push 0
push 0x4de7b8
push dword [ebp - 0x86c]
call esi
push 0x4de69c
lea ecx, [ebp - 0x87c]
call fcn.00421f20
push eax
lea eax, [ebp - 0x878]
mov byte [ebp - 4], 0xb
push 0x4dec40
push eax
call fcn.00421fc0
add esp, 0xc
lea ecx, [ebp - 0x87c]
call fcn.00402620
mov eax, dword [ebp - 0x878]
test eax, eax
je 0x422790
mov ecx, dword [eax]
test ecx, ecx
je 0x422790
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, eax
mov eax, dword [ebp - 0x878]
jmp 0x422792
xor ecx, ecx
add ecx, ecx
test eax, eax
je 0x42279c
mov eax, dword [eax]
jmp 0x42279e
xor eax, eax
push ecx
push eax
push 2
push 0
push 0x4de7fc
push dword [ebp - 0x86c]
call esi
cmp dword [ebp - 0x868], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4227c6
cmp dword [ebp + 0x14], 0xffffffff
je 0x422844
lea eax, [ebp - 0x870]
push eax
push 0x4de9e8
push dword [ebp - 0x86c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x422844
mov ecx, dword [ebp - 0x868]
test ecx, ecx
je 0x422815
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 0x4dec64
push dword [ebp - 0x870]
call esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42283c
imul eax, eax, 0x989680
push 4
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push 0x4dec84
push dword [ebp - 0x870]
call esi
push dword [ebp - 0x870]
call edi
push 0
push dword [ebp - 0x86c]
call fcn.004221f0
add esp, 8
push dword [ebp - 0x86c]
call edi
lea ecx, [ebp - 0x878]
call fcn.00402620
lea ecx, [ebp - 0x884]
jmp 0x422a7b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x10], 0
jne 0x422898
push 0x10
push 0x4de0b8
push 0x4deca4
push dword [ebp - 0x870]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp + 0xc], 0
lea ecx, [ebp - 0x884]
jmp 0x422a7b
cmp byte [ebp + 0x10], 0
jne 0x42296f
push 0x4de69c
lea ecx, [ebp - 0x87c]
call fcn.00421f20
push eax
lea eax, [ebp - 0x888]
mov byte [ebp - 4], 2
push 0x4dea50
push eax
call fcn.00421fc0
add esp, 0xc
mov esi, eax
push 0x4dea78
lea ecx, [ebp - 0x874]
mov byte [ebp - 4], 3
call fcn.00421f20
mov eax, dword [esi]
mov byte [ebp - 4], 5
mov dword [ebp - 0x878], eax
test eax, eax
je 0x422904
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.00422090
lea ecx, [ebp - 0x874]
call fcn.00402620
lea ecx, [ebp - 0x888]
call fcn.00402620
lea ecx, [ebp - 0x87c]
call fcn.00402620
mov eax, dword [ebp - 0x878]
test eax, eax
je 0x42294e
mov eax, dword [eax]
jmp 0x422950
xor eax, eax
push 0x10
push 0x4de0b8
push eax
push dword [ebp - 0x870]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x878]
call fcn.00402620
lea ecx, [ebp - 0x884]
call fcn.00402620
xor al, al
jmp 0x422a83
lea eax, [ebp - 0x868]
push eax
push 0x4de760
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x422a80
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4de9e8
push dword [ebp - 0x868]
call esi
push 0x4dea00
push dword [ebp - 0x868]
call esi
push 0x4dea14
push dword [ebp - 0x868]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4de7b8
push dword [ebp - 0x868]
call esi
push 0x4de7c4
push dword [ebp - 0x868]
call esi
push 0x4de7e0
push dword [ebp - 0x868]
call esi
push 0x4de7fc
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 0x4dea20
lea ecx, [ebp - 0x880]
call fcn.00421f20
push eax
lea eax, [ebp - 0x864]
mov dword [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.00421fc0
add esp, 0xc
lea ecx, [ebp - 0x880]
call fcn.00402620
mov eax, dword [ebp - 0x874]
test eax, eax
je 0x422a6c
mov eax, dword [eax]
jmp 0x422a6e
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x874]
call fcn.00402620
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.004a0e13
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004a2850
push 0x8007000e
call fcn.004a2850
push 0x8007000e
call fcn.004a2850
push 0x8007000e
call fcn.004a2850
int3