Function at 0x17020
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
cmp byte [0x1c8bc], bl
jne 0x172d5
cmp byte [ebp + 0x10], bl
je 0x172d5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
test eax, eax
jl 0x172c7
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x1b
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
cmp eax, 0xc0000004
jne 0x172c7
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, 0x32333435
push edi
push dword [ebp - 4]
push 1
call esi
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x172c6
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 0x1b
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
test eax, eax
jl 0x172af
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
inc eax
inc eax
push edi
push eax
push 1
mov dword [ebp - 4], eax
call esi
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x172af
push dword [ebp - 4]
push ebx
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
push ecx
push dword [eax + 4]
push esi
call dword [sym.imp.ntoskrnl.exe_memmove]
push 0x5c
push esi
call dword [sym.imp.ntoskrnl.exe_wcsrchr]
add esp, 0x20
mov dword [ebp + 0x10], eax
cmp eax, ebx
jne 0x17149
mov dword [ebp + 0x10], esi
jmp 0x1714d
add dword [ebp + 0x10], 2
mov esi, dword [sym.imp.ntoskrnl.exe__wcsicmp]
push 0x1b4e4
push dword [ebp + 0x10]
call esi
pop ecx
pop ecx
mov edi, 0x1b658
test eax, eax
je 0x17178
push edi
push dword [ebp + 0x10]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x172af
push edi
push dword [ebp + 0x10]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1718b
mov byte [0x1c8bc], 1
push ebx
push ebx
push ebx
push ebx
push 0x1c7f8
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov esi, dword [0x1c808]
jmp 0x17296
cmp dword [esi + 0x24], ebx
je 0x17294
lea edi, [esi + 0x20]
xor eax, eax
cmp ax, word [edi]
je 0x17294
cmp ax, word [esi + 0x22]
je 0x17294
lea eax, [ebp - 0x30]
push eax
push 0x2001f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
push eax
push edi
push 0x1b624
mov dword [ebp + 0x10], eax
call fcn.00016e18
add esp, 0xc
cmp dword [ebp + 0x10], ebx
jl 0x17294
cmp dword [esi + 0x2c], ebx
je 0x17280
lea edi, [esi + 0x28]
xor eax, eax
cmp ax, word [edi]
je 0x17280
cmp ax, word [esi + 0x2a]
je 0x17280
cmp byte [esi + 0x3c], bl
je 0x17265
mov eax, dword [esi + 0x30]
cmp eax, ebx
jne 0x1724a
cmp dword [esi + 0x34], ebx
je 0x1724a
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0x1b5fa
call fcn.00016e18
pop ecx
jmp 0x17294
push dword [esi + 0x34]
push eax
push dword [esi + 0x38]
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push eax
push edi
push 0x1b5c4
jmp 0x17276
push edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
push eax
push edi
push 0x1b58c
call fcn.00016e18
add esp, 0xc
jmp 0x1728b
push 0x1b562
call fcn.00016e18
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esi, dword [esi]
cmp esi, 0x1c808
jne 0x171a5
push ebx
push ebx
push 0x1c7f8
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push ebx
push dword [ebp + 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x172c6
push ebx
push dword [ebp - 0x10]
call esi
pop esi
cmp dword [ebp - 0xc], ebx
je 0x172d5
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop ebx
leave
ret 0xc