Function at 0x140080a7e
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 [0x1400d80e0]
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 0x140080d41
lea rdi, [rsp + 0x50]
mov dword [rdi], 0xc8
mov ecx, 0xc8
mov edx, 1
xor r8d, r8d
call fcn.140012298
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 0x140080b7e
mov rcx, r13
call fcn.140012312
mov ecx, dword [rsp + 0x50]
mov edx, 1
xor r8d, r8d
call fcn.140012298
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 0x140080b94
cmp eax, 2
jne 0x140080c3b
mov word [r13], 0
jmp 0x140080b9f
cmp dword [rsp + 0x54], 7
jne 0x140080c21
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140080bc4
dec eax
xor ecx, ecx
cmp byte [r13 + rcx], 0
jne 0x140080bbc
cmp byte [r13 + rcx + 1], 0
je 0x140080bcb
inc rcx
cmp rcx, rax
jl 0x140080bac
mov word [r13], 0
mov bl, 1
mov rax, rsi
or rax, r12
je 0x140080c19
mov ebx, dword [rsp + 0x50]
test rsi, rsi
je 0x140080c58
mov rcx, rsi
call fcn.1400943f0
lea rcx, [rbx + rax]
inc rcx
mov edx, 1
xor r8d, r8d
call fcn.140012298
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.140093a60
mov rcx, r15
call fcn.1400943f0
lea rsi, [rax + r15]
inc rsi
jmp 0x140080c6e
mov r15, r13
jmp 0x140080d17
mov rcx, qword [rsp + 0x58]
lea rdx, str.Recent_sessions
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x140080b8b
mov rcx, r13
call fcn.140012312
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x140080d41
mov edx, 1
mov rcx, rbx
xor r8d, r8d
call fcn.140012298
mov r15, rax
mov rsi, rax
cmp byte [r13], 0
je 0x140080cdc
mov rbp, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
test r12, r12
je 0x140080c93
mov rcx, rbx
mov rdx, r12
call fcn.140093b30
test eax, eax
je 0x140080cc9
mov rcx, rbx
call fcn.14007fbba
test rax, rax
je 0x140080cc9
mov rdi, rax
mov rcx, qword [rax]
call rbp
mov rcx, rdi
call fcn.140012312
mov rcx, rsi
mov rdx, rbx
call fcn.140093a60
mov rcx, rsi
call fcn.1400943f0
add rsi, rax
inc rsi
mov rcx, rbx
call fcn.1400943f0
add rbx, rax
inc rbx
cmp byte [rbx], 0
jne 0x140080c7f
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.140012312
test esi, esi
sete bl
test r14, r14
je 0x140080d25
test bl, bl
je 0x140080d25
mov qword [r14], r15
jmp 0x140080d2d
mov rcx, r15
call fcn.140012312
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.1400841b0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret