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

Disassembly:
push 0x30
mov eax, 0x610408cd
call fcn.6102b2d6
mov eax, dword [ebp + 0x18]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
call fcn.6100d83e
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.6100d83e
mov byte [ebp - 4], 1
push 0x61005fe0
lea ecx, [ebp - 0x20]
call fcn.6100dfda
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.6101836c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.6100d793
push dword [0x610480cc]
lea ecx, [ebp + 8]
call fcn.6100dfda
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.6101836c
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.6100d793
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x18]
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x610250b2
push dword [edi]
cmp eax, 2
je 0x610250a1
push eax
push 0x61006138
push 3
call fcn.6101b566
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x610250ed
push 0x61008130
push 1
call fcn.6101b566
add esp, 0xc
jmp 0x610250ed
cmp dword [ebp + 0x10], ebx
jne 0x610250c0
mov dword [ebp - 0x24], 1
jmp 0x610250ed
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 7
push ebx
push dword [0x610480d0]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x610250e6
push dword [edi]
push eax
push 0x61007ba0
jmp 0x61025092
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x610250fb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x6102515b
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, 0x80000000
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x6102515b
mov eax, dword [edi]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebx
jne 0x61025153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x61025156
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x61025156
push eax
call esi
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x3c]
call fcn.6100d565
mov byte [ebp - 4], 4
cmp dword [ebp + 0x10], ebx
je 0x61025177
push dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
call fcn.61019ecc
push dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edi
call fcn.6100d869
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
call fcn.610242f4
cmp eax, ebx
jne 0x610251b0
push 0x610080c8
push 3
call fcn.6101b566
pop ecx
pop ecx
xor eax, eax
jmp 0x610251b3
xor eax, eax
inc eax
cmp dword [ebp - 0x14], ebx
je 0x610251c0
cmp eax, ebx
je 0x610251c0
xor esi, esi
jmp 0x610251c5
mov esi, 0x643
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.6100d5a3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.6100d793
mov eax, esi
call fcn.6102b3c2
ret 0x14