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

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x1d8]
sub rsp, 0x2c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor edi, edi
mov qword [r11 + 8], rbx
mov qword [r11 - 0x18], rsi
mov esi, edi
mov qword [r11 - 0x20], r12
mov r12d, edi
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
mov r14d, edi
mov qword [r11 - 0x38], r15
mov r15, r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov dword [rbp - 0x80], 0xff
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x64], edi
call fcn.14001eea0
mov r13, rax
test rax, rax
je 0x14000758b
cmp dword [r15 + 0x40048], 2
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x70], rcx
mov ebx, edi
jg 0x1400072a1
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140007512
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], rdi
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x14000728e
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], rdi
mov r8d, 0x52
mov dword [rsp + 0x20], 5
call fcn.14001ae20
mov ebx, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test ebx, ebx
jne 0x140007512
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov r9d, 0x20108
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREOpenSSHAgentKeys
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007512
mov ebx, esi
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
mov dword [rbp - 0x80], 0xff
test rcx, rcx
je 0x1400072ec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rdi
mov rcx, qword [rsp + 0x78]
lea r9, [rbp - 0x80]
mov qword [rsp + 0x38], rdi
lea r8, [rbp - 0x70]
mov qword [rsp + 0x30], rdi
mov edx, ebx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
mov dword [rsp + 0x40], ebx
test eax, eax
jne 0x140007512
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400072d0
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, [0x14005b7e8]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400072d0
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
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 0x1400072d0
test r14, r14
je 0x1400073b4
mov rcx, r14
call fcn.14003d000
test rsi, rsi
je 0x1400073c1
mov rcx, rsi
call fcn.14003d000
mov ecx, dword [rsp + 0x60]
mov rsi, rdi
call fcn.14003d014
mov r14, rax
test rax, rax
je 0x14000758b
mov ecx, dword [rsp + 0x64]
call fcn.14003d014
mov rsi, rax
test rax, rax
je 0x14000758b
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, [0x14005b7e8]
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000758b
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rdx, str.comment
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000758b
mov ebx, dword [rsp + 0x60]
cmp rbx, 0x7fffffc
ja 0x14000758b
lea rdx, [rbx + 4]
mov rcx, r13
lea r8, [rsp + 0x58]
call fcn.14001f460
test eax, eax
js 0x14000758b
mov rcx, qword [rsp + 0x58]
mov eax, ebx
shr eax, 0x18
mov byte [rcx], al
mov eax, ebx
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, ebx
shr eax, 8
mov byte [rcx + 2], al
mov byte [rcx + 3], bl
test rbx, rbx
je 0x1400074a9
add rcx, 4
mov r8d, ebx
mov rdx, r14
call fcn.14004fc40
mov ebx, dword [rsp + 0x64]
cmp rbx, 0x7fffffc
ja 0x14000758b
lea rdx, [rbx + 4]
mov rcx, r13
lea r8, [rsp + 0x48]
call fcn.14001f460
test eax, eax
js 0x14000758b
mov rcx, qword [rsp + 0x48]
mov eax, ebx
shr eax, 0x18
mov byte [rcx], al
mov eax, ebx
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, ebx
shr eax, 8
mov byte [rcx + 2], al
mov byte [rcx + 3], bl
test rbx, rbx
je 0x140007506
add rcx, 4
mov r8d, ebx
mov rdx, rsi
call fcn.14004fc40
mov ebx, dword [rsp + 0x40]
inc r12d
jmp 0x1400072d0
mov r15, qword [rsp + 0x50]
mov ebx, 1
nop dword [rax]
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, r15
call fcn.14001f460
test eax, eax
js 0x140007520
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x48]
mov edx, 4
mov rcx, r15
mov byte [rax], 0xc
call fcn.14001f460
test eax, eax
js 0x140007586
mov rcx, qword [rsp + 0x48]
mov eax, r12d
shr eax, 0x18
mov rdx, r13
mov byte [rcx], al
mov eax, r12d
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, r12d
shr eax, 8
mov byte [rcx + 2], al
mov byte [rcx + 3], r12b
mov rcx, r15
call fcn.140020660
test eax, eax
je 0x140007590
test rbx, rbx
jne 0x140007520
mov edi, 0xffffffff
mov r15, qword [rsp + 0x2a0]
mov r12, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2e0]
test r14, r14
je 0x1400075b5
mov rcx, r14
call fcn.14003d000
mov r14, qword [rsp + 0x2a8]
test rsi, rsi
je 0x1400075ca
mov rcx, rsi
call fcn.14003d000
mov rsi, qword [rsp + 0x2c0]
test r13, r13
je 0x1400075df
mov rcx, r13
call fcn.14001f200
mov rcx, qword [rsp + 0x70]
mov r13, qword [rsp + 0x2b0]
test rcx, rcx
je 0x1400075f7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140007607
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140007617
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400313f0
add rsp, 0x2c8
pop rdi
pop rbp
ret