Function at 0x14007a8cb
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
lea rdx, str.SoftwareSimonTathamPuTTYJumplist
mov rcx, 0xffffffff80000001
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 2
test eax, eax
jne 0x14007ab95
lea rdi, [rsp + 0x50]
mov dword [rdi], 0xc8
mov ecx, 0xc8
mov edx, 1
xor r8d, r8d
call fcn.140011888
mov r13, rax
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Recent_sessions
lea r9, [rsp + 0x54]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x14007a9cb
mov rcx, r13
call fcn.140011913
mov ecx, dword [rsp + 0x50]
mov edx, 1
xor r8d, r8d
call fcn.140011888
mov r13, rax
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Recent_sessions
lea r9, [rsp + 0x54]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14007a9e1
cmp eax, 2
jne 0x14007aa8d
mov word [r13], 0
jmp 0x14007a9ec
cmp dword [rsp + 0x54], 7
jne 0x14007aa73
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x14007aa14
dec eax
lea rcx, [r13 + 1]
cmp byte [rcx - 1], 0
jne 0x14007aa06
cmp byte [rcx], 0
je 0x14007aa1b
mov rdx, rcx
sub rdx, r13
inc rcx
cmp rdx, rax
jl 0x14007a9fb
mov word [r13], 0
mov bl, 1
mov rax, rsi
or rax, r12
je 0x14007aa6b
mov edi, dword [rsp + 0x50]
test rsi, rsi
je 0x14007aaaa
mov rcx, rsi
call fcn.14008d450
lea rcx, [rdi + rax]
add rcx, 1
mov edx, 1
xor r8d, r8d
call fcn.140011888
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.14008d0a0
mov rcx, r15
call fcn.14008d450
lea rsi, [r15 + rax]
add rsi, 1
jmp 0x14007aac0
mov r15, r13
jmp 0x14007ab6b
mov rcx, qword [rsp + 0x58]
lea rdx, str.Recent_sessions
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x14007a9d8
mov rcx, r13
call fcn.140011913
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x14007ab95
mov edx, 1
xor r8d, r8d
mov rcx, rdi
call fcn.140011888
mov r15, rax
mov rsi, rax
cmp byte [r13], 0
je 0x14007ab30
mov rbp, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
test r12, r12
je 0x14007aae5
mov rcx, rdi
mov rdx, r12
call fcn.14008d170
test eax, eax
je 0x14007ab1c
mov rcx, rdi
call fcn.140079a04
test rax, rax
je 0x14007ab1c
mov rbx, rax
mov rcx, qword [rax]
call rbp
mov rcx, rbx
call fcn.140011913
mov rcx, rsi
mov rdx, rdi
call fcn.14008d0a0
mov rcx, rsi
call fcn.14008d450
add rsi, rax
add rsi, 1
mov rcx, rdi
call fcn.14008d450
add rdi, rax
add rdi, 1
cmp byte [rdi], 0
jne 0x14007aad1
mov byte [rsi], 0
inc esi
sub esi, r15d
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
lea rdx, str.Recent_sessions
xor r8d, r8d
mov r9d, 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov rcx, r13
call fcn.140011913
test esi, esi
sete bl
test r14, r14
je 0x14007ab79
test bl, bl
je 0x14007ab79
mov qword [r14], r15
jmp 0x14007ab81
mov rcx, r15
call fcn.140011913
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, 1
movzx edi, bl
shl edi, 2
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007de70
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret