Function at 0x140004ac0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor esi, esi
mov qword [rbp - 0x80], r8
lea rax, [0x1400a6720]
mov qword [rbp - 0x70], rdx
mov qword [0x1400a6728], rax
lea r9, [rbp - 0x30]
lea rax, [0x1400a6710]
mov qword [rbp - 0x38], rsi
mov qword [0x1400a6718], rax
lea r8, [rbp - 0x28]
xorps xmm0, xmm0
mov qword [rbp - 0x10], rsi
xor eax, eax
mov qword [rsp + 0x70], rsi
mov r14, rcx
mov qword [rbp - 0x20], rax
movups xmmword [rbp - 0x30], xmm0
mov edx, 1
mov dword [rbp - 0x18], 0xff
lea rcx, str.D:P_A___GA____SY__A___GA____BA_
mov qword [rsp + 0x58], rsi
mov r15d, esi
mov qword [rbp - 0x40], rsi
mov r12d, esi
mov qword [rbp - 0x58], rsi
mov r13d, esi
mov qword [rbp - 0x48], rsi
mov ebx, esi
mov qword [rsp + 0x68], rsi
mov qword [0x1400a6720], rsi
mov qword [0x1400a6710], rsi
mov dword [rbp - 0x30], 0x18
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140005546
mov rax, qword [rbp - 0x80]
mov rcx, 0xffffffff80000002
mov edi, esi
mov qword [rbp - 0x48], rcx
cmp dword [rax + 0x40048], 2
jg 0x140004c25
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140005546
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x48], rsi
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x140004c13
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], rsi
mov r8d, 0x52
mov dword [rsp + 0x20], 5
call fcn.14001ae20
mov edi, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test edi, edi
jne 0x140005546
mov rcx, qword [rbp - 0x48]
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREOpenSSHAgentPKCS11_Providers
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x2010e
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005546
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp - 0x58]
mov dword [rbp - 0x18], 0xff
test rcx, rcx
je 0x140004c8a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x58], rsi
mov rcx, qword [rbp - 0x40]
lea r9, [rbp - 0x18]
mov qword [rsp + 0x38], rsi
lea r8, [rbp]
mov qword [rsp + 0x30], rsi
mov edx, r12d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc r12d
mov dword [rsp + 0x78], r12d
test eax, eax
jne 0x140004f6d
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x58]
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 0x140004c70
mov rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.provider
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004c70
mov rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rdx, [0x14005b938]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004c70
mov ecx, dword [rbp - 0x60]
mov r15, 0xffffffffffffffff
add ecx, 1
cmovb rcx, r15
call fcn.14003d014
mov qword [rbp - 0x78], rax
mov r13, rax
mov rbx, rsi
test rax, rax
je 0x140004f63
mov ecx, dword [rbp - 0x50]
add ecx, 1
cmovb rcx, r15
call fcn.14003d014
mov rbx, rax
test rax, rax
je 0x140004f63
mov rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x50]
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 0x140004f63
mov rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rdx, [0x14005b938]
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004f63
mov eax, dword [rbp - 0x50]
lea r9, [rsp + 0x58]
mov rcx, qword [rbp - 0x80]
mov rdx, r13
mov dword [rsp + 0x28], esi
mov byte [rax + rbx], sil
mov eax, dword [rbp - 0x60]
mov byte [rax + r13], sil
lea rax, [rsp + 0x50]
mov r8d, dword [rbp - 0x60]
mov qword [rsp + 0x20], rax
call fcn.140003750
test eax, eax
jne 0x140004f63
mov edi, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov edx, edi
add edx, 1
cmovb rdx, r15
call fcn.14003d460
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
je 0x140004f63
lea r8, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov rdx, rax
mov byte [rdi + rax], sil
mov rcx, rbx
mov r12, rsi
call fcn.14000a130
cdqe
mov qword [rbp - 0x68], rax
test rax, rax
jle 0x140004f1a
lfence
mov r13, qword [rsp + 0x68]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r13 + r12*8]
mov edx, 0x28
mov ecx, 1
mov qword [rsp + 0x58], rax
call fcn.14003d9fc
mov r15, rax
test rax, rax
je 0x140005659
mov rdi, 0xffffffffffffffff
nop dword [rax]
cmp byte [rbx + rdi + 1], sil
lea rdi, [rdi + 1]
jne 0x140004eb0
lea rcx, [rdi + 1]
call fcn.14001f800
lea r8, [rdi + 1]
mov rdx, rbx
mov rcx, rax
call fcn.14004fc40
mov qword [r15 + 8], rax
lea rcx, [r15 + 0x18]
mov rax, qword [rsp + 0x58]
inc r12
mov qword [r15], rax
mov qword [rcx], rsi
mov rax, qword [0x1400a6718]
mov qword [r15 + 0x20], rax
mov rax, qword [0x1400a6718]
mov qword [rax], r15
mov qword [0x1400a6718], rcx
cmp r12, qword [rbp - 0x68]
jl 0x140004e80
mov edi, dword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
jmp 0x140004f1f
mov r13, qword [rsp + 0x68]
mov rcx, r13
call fcn.14003d000
mov rcx, rbx
call fcn.14003d000
mov ecx, edi
xor eax, eax
mov rdi, r15
rep stosb byte [rdi], al
mov rcx, r15
call fcn.14003d000
mov ecx, dword [rbp - 0x60]
xor eax, eax
mov rdi, qword [rbp - 0x78]
rep stosb byte [rdi], al
mov rcx, qword [rbp - 0x78]
call fcn.14003d000
mov r12d, dword [rsp + 0x78]
mov qword [rsp + 0x58], rsi
jmp 0x140004c70
mov r15, qword [rsp + 0x70]
jmp 0x140005546
test r14, r14
je 0x140004fc2
cmp dword [r14 + 0x30], esi
jne 0x140004f81
mov rax, qword [r14 + 8]
cmp qword [r14], rax
jne 0x140004fc2
mov eax, dword [r14 + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140004fc2
cmp qword [r14 + 8], rsi
je 0x140004fc2
mov rax, qword [r14 + 0x20]
cmp rax, 0x8000000
ja 0x140004fc2
mov rcx, qword [r14 + 0x28]
cmp rcx, rax
ja 0x140004fc2
mov rax, qword [r14 + 0x18]
cmp rax, rcx
ja 0x140004fc2
cmp qword [r14 + 0x10], rax
ja 0x140004fc2
mov rdi, qword [r14 + 0x10]
add rdi, qword [r14 + 8]
jmp 0x140004fdf
mov ecx, 0xb
mov qword [0x1400a4e88], rsi
call fcn.1400407d4
mov rdi, rsi
test r14, r14
je 0x14000548f
cmp dword [r14 + 0x30], esi
jne 0x140004ff2
mov rax, qword [r14 + 8]
cmp qword [r14], rax
jne 0x14000548f
mov eax, dword [r14 + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x14000548f
cmp qword [r14 + 8], rsi
je 0x14000548f
mov rax, qword [r14 + 0x20]
cmp rax, 0x8000000
ja 0x14000548f
mov rcx, qword [r14 + 0x28]
cmp rcx, rax
ja 0x14000548f
mov rax, qword [r14 + 0x18]
cmp rax, rcx
ja 0x14000548f
cmp qword [r14 + 0x10], rax
ja 0x14000548f
mov rcx, rax
sub rax, qword [r14 + 0x10]
cmp rax, 4
jb 0x1400054a0
test rdi, rdi
je 0x1400054a0
movzx eax, byte [rdi]
movzx ebx, byte [rdi + 1]
shl eax, 8
or ebx, eax
movzx eax, byte [rdi + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdi + 3]
shl ebx, 8
or ebx, eax
cmp ebx, 0x7fffffc
ja 0x1400054a0
cmp dword [r14 + 0x30], esi
jne 0x140005094
mov rax, qword [r14 + 8]
cmp qword [r14], rax
jne 0x1400050d1
mov eax, dword [r14 + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x1400050d1
cmp qword [r14 + 8], rsi
je 0x1400050d1
mov rax, qword [r14 + 0x20]
cmp rax, 0x8000000
ja 0x1400050d1
mov rdx, qword [r14 + 0x28]
cmp rdx, rax
ja 0x1400050d1
cmp rcx, rdx
ja 0x1400050d1
cmp qword [r14 + 0x10], rcx
ja 0x1400050d1
mov rax, qword [r14 + 0x18]
sub rax, qword [r14 + 0x10]
jmp 0x1400050e5
mov ecx, 0xb
mov qword [0x1400a4e88], rsi
call fcn.1400407d4
mov rax, rsi
mov r15d, ebx
add rax, 0xfffffffffffffffc
cmp rax, r15
jb 0x1400054a0
lea rdx, [rbx + 4]
mov rcx, r14
lea r12, [rdi + 4]
call fcn.14001f590
test eax, eax
jne 0x1400054a0
cmp dword [r14 + 0x30], esi
jne 0x14000511c
mov rax, qword [r14 + 8]
cmp qword [r14], rax
jne 0x14000515d
mov eax, dword [r14 + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x14000515d
cmp qword [r14 + 8], rsi
je 0x14000515d
mov rax, qword [r14 + 0x20]
cmp rax, 0x8000000
ja 0x14000515d
mov rcx, qword [r14 + 0x28]
cmp rcx, rax
ja 0x14000515d
mov rax, qword [r14 + 0x18]
cmp rax, rcx
ja 0x14000515d
cmp qword [r14 + 0x10], rax
ja 0x14000515d
mov rdi, qword [r14 + 0x10]
add rdi, qword [r14 + 8]
jmp 0x140005171
mov ecx, 0xb
mov qword [0x1400a4e88], rsi
call fcn.1400407d4
mov rdi, rsi
cmp dword [r14 + 0x30], esi
jne 0x140005184
mov rax, qword [r14 + 8]
cmp qword [r14], rax
jne 0x14000548f
mov eax, dword [r14 + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x14000548f
cmp qword [r14 + 8], rsi
je 0x14000548f
mov rax, qword [r14 + 0x20]
cmp rax, 0x8000000
ja 0x14000548f
mov rcx, qword [r14 + 0x28]
cmp rcx, rax
ja 0x14000548f
mov rax, qword [r14 + 0x18]
cmp rax, rcx
ja 0x14000548f
cmp qword [r14 + 0x10], rax
ja 0x14000548f
mov rdx, rax
sub rax, qword [r14 + 0x10]
cmp rax, 4
jb 0x1400054a0
test rdi, rdi
je 0x1400054a0
movzx eax, byte [rdi + 1]
movzx ebx, byte [rdi]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdi + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdi + 3]
shl ebx, 8
or ebx, eax
cmp ebx, 0x7fffffc
ja 0x1400054a0
cmp dword [r14 + 0x30], esi
jne 0x140005226
mov rax, qword [r14 + 8]
cmp qword [r14], rax
jne 0x140005263
mov eax, dword [r14 + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140005263
cmp qword [r14 + 8], rsi
je 0x140005263
mov rax, qword [r14 + 0x20]
cmp rax, 0x8000000
ja 0x140005263
mov rcx, qword [r14 + 0x28]
cmp rcx, rax
ja 0x140005263
cmp rdx, rcx
ja 0x140005263
cmp qword [r14 + 0x10], rdx
ja 0x140005263
mov rax, qword [r14 + 0x18]
sub rax, qword [r14 + 0x10]
jmp 0x140005277
mov ecx, 0xb
mov qword [0x1400a4e88], rsi
call fcn.1400407d4
mov rax, rsi
mov r13d, ebx
add rax, 0xfffffffffffffffc
cmp rax, r13
jb 0x1400054a0
lea rbx, [rdi + 4]
mov rcx, r14
lea rdx, [r13 + 4]
mov qword [rsp + 0x68], rbx
call fcn.14001f590
test eax, eax
jne 0x1400054a0
cmp dword [r14 + 0x30], esi
jne 0x1400052b3
mov rax, qword [r14 + 8]
cmp qword [r14], rax
jne 0x1400052f4
mov eax, dword [r14 + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x1400052f4
cmp qword [r14 + 8], rsi
je 0x1400052f4
mov rax, qword [r14 + 0x20]
cmp rax, 0x8000000
ja 0x1400052f4
mov rcx, qword [r14 + 0x28]
cmp rcx, rax
ja 0x1400052f4
mov rax, qword [r14 + 0x18]
cmp rax, rcx
ja 0x1400052f4
cmp qword [r14 + 0x10], rax
ja 0x1400052f4
mov rdi, qword [r14 + 0x10]
add rdi, qword [r14 + 8]
jmp 0x14000530d
mov ecx, 0xb
mov qword [0x1400a4e88], rsi
call fcn.1400407d4
mov rdi, rsi
mov qword [rsp + 0x68], rbx
mov edx, 4
mov rcx, r14
call fcn.14001f590
test eax, eax
js 0x1400054a0
test rdi, rdi
je 0x1400054a0
movzx eax, byte [rdi]
movzx r14d, byte [rdi + 1]
shl eax, 8
or r14d, eax
movzx eax, byte [rdi + 2]
shl r14d, 8
or r14d, eax
movzx eax, byte [rdi + 3]
shl r14d, 8
or r14d, eax
test r12, r12
je 0x1400054a0
cmp r15, 0x8000000
ja 0x1400054a0
mov edx, 1
mov ecx, 0x40
call fcn.14003d9fc
mov rbx, rax
test rax, rax
je 0x1400054a0
mov r8d, 1
mov qword [rax + 0x20], r15
lea rdx, [rsp + 0x70]
mov qword [rax + 0x18], r15
mov rcx, rax
mov qword [rax + 0x28], r15
mov dword [rax + 0x30], 1
mov dword [rax + 0x34], 1
mov qword [rax + 0x38], rsi
mov qword [rax + 8], r12
mov qword [rax], rsi
call fcn.14001e230
mov rcx, rbx
mov edi, eax
call fcn.14001f200
test edi, edi
jne 0x1400054a0
mov rax, qword [rbp - 0x80]
lea r8, [rbp - 0x10]
mov r15, qword [rsp + 0x70]
lea rdx, [rbp - 0x38]
mov r9, qword [rsp + 0x68]
mov rcx, r15
mov qword [rsp + 0x30], rax
mov rbx, rsi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r13
call fcn.140004370
test eax, eax
jne 0x140005543
mov r12, qword [rbp - 0x70]
lea r8, [rsp + 0x60]
mov rcx, r12
mov edx, 1
mov r13, rsi
call fcn.14001f460
test eax, eax
js 0x1400054e0
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xe
mov rdi, qword [rbp - 0x10]
mov r14, qword [rbp - 0x38]
cmp rdi, 0x7fffffc
ja 0x1400054e0
lea rdx, [rdi + 4]
mov rcx, r12
lea r8, [rsp + 0x60]
call fcn.14001f460
test eax, eax
js 0x1400054e0
mov rcx, qword [rsp + 0x60]
mov eax, edi
shr eax, 0x18
mov byte [rcx], al
mov eax, edi
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, edi
shr eax, 8
mov byte [rcx + 2], al
mov byte [rcx + 3], dil
test rdi, rdi
je 0x1400054e7
add rcx, 4
mov r8, rdi
mov rdx, r14
call fcn.14004fc40
jmp 0x1400054e7
mov ecx, 0xb
mov qword [0x1400a4e88], rsi
call fcn.1400407d4
lea rax, str.sign_request_is_invalid
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.process_sign_request
mov qword [rsp + 0x28], rsi
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x210
mov dword [rsp + 0x20], 5
call fcn.14001ae20
mov r15, qword [rsp + 0x70]
mov r13, rsi
mov rbx, rsi
mov rsi, 0xffffffffffffffff
test r15, r15
je 0x140005508
mov rcx, r15
call fcn.14001b3f0
xor eax, eax
mov ecx, 0xa8
mov rdi, r15
rep stosb byte [rdi], al
mov rcx, r15
call fcn.14003d000
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140005516
call fcn.14003d000
mov r14, qword [0x1400a6710]
test r14, r14
je 0x1400055ba
nop word [rax + rax]
mov r15, qword [r14 + 0x18]
mov rax, qword [r14 + 0x20]
test r15, r15
je 0x140005567
mov qword [r15 + 0x20], rax
jmp 0x14000556e
mov r13, rbx
mov rcx, qword [rbp - 0x70]
lea r8, [rsp + 0x60]
mov edx, 1
call fcn.14001f460
test eax, eax
js 0x1400054e0
mov rax, qword [rsp + 0x60]
mov byte [rax], 5
jmp 0x1400054e7
mov qword [0x1400a6718], rax
mov rcx, qword [r14 + 0x20]
mov rax, qword [r14 + 0x18]
mov qword [rcx], rax
mov rcx, qword [r14 + 8]
call fcn.14003d000
mov r12, qword [r14]
mov rcx, r12
call fcn.14001b3f0
test r12, r12
je 0x1400055a6
xor eax, eax
mov rdi, r12
mov ecx, 0xa8
rep stosb byte [rdi], al
mov rcx, r12
call fcn.14003d000
mov rcx, r14
call fcn.14003d000
mov r14, r15
test r15, r15
jne 0x140005530
call fcn.1400091b0
test rbx, rbx
je 0x1400055cc
mov rcx, rbx
call fcn.14003d000
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400055e9
mov ecx, dword [rsp + 0x50]
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.14003d000
test r13, r13
je 0x140005600
mov ecx, dword [rbp - 0x60]
xor eax, eax
mov rdi, r13
rep stosb byte [rdi], al
mov rcx, r13
call fcn.14003d000
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000560f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14000561e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14000562d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400313f0
mov rbx, qword [rsp + 0x368]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x38], 0x28
lea rax, str.xcalloc:_out_of_memory__allocating__zu_bytes_
mov qword [rsp + 0x30], rax
lea rdx, str.xcalloc
mov qword [rsp + 0x28], rsi
lea rcx, str.C:__w1_sxmalloc.c
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8d, 0x3a
call fcn.14001aa60
int3