Function at 0x14007a0ec
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 [0x1400ca0f0]
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 0x14007a3b2
lea rdi, [rsp + 0x50]
mov dword [rdi], 0xc8
mov ecx, 0xc8
mov edx, 1
xor r8d, r8d
call fcn.140011830
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 0x14007a1ec
mov rcx, r13
call fcn.1400118b0
mov ecx, dword [rsp + 0x50]
mov edx, 1
xor r8d, r8d
call fcn.140011830
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 0x14007a202
cmp eax, 2
jne 0x14007a2ac
mov word [r13], 0
jmp 0x14007a20d
cmp dword [rsp + 0x54], 7
jne 0x14007a292
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x14007a235
dec eax
lea rcx, [r13 + 1]
cmp byte [rcx - 1], 0
jne 0x14007a227
cmp byte [rcx], 0
je 0x14007a23c
mov rdx, rcx
sub rdx, r13
inc rcx
cmp rdx, rax
jl 0x14007a21c
mov word [r13], 0
mov bl, 1
mov rax, rsi
or rax, r12
je 0x14007a28a
mov ebx, dword [rsp + 0x50]
test rsi, rsi
je 0x14007a2c9
mov rcx, rsi
call fcn.14008cbc0
lea rcx, [rbx + rax]
inc rcx
mov edx, 1
xor r8d, r8d
call fcn.140011830
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.14008c810
mov rcx, r15
call fcn.14008cbc0
lea rsi, [rax + r15]
inc rsi
jmp 0x14007a2df
mov r15, r13
jmp 0x14007a388
mov rcx, qword [rsp + 0x58]
lea rdx, str.Recent_sessions
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x14007a1f9
mov rcx, r13
call fcn.1400118b0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x14007a3b2
mov edx, 1
mov rcx, rbx
xor r8d, r8d
call fcn.140011830
mov r15, rax
mov rsi, rax
cmp byte [r13], 0
je 0x14007a34d
mov rbp, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
test r12, r12
je 0x14007a304
mov rcx, rbx
mov rdx, r12
call fcn.14008c8e0
test eax, eax
je 0x14007a33a
mov rcx, rbx
call fcn.140079228
test rax, rax
je 0x14007a33a
mov rdi, rax
mov rcx, qword [rax]
call rbp
mov rcx, rdi
call fcn.1400118b0
mov rcx, rsi
mov rdx, rbx
call fcn.14008c810
mov rcx, rsi
call fcn.14008cbc0
add rsi, rax
inc rsi
mov rcx, rbx
call fcn.14008cbc0
add rbx, rax
inc rbx
cmp byte [rbx], 0
jne 0x14007a2f0
mov byte [rsi], 0
sub esi, r15d
inc esi
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.1400118b0
test esi, esi
sete bl
test r14, r14
je 0x14007a396
test bl, bl
je 0x14007a396
mov qword [r14], r15
jmp 0x14007a39e
mov rcx, r15
call fcn.1400118b0
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.14007d5e0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret