Function at 0x140029b0c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor ebx, ebx
mov r13, rcx
test rdx, rdx
jne 0x140029cfb
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov esi, 0x104
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov edi, ebx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140029ce6
or r15, 0xffffffffffffffff
lea r14, str.ShellOpenCommand
cmp word [rsp + 0x50], 0x2e
je 0x140029c99
lea rcx, [rsp + 0x50]
mov rax, r15
inc rax
cmp word [rcx + rax*2], bx
jne 0x140029baa
mov r12d, eax
lea rax, [r12 + 0x14]
cmp rax, rsi
ja 0x140029c99
mov rax, rsi
lea rcx, [rsp + 0x50]
cmp word [rcx], bx
je 0x140029bdb
add rcx, 2
sub rax, 1
jne 0x140029bcc
test rax, rax
je 0x140029be8
mov rcx, rsi
sub rcx, rax
jmp 0x140029beb
mov rcx, rbx
test rax, rax
je 0x140029c3e
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rdx, [rdx + rcx*2]
sub r8, rcx
je 0x140029c30
lea rax, [rcx + 0x7ffffefa]
mov r9, r14
add rax, r8
sub r9, rdx
test rax, rax
je 0x140029c30
movzx ecx, word [r9 + rdx]
test cx, cx
je 0x140029c30
mov word [rdx], cx
dec rax
add rdx, 2
sub r8, 1
jne 0x140029c11
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], bx
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.14002a73c
mov rdi, rax
lea rax, [r12 + r12]
cmp rax, 0x208
jae 0x140029cf5
mov word [rsp + rax + 0x50], bx
test rdi, rdi
je 0x140029c8d
mov rcx, r15
inc rcx
cmp word [rdi + rcx*2], bx
jne 0x140029c6b
test rcx, rcx
je 0x140029c8d
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, str._s_s_r_n
call fcn.140013448
mov rcx, rdi
call fcn.14000ff70
mov edi, dword [rsp + 0x44]
cmp dword [0x140041924], ebx
jne 0x140029d35
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x40]
inc edi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x50]
mov edx, edi
mov qword [rsp + 0x20], rbx
mov rcx, r13
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140029b96
cmp eax, 0x103
cmovne ebx, eax
mov esi, ebx
jmp 0x140029eb8
call fcn.140019158
int3
cmp word [rdx], 0x2e
jne 0x140029d1d
mov r8, rdx
mov ecx, 0x400023a5
mov edx, 1
call fcn.140003278
mov eax, 0x7b
jmp 0x140029eba
mov rcx, rdx
call fcn.1400109f4
mov rcx, rax
call fcn.14000b900
mov rdi, rax
test rax, rax
jne 0x140029d3f
mov eax, 1
jmp 0x140029eba
mov edx, 0x20
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x140029d5b
mov word [rax], bx
or r15, 0xffffffffffffffff
mov rax, r15
inc rax
cmp word [rdi + rax*2], bx
jne 0x140029d62
add rax, 0x14
mov esi, 0x104
mov r8, rdi
cmp rax, rsi
jbe 0x140029d95
mov edx, 1
mov ecx, 0x400023db
call fcn.140003278
mov esi, 0x7b
jmp 0x140029eb0
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400113e0
mov rcx, rsi
lea rax, [rsp + 0x50]
cmp word [rax], bx
je 0x140029db9
add rax, 2
sub rcx, 1
jne 0x140029daa
test rcx, rcx
je 0x140029dc6
mov rax, rsi
sub rax, rcx
jmp 0x140029dc9
mov rax, rbx
test rcx, rcx
je 0x140029e1d
lea rcx, [rsp + 0x50]
lea rcx, [rcx + rax*2]
sub rsi, rax
je 0x140029e0f
lea rdx, [rax + 0x7ffffefa]
add rdx, rsi
lea r14, str.ShellOpenCommand
sub r14, rcx
test rdx, rdx
je 0x140029e0f
movzx eax, word [r14 + rcx]
test ax, ax
je 0x140029e0f
mov word [rcx], ax
dec rdx
add rcx, 2
sub rsi, 1
jne 0x140029df0
test rsi, rsi
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bx
lea rax, [rsp + 0x48]
mov r9d, 0x2000000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140029e5e
mov r8, rdi
mov edx, 1
mov ecx, 0x400023a5
call fcn.140003278
jmp 0x140029eb0
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.14002a73c
mov r14, rax
test rax, rax
je 0x140029e96
inc r15
cmp word [rax + r15*2], bx
jne 0x140029e73
test r15, r15
je 0x140029e96
mov r8, r14
lea rcx, str._s_s_r_n
mov rdx, rdi
call fcn.140013448
jmp 0x140029ea8
mov r8, rdi
mov edx, 1
mov ecx, 0x400023a5
call fcn.140003278
mov rcx, r14
call fcn.14000ff70
mov rcx, rdi
call fcn.14000ff70
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140018f80
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret