Function at 0x40f6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447fed
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 6
push str.ImagePath
push str.SYSTEMCurrentControlSetServicesentryprotectdrv
mov dword [ebp - 0x60], ebx
push 0x80000002
mov dword [ebp - 0x60], 0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40f749
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x40f877
mov esi, dword [ebp - 0x60]
shr esi, 1
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
cmp esi, 7
ja 0x40f796
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40f78a
mov ecx, esi
lea edi, [ebp - 0x28]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + esi*2 - 0x28], ax
mov edx, dword [ebp - 0x28]
jmp 0x40f7f1
cmp esi, 0x7ffffffe
ja 0x40fa92
mov edi, esi
lea ecx, [ebp - 0x28]
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x40f7bc
mov edi, 0x7ffffffe
lea eax, [edi + 1]
jmp 0x40f7c9
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
call fcn.0040c580
mov edx, eax
mov dword [ebp - 0x14], edi
mov eax, esi
mov ecx, esi
mov dword [ebp - 0x18], eax
mov edi, edx
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + esi*2], ax
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x60]
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
cmovae eax, edx
push eax
push 0
push 6
push str.ImagePath
push str.SYSTEMCurrentControlSetServicesentryprotectdrv
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40f895
mov dword [ebx], 0
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
cmp edx, 8
jb 0x40f877
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f86d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa8d
push edx
push ecx
call fcn.0042c7bf
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cc35
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 8
setae byte [ebp - 0x59]
cmovae eax, edi
cmp dword [ebp - 0x18], 4
jb 0x40f8ef
push 4
push 0x44bcac
push eax
call fcn.0040d200
add esp, 0xc
test eax, eax
jne 0x40f8ef
cmp byte [ebp - 0x59], al
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovne edx, edi
add eax, 0xfffffffc
mov dword [ebp - 0x18], eax
lea eax, [eax*2 + 2]
push eax
lea ecx, [edx + 8]
push ecx
push edx
call fcn.0042de60
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov edi, dword [ebp - 0x28]
cmp esi, 8
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
cmovae eax, edi
push dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], cx
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], 7
mov byte [ebp - 4], 2
call fcn.0040ccc0
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmovae edi, dword [ebp - 0x40]
lea esi, [edi + eax*2]
push esi
push edi
call fcn.0040b640
add esp, 8
cmp eax, esi
je 0x40f995
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40f94f
cmp ecx, 0x2f
jne 0x40f960
add eax, 2
cmp eax, esi
jne 0x40f942
jmp 0x40f995
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x40f977
cmp edx, 0x2f
je 0x40f977
add esi, 0xfffffffe
cmp eax, esi
jne 0x40f960
jmp 0x40f995
cmp eax, esi
je 0x40f995
nop dword [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x40f98e
cmp edx, 0x2f
jne 0x40f995
add esi, 0xfffffffe
cmp eax, esi
jne 0x40f980
sub esi, edi
mov dword [ebp - 0x58], 0
sar esi, 1
push esi
xor eax, eax
mov dword [ebp - 0x48], 0
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 5
call fcn.0040ccc0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.00405fb0
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40fa0b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa8d
push edx
push ecx
call fcn.0042c7bf
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40fa41
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa8d
push edx
push ecx
call fcn.0042c7bf
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40f877
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f86d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f86d
call fcn.00430d2f
call fcn.0040c3f0
int3