Function at 0x140003c70
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
lea rbp, [r11 - 0x5f]
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor ebx, ebx
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x20], r12
xor eax, eax
mov qword [r11 - 0x30], r14
xorps xmm0, xmm0
mov qword [r11 - 0x38], r15
mov r14d, ebx
mov qword [rbp - 0x39], r8
mov rdi, rcx
mov qword [rbp - 0x21], rdx
mov esi, ebx
mov qword [rbp - 0x69], rbx
mov r12d, ebx
mov qword [rbp - 0x59], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rbx
mov qword [rbp + 0xf], rax
movups xmmword [rbp - 1], xmm0
test rcx, rcx
je 0x140003d2c
cmp dword [rcx + 0x30], eax
jne 0x140003ce8
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
jne 0x140003d2c
mov eax, dword [rcx + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140003d2c
cmp qword [rcx + 8], rbx
je 0x140003d2c
mov rax, qword [rcx + 0x20]
cmp rax, 0x8000000
ja 0x140003d2c
mov rcx, qword [rcx + 0x28]
cmp rcx, rax
ja 0x140003d2c
mov rax, qword [rdi + 0x18]
cmp rax, rcx
ja 0x140003d2c
cmp qword [rdi + 0x10], rax
ja 0x140003d2c
mov r15, qword [rdi + 0x10]
add r15, qword [rdi + 8]
mov qword [rbp - 0x51], r15
jmp 0x140003d44
mov ecx, 0xb
mov qword [0x1400a4e88], rbx
call fcn.1400407d4
mov r15, rbx
mov qword [rbp - 0x51], rbx
lea rdx, [rbp - 0x69]
mov qword [rsp + 0xf0], r13
mov rcx, rdi
call fcn.14001e920
test eax, eax
jne 0x140004245
test rdi, rdi
je 0x140003db3
cmp dword [rdi + 0x30], ebx
jne 0x140003d73
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jne 0x140003db3
mov eax, dword [rdi + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140003db3
cmp qword [rdi + 8], rbx
je 0x140003db3
mov rax, qword [rdi + 0x20]
cmp rax, 0x8000000
ja 0x140003db3
mov rcx, qword [rdi + 0x28]
cmp rcx, rax
ja 0x140003db3
mov rax, qword [rdi + 0x18]
cmp rax, rcx
ja 0x140003db3
cmp qword [rdi + 0x10], rax
ja 0x140003db3
mov r13, qword [rdi + 0x10]
add r13, qword [rdi + 8]
jmp 0x140003dc7
mov ecx, 0xb
mov qword [0x1400a4e88], rbx
call fcn.1400407d4
mov r13, rbx
sub r13d, r15d
je 0x140004245
lea r8, [rbp - 0x29]
mov rcx, rdi
lea rdx, [rbp - 0x61]
call fcn.140020240
test eax, eax
jne 0x140004245
mov rcx, rdi
call fcn.140003910
test eax, eax
jne 0x14000420d
xorps xmm0, xmm0
lea r9, [rbp - 1]
xor eax, eax
lea r8, [rbp + 7]
movups xmmword [rbp - 1], xmm0
mov edx, 1
mov dword [rbp - 1], 0x18
lea rcx, str.D:P_A___GA____SY__A___GA____BA_
mov qword [rbp + 0xf], rax
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x1400041d4
call fcn.14001eea0
mov rdi, rax
test rax, rax
je 0x1400041d4
mov rcx, qword [rbp - 0x69]
xor r8d, r8d
mov rdx, rax
call fcn.14001b7f0
test eax, eax
jne 0x1400041cc
cmp dword [rdi + 0x30], ebx
jne 0x140003e64
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jne 0x140003ea3
mov eax, dword [rdi + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140003ea3
cmp qword [rdi + 8], rbx
je 0x140003ea3
mov rax, qword [rdi + 0x20]
cmp rax, 0x8000000
ja 0x140003ea3
mov rcx, qword [rdi + 0x28]
cmp rcx, rax
ja 0x140003ea3
mov rax, qword [rdi + 0x18]
cmp rax, rcx
ja 0x140003ea3
cmp qword [rdi + 0x10], rax
ja 0x140003ea3
mov r15, rax
sub r15, qword [rdi + 0x10]
jmp 0x140003eb7
mov ecx, 0xb
mov qword [0x1400a4e88], rbx
call fcn.1400407d4
mov r15, rbx
mov rcx, r15
call fcn.14003d014
mov rsi, rax
test rax, rax
je 0x1400041cc
cmp dword [rdi + 0x30], ebx
jne 0x140003ed9
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jne 0x140003f19
mov eax, dword [rdi + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140003f19
cmp qword [rdi + 8], rbx
je 0x140003f19
mov rax, qword [rdi + 0x20]
cmp rax, 0x8000000
ja 0x140003f19
mov rcx, qword [rdi + 0x28]
cmp rcx, rax
ja 0x140003f19
mov rax, qword [rdi + 0x18]
cmp rax, rcx
ja 0x140003f19
cmp qword [rdi + 0x10], rax
ja 0x140003f19
mov rdx, qword [rdi + 0x10]
add rdx, qword [rdi + 8]
jmp 0x140003f2d
mov ecx, 0xb
mov qword [0x1400a4e88], rbx
call fcn.1400407d4
mov rdx, rbx
mov r8, r15
mov rcx, rsi
call fcn.14004fc40
mov rcx, rdi
call fcn.14001f200
mov rdx, qword [rbp - 0x51]
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x39]
lea r9, [rbp - 0x59]
mov dword [rsp + 0x28], 1
mov r8d, r13d
mov qword [rsp + 0x20], rax
mov rdi, rsi
call fcn.140003750
test eax, eax
jne 0x140003f81
mov rcx, qword [rbp - 0x69]
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x31]
call fcn.14001b9e0
test eax, eax
je 0x140003f8a
mov r14, qword [rbp - 0x59]
jmp 0x1400041d4
cmp qword [0x14005da38], rbx
mov rcx, qword [str.SHA256]
jne 0x140003f9d
mov rcx, rbx
mov r13, qword [rbp - 0x51]
mov r14, qword [rbp - 0x31]
mov r8, r13
mov rdx, r14
call fcn.14001bc70
mov r12, rax
test r14, r14
je 0x140003fca
xor eax, eax
mov rdi, r14
mov rcx, r13
rep stosb byte [rdi], al
mov rcx, r14
call fcn.14003d000
test r12, r12
je 0x140003f81
mov rax, qword [rbp - 0x39]
mov rcx, 0xffffffff80000002
mov edi, ebx
mov qword [rbp - 0x11], rcx
cmp dword [rax + 0x40048], 2
jg 0x14000405e
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140003f81
lea rdx, [rbp - 0x11]
mov qword [rbp - 0x11], rbx
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x14000404c
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, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test edi, edi
jne 0x140003f81
mov rcx, qword [rbp - 0x11]
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREOpenSSHAgentKeys
lea rax, [rbp - 1]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003f81
mov rcx, qword [rbp - 9]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [rbp - 1]
mov rdx, r12
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 0x140003f81
mov eax, dword [rbp - 0x49]
mov r9d, 3
mov r14, qword [rbp - 0x59]
xor r8d, r8d
mov rcx, qword [rbp - 0x19]
xor edx, edx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400041d4
mov rcx, qword [rbp - 0x19]
lea rdx, [0x14005b7e8]
mov dword [rsp + 0x28], r15d
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400041d4
mov rax, qword [rbp - 0x69]
lea rdx, str.type
mov rcx, qword [rbp - 0x19]
mov r9d, 4
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400041d4
mov eax, dword [rbp - 0x29]
lea rdx, str.comment
mov rcx, qword [rbp - 0x19]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rbp - 0x61]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400041d4
lea rax, str.added_key_to_store
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_identity
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x150
mov dword [rsp + 0x20], 5
call fcn.14001ae20
mov edi, 1
jmp 0x140004214
mov rcx, rdi
call fcn.14001f200
lea rax, str.failed_to_add_key_to_store
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_identity
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x14c
mov dword [rsp + 0x20], 2
call fcn.14001ae20
mov edi, ebx
jmp 0x140004214
mov edi, ebx
cmp eax, 0xffffffc5
jne 0x14000427a
mov rcx, qword [rbp - 0x21]
lea r8, [rbp - 0x61]
mov edx, 1
call fcn.14001f460
test eax, eax
js 0x14000423a
mov rax, qword [rbp - 0x61]
test edi, edi
setne cl
add cl, 5
mov byte [rax], cl
jmp 0x14000423f
mov ebx, 0xffffffff
test edi, edi
je 0x14000427f
jmp 0x14000429f
lea rax, str.key_add_request_is_invalid
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rdx, str.process_add_identity
mov qword [rsp + 0x28], rbx
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agentkeyagent_request.c
mov r8d, 0x134
mov dword [rsp + 0x20], 5
call fcn.14001ae20
mov ebx, 0xffffffff
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14000429f
test r12, r12
je 0x14000429f
xor r9d, r9d
mov r8d, 0x100
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
mov r15, qword [rsp + 0xe0]
mov r13, qword [rsp + 0xf0]
test r14, r14
je 0x1400042bc
mov rcx, r14
call fcn.14003d000
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400042cb
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rbp - 0x69]
test r14, r14
je 0x1400042f0
mov rcx, r14
call fcn.14001b3f0
xor eax, eax
mov ecx, 0xa8
mov rdi, r14
rep stosb byte [rdi], al
mov rcx, r14
call fcn.14003d000
mov r14, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0x138]
test r12, r12
je 0x14000430d
mov rcx, r12
call fcn.14003d000
mov rcx, qword [rbp - 0x11]
mov r12, qword [rsp + 0xf8]
test rcx, rcx
je 0x140004324
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140004333
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140004342
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x14000434f
mov rcx, rsi
call fcn.14003d000
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400313f0
add rsp, 0x100
pop rsi
pop rbx
pop rbp
ret