Function at 0x100029f0
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 0x10002a77
lea rcx, [0x1001c710]
call fcn.10001bb0
lea rdx, [0x1001c730]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x10002ad7
cmp dword [rsp + 0x280], 4
jge 0x10002aa9
lea rcx, [0x1001c738]
call fcn.10001bb0
mov rax, qword [rsp + 0x288]
mov rdx, qword [rax + 0x10]
lea rcx, str.Access_permission_list_for_AppID__s:_n_n
call fcn.1000e400
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.1000d0f0
jmp 0x10002df8
lea rdx, [0x1001c780]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x10002c0e
mov rax, qword [rsp + 0x288]
mov rax, qword [rax + 0x10]
movsx eax, byte [rax]
cmp eax, 0x7b
jne 0x10002b1c
lea rax, [0x1001c788]
mov qword [rsp + 0x258], rax
jmp 0x10002b2b
lea rax, [0x1001c78c]
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, [0x1001c798]
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 0x10002bb6
cmp dword [rsp + 0x38], 2
je 0x10002bb6
mov edx, dword [rsp + 0x38]
lea rcx, [0x1001c7a8]
call fcn.10001eb0
lea rdx, [0x1001c7d0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x10002bea
cmp dword [rsp + 0x38], 2
je 0x10002bea
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_delete_AccessPermission_value.
call fcn.10001eb0
cmp qword [rsp + 0x30], 0
je 0x10002bfd
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.1000e400
jmp 0x10002df8
cmp dword [rsp + 0x280], 5
jge 0x10002c24
lea rcx, [0x1001c868]
call fcn.10001bb0
lea rdx, [0x1001c888]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x10002d68
cmp dword [rsp + 0x280], 6
jge 0x10002c5a
lea rcx, [0x1001c890]
call fcn.10001bb0
cmp dword [rsp + 0x280], 7
jne 0x10002c85
mov r8d, 0x20
lea rdx, [rsp + 0x250]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x30]
call fcn.10001f40
jmp 0x10002c9a
call fcn.1000cf60
test eax, eax
jne 0x10002c9a
lea rcx, [0x1001c8b0]
call fcn.1000e400
lea rdx, [0x1001c908]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x28]
call fcn.10009f10
test eax, eax
jne 0x10002cf0
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.1000d810
mov dword [rsp + 0x38], eax
jmp 0x10002d4f
lea rdx, [0x1001c910]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x28]
call fcn.10009f10
test eax, eax
jne 0x10002d43
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.1000d810
mov dword [rsp + 0x38], eax
jmp 0x10002d4f
lea rcx, [0x1001c918]
call fcn.10001bb0
cmp dword [rsp + 0x38], 0
je 0x10002d66
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_add_user_to_application_access_ACL.
call fcn.10001eb0
jmp 0x10002ddb
lea rdx, [0x1001c98c]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x10002dcf
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.1000d810
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x10002dcd
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_remove_user_from_application_access_ACL.
call fcn.10001eb0
jmp 0x10002ddb
lea rcx, [0x1001c9d0]
call fcn.10001bb0
lea rcx, str.Successfully_set_the_Application_Access_ACL._n
call fcn.1000e400
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax + 0x10]
call fcn.1000d0f0
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1000e5b0
add rsp, 0x270
pop rdi
ret