Function at 0x180004300
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x180013070]
xor rax, rsp
mov qword [rbp], rax
movups xmm0, xmmword [str.NetpOpenRegistry]
movzx eax, word [0x18000d3f0]
mov r15, r9
movups xmm1, xmmword [0x18000d3e0]
and qword [rsp + 0x60], 0
lea r9, str._system32configSYSTEM
and qword [rbp - 0x70], 0
mov r13d, r8d
and qword [rsp + 0x78], 0
mov esi, 2
and qword [rbp - 0x80], 0
xor dil, dil
and dword [rsp + 0x70], 0
mov r8, r15
and dword [rsp + 0x74], 0
xor r12b, r12b
and qword [rsp + 0x68], 0
and qword [rsp + 0x58], 0
and dword [rsp + 0x54], 0
movups xmmword [rbp - 0x48], xmm0
mov dword [rbp - 0x78], edx
movups xmm0, xmmword [str.ControlSet000]
mov qword [rbp - 0x60], rcx
lea rcx, [rsp + 0x68]
movups xmmword [rbp - 0x38], xmm1
mov word [rbp - 0x28], ax
movsd xmm1, qword [0x18000d408]
mov eax, dword [0x18000d410]
movzx edx, si
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 8], eax
movsd qword [rbp - 0x10], xmm1
mov byte [rsp + 0x50], dil
call fcn.180009054
mov ebx, eax
test eax, eax
jne 0x18000474a
lea rcx, [rbp - 0x58]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180004737
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x58]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180004737
mov r8, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
mov rdx, qword [rsp + 0x58]
mov ebx, 0xa9d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegLoadKeyW]
nop dword [rax + rax]
test eax, eax
je 0x1800044a4
cmp eax, 0x20
jne 0x180004487
bt r13d, 0x1e
jae 0x180004487
lea rax, [rsp + 0x78]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSet
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x1800045e4
mov r8d, eax
lea rcx, str._ws:_Failed_to_open_the_online_registry_CCS_key:_0x_x._n
jmp 0x180004741
mov r8, qword [rsp + 0x68]
lea rcx, str._ws:_RegLoadKeyW_failed_to_load_the_hive__ws:_0x_x._n
mov r9d, eax
lea rdx, [rbp - 0x48]
call fcn.180008608
jmp 0x18000474a
lea rdx, [rbp - 0x48]
lea rcx, str._ws:_Hive_loaded__navigating_to_the_CCS_key._n
call fcn.180008608
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r12b, 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1800044f4
mov r8, qword [rsp + 0x58]
lea rcx, str._ws:_RegOpenKeyExW_failed_to_load__ws:_0x_x._n
jmp 0x180004493
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Select
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x18000452b
lea r8, str.Select
jmp 0x1800044eb
mov rcx, qword [rbp - 0x70]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x68]
lea rax, [rsp + 0x74]
mov dword [rsp + 0x70], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Current
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x180004575
lea r8, str.Current
jmp 0x1800044eb
mov ecx, dword [rsp + 0x74]
cmp ecx, 9
jbe 0x18000458d
mov r8d, ecx
lea rcx, str._ws:_Too_many_CCS_options:__d._Giving_up__n
jmp 0x180004741
mov r9d, 0xa
lea rdx, [rbp - 8]
mov r8, rsi
call qword [sym.imp.api_ms_win_core_crt_l1_1_0.dll__ltow_s]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x1800045e4
lea r8, [rbp - 0x20]
lea rcx, str._ws:_Failed_to_open_the_registry_key__ws:_0x_x._n
jmp 0x180004493
xor ebx, ebx
test r15, r15
je 0x180004620
mov rcx, qword [rsp + 0x78]
call fcn.18000778c
test al, al
je 0x180004620
cmp qword [rsp + 0x68], 0
lea r8, str._NULL_
mov ebx, 0x32
lea rcx, str._ws:_The_image_at__ws_is_a_DC:_0x_x._n
cmovne r8, qword [rsp + 0x68]
mov r9d, ebx
jmp 0x180004496
xor r8d, r8d
lea rdx, [rsp + 0x54]
test r12b, r12b
je 0x1800046d4
mov rcx, r15
call fcn.180007214
mov edi, dword [rsp + 0x54]
lea eax, [rdi - 2]
cmp eax, 1
ja 0x1800046fc
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rbx
lea rdx, str.SetupDJOIN
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1800046b0
mov r9d, esi
lea r8, str.SetupDJOIN
lea rdx, [rbp - 0x48]
lea rcx, str._ws:_RegCreateKeyEx__ws__failed:_0x_x._n
call fcn.180008608
mov dil, byte [rsp + 0x50]
jmp 0x18000474a
mov rcx, qword [rbp - 0x80]
call fcn.18000420c
mov ebx, eax
test eax, eax
je 0x1800046fc
lea rcx, str._ws:_NetpApplyComputerNameSetToRegistryDirect_failed:_0x_x._n
lea rdx, [rbp - 0x48]
mov r8d, eax
call fcn.180008608
jmp 0x1800046a6
xor ecx, ecx
call fcn.180007214
mov edi, dword [rsp + 0x54]
test edi, edi
je 0x1800046fc
cmp edi, 6
je 0x1800046fc
call fcn.1800040a8
mov ebx, eax
test eax, eax
je 0x1800046fc
lea rcx, str._ws:_NetpApplyComputerNameSetToRegistry_failed:_0x_x._n
jmp 0x1800046c6
mov edx, dword [rbp - 0x78]
lea rax, [rsp + 0x50]
mov rcx, qword [rbp - 0x60]
mov r9, r15
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], edi
call fcn.1800049d0
mov ebx, eax
jmp 0x1800046a6
mov r8d, ebx
lea rcx, str._ws:_UUID_creation_failed:_0x_x._n
lea rdx, [rbp - 0x48]
call fcn.180008608
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18000477f
test ebx, ebx
jne 0x18000475c
test dil, dil
jne 0x180004773
lea rdx, str.ODJComputerNameSet
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x180004794
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1800047aa
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800047c0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test r12b, r12b
je 0x1800047e2
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegUnLoadKeyW]
nop dword [rax + rax]
test ebx, ebx
cmove ebx, eax
cmp qword [rsp + 0x58], 0
je 0x1800047fb
lea rcx, [rsp + 0x58]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.netutils.dll_NetApiBufferFree]
nop dword [rax + rax]
mov r8d, ebx
lea rdx, [rbp - 0x48]
lea rcx, str._ws:_status:_0x_x._n
call fcn.180008608
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180009470
add rsp, 0x110
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret