Function at 0x1006e0e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 0x100
xor esi, esi
push 8
push dword [0x100f098]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x1006e7e
push 0xe
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x1007027
test byte [eax + 0x1c], 1
je 0x1007027
push ecx
push 0x10017ac
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003f79
jmp 0x1007027
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x2001f
push ebx
push esi
mov esi, 0x1001588
push esi
mov edi, 0x80000001
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], eax
je 0x1006f07
cmp byte [ebp + 8], al
jne 0x1006eb4
mov dword [ebp - 8], eax
jmp 0x1007025
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push eax
push eax
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
test eax, eax
je 0x1006f05
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x1007025
test byte [eax + 0x1c], 1
je 0x1007025
push dword [ebp - 8]
push esi
push 0x10017ac
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090ed
jmp 0x1007025
xor eax, eax
cmp dword [ebp - 0x1c], 1
jne 0x1006f1b
cmp byte [ebp + 8], 0
je 0x1006f1b
mov ecx, dword [ebp - 0x10]
jmp 0x1007006
mov edi, 0xea
cmp dword [ebp - 8], eax
je 0x1006f2e
cmp dword [ebp - 8], edi
jne 0x1006ffd
mov ebx, dword [ebp - 0x18]
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x80
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, edi
je 0x1006f62
test esi, esi
je 0x1006f62
cmp esi, 0x103
jne 0x1006fd0
cmp esi, 0x103
je 0x1006ff9
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x1006f93
test byte [eax + 0x1c], 4
je 0x1006f93
push ebx
push 0x10017ac
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100484d
test esi, esi
jne 0x1006fb6
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.0100696a
test al, al
jne 0x1006fb6
cmp byte [ebp + 8], al
jne 0x1006fb6
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 8], eax
inc dword [ebp - 0x14]
push 0x100
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x1006f20
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x1006ffd
test byte [eax + 0x1c], 1
je 0x1006ffd
push dword [ebp - 8]
push 0x10017ac
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003f79
jmp 0x1006ffd
and dword [ebp - 8], 0
cmp byte [ebp + 8], 0
mov ecx, dword [ebp - 0x10]
je 0x1007017
push dword [ebp - 0xc]
call fcn.01006893
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
jmp 0x1007025
call fcn.01006a0c
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
pop edi
pop ebx
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x1007037
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
jne 0x1007050
cmp byte [ebp + 8], 0
jne 0x1007050
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax + 0x74]
call fcn.010086b6
mov eax, dword [0x100f0c8]
mov ecx, dword [0x100f0cc]
mov edx, eax
or edx, ecx
je 0x1007076
cmp byte [ebp - 1], 0
je 0x1007076
push esi
push esi
push 0x10013c0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EventWrite]
cmp dword [ebp - 0x18], esi
je 0x100708b
push dword [ebp - 0x18]
push esi
push dword [0x100f098]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 1]
pop esi
leave
ret 4