Function at 0x46f210
Capabilities:
Delete registry key
Delete registry value
Persist via windows service
Query or enumerate registry key
Set registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [esp + 0x10]
push eax
xor esi, esi
push 0x102
push esi
push 0x494708
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x24], esi
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x46f288
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46f288
push str.NodeType
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
jmp 0x46f28e
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0x102
push esi
push 0x494790
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call ebp
test eax, eax
jne 0x46f2c4
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46f2c4
push str.DhcpNodeType
push eax
call ebx
mov eax, dword [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push 0x102
push esi
push 0x494820
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call ebp
test eax, eax
jne 0x46f2fa
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46f2fa
push str.SMBDeviceEnabled
push eax
call ebx
mov edx, dword [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push 0x102
push esi
push 0x494898
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call ebp
test eax, eax
jne 0x46f330
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46f330
push str.SMB1
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push 0x102
push esi
push str.SYSTEMCurrentControlSet_servicesLanmanServerParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call ebp
test eax, eax
jne 0x46f366
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46f366
push str.SMB2
push eax
call ebx
mov eax, dword [esp + 0x10]
push eax
call edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerRemoteComputerNameSpaceD6277990_4C6A_11CF_8D87_00AA0060F5BF
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x12
push 0x495e80
push str.TransportBindName
mov edi, str.SYSTEMCurrentControlSet_servicesNetBTParameters
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046eba0
push 0xa
push str.Auto
push str.MaintainServerList
mov edi, 0x494b30
call fcn.0046eba0
push 0xc
push str.FALSE
push str.IsDomainMaster
mov edi, str.SYSTEMCurrentControlSet_servicesBrowserParameters
call fcn.0046eba0
lea ecx, [esp + 0x38]
push ecx
push str.everyoneincludesanonymous
mov edi, 0x494c60
mov dword [esp + 0x40], 1
call fcn.0046eb00
lea edx, [esp + 0x40]
push edx
push str.EnableLMHOSTS
mov edi, str.SYSTEMCurrentControlSetServicesNetBTParameters
call fcn.0046eb00
lea eax, [esp + 0x48]
push eax
push str.LmCompatibilityLevel
mov edi, 0x494d60
call fcn.0046eb00
lea ecx, [esp + 0x50]
push ecx
push 0x494db8
mov edi, 0x494dd8
call fcn.0046eb00
add esp, 0x44
lea edx, [esp + 0x14]
push edx
push 0x494e4c
mov edi, 0x494e68
call fcn.0046eb00
lea eax, [esp + 0x1c]
push eax
push str.AllowInsecureGuestAuth
mov edi, str.SYSTEMCurrentControlSetServicesLanmanWorkstationParameters
call fcn.0046eb00
lea ecx, [esp + 0x24]
push ecx
push str.NtlmMinClientSec
mov edi, 0x494fb8
mov dword [esp + 0x2c], esi
call fcn.0046eb00
lea edx, [esp + 0x2c]
push edx
push str.NtlmMinServerSec
mov edi, str.SYSTEMCurrentControlSetControlLsaMSV1_0
call fcn.0046eb00
lea eax, [esp + 0x34]
push eax
push str.LimitBlankPasswordUse
mov edi, 0x4950c0
call fcn.0046eb00
lea ecx, [esp + 0x3c]
push ecx
push str.restrictanonymous
mov edi, 0x495130
call fcn.0046eb00
lea edx, [esp + 0x44]
push edx
push str.restrictanonymoussam
mov edi, 0x4951a8
call fcn.0046eb00
lea eax, [esp + 0x4c]
push eax
push str.NoLmHash
mov edi, 0x495208
call fcn.0046eb00
add esp, 0x40
lea ecx, [esp + 0x14]
push ecx
push str.restrictnullsessaccess
mov edi, 0x495288
call fcn.0046eb00
add esp, 8
lea edx, [esp + 0x18]
push edx
push 0x20019
push esi
push str.SYSTEMCurrentControlSet_servicesNetBTParametersInterfaces
push ebx
call ebp
test eax, eax
jne 0x46f5ab
mov edi, dword [esp + 0x18]
cmp edi, esi
je 0x46f5ab
push 0x208
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00477820
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
push esi
push edi
call ebx
test eax, eax
jne 0x46f5a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x18]
inc dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0x20006
push esi
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x38], 0x104
call ebp
test eax, eax
jne 0x46f582
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x46f582
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push esi
push str.NetbiosOptions
push eax
mov dword [esp + 0x2c], esi
call edi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push esi
push esi
push esi
push esi
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x46f532
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004771de
add esp, 0x224
ret