Function at 0x217fb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
lea eax, [ebp - 8]
push esi
mov ebx, ecx
push edi
push eax
push 0x20019
push 0
push dword [ebp + 8]
push dword [0x218c5ac]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebx + 0x24], eax
test eax, eax
je 0x217fbc7
mov dword [ebx + 0x2c], eax
jmp 0x217ffde
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x26c]
push eax
xor edi, edi
mov dword [ebp - 0x10], 0x200
push ecx
push edi
push edi
push str.RunAs
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x217fd68
xor esi, esi
cmp word [ebp - 0x26c], di
je 0x217fc14
lea eax, [ebp - 0x26c]
cmp word [eax], 0x5c
je 0x217fc14
add eax, 2
inc esi
cmp word [eax], 0
jne 0x217fc04
lea eax, [ebp + esi*2 - 0x26c]
cmp word [eax], 0
mov dword [ebp - 4], eax
jne 0x217fca3
cmp dword [0x218cb3c], 0
jne 0x217fc35
lea ecx, [ebp - 1]
call fcn.02185b16
push 0x218ced4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + 1]
lea eax, [esi*2]
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x217fc6c
mov dword [ebx + 0x24], 0x8007000e
jmp 0x217ffd2
cmp dword [0x218cb3c], 0
jne 0x217fc7d
lea ecx, [ebp - 1]
call fcn.02185b16
lea eax, [esi*2]
mov edi, dword [ebx + 0x10]
mov esi, 0x218ced4
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 dword [ebp - 4], 0
jmp 0x217fcf5
inc esi
mov eax, dword [0x218cb30]
lea ecx, [esi*2]
push ecx
push 0
push eax
call dword [0x218cb34]
mov edi, eax
mov dword [ebx + 0x10], eax
test edi, edi
jne 0x217fccf
mov dword [ebx + 0x24], 0x8007000e
jmp 0x217ffd2
mov eax, dword [ebp - 4]
mov word [eax], 0
mov dword [ebp - 4], esi
lea eax, [esi*2]
lea esi, [ebp - 0x26c]
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 eax, dword [ebp - 0x10]
shr eax, 1
sub eax, dword [ebp - 4]
cmp eax, 1
jbe 0x217fd53
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add esi, esi
and al, 0xfe
sub eax, esi
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov edi, eax
mov dword [ebx + 0xc], eax
test edi, edi
jne 0x217fd32
mov dword [ebx + 0x24], 0x8007000e
jmp 0x217ffd2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, ecx
lea esi, [ebp + esi - 0x26c]
sub eax, ecx
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]
jmp 0x217fd68
push dword [ebx + 0x10]
xor esi, esi
push esi
push dword [0x218cb30]
call dword [0x218cb38]
mov dword [ebx + 0x10], esi
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 0x6c]
mov dword [ebp - 0xc], 0x20
push ecx
push edx
push str.ActivateAtStorage
push dword [ebp - 8]
call fcn.0217fab0
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x217fda4
cmp word [ebp - 0x6c], 0x59
je 0x217fd9d
cmp word [ebp - 0x6c], 0x79
jne 0x217fda4
mov dword [ebx + 0x20], 1
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x20
push ecx
push edx
push str.RemoteServerName
push dword [ebp - 8]
call fcn.0217fab0
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x217fe01
mov dword [ebx + 0x18], 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb34]
lea ecx, [ebp - 0x4c]
mov dword [ebx], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x217fe56
cmp eax, 0xea
jne 0x217fe56
push dword [ebp - 0x18]
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov ecx, eax
mov dword [ebx], eax
test ecx, ecx
jne 0x217fe2d
mov dword [ebx + 0x24], 8
jmp 0x217ffd2
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x18]
push eax
push edx
push ecx
push str.RemoteServerName
push dword [ebp - 8]
call fcn.0217fab0
mov dword [ebx + 0x24], eax
test eax, eax
je 0x217fe4f
mov dword [ebx + 0x2c], eax
jmp 0x217fe56
mov dword [ebx + 0x18], 1
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 0x474]
mov dword [ebp - 0xc], 0x104
push ecx
xor esi, esi
push edx
push str.LocalService
push dword [ebp - 8]
call fcn.0217fab0
mov dword [ebx + 0x24], eax
cmp eax, esi
jne 0x217ffbe
lea eax, [ebp - 0x1c]
mov edi, 0x20019
push eax
push edi
push esi
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebx + 0x24], eax
cmp eax, esi
jne 0x217ff07
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x474]
push eax
push edi
push esi
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebx + 0x24], eax
cmp eax, esi
jne 0x217fefe
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0xc], 4
push ecx
push edx
push esi
push str.ErrorControl
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebx + 0x24], eax
cmp eax, esi
jne 0x217fef5
mov dword [ebx + 0x1c], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0x1c], 0
je 0x217ffbe
mov dword [ebp - 4], 0x190
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov ecx, eax
mov dword [ebx + 4], eax
test ecx, ecx
jne 0x217ff50
mov dword [ebx + 0x24], 0x8007000e
jmp 0x217ffd2
lea eax, [ebp - 0x474]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x604]
push ecx
lea eax, [ebp - 0x2c]
push edx
xor esi, esi
push eax
push esi
push str.ServiceParameters
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebx + 0x24], eax
cmp eax, esi
jne 0x217ffbe
push dword [ebp - 4]
push esi
push dword [0x218cb30]
call dword [0x218cb34]
mov edi, eax
mov dword [ebx + 8], eax
test edi, edi
jne 0x217ffa7
mov dword [ebx + 0x24], 0x8007000e
jmp 0x217ffd2
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x604]
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]
lea eax, [ebx + 0x14]
push eax
push str.LaunchPermission
push dword [ebp - 8]
call fcn.02178ab6
mov dword [ebx + 0x24], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4