Function at 0x140080916
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 0x140080bd2
lea rdi, [rsp + 0x50]
mov dword [rdi], 0xc8
mov ecx, 0xc8
mov edx, 1
xor r8d, r8d
call fcn.140012388
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 0x140080a16
mov rcx, r13
call fcn.140012402
mov ecx, dword [rsp + 0x50]
mov edx, 1
xor r8d, r8d
call fcn.140012388
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 0x140080a2c
cmp eax, 2
jne 0x140080acc
mov word [r13], 0
jmp 0x140080a33
cmp dword [rsp + 0x54], 7
jne 0x140080ab2
mov eax, dword [rsp + 0x50]
dec eax
je 0x140080a55
xor ecx, ecx
cmp byte [r13 + rcx], 0
jne 0x140080a4d
cmp byte [r13 + rcx + 1], 0
je 0x140080a5c
inc rcx
cmp rcx, rax
jl 0x140080a3d
mov word [r13], 0
mov bl, 1
mov rax, rsi
or rax, r12
je 0x140080aaa
mov ebx, dword [rsp + 0x50]
test rsi, rsi
je 0x140080ae9
mov rcx, rsi
call fcn.140094270
lea rcx, [rbx + rax]
inc rcx
mov edx, 1
xor r8d, r8d
call fcn.140012388
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.1400938e0
mov rcx, r15
call fcn.140094270
lea rsi, [rax + r15]
inc rsi
jmp 0x140080aff
mov r15, r13
jmp 0x140080ba8
mov rcx, qword [rsp + 0x58]
lea rdx, str.Recent_sessions
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x140080a23
mov rcx, r13
call fcn.140012402
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x140080bd2
mov edx, 1
mov rcx, rbx
xor r8d, r8d
call fcn.140012388
mov r15, rax
mov rsi, rax
cmp byte [r13], 0
je 0x140080b6d
mov rbp, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
test r12, r12
je 0x140080b24
mov rcx, rbx
mov rdx, r12
call fcn.1400939b0
test eax, eax
je 0x140080b5a
mov rcx, rbx
call fcn.14007fa4e
test rax, rax
je 0x140080b5a
mov rdi, rax
mov rcx, qword [rax]
call rbp
mov rcx, rdi
call fcn.140012402
mov rcx, rsi
mov rdx, rbx
call fcn.1400938e0
mov rcx, rsi
call fcn.140094270
add rsi, rax
inc rsi
mov rcx, rbx
call fcn.140094270
add rbx, rax
inc rbx
cmp byte [rbx], 0
jne 0x140080b10
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.140012402
test esi, esi
sete bl
test r14, r14
je 0x140080bb6
test bl, bl
je 0x140080bb6
mov qword [r14], r15
jmp 0x140080bbe
mov rcx, r15
call fcn.140012402
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.140084030
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret