Function at 0x140002040
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
mov ebx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], ebx
lea rsi, str.agent_start
mov dword [rsp + 0x40], eax
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent.c
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov dword [rsp + 0x58], eax
mov r8d, 0xf8
lea rax, str._s_pid:_d__dbg:_d
mov rdx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 4
call fcn.14001ae20
mov dword [0x1400842d4], ebx
lea r8, [0x140084310]
xorps xmm0, xmm0
lea rbx, [0x140084308]
xor eax, eax
lea rcx, str.D:PAI_A_OICI_KA___SY__A_OICI_KA___BA_
movups xmmword [0x140084308], xmm0
mov r9, rbx
mov dword [0x140084308], 0x18
mov edx, 1
mov qword [0x140084318], rax
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x1400021f6
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREOpenSSHAgent
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002232
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.ProcessID
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor r9d, r9d
test eax, eax
jne 0x140002268
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400842d8], rax
test rax, rax
je 0x14000229b
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400842f8], rax
test rax, rax
je 0x1400022d7
mov qword [0x140084320], 0xffffffffffffffff
mov dword [0x140084318], edi
call fcn.1400018c0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400313f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
xor r9d, r9d
mov r8d, 0x102
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent.c
lea rax, str.cannot_convert_sddl_ERROR:_d
mov rdx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
mov dword [rsp + 0x38], eax
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent.c
lea rax, str.cannot_create_agent_root_reg_key__ERROR:_d
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8d, 0x104
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
mov dword [rsp + 0x38], eax
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent.c
lea rax, str.cannot_publish_agent_master_process_id_ERROR:_d
mov r8d, 0x106
mov qword [rsp + 0x30], rax
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
xor r9d, r9d
mov r8d, 0x108
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent.c
lea rax, str.cannot_create_global_stop_event_ERROR:_d
mov rdx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
xor r9d, r9d
mov r8d, 0x10a
lea rcx, str.C:__w1_scontribwin32win32compat_ssh_agent_agent.c
lea rax, str.cannot_create_event_ERROR:_d
mov rdx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
call fcn.14001aa60
int3