Function at 0x140036640
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor eax, eax
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
xor r15d, r15d
mov qword [rbp - 0x80], r15
movdqu xmmword [rbp - 0x78], xmm0
mov dword [rbp - 0x68], 0xa
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x58], r15
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14001cc20
test eax, eax
jne 0x1400367be
mov edi, r15d
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x50]
call fcn.1400916b0
mov dword [rsp + 0x60], 0x1ff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x50]
xor edx, edx
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x1400367a6
nop dword [rax]
xor r9d, r9d
mov r8, qword [rsp + 0x78]
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400139d0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140036755
mov qword [rcx], rax
jmp 0x14003675a
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
inc edi
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x50]
call fcn.1400916b0
mov dword [rsp + 0x60], 0x1ff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x50]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
je 0x140036730
test rbx, rbx
je 0x1400367c3
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x48], rbx
jmp 0x1400367c3
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400367d1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r14, qword [rsp + 0x70]
test r14, r14
je 0x140036926
mov rcx, qword [r14 + 0x10]
mov r14, qword [r14]
sub rcx, 0x18
call fcn.1400051f0
lea rdi, [rax + 0x18]
mov qword [rbp - 0x60], rdi
mov rcx, rax
call fcn.1400051f0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
movsxd rsi, dword [rbx - 0x10]
test esi, esi
js 0x140036967
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140036836
mov edx, esi
lea rcx, [rsp + 0x68]
call fcn.140003640
mov rbx, qword [rsp + 0x68]
lea eax, [rsi + 1]
movsxd rdx, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s]
cmp esi, dword [rbx - 0xc]
jg 0x14003695c
mov dword [rbx - 0x10], esi
mov word [rbx + rsi*2], r15w
cmp dword [rbx - 0x10], 0
jl 0x1400368e0
lea rdx, str.RTHDVBG
mov rcx, rbx
call fcn.140091080
test rax, rax
je 0x14003687e
sub rax, rbx
sar rax, 1
test eax, eax
jns 0x1400368c6
cmp dword [rbx - 0x10], 0
jl 0x1400368e0
lea rdx, str.RTHDVCPL
mov rcx, rbx
call fcn.140091080
test rax, rax
je 0x1400368a2
sub rax, rbx
sar rax, 1
test eax, eax
jns 0x1400368c6
cmp dword [rbx - 0x10], 0
jl 0x1400368e0
lea rdx, str.RTKUGUI
mov rcx, rbx
call fcn.140091080
test rax, rax
je 0x1400368e0
sub rax, rbx
sar rax, 1
test eax, eax
js 0x1400368e0
xor r9d, r9d
mov r8, rdi
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov rcx, 0xffffffff80000002
call fcn.14005c4b0
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400368fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003691d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14, r14
jne 0x1400367df
lea rcx, [rsp + 0x70]
call fcn.140013900
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14008ade0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80070057
call fcn.140003700
int3
mov ecx, 0x80070057
call fcn.140003700
int3