Function at 0x140005b20
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x8238]
mov eax, 0x8338
call fcn.14004f660
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x8200], rax
mov qword [rsp + 0x8368], rbx
lea rax, [0x1400a6720]
xor ebx, ebx
mov qword [rsp + 0x8330], rsi
mov qword [rsp + 0x8328], rdi
mov r14, r8
mov qword [rsp + 0x8320], r12
mov rdi, rcx
mov qword [0x1400a6728], rax
mov r12d, ebx
mov qword [rsp + 0x8318], r13
lea rax, [0x1400a6710]
mov qword [rbp - 0x70], r8
mov r13d, ebx
mov qword [rbp - 0x60], rdx
lea r8, [rbp - 0x78]
mov qword [rsp + 0x8310], r15
lea rdx, [rsp + 0x78]
mov r15d, ebx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x28], ebx
mov qword [rbp - 0x20], rbx
mov dword [rbp - 0x18], ebx
mov qword [0x1400a6720], rbx
mov qword [0x1400a6710], rbx
mov qword [0x1400a6718], rax
call fcn.140020240
test eax, eax
jne 0x1400068a6
lea r8, [rbp - 0x78]
mov rcx, rdi
lea rdx, [rbp - 0x80]
call fcn.140020240
test eax, eax
jne 0x1400068a6
cmp qword [rbp - 0x78], 0x100
ja 0x1400068a6
mov rsi, 0xffffffffffffffff
cmp qword [r14 + 0x40050], rbx
je 0x140005c8b
cmp dword [0x1400a6730], ebx
jne 0x140005c8b
mov r14, qword [rsp + 0x78]
lea rax, str.failed_PKCS11_add_of___.100s_:_remote_addition_of_providers_is_disabled
mov qword [rsp + 0x38], r14
mov r8d, 0x29d
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_smartcard_key
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
xor r9d, r9d
mov dword [rsp + 0x20], 4
call fcn.14001ae20
jmp 0x140006872
mov r14, qword [rsp + 0x78]
lea rdx, [rbp + 0x200]
mov rcx, r14
call fcn.14000e590
test rax, rax
jne 0x140005d2f
call fcn.14003d440
movsxd r8, dword [rax]
lea eax, [r8 - 0x64]
cmp eax, 0x28
ja 0x140005cd7
lfence
mov r13, qword [rsp + 0x68]
lea rcx, [0x140000000]
mov rdi, qword [rcx + r8*8 + 0x5cd90]
mov r14, qword [rsp + 0x78]
jmp 0x140005ceb
lea rdi, [0x140094b80]
mov edx, 0x5e
mov rcx, rdi
call fcn.14003fc40
mov qword [rsp + 0x40], rdi
lea rax, str.failed_PKCS11_add_of___.100s_:_realpath:__s
mov qword [rsp + 0x38], r14
lea rdx, str.process_add_smartcard_key
mov qword [rsp + 0x30], rax
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov r8d, 0x2a3
mov dword [rsp + 0x20], 2
call fcn.14001ae20
jmp 0x1400068e2
mov rdx, qword [0x1400841c0]
lea rcx, [rbp + 0x200]
call fcn.1400213b0
cmp eax, 1
je 0x140005d65
lea rax, [rbp + 0x200]
mov r8d, 0x2aa
mov qword [rsp + 0x38], rax
lea rax, str.refusing_PKCS11_add_of___.100s_:_provider_not_allowed
jmp 0x140005c5e
cmp byte [rbp + 0x200], 0x2f
mov r13, rsi
jne 0x140005d9c
lea rax, [rbp + 0x200]
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x140005d80
lea rdx, [rbp + 0x201]
lea rcx, [rbp + 0x200]
call fcn.14004fc40
mov rdx, qword [rbp - 0x80]
lea r8, [rsp + 0x68]
lea rcx, [rbp + 0x200]
call fcn.14000a130
mov dword [rsp + 0x70], eax
test eax, eax
jg 0x140005e02
lfence
mov dword [rsp + 0x38], eax
lea rdx, str.process_add_smartcard_key
lea rax, str.failed_to_add_key_to_store._count:_d
mov r9d, 1
mov qword [rsp + 0x30], rax
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov qword [rsp + 0x28], rbx
mov r8d, 0x2b4
mov dword [rsp + 0x20], 2
call fcn.14001ae20
mov r13, qword [rsp + 0x68]
jmp 0x140006872
mov rax, qword [rbp - 0x70]
mov rcx, 0xffffffff80000002
mov edi, ebx
mov qword [rbp - 0x38], rcx
cmp dword [rax + 0x40048], 2
jg 0x140005e8f
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140005f05
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x38], rbx
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x140005e81
mov dword [rsp + 0x38], eax
lea rdx, str.get_user_root
lea rax, str.unable_to_open_users_registry_hive__ERROR____d
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov qword [rsp + 0x28], rbx
mov r8d, 0x52
mov dword [rsp + 0x20], 5
call fcn.14001ae20
mov edi, r13d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test edi, edi
jne 0x140005f05
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x48], rbx
mov r9d, 0x20100
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x50], rbx
lea rdx, str.SOFTWAREOpenSSHAgentPKCS11_Providers
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005eec
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x50]
mov r9d, 0x20100
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x200]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140005eec
mov edi, 1
cmp qword [rbp - 0x50], rbx
jne 0x140005eee
mov edi, ebx
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140005efd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140006255
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x48]
mov r9d, 0x10108
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x48], rbx
lea rdx, str.SOFTWAREOpenSSHAgentKeys
mov qword [rbp - 0x50], rbx
mov esi, ebx
mov dword [rbp - 0x10], 0xff
mov rdi, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006095
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x50]
mov r15d, esi
mov dword [rbp - 0x10], 0xff
test rcx, rcx
je 0x140005f6d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
lea r9, [rbp - 0x10]
mov qword [rsp + 0x38], rbx
lea r8, [rbp]
mov qword [rsp + 0x30], rbx
mov edx, esi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
test eax, eax
jne 0x140006088
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x50]
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005f50
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.comment
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005f50
mov eax, dword [rbp - 0x58]
cmp eax, 0x800
ja 0x140005f50
test rdi, rdi
je 0x14000600e
mov rcx, rdi
call fcn.14003d000
mov eax, dword [rbp - 0x58]
add eax, 1
mov ecx, eax
cmovb rcx, r13
call fcn.14003d014
mov rdi, rax
test rax, rax
je 0x140006095
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.comment
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000608d
mov eax, dword [rbp - 0x58]
lea rdx, [rbp + 0x200]
mov rcx, rdi
mov byte [rax + rdi], bl
mov r8d, dword [rbp - 0x58]
call fcn.14003d480
test eax, eax
jne 0x140005f50
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x14000608d
mov esi, r15d
jmp 0x140005f50
test rdi, rdi
je 0x140006095
mov rcx, rdi
call fcn.14003d000
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400060a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400060b3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x48]
mov r9d, 0x10108
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x48], rbx
lea rdx, str.SOFTWAREOpenSSHAgentPKCS11_Providers
mov qword [rbp - 0x50], rbx
mov esi, ebx
mov dword [rbp - 0x10], 0xff
mov rdi, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006237
mov rcx, qword [rbp - 0x50]
mov r15d, esi
mov dword [rbp - 0x10], 0xff
test rcx, rcx
je 0x14000610f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
lea r9, [rbp - 0x10]
mov qword [rsp + 0x38], rbx
lea r8, [rbp]
mov qword [rsp + 0x30], rbx
mov edx, esi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
test eax, eax
jne 0x14000622a
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x50]
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400060f2
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.provider
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400060f2
mov eax, dword [rbp - 0x58]
cmp eax, 0x800
ja 0x1400060f2
test rdi, rdi
je 0x1400061b0
mov rcx, rdi
call fcn.14003d000
mov eax, dword [rbp - 0x58]
add eax, 1
mov ecx, eax
cmovb rcx, r13
call fcn.14003d014
mov rdi, rax
test rax, rax
je 0x140006237
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.provider
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000622f
mov eax, dword [rbp - 0x58]
lea rdx, [rbp + 0x200]
mov rcx, rdi
mov byte [rax + rdi], bl
mov r8d, dword [rbp - 0x58]
call fcn.14003d480
test eax, eax
jne 0x1400060f2
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x14000622f
mov esi, r15d
jmp 0x1400060f2
test rdi, rdi
je 0x140006237
mov rcx, rdi
call fcn.14003d000
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140006246
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140006255
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsxd rax, dword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
test rax, rax
jle 0x140006663
mov rax, rbx
mov qword [rsp + 0x68], rbx
mov rcx, qword [rbp - 0x20]
mov r12, qword [r13 + rax*8]
test rcx, rcx
je 0x140006284
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140006297
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x30], rbx
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400062aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x40], rbx
xorps xmm0, xmm0
lea r9, [rbp - 0x28]
xor eax, eax
lea r8, [rbp - 0x20]
movups xmmword [rbp - 0x28], xmm0
mov edx, 1
mov dword [rbp - 0x28], 0x18
lea rcx, str.D:P_A___GA____SY__A___GA____BA_
mov qword [rbp - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140006610
call fcn.14001eea0
mov rdi, rax
test rax, rax
je 0x14000660b
xor r8d, r8d
mov rdx, rax
mov rcx, r12
call fcn.14001b7f0
test eax, eax
jne 0x140006603
cmp dword [rdi + 0x30], ebx
jne 0x140006315
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jne 0x140006354
mov eax, dword [rdi + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140006354
cmp qword [rdi + 8], rbx
je 0x140006354
mov rax, qword [rdi + 0x20]
cmp rax, 0x8000000
ja 0x140006354
mov rcx, qword [rdi + 0x28]
cmp rcx, rax
ja 0x140006354
mov rax, qword [rdi + 0x18]
cmp rax, rcx
ja 0x140006354
cmp qword [rdi + 0x10], rax
ja 0x140006354
mov r14, rax
sub r14, qword [rdi + 0x10]
jmp 0x140006368
mov ecx, 0xb
mov qword [0x1400a4e88], rbx
call fcn.1400407d4
mov r14, rbx
mov rcx, r14
call fcn.14003d014
mov r15, rax
mov rsi, rax
test rax, rax
je 0x1400065f6
cmp dword [rdi + 0x30], ebx
jne 0x14000638d
mov rcx, qword [rdi + 8]
cmp qword [rdi], rcx
jne 0x1400063ce
mov ecx, dword [rdi + 0x34]
dec ecx
cmp ecx, 0xfffff
ja 0x1400063ce
cmp qword [rdi + 8], rbx
je 0x1400063ce
mov rax, qword [rdi + 0x20]
cmp rax, 0x8000000
ja 0x1400063ce
mov rcx, qword [rdi + 0x28]
cmp rcx, rax
ja 0x1400063ce
mov rax, qword [rdi + 0x18]
cmp rax, rcx
ja 0x1400063ce
cmp qword [rdi + 0x10], rax
ja 0x1400063ce
mov rdx, qword [rdi + 0x10]
add rdx, qword [rdi + 8]
jmp 0x1400063e2
mov ecx, 0xb
mov qword [0x1400a4e88], rbx
call fcn.1400407d4
mov rdx, rbx
mov r8, r14
mov rcx, r15
call fcn.14004fc40
mov rcx, rdi
call fcn.14001f200
lea r9, [rbp - 0x48]
mov qword [rsp + 0x58], rsi
lea r8, [rbp - 0x50]
mov rcx, r12
call fcn.14001b9e0
test eax, eax
jne 0x1400065e9
cmp qword [0x14005da38], rbx
jne 0x140006420
mov rcx, rbx
jmp 0x140006433
lea rax, [0x140000000]
mov qword [rsp + 0x58], rsi
mov rcx, qword [rax + 0x5da28]
mov r15, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x50]
mov r8, r15
mov rdx, rsi
call fcn.14001bc70
mov qword [rsp + 0x50], rax
mov rdi, rax
test rsi, rsi
je 0x14000646a
xor eax, eax
mov rdi, rsi
mov rcx, r15
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.14003d000
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140006610
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rbx
lea rdx, str.SOFTWAREOpenSSHAgentKeys
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140006610
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [rbp - 0x28]
mov rdx, rdi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140006610
mov r15, qword [rsp + 0x58]
mov r9d, 3
mov rcx, qword [rbp - 0x40]
xor r8d, r8d
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006617
mov rcx, qword [rbp - 0x40]
lea rdx, [0x14005b7e8]
mov dword [rsp + 0x28], r14d
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006617
mov rcx, qword [rbp - 0x40]
lea rdx, str.type
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006617
mov rsi, 0xffffffffffffffff
lea rcx, [rbp + 0x200]
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], bl
jne 0x140006590
mov rcx, qword [rbp - 0x40]
lea rdx, str.comment
mov dword [rsp + 0x28], eax
mov r9d, 3
lea rax, [rbp + 0x200]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006617
mov rax, qword [rsp + 0x68]
movsxd rdx, dword [rsp + 0x70]
inc rax
mov qword [rsp + 0x68], rax
cmp rax, rdx
jl 0x140006270
mov r12, r15
jmp 0x14000666a
mov r15, rbx
mov qword [rsp + 0x50], rbx
mov r12, rsi
jmp 0x14000661f
mov rcx, rdi
call fcn.14001f200
mov r12, rsi
jmp 0x14000661a
mov rcx, rdi
call fcn.14001f200
mov r12, rbx
jmp 0x14000661a
mov r12, qword [rsp + 0x58]
jmp 0x14000661a
mov r12, r15
mov r15, qword [rsp + 0x50]
lea rax, str.failed_to_add_key_to_store
mov r9d, 1
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_smartcard_key
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x2d7
mov dword [rsp + 0x20], 2
call fcn.14001ae20
mov rsi, 0xffffffffffffffff
jmp 0x140006872
mov rsi, 0xffffffffffffffff
lea rax, str.added_smartcard_keys_to_store
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_smartcard_key
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x2dc
mov dword [rsp + 0x20], 5
call fcn.14001ae20
xorps xmm0, xmm0
lea r9, [rbp - 0x28]
xor eax, eax
lea r8, [rbp - 0x20]
movups xmmword [rbp - 0x28], xmm0
mov edx, 1
mov dword [rbp - 0x28], 0x18
lea rcx, str.D:P_A___GA____SY__A___GA____BA_
mov qword [rbp - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140006838
mov r8d, dword [rbp - 0x78]
lea rax, [rsp + 0x68]
mov rdx, qword [rbp - 0x80]
lea r9, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.140003750
test eax, eax
jne 0x140006838
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rbx
lea rdx, str.SOFTWAREOpenSSHAgentPKCS11_Providers
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140006838
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rbx
lea rdx, [rbp + 0x200]
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140006838
lea rcx, [rbp + 0x200]
mov rax, rsi
inc rax
cmp byte [rcx + rax], bl
jne 0x140006792
mov rcx, qword [rbp - 0x40]
lea rdx, str.provider
mov dword [rsp + 0x28], eax
mov r9d, 3
lea rax, [rbp + 0x200]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006838
mov eax, dword [rsp + 0x68]
lea rdx, [0x14005b938]
mov rcx, qword [rbp - 0x40]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006838
lea rax, str.added_pkcs11_provider_to_store
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_smartcard_key
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x2ea
mov dword [rsp + 0x20], 5
call fcn.14001ae20
mov r15, qword [rsp + 0x50]
mov edi, 1
jmp 0x140006874
lea rax, str.failed_to_add_pkcs11_provider_to_store
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_smartcard_key
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x2e6
mov dword [rsp + 0x20], 2
call fcn.14001ae20
mov r15, qword [rsp + 0x50]
mov edi, ebx
mov rcx, qword [rbp - 0x60]
lea r8, [rbp - 0x70]
mov edx, 1
mov r14d, ebx
call fcn.14001f460
test eax, eax
js 0x14000689d
mov rax, qword [rbp - 0x70]
test edi, edi
setne cl
add cl, 5
mov byte [rax], cl
jmp 0x1400068a0
mov r14d, esi
test edi, edi
jne 0x14000691f
jmp 0x1400068e5
lea rax, str.add_smartcard_request_is_invalid
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_smartcard_key
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x296
mov dword [rsp + 0x20], 2
call fcn.14001ae20
mov rsi, 0xffffffffffffffff
mov r14d, esi
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14000691f
test r15, r15
je 0x140006909
xor r9d, r9d
mov r8d, 0x100
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
mov rcx, qword [rbp - 0x30]
xor r9d, r9d
lea rdx, [rbp + 0x200]
mov r8d, 0x100
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
call fcn.1400091b0
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140006933
call qword [sym.imp.KERNEL32.dll_LocalFree]
movsxd r15, dword [rsp + 0x70]
test r15, r15
jle 0x14000696e
nop dword [rax]
mov rsi, qword [r13 + rbx*8]
mov rcx, rsi
call fcn.14001b3f0
test rsi, rsi
je 0x140006966
xor eax, eax
mov rdi, rsi
mov ecx, 0xa8
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.14003d000
inc rbx
cmp rbx, r15
jl 0x140006940
mov r15, qword [rsp + 0x8310]
mov rsi, qword [rsp + 0x8330]
mov rbx, qword [rsp + 0x8368]
test r13, r13
je 0x140006993
mov rcx, r13
call fcn.14003d000
mov rcx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x8318]
test rcx, rcx
je 0x1400069aa
call fcn.14003d000
test r12, r12
je 0x1400069b7
mov rcx, r12
call fcn.14003d000
mov rax, qword [rsp + 0x78]
mov r12, qword [rsp + 0x8320]
test rax, rax
je 0x1400069d1
mov rcx, rax
call fcn.14003d000
mov rcx, qword [0x1400841c0]
test rcx, rcx
je 0x1400069e2
call fcn.14003d000
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x1400069fd
mov ecx, dword [rbp - 0x78]
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.14003d000
mov rdx, qword [rbp - 0x68]
test rdx, rdx
je 0x140006a19
mov ecx, dword [rsp + 0x68]
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.14003d000
mov rcx, qword [rbp - 0x38]
mov rdi, qword [rsp + 0x8328]
test rcx, rcx
je 0x140006a30
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140006a3f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140006a4e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
mov rcx, qword [rbp + 0x8200]
xor rcx, rsp
call fcn.1400313f0
add rsp, 0x8338
pop r14
pop rbp
ret