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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x294d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x410], eax
xor eax, eax
mov word [ebp - 0x41c], ax
lea edi, [ebp - 0x41a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
mov eax, 0x200
push 0x3ff
mov word [ebp - 0x41a], ax
lea eax, [ebp - 0x403]
push ebx
push eax
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x408], ebx
mov byte [ebp - 0x404], bl
call sub.ntoskrnl.exe_memset
lea eax, [ebp - 0x404]
add esp, 0xc
mov dword [ebp - 0x418], eax
xor eax, eax
movzx ecx, word [eax + 0x2312c]
mov word [ebp + eax - 0x404], cx
inc eax
inc eax
cmp cx, bx
jne 0x1671b
call fcn.0001212e
mov esi, eax
call fcn.0001213a
mov ecx, dword [ebp - 0x418]
lea edi, [ecx + eax*2]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp - 0x418]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x16752
sub eax, edx
sar eax, 1
add eax, eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x438]
push eax
mov esi, 0xf003f
push esi
lea eax, [ebp - 0x40c]
mov edi, 0x240
push eax
mov dword [ebp - 0x438], 0x18
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jge 0x167c4
mov eax, 0xc0000001
jmp 0x16a26
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x45c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x438]
push eax
push esi
lea eax, [ebp - 0x408]
push eax
mov dword [ebp - 0x438], 0x18
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x45c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov esi, eax
cmp esi, ebx
jge 0x16834
push dword [ebp - 0x40c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x16a24
push 0x14
pop eax
push 0x16
mov word [ebp - 0x440], ax
pop eax
mov word [ebp - 0x43e], ax
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x43c], 0x23116
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
push 0x12
pop eax
push 0x14
mov esi, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov word [ebp - 0x46c], ax
pop eax
mov word [ebp - 0x46a], ax
mov eax, dword [ebp - 0x410]
movzx ecx, word [eax]
inc ecx
inc ecx
push ecx
push dword [eax + 4]
lea eax, [ebp - 0x46c]
push 2
push ebx
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x468], 0x22900
call esi
mov edi, eax
cmp edi, ebx
jge 0x168cd
push dword [ebp - 0x408]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp - 0x40c]
call esi
mov eax, edi
jmp 0x16a26
push 0x18
pop eax
push 0x1a
mov word [ebp - 0x464], ax
pop eax
push 4
mov word [ebp - 0x462], ax
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x408]
xor edi, edi
inc edi
mov dword [ebp - 0x460], 0x230fc
mov dword [ebp - 0x414], edi
call esi
cmp eax, ebx
mov dword [ebp - 0x410], eax
jge 0x1693a
push dword [ebp - 0x408]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call esi
push dword [ebp - 0x40c]
call esi
mov eax, dword [ebp - 0x410]
jmp 0x16a26
push 0xa
pop eax
push 0xc
mov word [ebp - 0x458], ax
pop eax
push 4
mov word [ebp - 0x456], ax
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x454], 0x230ce
mov dword [ebp - 0x414], edi
call esi
cmp eax, ebx
mov dword [ebp - 0x410], eax
jl 0x16919
push 8
pop eax
push 0xa
mov word [ebp - 0x448], ax
pop eax
push 4
mov word [ebp - 0x446], ax
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x444], 0x230f2
mov dword [ebp - 0x414], edi
call esi
cmp eax, ebx
mov dword [ebp - 0x410], eax
jl 0x16919
push 0x16
pop eax
push 0x18
mov word [ebp - 0x450], ax
pop eax
mov word [ebp - 0x44e], ax
mov eax, dword [ebp - 0x420]
movzx ecx, word [eax]
push ecx
push dword [eax + 4]
lea eax, [ebp - 0x450]
push edi
push ebx
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x44c], 0x230da
call esi
push dword [ebp - 0x408]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esi, eax
call edi
push dword [ebp - 0x40c]
call edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.000223b6
leave
ret 8