Function at 0x140009bc0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3e8]
sub rsp, 0x4c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r15, rcx
xor esi, esi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x64], esi
mov dword [rsp + 0x60], 8
mov word [rbp + 0x1a0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.14001be30
mov r13d, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140009c7d
or eax, 0xffffffff
jmp 0x140009f8b
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x140009f89
mov r14d, esi
mov r12d, 1
nop word [rax + rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.14001be30
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x1a0]
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140009f59
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009f59
mov word [rbp - 0x70], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.14001be30
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.Command
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009f21
mov dword [rsp + 0x60], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140009f16
lea rcx, [0x14003f470]
mov rax, qword [0x14003f470]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
test rax, 0xffffffffffff0000
jne 0x140009dea
movzx edi, cx
mov ecx, edi
call fcn.140008f20
test rax, rax
je 0x140009ed4
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000ab80
mov rbx, qword [rsp + 0x68]
jmp 0x140009ed4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140009e58
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140009ed4
cmp dword [rdx + 0x10], eax
jge 0x140009e2d
cmp dword [rbx - 0xc], eax
jl 0x140009f68
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x140009ed4
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140009e44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
jmp 0x140009ed4
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp - 0x70]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x140009f7e
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140009e90
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.14000acb0
mov rbx, qword [rsp + 0x68]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140009eb4
lea r8, [rbx + rsi*2]
call fcn.140019400
jmp 0x140009ebd
lea r8, [rbp - 0x70]
call fcn.140019908
cmp edi, dword [rbx - 0xc]
jg 0x140009f73
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r12 + rbx], si
lea r12d, [rsi + 1]
cmp dword [rbx - 0x10], 0
jl 0x140009efb
lea rdx, str.Win7UI
mov rcx, rbx
call fcn.140018dc0
test rax, rax
je 0x140009efb
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
cmovne r13d, r12d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140009f16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r13d, r13d
je 0x140009f30
mov rcx, qword [rsp + 0x70]
call fcn.140009a10
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r13d, r13d
je 0x140009f59
xor r9d, r9d
mov r8d, 0x300
lea rdx, [rbp + 0x1a0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
inc r14d
cmp r14d, dword [rsp + 0x64]
jae 0x140009f89
jmp 0x140009ca0
mov ecx, 0x80070057
call fcn.140008e60
int3
mov ecx, 0x80070057
call fcn.140008e60
int3
mov ecx, 0x80070057
call fcn.140008e60
nop
xor eax, eax
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400187e0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret