Function at 0x1000a0b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100379c8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push esi
xor ebx, ebx
push str.____TSConfigRegistry_Enable:_d
mov edi, ecx
mov dword [ebp - 0x34], ebx
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x1000a109
mov eax, dword [edi + 0x1c]
jmp 0x1000a10e
mov eax, 0xd3d
push eax
call fcn.10005fb0
mov esi, eax
cmp esi, ebx
je 0x1000a140
call fcn.1001af90
push esi
push str.____TSConfigRegistry_RdpPortSet_error__code__08x_
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], esi
call fcn.10028c35
xor ecx, ecx
push 0x30
mov word [ebp - 0x2c], cx
push str.SYSTEMCurrentControlSetControlTerminal_Server
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.10001a60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x1000a17a
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
push 0x20106
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x1000a1c8
cmp dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x2c]
jae 0x1000a1a1
lea edi, [ebp - 0x2c]
call fcn.1001af90
push edi
push esi
push 0x10040450
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], esi
call fcn.10028c35
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
xor ecx, ecx
cmp dword [ebp + 8], ebx
lea edx, [ebp - 0x3c]
push edx
push 4
sete cl
push ebx
push str.fDenyTSConnections
push eax
mov dword [ebp - 0x3c], ecx
call esi
mov edi, eax
cmp edi, ebx
je 0x1000a226
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x1000a1ff
lea esi, [ebp - 0x2c]
call fcn.1001af90
push esi
push edi
push str.____RegSetValueEx_fDenyTSConnections_error__code__08x__Path:_s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], edi
call fcn.10028c35
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], ebx
cmp dword [ebp + 8], ebx
jne 0x1000a249
push 0x10049464
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], ebx
call fcn.10028c35
push 0xf
push str.Licensing_Core
lea eax, [ebp - 0x30]
call fcn.10005480
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000a264
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push 0x20106
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x1000a2e7
cmp edi, 2
jne 0x1000a2b0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000a291
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x34]
push ecx
push ebx
push 0x20106
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
je 0x1000a2e7
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x1000a2c0
lea esi, [ebp - 0x2c]
call fcn.1001af90
push esi
push edi
push 0x10040450
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], edi
call fcn.10028c35
mov ecx, dword [ebp - 0x34]
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push ebx
push str.EnableConcurrentSessions
push ecx
mov dword [ebp - 0x3c], 1
call esi
mov edi, eax
cmp edi, ebx
je 0x1000a33b
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x1000a314
lea esi, [ebp - 0x2c]
call fcn.1001af90
push esi
push edi
push str.____RegSetValueEx_EnableConcurrentSessions_error__code__08x__Path:_s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x6c]
push edx
mov dword [ebp - 0x6c], edi
call fcn.10028c35
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
call fcn.10001a20
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000a361
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push 0x20106
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x1000a3b0
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x1000a389
lea esi, [ebp - 0x2c]
call fcn.1001af90
push esi
push edi
push 0x10040450
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], edi
call fcn.10028c35
mov ecx, dword [ebp - 0x34]
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push ebx
push str.AllowMultipleTSSessions
push ecx
mov dword [ebp - 0x3c], 1
call esi
mov edi, eax
cmp edi, ebx
je 0x1000a404
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x1000a3dd
lea esi, [ebp - 0x2c]
call fcn.1001af90
push esi
push edi
push str.____RegSetValueEx_AllowMultipleTSSessions_error__code__08x__Path:_s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], edi
call fcn.10028c35
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SYSTEMCurrentControlSetControlTerminal_ServerAddIns
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
call fcn.10001a20
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000a42a
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push 0x20106
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov dword [ebp - 0x40], edi
cmp edi, ebx
je 0x1000a47c
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x1000a455
lea esi, [ebp - 0x2c]
call fcn.1001af90
push esi
push edi
push 0x10040450
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], edi
call fcn.10028c35
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x48]
push eax
push ebx
lea ecx, [ebp - 0x44]
push ecx
push ebx
push str.Clip_Redirector
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1000a4eb
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
push str.Clip_Redirector
push ecx
mov dword [ebp - 0x38], ebx
call edi
mov edx, dword [ebp - 0x38]
push 0x10
push 0x10041068
push 1
push ebx
push 0x10041078
push edx
call esi
mov ecx, dword [ebp - 0x38]
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push ebx
push str.Type
push ecx
mov dword [ebp - 0x3c], 3
call esi
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x48]
push eax
push ebx
lea ecx, [ebp - 0x44]
push ecx
push ebx
push str.DND_Redirector
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000a554
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
push str.DND_Redirector
push ecx
mov dword [ebp - 0x38], ebx
call edi
mov edx, dword [ebp - 0x38]
push 0xe
push str.RDPDND
push 1
push ebx
push 0x10041078
push edx
call esi
mov ecx, dword [ebp - 0x38]
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push ebx
push str.Type
push ecx
mov dword [ebp - 0x3c], 3
call esi
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x48]
push eax
push ebx
lea ecx, [ebp - 0x44]
push ecx
push ebx
push str.Dynamic_VC
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000a5a4
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
push str.Dynamic_VC
push ecx
mov dword [ebp - 0x38], ebx
call edi
mov eax, dword [ebp - 0x38]
push 4
lea edx, [ebp - 0x3c]
push edx
push 4
push ebx
push ebx
push eax
mov dword [ebp - 0x3c], 0xffffffff
call esi
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
call fcn.100019f0
mov dword [ebp - 4], 0xffffffff
jmp 0x1000a5de
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x1000a5ef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x40]
push eax
push esi
push str.TSConfigRegistry__Rlt:_08x_Enable:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100269c5
mov esp, ebp
pop ebp
ret 4