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

Disassembly:
push 0x30
mov eax, 0x610407b9
call fcn.6102b2d6
mov eax, dword [ebp + 0x1c]
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 + 0xc]
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 + 0xc]
call fcn.6100dfda
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.6101836c
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.6100d793
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x610248dc
push dword [edi]
push eax
push 0x61006138
push 3
call fcn.6101b566
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x61024917
cmp dword [ebp + 0x10], ebx
jne 0x610248ea
mov dword [ebp - 0x24], 1
jmp 0x61024917
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 0x61024910
push dword [edi]
push eax
push 0x61007ba0
jmp 0x610248cd
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x61024925
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x61024934
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 0x18], ebx
je 0x61024a32
lea ecx, [ebp - 0x3c]
call fcn.6100d565
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.6100d83e
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 2
call fcn.6101d028
test eax, eax
jne 0x61024994
push 0x610027c8
push 3
call fcn.6101b566
pop ecx
pop ecx
xor esi, esi
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.6100d793
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.6100d5a3
jmp 0x61024a35
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.6101c898
test eax, eax
jne 0x610249b9
push dword [ebp + 0x10]
push 0x61007b30
push 3
call fcn.6101b566
add esp, 0xc
jmp 0x61024975
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x61007ae0
push 1
call fcn.6101b566
add esp, 0x10
cmp dword [ebp + 0xc], 5
je 0x610249fe
cmp dword [ebp + 0xc], 9
jne 0x61024a10
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push 8
call fcn.6101dc8d
test eax, eax
je 0x61024975
mov edx, dword [ebp + 0x1c]
lea eax, [ebp - 0x3c]
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.61022756
jmp 0x61024a0c
push dword [ebp + 0x1c]
lea eax, [ebp + 0x10]
push eax
mov ecx, edi
call fcn.61022450
cmp eax, ebx
je 0x61024a1a
push dword [ebp + 0x10]
push 0x61007a88
jmp 0x610249ad
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.6100d793
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.6100d5a3
xor esi, esi
inc esi
cmp dword [ebp - 0x14], ebx
je 0x61024a42
cmp esi, ebx
je 0x61024a42
xor esi, esi
jmp 0x61024a47
mov esi, 0x643
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 0x18