Function at 0x180002ab0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x270
mov rax, qword [0x180028018]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x150], 0
lea rax, [rsp + 0x151]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x250], 1
cmp dword [rsp + 0x280], 4
jge 0x180002b37
lea rcx, [0x1800216d0]
call fcn.180001c70
lea rdx, [0x1800216f0]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.180009e20
test eax, eax
jne 0x180002b97
cmp dword [rsp + 0x280], 4
jge 0x180002b69
lea rcx, [0x1800216f8]
call fcn.180001c70
mov rax, qword [rsp + 0x288]
mov rdx, qword [rax + 0x10]
lea rcx, str.Access_permission_list_for_AppID__s:_n_n
call fcn.18000e7f8
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.18000d0c0
jmp 0x180002eb8
lea rdx, [0x180021740]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.180009e20
test eax, eax
jne 0x180002cce
mov rax, qword [rsp + 0x288]
mov rax, qword [rax + 0x10]
movsx eax, byte [rax]
cmp eax, 0x7b
jne 0x180002bdc
lea rax, [0x180021044]
mov qword [rsp + 0x258], rax
jmp 0x180002beb
lea rax, [0x180021748]
mov qword [rsp + 0x258], rax
mov rax, qword [rsp + 0x288]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x258]
mov edx, 0x100
lea rcx, [rsp + 0x150]
call fcn.18000ef40
lea r9, [rsp + 0x150]
lea r8, [0x180021750]
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.18000ef40
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180002c76
cmp dword [rsp + 0x38], 2
je 0x180002c76
mov edx, dword [rsp + 0x38]
lea rcx, [0x180021768]
call fcn.180001f70
lea rdx, [0x180021790]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180002caa
cmp dword [rsp + 0x38], 2
je 0x180002caa
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_delete_AccessPermission_value.
call fcn.180001f70
cmp qword [rsp + 0x30], 0
je 0x180002cbd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Successfully_set_the_Application_Access_to_the_machine_default._n
call fcn.18000e7f8
jmp 0x180002eb8
cmp dword [rsp + 0x280], 5
jge 0x180002ce4
lea rcx, [0x180021828]
call fcn.180001c70
lea rdx, [0x18002109c]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.180009e20
test eax, eax
jne 0x180002e28
cmp dword [rsp + 0x280], 6
jge 0x180002d1a
lea rcx, [0x180021848]
call fcn.180001c70
cmp dword [rsp + 0x280], 7
jne 0x180002d45
mov r8d, 0x20
lea rdx, [rsp + 0x250]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x30]
call fcn.180002000
jmp 0x180002d5a
call fcn.18000cf30
test eax, eax
jne 0x180002d5a
lea rcx, [0x180021870]
call fcn.18000e7f8
lea rdx, [0x1800216c4]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x28]
call fcn.180009e20
test eax, eax
jne 0x180002db0
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 1
mov rax, qword [rsp + 0x288]
mov rdx, qword [rax + 0x20]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.18000d7e0
mov dword [rsp + 0x38], eax
jmp 0x180002e0f
lea rdx, [0x180021868]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x28]
call fcn.180009e20
test eax, eax
jne 0x180002e03
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 1
mov rax, qword [rsp + 0x288]
mov rdx, qword [rax + 0x20]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.18000d7e0
mov dword [rsp + 0x38], eax
jmp 0x180002e0f
lea rcx, [0x1800218c8]
call fcn.180001c70
cmp dword [rsp + 0x38], 0
je 0x180002e26
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_add_user_to_application_access_ACL.
call fcn.180001f70
jmp 0x180002e9b
lea rdx, [0x18002175c]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.180009e20
test eax, eax
jne 0x180002e8f
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x288]
mov rdx, qword [rax + 0x20]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.18000d7e0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180002e8d
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_remove_user_from_application_access_ACL.
call fcn.180001f70
jmp 0x180002e9b
lea rcx, [0x180021978]
call fcn.180001c70
lea rcx, str.Successfully_set_the_Application_Access_ACL._n
call fcn.18000e7f8
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.18000d0c0
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000ddd0
add rsp, 0x270
pop rdi
ret