Function at 0x1124a
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
or dword [ebp - 0x30], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0xeb236c80
xor esi, esi
push 0x11aec
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x44], eax
push esi
lea eax, [ebp - 0x4c]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
jl 0x11480
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 2
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
jbe 0x11477
push 0x31676154
push dword [ebp - 4]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
je 0x1152c
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 2
push dword [ebp - 8]
call edi
mov dword [ebp - 0xc], esi
cmp dword [ebx + 0x14], esi
jbe 0x1146d
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], esi
jbe 0x1146d
push 0x31676154
push dword [ebp - 4]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], esi
jbe 0x1146d
mov ax, word [edi + 0xc]
movzx ebx, ax
push 0x31676154
push ebx
push esi
mov word [ebp - 0x22], ax
mov word [ebp - 0x24], ax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push ebx
lea ecx, [edi + 0x10]
push ecx
push eax
mov dword [ebp - 0x20], eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, 0xfffe
push 0x31676154
push eax
mov ecx, eax
push esi
mov word [ebp - 0x1a], cx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x1146d
push 0x11aec
lea eax, [ebp - 0x1c]
push eax
call fcn.00011106
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0001119a
push 0x11a96
lea eax, [ebp - 0x1c]
push eax
call fcn.00011106
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
push 0xf003f
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x11442
push 0x11a80
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, 0x11a2c
mov eax, ecx
lea edx, [eax + 2]
mov bx, word [eax]
inc eax
inc eax
cmp bx, si
jne 0x11415
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push esi
push dword [ebp - 0x20]
call edi
push esi
push dword [ebp - 0x18]
call edi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
cmp ecx, dword [eax + 0x14]
jb 0x11300
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x119b4
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x11507
push 0x11a80
lea eax, [ebp - 0x2c]
push eax
call edi
mov ecx, 0x11a2c
mov eax, ecx
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, si
jne 0x114da
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 8], esi
je 0x11526
lea eax, [ebp - 0x34]
push eax
push esi
push esi
call dword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
cmp dword [0x13010], esi
jne 0x11262
jmp 0x1152c
mov dword [0x13010], esi
pop edi
pop esi
pop ebx
leave
ret 4