Function at 0x10002e20
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x270
mov rax, qword [0x10022028]
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 0x10002ea7
lea rcx, [0x1001ca28]
call fcn.10001bb0
lea rdx, str.LIST
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x10002f07
cmp dword [rsp + 0x280], 4
jge 0x10002ed9
lea rcx, str.Invalid_number_of_arguments._n
call fcn.10001bb0
mov rax, qword [rsp + 0x288]
mov rdx, qword [rax + 0x10]
lea rcx, str.Launch_permission_list_for_AppID__s:_n_n
call fcn.1000e400
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.1000d1c0
jmp 0x10003228
lea rdx, str.DEFAULT
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x1000303e
mov rax, qword [rsp + 0x288]
mov rax, qword [rax + 0x10]
movsx eax, byte [rax]
cmp eax, 0x7b
jne 0x10002f4c
lea rax, [0x1001c88c]
mov qword [rsp + 0x258], rax
jmp 0x10002f5b
lea rax, [0x1001caa0]
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.1000ec40
lea r9, [rsp + 0x150]
lea r8, [0x1001caa8]
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.1000ec40
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 0x10002fe6
cmp dword [rsp + 0x38], 2
je 0x10002fe6
mov edx, dword [rsp + 0x38]
lea rcx, [0x1001cab8]
call fcn.10001eb0
lea rdx, [0x1001cae0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1000301a
cmp dword [rsp + 0x38], 2
je 0x1000301a
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_delete_LaunchPermission_value.
call fcn.10001eb0
cmp qword [rsp + 0x30], 0
je 0x1000302d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.Successfully_set_the_Application_Launch_to_the_machine_default._n
call fcn.1000e400
jmp 0x10003228
cmp dword [rsp + 0x280], 5
jge 0x10003054
lea rcx, [0x1001cb78]
call fcn.10001bb0
lea rdx, [0x1001cb98]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x10003198
cmp dword [rsp + 0x280], 6
jge 0x1000308a
lea rcx, [0x1001cba0]
call fcn.10001bb0
cmp dword [rsp + 0x280], 7
jne 0x100030b5
mov r8d, 0x10
lea rdx, [rsp + 0x250]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x30]
call fcn.10001f40
jmp 0x100030ca
call fcn.1000cf60
test eax, eax
jne 0x100030ca
lea rcx, str.WARNING:_Default_access_flags_designated_on_a_system_with_an_enhanced_security_model._n
call fcn.1000e400
lea rdx, str.PERMIT
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x28]
call fcn.10009f10
test eax, eax
jne 0x10003120
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.1000da20
mov dword [rsp + 0x38], eax
jmp 0x1000317f
lea rdx, str.DENY
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x28]
call fcn.10009f10
test eax, eax
jne 0x10003173
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.1000da20
mov dword [rsp + 0x38], eax
jmp 0x1000317f
lea rcx, str.You_can_only_set_a_users_permissions_to__permit__or__deny_._n_n
call fcn.10001bb0
cmp dword [rsp + 0x38], 0
je 0x10003196
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_add_user_to_application_launch_ACL.
call fcn.10001eb0
jmp 0x1000320b
lea rdx, str.REMOVE
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x100031ff
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.1000da20
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x100031fd
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_remove_user_from_application_launch_ACL.
call fcn.10001eb0
jmp 0x1000320b
lea rcx, str.You_can_only__set__or__remove__a_user.
call fcn.10001bb0
lea rcx, str.Successfully_set_the_Application_Launch_ACL._n
call fcn.1000e400
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.1000d1c0
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1000e5b0
add rsp, 0x270
pop rdi
ret