Function at 0x1400026e0
Capabilities:
Delete registry key
Encrypt data using dpapi
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rax + 8], rbx
mov rdi, rcx
xor ebx, ebx
mov qword [rax - 0x20], rsi
mov qword [rax - 0x28], r12
mov r15d, ebx
mov qword [rax - 0x30], r13
mov r12d, ebx
mov qword [rax - 0x38], r14
mov r13, r8
xor eax, eax
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x21], rax
mov esi, ebx
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov dword [rbp + 0x7f], ebx
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x61], rbx
mov qword [rbp - 0x51], rbx
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x39], rbx
call fcn.140003cc0
test eax, eax
je 0x140002751
mov r14d, ebx
jmp 0x140002759
mov r14, qword [rdi + 0x10]
add r14, qword [rdi + 8]
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.140006860
test eax, eax
jne 0x140002a5f
mov rcx, rdi
call fcn.140003cc0
test eax, eax
jne 0x140002781
mov rsi, qword [rdi + 0x10]
add rsi, qword [rdi + 8]
sub esi, r14d
je 0x140002a5c
lea r8, [rbp - 1]
mov rcx, rdi
lea rdx, [rbp + 7]
call fcn.1400046b0
test eax, eax
jne 0x140002a5c
xor eax, eax
lea r9, [rbp - 0x21]
mov qword [rbp - 0x21], rax
lea r8, [rbp - 0x19]
lea rcx, str.D:P_A___GA____SY__A___GA____BA_
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
lea edx, [rax + 1]
mov dword [rbp - 0x21], 0x18
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140002a45
mov r15, qword [rbp - 0x69]
lea r8, [rbp - 9]
mov rcx, r15
lea rdx, [rbp - 0x41]
xor r9d, r9d
call fcn.140005900
test eax, eax
jne 0x140002a3b
cmp dword [r13 + 0x40048], 2
mov edi, ebx
jg 0x140002814
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140002a3b
lea rax, [rbp - 0x31]
mov dword [rbp + 0xf], esi
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0xf]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov qword [rbp + 0x17], r14
mov dword [rbp - 0x31], ebx
mov qword [rbp - 0x29], rbx
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x14000285b
lea rcx, str.cannot_encrypt_data
call fcn.1400039b0
mov rsi, rbx
jmp 0x1400028a0
mov ecx, dword [rbp - 0x31]
call fcn.140031834
mov qword [rbp - 0x61], rax
mov rsi, rax
test rax, rax
je 0x1400028a0
mov edx, dword [rbp - 0x31]
mov rcx, rax
mov r8, qword [rbp - 0x29]
mov r9d, edx
call fcn.1400025b0
test eax, eax
je 0x140002895
mov edx, eax
lea rcx, [0x140050848]
call fcn.1400039b0
jmp 0x1400028a0
mov eax, dword [rbp - 0x31]
mov edi, 1
mov dword [rbp - 0x49], eax
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400028af
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
cmp dword [r13 + 0x40048], 2
jg 0x1400028bf
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
lea eax, [rdi - 1]
test eax, eax
jne 0x140002a3b
mov rcx, r15
call fcn.140005cc0
mov r12, rax
test rax, rax
je 0x140002a3b
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.140002660
test eax, eax
jne 0x140002a3b
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x51]
mov qword [rsp + 0x40], rbx
lea rdx, str.SOFTWAREOpenSSHAgentKeys
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rbp - 0x21]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002a3b
mov rcx, qword [rbp - 0x51]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [rbp - 0x21]
mov rdx, r12
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExA]
test eax, eax
jne 0x140002a3b
mov eax, dword [rbp - 0x49]
mov r9d, 3
mov rcx, qword [rbp - 0x59]
xor r8d, r8d
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x140002a3b
mov eax, dword [rbp - 9]
lea rdx, [0x140050968]
mov r15, qword [rbp - 0x41]
mov r9d, 3
mov rcx, qword [rbp - 0x59]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov r13, qword [rbp - 0x69]
test eax, eax
jne 0x140002a4c
mov rcx, qword [rbp - 0x59]
lea r9d, [rax + 4]
mov dword [rsp + 0x28], 4
lea rdx, str.type
xor r8d, r8d
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x140002a4c
mov eax, dword [rbp - 1]
lea rdx, str.comment
mov rcx, qword [rbp - 0x59]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rbp + 7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x140002a4c
lea rcx, str.added_key_to_store
call fcn.1400039b0
mov eax, ebx
mov dword [rbp + 0x7f], 1
jmp 0x140002a74
mov r15, qword [rbp - 0x41]
mov rsi, qword [rbp - 0x61]
jmp 0x140002a48
mov rsi, rbx
mov r13, qword [rbp - 0x69]
lea rcx, str.failed_to_add_key_to_store
call fcn.1400039b0
mov edi, ebx
jmp 0x140002a7a
mov rsi, rbx
lea rcx, str.key_add_request_is_invalid
call fcn.1400039b0
mov r13, qword [rbp - 0x69]
mov eax, 1
mov edi, ebx
test eax, eax
jne 0x140002abf
mov r14, qword [rbp + 0x6f]
mov edx, 1
mov rcx, r14
call fcn.1400040f0
test eax, eax
jne 0x140002aaf
mov rcx, qword [r14 + 0x18]
mov rbx, qword [r14]
add rbx, rcx
lea rax, [rcx + 1]
mov ecx, dword [rbp + 0x7f]
mov qword [r14 + 0x18], rax
test ecx, ecx
setne al
add al, 5
mov byte [rbx], al
jmp 0x140002ac5
js 0x140002abf
mov ecx, dword [rbp + 0x7f]
test ecx, ecx
setne al
add al, 5
mov byte [rbx], al
jmp 0x140002ac5
mov ecx, dword [rbp + 0x7f]
or edi, 0xffffffff
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x120]
test ecx, ecx
jne 0x140002af9
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140002af9
test r12, r12
je 0x140002af9
xor r9d, r9d
mov r8d, 0x100
mov rdx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExA]
test rsi, rsi
je 0x140002b06
mov rcx, rsi
call fcn.140031820
mov rcx, qword [rbp - 0x19]
mov rsi, qword [rsp + 0xf8]
test rcx, rcx
je 0x140002b1d
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
test r13, r13
je 0x140002b2a
mov rcx, r13
call fcn.1400054d0
mov r13, qword [rsp + 0xe8]
test r12, r12
je 0x140002b3f
mov rcx, r12
call fcn.140031820
mov rcx, qword [rbp - 0x39]
mov r12, qword [rsp + 0xf0]
test rcx, rcx
je 0x140002b56
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140002b65
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140002b74
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test r15, r15
je 0x140002b81
mov rcx, r15
call fcn.140031820
mov eax, edi
add rsp, 0x100
pop r15
pop rdi
pop rbp
ret