Function at 0x14007a0cd
Capabilities:
Encode data using xor
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 r13, r9
mov rbp, r8
mov esi, edx
mov rbx, rcx
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, r9
call fcn.14008d450
mov r15, rax
call fcn.14005fbc6
mov r12, rax
lea rdx, str._s__d:
mov rcx, rax
mov r8, rbp
mov r9d, esi
call fcn.14005fce7
mov rcx, rbx
mov rdx, r12
call fcn.14007484c
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x14007a159
mov rcx, r12
call fcn.14005fc55
mov esi, 1
jmp 0x14007a3c0
lea esi, [r15 + 1]
lea rbx, [rsp + 0x54]
mov dword [rbx], esi
movsxd rcx, esi
mov edx, 1
xor r8d, r8d
call fcn.140011888
mov r14, rax
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
je 0x14007a36f
cmp edi, 0xea
je 0x14007a36f
lea rdx, [0x1400b7f66]
mov rcx, rbp
call fcn.14008d170
test eax, eax
jne 0x14007a36f
mov rbp, qword [r12]
lea rdx, [0x1400ba195]
mov rcx, rbp
call fcn.14008d1d8
lea rdi, [rax + rbp]
add rdi, 1
shl r15, 0x20
movabs rcx, 0xb00000000
add rcx, r15
sar rcx, 0x20
mov edx, 1
xor r8d, r8d
call fcn.140011888
mov rbp, rax
mov dword [rsp + 0x54], esi
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
jne 0x14007a367
cmp dword [rsp + 0x50], 1
jne 0x14007a367
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x48], r13
xor r13d, r13d
mov r15, r14
mov qword [rsp + 0x38], rbp
mov r14, rbp
mov qword [rsp + 0x40], r15
mov word [r15], 0x7830
mov rcx, r14
lea rdx, [0x1400bb031]
call fcn.14008d1d8
mov rcx, 0xffffffffffffffff
xor edi, edi
mov ebp, eax
mov r10d, ebp
mov rsi, rcx
mov rbx, rdi
cmp ebp, 2
jl 0x14007a2a2
lea ebp, [r10 - 1]
movsxd rdx, ebp
xor rdx, 3
lea rcx, [rsi - 1]
lea rdi, [rbx - 1]
cmp byte [r14 + rdx], 0x30
je 0x14007a27a
lea r8, [r15 + 2]
mov r9d, eax
sar r9d, 0x1f
shr r9d, 0x1e
add r9d, eax
sar r9d, 2
test r10d, r10d
jle 0x14007a2e9
movsxd rcx, eax
add rcx, r15
add rcx, 2
mov eax, eax
neg rax
xor ebp, ebp
mov edx, ebp
xor rdx, 3
mov dl, byte [r14 + rdx]
mov byte [rcx + rsi], dl
inc rbp
dec rsi
dec rbx
cmp rax, rbx
jne 0x14007a2ce
movsxd rax, r10d
add r8, rax
movsxd rax, r9d
lea r14, [r14 + rax*4]
cmp byte [r14], 0
je 0x14007a306
inc r14
mov byte [r8], 0x2c
inc r8
mov byte [r8], 0
inc r13d
mov r15, r8
cmp r13d, 2
jne 0x14007a25a
mov r14, qword [rsp + 0x40]
mov rcx, r14
mov r13, qword [rsp + 0x48]
mov rdx, r13
call fcn.14008d170
test eax, eax
mov edi, dword [rsp + 0x34]
mov rbp, qword [rsp + 0x38]
jne 0x14007a367
mov rcx, r14
call fcn.14008d450
inc eax
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rbp
call fcn.140011913
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
mov rdx, r13
call fcn.14008d170
mov ebx, eax
mov rcx, r14
call fcn.140011913
mov rcx, r12
call fcn.14005fc55
mov esi, 2
cmp edi, 0xea
je 0x14007a3c0
mov eax, dword [rsp + 0x50]
test ebx, ebx
je 0x14007a3b5
test edi, edi
jne 0x14007a3b5
cmp eax, 1
je 0x14007a3c0
xor eax, 1
xor esi, esi
or edi, eax
setne sil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007de70
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret