Function at 0x140002600
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.140008090
test eax, eax
je 0x140002671
mov r14d, ebx
jmp 0x140002679
mov r14, qword [rdi + 0x10]
add r14, qword [rdi + 8]
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14000c320
test eax, eax
jne 0x14000297f
mov rcx, rdi
call fcn.140008090
test eax, eax
jne 0x1400026a1
mov rsi, qword [rdi + 0x10]
add rsi, qword [rdi + 8]
sub esi, r14d
je 0x14000297c
lea r8, [rbp - 1]
mov rcx, rdi
lea rdx, [rbp + 7]
call fcn.1400089d0
test eax, eax
jne 0x14000297c
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.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140002965
mov r15, qword [rbp - 0x69]
lea r8, [rbp - 9]
mov rcx, r15
lea rdx, [rbp - 0x41]
xor r9d, r9d
call fcn.140009a10
test eax, eax
jne 0x14000295b
cmp dword [r13 + 0x40048], 2
mov edi, ebx
jg 0x140002734
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x14000295b
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 0x14000277b
lea rcx, str.cannot_encrypt_data
call fcn.140007d10
mov rsi, rbx
jmp 0x1400027c0
mov ecx, dword [rbp - 0x31]
call fcn.14001da34
mov qword [rbp - 0x61], rax
mov rsi, rax
test rax, rax
je 0x1400027c0
mov edx, dword [rbp - 0x31]
mov rcx, rax
mov r8, qword [rbp - 0x29]
mov r9d, edx
call fcn.1400024d0
test eax, eax
je 0x1400027b5
mov edx, eax
lea rcx, str.memcpy_s_failed_with_error:__d.
call fcn.140007d10
jmp 0x1400027c0
mov eax, dword [rbp - 0x31]
mov edi, 1
mov dword [rbp - 0x49], eax
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400027cf
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [r13 + 0x40048], 2
jg 0x1400027df
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea eax, [rdi - 1]
test eax, eax
jne 0x14000295b
mov rcx, r15
call fcn.140009dd0
mov r12, rax
test rax, rax
je 0x14000295b
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.140002580
test eax, eax
jne 0x14000295b
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.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000295b
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.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000295b
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.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000295b
mov eax, dword [rbp - 9]
lea rdx, [0x140038178]
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.ADVAPI32.dll_RegSetValueExW]
mov r13, qword [rbp - 0x69]
test eax, eax
jne 0x14000296c
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.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000296c
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.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000296c
lea rcx, str.added_key_to_store
call fcn.140007d10
mov eax, ebx
mov dword [rbp + 0x7f], 1
jmp 0x140002994
mov r15, qword [rbp - 0x41]
mov rsi, qword [rbp - 0x61]
jmp 0x140002968
mov rsi, rbx
mov r13, qword [rbp - 0x69]
lea rcx, str.failed_to_add_key_to_store
call fcn.140007d10
mov edi, ebx
jmp 0x14000299a
mov rsi, rbx
lea rcx, str.key_add_request_is_invalid
call fcn.140007d10
mov r13, qword [rbp - 0x69]
mov eax, 1
mov edi, ebx
test eax, eax
jne 0x1400029df
mov r14, qword [rbp + 0x6f]
mov edx, 1
mov rcx, r14
call fcn.140008460
test eax, eax
jne 0x1400029cf
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 0x1400029e5
js 0x1400029df
mov ecx, dword [rbp + 0x7f]
test ecx, ecx
setne al
add al, 5
mov byte [rbx], al
jmp 0x1400029e5
mov ecx, dword [rbp + 0x7f]
or edi, 0xffffffff
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x120]
test ecx, ecx
jne 0x140002a19
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140002a19
test r12, r12
je 0x140002a19
xor r9d, r9d
mov r8d, 0x100
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
test rsi, rsi
je 0x140002a26
mov rcx, rsi
call fcn.14001da20
mov rcx, qword [rbp - 0x19]
mov rsi, qword [rsp + 0xf8]
test rcx, rcx
je 0x140002a3d
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x140002a4a
mov rcx, r13
call fcn.140009590
mov r13, qword [rsp + 0xe8]
test r12, r12
je 0x140002a5f
mov rcx, r12
call fcn.14001da20
mov rcx, qword [rbp - 0x39]
mov r12, qword [rsp + 0xf0]
test rcx, rcx
je 0x140002a76
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140002a85
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140002a94
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15, r15
je 0x140002aa1
mov rcx, r15
call fcn.14001da20
mov eax, edi
add rsp, 0x100
pop r15
pop rdi
pop rbp
ret