Function at 0x11fe0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x40
push ebx
push esi
push edi
push 0x5c
push eax
call dword [sym.imp.ntoskrnl.exe_wcsrchr]
xor esi, esi
add esp, 8
cmp eax, esi
je 0x122da
add eax, 2
mov dword [ebp - 0x18], eax
je 0x122da
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x12011
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
sub eax, edx
push str.REGISTRYMACHINESYSTEMCurrentControlSetControlSession_Manager
lea ecx, [ebp - 0x28]
sar eax, 1
push ecx
mov dword [ebp - 0x14], eax
call edi
lea eax, [ebp - 0x40]
push eax
push 0xf003f
lea ecx, [ebp - 4]
lea edx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 0x240
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x122df
push str.PendingFileRenameOperations
lea edx, [ebp - 0x20]
push edx
call edi
mov edx, dword [ebp - 4]
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 2
lea ecx, [ebp - 0x20]
push ecx
push edx
call ebx
cmp eax, 0xc0000034
je 0x122c2
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x122c2
add eax, 2
push eax
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0xc], eax
call esi
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x120d6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push edi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
push eax
push edi
push 2
lea ecx, [ebp - 0x20]
push ecx
push edx
call ebx
mov ebx, eax
test ebx, ebx
jge 0x1211e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 4], 7
jne 0x122a4
mov eax, dword [edi + 8]
cmp eax, 2
jbe 0x122a4
push eax
push 0
call esi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x122a4
mov ecx, dword [edi + 8]
push ecx
xor esi, esi
push esi
push eax
call sub.ntoskrnl.exe_memset
lea ebx, [edi + 0xc]
mov eax, ebx
add esp, 0xc
mov dword [ebp + 8], esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x12160
sub eax, edx
sar eax, 1
mov edi, eax
je 0x12279
push 0x5c
push ebx
call dword [sym.imp.ntoskrnl.exe_wcsrchr]
add esp, 8
test eax, eax
je 0x121df
add eax, 2
je 0x121df
mov edx, dword [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x121df
mov edx, dword [ebp - 8]
lea esi, [esi + edi*2 + 2]
cmp esi, dword [edx + 8]
jae 0x12279
lea eax, [edx + esi + 0xc]
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x121c0
sub eax, edi
sar eax, 1
je 0x121da
lea esi, [esi + eax*2 + 2]
jmp 0x12253
add esi, 2
jmp 0x12253
mov ecx, dword [ebp - 0x10]
push edi
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebx + ecx]
push edx
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
mov ecx, dword [ebp - 8]
lea esi, [esi + edi*2 + 2]
add esp, 0xc
lea eax, [ebx + edi*2 + 2]
mov dword [ebp + 8], eax
cmp esi, dword [ecx + 8]
jae 0x12279
mov eax, ecx
add eax, 0xc
lea edx, [eax + esi]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x12214
sub eax, edi
sar eax, 1
mov edi, eax
je 0x12249
mov ebx, dword [ebp + 8]
push edi
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebx + edx]
push eax
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
lea ecx, [ebx + edi*2 + 2]
add esp, 0xc
mov dword [ebp + 8], ecx
lea esi, [esi + edi*2 + 2]
jmp 0x12250
add esi, 2
add dword [ebp + 8], 2
mov edx, dword [ebp - 8]
cmp esi, dword [edx + 8]
jae 0x12279
lea ebx, [edx + 0xc]
add ebx, esi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x12262
sub eax, edx
sar eax, 1
mov edi, eax
jne 0x12177
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add edx, 2
push edx
push esi
push 7
push 0
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push 0
push esi
mov ebx, eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov eax, 0xc0000034
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4