Function at 0x10005c88
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
xor edx, edx
push ebx
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], edx
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
mov ebx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x40], 0x10005d60
test eax, eax
je 0x100077f0
mov dword [eax], edx
xor eax, eax
cmp dword [ebp + 0x1c], eax
mov edi, edx
setne al
add eax, 0x80000001
mov dword [ebp + 8], eax
mov esi, eax
mov ecx, dword [ebp + edi*4 - 0x40]
test ecx, ecx
je 0x10005d2e
lea eax, [ebp - 8]
push eax
push 0x103
push edx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100077fa
and dword [ebp - 8], ebx
cmp eax, 2
jne 0x10007828
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x10007846
test esi, esi
je 0x10005d42
cmp eax, esi
jne 0x10007938
cmp dword [ebp - 8], 0
jne 0x10007944
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x1c
inc edi
cmp edi, 5
jae 0x10005d2e
jmp 0x10005cfd
mov ebx, 0x80070057
jmp 0x10005d4c
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x1000780b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 8], edx
cmp edi, 4
jne 0x10005d55
mov dword [ebp - 0x14], 1
jmp 0x10005d55
mov ebx, eax
test eax, eax
mov eax, dword [ebp + 8]
jle 0x10005d2e
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x10005d2e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
je 0x100078ba
cmp dword [ebp + 0x18], 0
je 0x100078ba
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x18]
push esi
call edi
test eax, eax
jne 0x100078ba
cmp dword [ebp - 0x10], 0xb
jne 0x100078ba
cmp dword [ebp - 0xc], 8
jne 0x100078ba
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp ecx, reloc.ADVAPI32.dll_TraceMessage
jne 0x100078a2
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x10007911
cmp dword [ebp - 0x18], eax
jb 0x10007911
ja 0x100078ae
cmp dword [ebp - 0x1c], ecx
jb 0x10007911
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10007930
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1000c3fc
push esi
mov dword [ebp - 0xc], 8
call edi
test eax, eax
jne 0x10007930
cmp dword [ebp - 0x10], 0xb
jne 0x10007930
cmp dword [ebp - 0xc], 8
jne 0x10007930
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp ecx, reloc.ADVAPI32.dll_TraceMessage
jne 0x100078f7
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x10007911
cmp dword [ebp - 0x18], eax
jb 0x10007911
ja 0x10007903
cmp dword [ebp - 0x1c], ecx
jb 0x10007911
push 0x10003170
push esi
call dword [0x1000c670]
jmp 0x10007930
mov eax, dword [ebp + 0x20]
push 8
mov dword [eax], 1
lea eax, [ebp - 0x1c]
push eax
push 0xb
push 0
push 0x10007954
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 8]
jmp 0x10005d36
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10005d42
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10005d4c