Function at 0x10035cf0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039441
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98c
mov dword [ebp - 0x990], ecx
mov eax, dword [ebp - 0x990]
push eax
lea ecx, [ebp - 0x18]
call fcn.100052d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x640], 0
xor ecx, ecx
mov word [ebp - 0x224], cx
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.1001b770
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x430], 0x104
lea eax, [ebp - 0x850]
push eax
push 0x1003fc60
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10035db4
mov byte [ebp - 0x969], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10005300
mov al, byte [ebp - 0x969]
jmp 0x10036071
mov dword [ebp - 0x1c], 1
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x63c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x850]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1003603f
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
push 0x104
lea edx, [ebp - 0x84c]
push edx
call fcn.1001badc
add esp, 0xc
lea eax, [ebp - 0x63c]
push eax
push 0x104
lea ecx, [ebp - 0x84c]
push ecx
call fcn.1001ba67
add esp, 0xc
lea edx, [ebp - 0x640]
push edx
lea eax, [ebp - 0x84c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10035e40
jmp 0x10035dbb
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x644], 0x208
lea ecx, [ebp - 0x644]
push ecx
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.ServiceName
mov ecx, dword [ebp - 0x640]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10036024
mov edx, dword [ebp - 0x640]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.._
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.1001badc
add esp, 0xc
lea ecx, [ebp - 0x42c]
push ecx
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.1001ba67
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x854], eax
cmp dword [ebp - 0x854], 0xffffffff
je 0x10036015
mov dword [ebp - 0x968], 0x1010102
mov byte [ebp - 0x964], 0
push 0x103
push 0
lea ecx, [ebp - 0x963]
push ecx
call fcn.1001b770
add esp, 0xc
push 0
lea edx, [ebp - 0x644]
push edx
push 0x104
lea eax, [ebp - 0x964]
push eax
push 4
lea ecx, [ebp - 0x968]
push ecx
push 0x170002
mov edx, dword [ebp - 0x854]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x858], eax
mov eax, dword [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x854], 0xffffffff
cmp dword [ebp - 0x858], 0
je 0x10036015
push 6
lea ecx, [ebp - 0x964]
push ecx
lea edx, [ebp - 0x988]
push edx
mov ecx, dword [ebp - 0x990]
call fcn.10034eb0
mov dword [ebp - 0x994], eax
mov eax, dword [ebp - 0x994]
mov dword [ebp - 0x998], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x998]
push ecx
mov ecx, dword [ebp - 0x990]
add ecx, 0x2c
call fcn.10001840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x988]
call fcn.10001870
mov ecx, dword [ebp - 0x990]
add ecx, 0x2c
call fcn.10001b20
push eax
mov ecx, dword [ebp - 0x990]
add ecx, 0x2c
call fcn.10005050
push eax
mov ecx, dword [ebp - 0x990]
call fcn.10034cb0
movzx edx, al
test edx, edx
je 0x10036013
mov byte [ebp - 0x989], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10005300
mov al, byte [ebp - 0x989]
jmp 0x10036071
jmp 0x1003603f
mov eax, dword [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10036031
mov ecx, dword [ebp - 0x640]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x10035dbb
cmp dword [ebp - 0x850], 0
je 0x10036055
mov eax, dword [ebp - 0x850]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x98a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10005300
mov al, byte [ebp - 0x98a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret