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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14013c010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movdqu xmmword [rsp + 0x68], xmm0
xor r15d, r15d
mov qword [rsp + 0x78], r15
movdqu xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x70], 0xa
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.1400280a0
test eax, eax
jne 0x140050abf
mov edi, r15d
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x60]
call fcn.1400c7980
mov dword [rsp + 0x58], 0x1ff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x60]
xor edx, edx
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x140050aa7
xor r9d, r9d
mov r8, qword [rsp + 0x70]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x68]
call fcn.140017580
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140050a56
mov qword [rcx], rax
jmp 0x140050a5b
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
inc edi
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x60]
call fcn.1400c7980
mov dword [rsp + 0x58], 0x1ff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x60]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
je 0x140050a31
test rbx, rbx
je 0x140050ac4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x40], rbx
jmp 0x140050ac4
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140050ad2
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r14, qword [rsp + 0x68]
test r14, r14
je 0x140050c46
mov rcx, qword [r14 + 0x10]
mov r14, qword [r14]
sub rcx, 0x18
call fcn.140006460
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rsi, [rax - 0x18]
mov rcx, rsi
call fcn.140006460
add rax, 0x18
mov qword [rsp + 0x60], rax
movsxd rdi, dword [rax - 0x10]
test edi, edi
js 0x140050c7c
lfence
mov rbx, qword [rsp + 0x60]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140050b46
lfence
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1400042a0
mov rbx, qword [rsp + 0x60]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s]
cmp edi, dword [rbx - 0xc]
jg 0x140050c7c
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r15w
cmp dword [rbx - 0x10], 0
jl 0x140050bf1
lea rdx, str.RTHDVBG
mov rcx, rbx
call fcn.1400c7374
test rax, rax
je 0x140050b8e
sub rax, rbx
sar rax, 1
test eax, eax
jns 0x140050bd6
cmp dword [rbx - 0x10], 0
jl 0x140050bf1
lea rdx, str.RTHDVCPL
mov rcx, rbx
call fcn.1400c7374
test rax, rax
je 0x140050bb2
sub rax, rbx
sar rax, 1
test eax, eax
jns 0x140050bd6
cmp dword [rbx - 0x10], 0
jl 0x140050bf1
lea rdx, str.RTKUGUI
mov rcx, rbx
call fcn.1400c7374
test rax, rax
je 0x140050bf1
sub rax, rbx
sar rax, 1
test eax, eax
js 0x140050bf1
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov rcx, 0xffffffff80000002
call fcn.14007f430
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140050c18
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
nop
mov eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140050c3d
lfence
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
mov rax, qword [rax + 8]
call qword [case.0x140048c62.0]
test r14, r14
jne 0x140050ae0
lea rcx, [rsp + 0x68]
call fcn.1400174a0
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400c17f0
lea r11, [rsp + 0x4b0]
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.140004820
int3