Function at 0x1400056a0
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [r11 + 0x20], rbp
mov qword [r11 - 0x18], rdi
mov rdi, rcx
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov r13, rdx
mov qword [r11 - 0x30], r14
xor r14d, r14d
mov qword [r11 - 0x38], r15
mov r15, r8
mov qword [r11 - 0x50], r14
mov r12d, r14d
mov qword [r11 - 0x48], r14
mov ebp, r14d
mov qword [r11 - 0x68], r14
test rcx, rcx
je 0x140005744
cmp dword [rcx + 0x30], ebp
jne 0x140005704
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
jne 0x140005744
mov eax, dword [rcx + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140005744
cmp qword [rcx + 8], rbp
je 0x140005744
mov rax, qword [rcx + 0x20]
cmp rax, 0x8000000
ja 0x140005744
mov rcx, qword [rcx + 0x28]
cmp rcx, rax
ja 0x140005744
mov rax, qword [rdi + 0x18]
cmp rax, rcx
ja 0x140005744
cmp qword [rdi + 0x10], rax
ja 0x140005744
mov rbx, qword [rdi + 0x10]
add rbx, qword [rdi + 8]
jmp 0x140005761
mov ecx, 0xb
mov qword [0x1400a4e88], r14
call fcn.1400407d4
mov rbx, r14
test rdi, rdi
je 0x140005a6f
cmp dword [rdi + 0x30], ebp
jne 0x140005773
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jne 0x140005a6f
mov eax, dword [rdi + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x140005a6f
cmp qword [rdi + 8], rbp
je 0x140005a6f
mov rax, qword [rdi + 0x20]
cmp rax, 0x8000000
ja 0x140005a6f
mov rcx, qword [rdi + 0x28]
cmp rcx, rax
ja 0x140005a6f
mov rax, qword [rdi + 0x18]
cmp rax, rcx
ja 0x140005a6f
cmp qword [rdi + 0x10], rax
ja 0x140005a6f
mov rdx, rax
sub rax, qword [rdi + 0x10]
cmp rax, 4
jb 0x140005a80
test rbx, rbx
je 0x140005a80
movzx eax, byte [rbx + 1]
movzx esi, byte [rbx]
shl esi, 8
or esi, eax
movzx eax, byte [rbx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [rbx + 3]
shl esi, 8
or esi, eax
cmp esi, 0x7fffffc
ja 0x140005a80
cmp dword [rdi + 0x30], ebp
jne 0x140005813
mov rax, qword [rdi + 8]
cmp qword [rdi], rax
jne 0x14000584a
mov eax, dword [rdi + 0x34]
dec eax
cmp eax, 0xfffff
ja 0x14000584a
cmp qword [rdi + 8], rbp
je 0x14000584a
mov rax, qword [rdi + 0x20]
cmp rax, 0x8000000
ja 0x14000584a
cmp rcx, rax
ja 0x14000584a
cmp rdx, rcx
ja 0x14000584a
cmp qword [rdi + 0x10], rdx
ja 0x14000584a
mov rax, rdx
sub rax, qword [rdi + 0x10]
jmp 0x14000585e
mov ecx, 0xb
mov qword [0x1400a4e88], r14
call fcn.1400407d4
mov rax, r14
add rax, 0xfffffffffffffffc
cmp rax, rsi
jb 0x140005a80
lea rdx, [rsi + 4]
mov rcx, rdi
lea r14, [rbx + 4]
call fcn.14001f590
test eax, eax
jne 0x140005a6a
test r14, r14
je 0x140005a6a
cmp rsi, 0x8000000
ja 0x140005a6a
mov edx, 1
mov ecx, 0x40
call fcn.14003d9fc
mov rbx, rax
test rax, rax
je 0x140005a6a
mov qword [rax + 8], r14
lea rdx, [rsp + 0x40]
xor r14d, r14d
mov qword [rax + 0x20], rsi
mov r8d, 1
mov qword [rax], r14
mov rcx, rax
mov qword [rax + 0x18], rsi
mov qword [rax + 0x28], rsi
mov dword [rax + 0x30], 1
mov dword [rax + 0x34], 1
mov qword [rax + 0x38], rbp
call fcn.14001e230
mov rcx, rbx
mov edi, eax
call fcn.14001f200
mov rbp, qword [rsp + 0x40]
test edi, edi
jne 0x140005a80
lea r9, [rsp + 0x50]
mov rcx, rbp
lea r8, [rsp + 0x48]
call fcn.14001b9e0
test eax, eax
je 0x140005924
mov esi, r14d
jmp 0x140005a3f
cmp qword [0x14005da38], r12
mov rcx, qword [str.SHA256]
jne 0x140005937
mov rcx, r14
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov r8, r14
mov rdx, rbx
call fcn.14001bc70
mov rsi, rax
test rbx, rbx
je 0x140005966
xor eax, eax
mov rdi, rbx
mov rcx, r14
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.14003d000
xor r14d, r14d
test rsi, rsi
je 0x140005a3f
cmp dword [r15 + 0x40048], 2
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x58], rcx
mov edi, r14d
jg 0x140005a03
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140005a3f
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], r14
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x1400059f4
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], r14
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 0x140005a3f
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov r9d, 0x10109
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREOpenSSHAgentKeys
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005a3f
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
test eax, eax
jne 0x140005a3f
mov r12d, 1
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, r13
mov ebx, r14d
call fcn.14001f460
test eax, eax
js 0x140005a83
mov rax, qword [rsp + 0x48]
test r12d, r12d
setne cl
add cl, 5
mov byte [rax], cl
jmp 0x140005a88
xor r14d, r14d
jmp 0x140005a80
mov ecx, 0xb
mov qword [0x1400a4e88], r14
call fcn.1400407d4
mov rsi, r14
mov ebx, 0xffffffff
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
test rbp, rbp
je 0x140005ac3
mov rcx, rbp
call fcn.14001b3f0
xor eax, eax
mov ecx, 0xa8
mov rdi, rbp
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.14003d000
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xc8]
test rcx, rcx
je 0x140005ae3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140005af3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140005b00
mov rcx, rsi
call fcn.14003d000
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400313f0
add rsp, 0x98
pop rsi
pop rbx
ret