Function at 0x1400a31a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
mov ebx, 0x208
mov r8d, ebx
lea rcx, [rsp + 0x60]
xor edx, edx
call sub.msvcrt.dll_memset
xor r13d, r13d
lea r8, [rsp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], r13
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionWebManagementService
lea rcx, str.WindowsDevicePortalService
call qword [sym.imp.api_ms_win_stateseparation_helpers_l1_1_0.dll_GetPersistedRegistryLocationW]
test eax, eax
je 0x1400a3230
mov rcx, qword [rsp + 0x2a8]
lea r8, str.onecoreuap_adminwebbdiscoverywdpserviceregistrationhandler.cpp
mov r9d, eax
lea edx, [r13 + 0x4f]
call fcn.140008688
jmp 0x1400a3430
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionWebManagementService
mov qword [rsp + 0x30], r13
mov ebx, 2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x50], r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
je 0x1400a3296
mov rcx, qword [rsp + 0x2a8]
lea r8, str.onecoreuap_adminwebbdiscoverywdpserviceregistrationhandler.cpp
mov r9d, eax
lea edx, [rbx + 0x51]
call fcn.140008688
mov ebp, eax
jmp 0x1400a341e
mov rdx, qword [rsi]
mov r15d, 1
mov rcx, qword [rdx]
jmp 0x1400a32ae
inc r15
add r15, qword [rcx + 0x20]
mov rcx, qword [rcx]
cmp rcx, rdx
jne 0x1400a32a4
mov rcx, 0xffffffffffffffff
mov rax, rbx
mul r15
lea rdx, [0x1400f80f4]
cmovo rax, rcx
mov rcx, rax
call fcn.1400c24ac
mov rdi, rax
test rax, rax
jne 0x1400a32eb
mov ebp, 0x8007000e
lea edx, [rax + 0x5e]
mov r9d, ebp
jmp 0x1400a33fc
mov word [rax + r15*2 - 2], r13w
mov r12, r13
mov rsi, qword [rsi]
mov rbx, qword [rsi]
jmp 0x1400a339f
lea r14, [rbx + 0x10]
cmp qword [r14 + 0x18], 8
jb 0x1400a330f
mov r8, qword [r14]
jmp 0x1400a3312
mov r8, r14
mov rdx, r15
lea rcx, [rdi + r12*2]
sub rdx, r12
call fcn.140001d48
mov ebp, eax
test eax, eax
js 0x1400a33f4
inc r12
add r12, qword [r14 + 0x10]
cmp dword [0x140142444], 5
jb 0x1400a335b
cmp qword [r14 + 0x18], 8
jb 0x1400a3347
mov r8, qword [r14]
jmp 0x1400a334a
mov r8, r14
lea rdx, str.WDP_DNSSD_tag_written:__S
mov ecx, 5
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400a339c
test byte [rcx + 0x1c], 0x40
je 0x1400a339c
cmp byte [rcx + 0x19], 5
jb 0x1400a339c
cmp qword [r14 + 0x18], 8
jb 0x1400a3384
mov r14, qword [r14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14010b418]
mov edx, ntohs
mov r9, r14
call fcn.1400076d8
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x1400a32ff
mov rcx, qword [rsp + 0x50]
lea eax, [r15 + r15]
mov dword [rsp + 0x28], eax
lea rdx, str.DnsSdTags
mov r9d, 7
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x1400a3412
mov rcx, qword [rsp + 0x2a8]
lea r8, str.onecoreuap_adminwebbdiscoverywdpserviceregistrationhandler.cpp
mov r9d, eax
mov edx, 0x6a
call fcn.140008688
mov ebp, eax
jmp 0x1400a3415
mov r9d, eax
mov edx, Ordinal_102
mov rcx, qword [rsp + 0x2a8]
lea r8, str.onecoreuap_adminwebbdiscoverywdpserviceregistrationhandler.cpp
call fcn.140003684
jmp 0x1400a3415
mov ebp, r13d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a342e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebp
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret