Function at 0x140f6
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov edi, edi
push edi
mov ebx, ecx
call fcn.0001345a
lea edi, [ebx + 0x2290]
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebx + 0x2040], eax
lea eax, [ebx + 0x22a4]
mov dword [ebx + 0x224c], esi
mov dword [ebx + 0x2250], esi
mov byte [ebx + 0x2254], 0
mov dword [ebx + 0x2268], esi
mov dword [ebx + 0x226c], esi
mov dword [ebx + 0x2270], esi
mov dword [ebx + 0x2274], esi
mov dword [ebx + 0x2278], esi
mov dword [ebx + 0x227c], esi
mov dword [ebx + 0x2280], esi
mov dword [ebx + 0x2284], esi
mov byte [ebx + 0x2288], 0
push edi
mov dword [eax + 4], eax
mov dword [eax], eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
lea eax, [ebx + 0x2258]
push esi
push esi
push eax
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor eax, eax
mov dword [ebp + 8], esi
cmp dword [0x54048], esi
jbe 0x141dd
mov edi, 0x16038
cmp eax, esi
jl 0x143ca
mov ecx, ebx
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], edi
call fcn.00013916
inc dword [ebp + 8]
add edi, 0x84
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x54048]
jb 0x141a2
cmp eax, esi
jl 0x143ca
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea edi, [ebp - 0x40]
push edi
lea eax, [ebp - 0xc]
push 1
push eax
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 0x200
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x143ca
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x14948
lea eax, [ebp - 0x28]
push eax
call edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x34], 0x200
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x143c1
push 0x14930
lea eax, [ebp - 0x20]
push eax
call edi
lea edi, [ebp - 4]
push edi
push esi
push esi
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x1428d
cmp eax, 0x80000005
jne 0x143b8
push 0x4b676552
push dword [ebp - 4]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, esi
je 0x143b8
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push edi
push 1
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
or eax, eax
jl 0x143ac
cmp dword [edi + 4], 1
jne 0x143ac
lea edx, [ebx + 0x2044]
mov edi, 0x14916
mov eax, edx
sub eax, edi
movzx ecx, word [edi]
mov word [eax + edi], cx
inc edi
inc edi
cmp cx, si
jne 0x142e1
mov eax, dword [ebp + 0x10]
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x142f5
sub eax, edi
mov edi, dword [ebp + 8]
sar eax, 1
lea eax, [eax + eax + 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0xc]
add ecx, eax
cmp ecx, 0x208
jae 0x143ac
mov eax, dword [edi + 8]
add eax, edi
mov edi, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x14325
mov dword [ebp + 0xc], edi
sub eax, edi
mov edi, edx
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, si
jne 0x14338
mov esi, dword [ebp + 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
or ax, ax
jne 0x14358
mov eax, dword [ebp + 0x10]
mov esi, 0x14912
movsd dword es:[edi], dword [esi]
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
or cx, cx
jne 0x1436e
sub eax, esi
dec edx
dec edx
mov cx, word [edx + 2]
inc edx
inc edx
test cx, cx
jne 0x1437c
mov edi, edx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
mov word [ebx + 0x224a], ax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0001399c
mov edi, dword [ebp + 8]
xor esi, esi
push 0x4b676552
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push ebx
push 0x140d8
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push 0x1fffff
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jl 0x14403
lea eax, [ebx + 0x2250]
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc