Function at 0x61021cd1
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x61040206
call fcn.6102b2d6
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.6100d83e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.6100d83e
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x61021ecc
cmp dword [ebp + 0x14], ebx
je 0x61021ecc
mov esi, 0x80000000
push esi
push ebx
push ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x61021d2f
xor esi, esi
jmp 0x61021e86
push esi
lea ecx, [ebp + 8]
call fcn.61011da0
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x61021e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x61021e62
mov eax, dword [ebp + 0xc]
push 0x61005fe0
lea ecx, [ebp + 0xc]
mov dword [eax], 1
call fcn.6100dfda
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.6101836c
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.6100d793
push dword [0x610480cc]
lea ecx, [ebp - 0x1c]
call fcn.6100dfda
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.6101836c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.6100d793
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
lea ecx, [ebp - 0x14]
call fcn.61011da0
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x61021e62
push dword [ebp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push dword [0x610480d0]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x61021e62
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.6102c0d4
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, ebx
je 0x61021e62
push dword [ebp + 0x14]
push eax
push ebx
push ebx
push dword [0x610480d0]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x61021e62
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.61011da0
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push eax
push esi
call edi
test eax, eax
jne 0x61021e62
lea ecx, [ebp - 0x18]
call fcn.61011da0
push eax
push esi
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x61021e6e
xor esi, esi
jmp 0x61021e6e
mov eax, dword [ebp + 0xc]
xor esi, esi
inc esi
mov dword [eax], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x20], ebx
je 0x61021e7e
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x24]
call edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x10], ebx
je 0x61021e94
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x61021ea5
mov edi, dword [edi]
cmp edi, ebx
je 0x61021ea5
push edi
call fcn.6102ae57
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.6100d793
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.6100d793
mov eax, esi
jmp 0x61021ef1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.6100d793
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.6100d793
xor eax, eax
call fcn.6102b3c2
ret 0x10