Function at 0x14003be40
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 [0x140102058]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
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 0x14003c147
mov dword [rsp + 0x50], 0xc8
mov ecx, 0xc8
mov edx, 1
xor r8d, r8d
call fcn.1400416b0
mov r13, rax
mov rcx, qword [rsp + 0x58]
lea rdi, [rsp + 0x50]
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 0x14003bf48
mov rcx, r13
call fcn.140041750
mov ecx, dword [rsp + 0x50]
mov edx, 1
xor r8d, r8d
call fcn.1400416b0
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 0x14003bf5e
cmp eax, 2
jne 0x14003c02b
mov word [r13], 0
jmp 0x14003bf69
cmp dword [rsp + 0x54], 7
jne 0x14003c011
mov eax, dword [rsp + 0x50]
add eax, 0xffffffff
je 0x14003bf9b
xor ecx, ecx
jmp 0x14003bf89
add rcx, 1
cmp rcx, rax
jge 0x14003bf9b
cmp byte [r13 + rcx], 0
jne 0x14003bf80
cmp byte [r13 + rcx + 1], 0
jne 0x14003bf80
jmp 0x14003bfa2
mov word [r13], 0
mov bl, 1
mov rax, rsi
or rax, r12
je 0x14003c000
mov ebx, dword [rsp + 0x50]
test rsi, rsi
je 0x14003c048
mov rcx, rsi
call fcn.1400b6330
lea rcx, [rbx + rax]
add rcx, 1
mov edx, 1
xor r8d, r8d
call fcn.1400416b0
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.1400b5880
mov rcx, r15
call fcn.1400b6330
lea rsi, [rax + r15]
add rsi, 1
cmp byte [r13], 0
jne 0x14003c065
jmp 0x14003c0e1
mov r15, r13
test r14, r14
jne 0x14003c122
jmp 0x14003c12b
mov rcx, qword [rsp + 0x58]
lea rdx, str.Recent_sessions
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x14003bf55
mov rcx, r13
call fcn.140041750
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
jmp 0x14003c147
mov edx, 1
mov rcx, rbx
xor r8d, r8d
call fcn.1400416b0
mov r15, rax
mov rsi, rax
cmp byte [r13], 0
je 0x14003c0e1
mov rbp, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
jmp 0x14003c094
mov rcx, rbx
call fcn.1400b6330
cmp byte [rax + rbx + 1], 0
lea rbx, [rax + rbx + 1]
je 0x14003c0e1
test r12, r12
je 0x14003c0a8
mov rcx, rbx
mov rdx, r12
call fcn.1400b5950
test eax, eax
je 0x14003c080
mov rcx, rbx
call fcn.14003ac30
test rax, rax
je 0x14003c080
mov rdi, rax
mov rcx, qword [rax]
call rbp
mov rcx, rdi
call fcn.140041750
mov rcx, rsi
mov rdx, rbx
call fcn.1400b5880
mov rcx, rsi
call fcn.1400b6330
add rsi, rax
add rsi, 1
jmp 0x14003c080
mov byte [rsi], 0
sub esi, r15d
add esi, 1
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.140041750
test esi, esi
sete bl
test r14, r14
je 0x14003c12b
test bl, bl
je 0x14003c12b
mov qword [r14], r15
jmp 0x14003c133
mov rcx, r15
call fcn.140041750
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.1400a5f20
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret