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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x220
mov rax, qword [0x1401750b8]
xor rax, rsp
mov qword [rbp + 0x118], rax
xor r12d, r12d
mov r15, r8
mov dword [rsp + 0x48], r12d
mov rsi, rdx
mov r14d, r12d
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
lea ecx, [r12 + 0x40]
call fcn.140111b94
test rax, rax
je 0x1400378fc
mov qword [rax], rax
lea rcx, [rax + 8]
test rcx, rcx
je 0x140037908
mov qword [rcx], rax
lea rcx, [rax + 0x10]
test rcx, rcx
je 0x140037914
mov qword [rcx], rax
mov word [rax + 0x18], 0x101
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov r15, qword [r15]
mov qword [rsp + 0x60], rcx
movaps xmm0, xmmword [rsp + 0x60]
mov qword [rbp - 0x70], rax
movdqa xmmword [rbp - 0x80], xmm0
cmp r15, rax
je 0x140037a85
mov dil, byte [rsp + 0x40]
mov rbx, qword [rbp - 0x78]
cmp qword [r15 + 0x18], 8
jb 0x140037969
mov rax, qword [r15]
mov qword [rsp + 0x48], rax
jmp 0x14003796e
mov qword [rsp + 0x48], r15
mov r13, qword [r15 + 0x10]
mov qword [rbp + 0xf0], 7
mov qword [rbp + 0xe8], r12
mov word [rbp + 0xd8], r12w
cmp r13, 7
je 0x1400379ca
mov r8b, 1
lea rcx, [rbp + 0xd8]
mov rdx, r13
call fcn.14002b1d4
test al, al
je 0x1400379ca
cmp qword [rbp + 0xf0], 8
lea rax, [rbp + 0xd8]
mov qword [rbp + 0xe8], r12
cmovae rax, qword [rbp + 0xd8]
mov word [rax], r12w
test r13, r13
je 0x140037a07
mov rdi, qword [rsp + 0x48]
movzx eax, word [rdi + r12*2]
sub ax, 0x41
cmp ax, 0x19
movzx eax, word [rdi + r12*2]
ja 0x1400379eb
add eax, 0x20
movzx edx, ax
lea rcx, [rbp + 0xd8]
call fcn.140030a7c
inc r12
cmp r12, r13
jb 0x1400379d4
mov dil, byte [rsp + 0x40]
mov rcx, qword [rbp - 0x80]
lea r9, [rbp + 0xd8]
mov r8, rbx
mov byte [rsp + 0x20], dil
lea rdx, [rsp + 0x60]
call fcn.140039724
mov rbx, qword [rsp + 0x60]
xor r12d, r12d
cmp byte [rbx + 0x19], r12b
jne 0x140037a66
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r12b
jne 0x140037a4a
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x140037a3c
jmp 0x140037a66
mov rax, qword [rbx + 8]
jmp 0x140037a5d
cmp rbx, qword [rax + 0x10]
jne 0x140037a63
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r12b
je 0x140037a50
mov rbx, rax
xor r8d, r8d
lea rcx, [rbp + 0xd8]
mov dl, 1
call fcn.140029bc0
add r15, 0x20
cmp r15, qword [rbp - 0x70]
jne 0x140037958
cmp qword [rsi + 0x18], 8
mov qword [rbp + 0xd8], r12
mov dword [rbp + 0xe0], r12d
mov qword [rbp + 0xe8], r12
jb 0x140037aa6
mov r8, qword [rsi]
jmp 0x140037aa9
mov r8, rsi
mov rdx, 0xffffffff80000001
lea rcx, [rbp + 0xd8]
mov r9d, ntohl
call fcn.14005d790
mov edi, eax
test eax, eax
je 0x140037b52
mov ebx, 2
cmp dword [0x14017c080], ebx
jg 0x140037b3a
cmp eax, ebx
je 0x140037b3a
mov r9d, ebx
lea rdx, str..._.._chrome_installer_setup_setup_util.cc
mov r8d, 0x20b
lea rcx, [rbp - 0x50]
call fcn.1400681c0
lea rdx, str.Failed_to_open
lea rcx, [rax + 8]
call fcn.14002bcb4
cmp qword [rsi + 0x18], 8
jb 0x140037b10
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rax
call fcn.140068e50
lea rdx, str.__result_
mov rcx, rax
call fcn.14002bcb4
mov rcx, rax
mov edx, edi
call fcn.140028ef4
mov r14d, 1
test r14b, 1
je 0x140037f87
lea rcx, [rbp - 0x50]
call fcn.140068220
jmp 0x140037f87
mov ecx, 0x40
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call fcn.140111b94
test rax, rax
je 0x140037b6e
mov qword [rax], rax
lea rcx, [rax + 8]
test rcx, rcx
je 0x140037b7a
mov qword [rcx], rax
lea rcx, [rax + 0x10]
test rcx, rcx
je 0x140037b86
mov qword [rcx], rax
mov word [rax + 0x18], 0x101
lea rcx, [rbp + 0xb8]
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov edx, 0x100
mov qword [rbp + 0xd0], 7
mov qword [rbp + 0xc8], r12
mov edi, r12d
mov word [rbp + 0xb8], r12w
call fcn.1400391bc
mov r13, qword [rbp + 0xd8]
mov ebx, 2
xor r15d, r15d
mov ecx, 0xffffffff
cmp qword [rbp + 0xd0], rcx
seta al
test al, al
mov eax, ecx
cmove eax, dword [rbp + 0xd0]
mov edx, eax
mov dword [rsp + 0x48], eax
cmp rdx, qword [rbp + 0xc8]
ja 0x140037c1f
cmp qword [rbp + 0xd0], 8
lea rax, [rbp + 0xb8]
mov qword [rbp + 0xc8], rdx
cmovae rax, qword [rbp + 0xb8]
mov word [rax + rdx*2], r15w
jmp 0x140037c35
sub rdx, qword [rbp + 0xc8]
lea rcx, [rbp + 0xb8]
xor r8d, r8d
call fcn.140030b20
cmp qword [rbp + 0xd0], 8
lea r8, [rbp + 0xb8]
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x48]
cmovae r8, qword [rbp + 0xb8]
mov edx, edi
mov qword [rsp + 0x30], r15
mov rcx, r13
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x140037ca5
mov rax, qword [rbp + 0xd0]
mov ecx, 0xffffffff
lea rdx, [rax + rax]
cmp qword [rbp + 0xc8], rdx
ja 0x140037bd6
lea rcx, [rbp + 0xb8]
call fcn.14002c5c4
jmp 0x140037bd1
cmp eax, 0x103
jne 0x140037cc0
test r12b, r12b
je 0x140037ed0
mov r12b, r15b
mov edi, r15d
jmp 0x140037bd1
test eax, eax
jne 0x140037ed0
mov edx, dword [rsp + 0x48]
cmp rdx, qword [rbp + 0xc8]
ja 0x140037cfa
cmp qword [rbp + 0xd0], 8
lea rax, [rbp + 0xb8]
mov qword [rbp + 0xc8], rdx
cmovae rax, qword [rbp + 0xb8]
mov word [rax + rdx*2], r15w
jmp 0x140037d10
sub rdx, qword [rbp + 0xc8]
lea rcx, [rbp + 0xb8]
xor r8d, r8d
call fcn.140030b20
lea rdx, [rbp + 0xb8]
lea rcx, [rsp + 0x50]
call fcn.140038f40
test rax, rax
je 0x140037d2d
inc edi
jmp 0x140037bd1
cmp qword [rbp + 0xd0], 8
lea rcx, [rbp + 0xb8]
mov r15, qword [rbp + 0xc8]
cmovae rcx, qword [rbp + 0xb8]
mov rdx, r15
call fcn.140057e40
test al, al
je 0x140037da9
cmp qword [rbp + 0xd0], 8
lea rax, [rbp + 0xb8]
mov qword [rbp - 0x78], r15
lea rdx, [rbp - 0x70]
cmovae rax, qword [rbp + 0xb8]
lea rcx, [rbp + 0xf8]
mov qword [rbp - 0x80], rax
or r14d, ebx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x70], xmm0
call fcn.140056cb0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140038f40
test rax, rax
je 0x140037da9
mov r15b, 1
jmp 0x140037dae
xor eax, eax
mov r15b, al
test bl, r14b
je 0x140037dc8
and r14d, 0xfffffffd
lea rcx, [rbp + 0xf8]
xor r8d, r8d
mov dl, 1
call fcn.140029bc0
test r15b, r15b
je 0x140037dea
lea r8, [rbp + 0xb8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400392a8
inc edi
jmp 0x140037bce
cmp qword [rbp + 0xd0], 8
lea rdx, [rbp + 0xb8]
lea rcx, [rbp + 0xd8]
cmovae rdx, qword [rbp + 0xb8]
call fcn.14005d810
xor r15d, r15d
test eax, eax
je 0x140037ec1
mov ecx, ebx
call fcn.140067fc0
test al, al
je 0x140037e95
mov r9d, ebx
lea rdx, str..._.._chrome_installer_setup_setup_util.cc
mov r8d, 0x246
lea rcx, [rbp - 0x50]
or r14d, 4
call fcn.1400681c0
lea rdx, str.Failed_to_delete_subkey
lea rcx, [rax + 8]
call fcn.14002bcb4
cmp qword [rbp + 0xd0], 8
lea rdx, [rbp + 0xb8]
mov rcx, rax
cmovae rdx, qword [rbp + 0xb8]
call fcn.140068e50
lea rdx, str._under_path
mov rcx, rax
call fcn.14002bcb4
cmp qword [rsi + 0x18], 8
jb 0x140037e8a
mov rdx, qword [rsi]
jmp 0x140037e8d
mov rdx, rsi
mov rcx, rax
call fcn.140068e50
test r14b, 4
je 0x140037ea8
and r14d, 0xfffffffb
lea rcx, [rbp - 0x50]
call fcn.140068220
lea r8, [rbp + 0xb8]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400392a8
inc edi
jmp 0x140037ec4
mov r12b, 1
mov r13, qword [rbp + 0xd8]
jmp 0x140037bd1
xor r12d, r12d
cmp qword [rsp + 0x58], r12
jne 0x140037fcd
lea rdx, [0x14014bcb4]
lea rcx, [rbp + 0xd8]
call fcn.14005d950
mov ecx, ebx
mov edi, eax
call fcn.140067fc0
test al, al
je 0x140037f5d
test edi, edi
je 0x140037f5d
mov r9d, ebx
lea rdx, str..._.._chrome_installer_setup_setup_util.cc
mov r8d, 0x253
lea rcx, [rbp - 0x50]
or r14d, 8
call fcn.1400681c0
lea rdx, str.Failed_to_delete_empty_key
lea rcx, [rax + 8]
call fcn.14002bcb4
cmp qword [rsi + 0x18], 8
jb 0x140037f39
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rax
call fcn.140068e50
lea rdx, [0x14014c6f8]
mov rcx, rax
call fcn.14002bcb4
mov rcx, rax
mov edx, edi
call fcn.140028ef4
test r14b, 8
je 0x140037f6c
lea rcx, [rbp - 0x50]
call fcn.140068220
xor r8d, r8d
lea rcx, [rbp + 0xb8]
mov dl, 1
call fcn.140029bc0
lea rcx, [rsp + 0x50]
call fcn.1400390c0
lea rcx, [rbp + 0xd8]
call fcn.14005d610
lea rcx, [rsp + 0x70]
call fcn.1400390c0
mov rcx, qword [rbp + 0x118]
xor rcx, rsp
call fcn.140111850
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [rsp + 0x50]
call fcn.14003903c
mov edi, r12d
mov r15b, r12b
cmp qword [rbp + 0xd0], 0x7fff
seta al
test al, al
mov eax, 0x7fff
cmove ax, word [rbp + 0xd0]
cwde
mov edx, eax
mov dword [rsp + 0x48], eax
cmp rdx, qword [rbp + 0xc8]
ja 0x14003802f
cmp qword [rbp + 0xd0], 8
lea rax, [rbp + 0xb8]
mov qword [rbp + 0xc8], rdx
cmovae rax, qword [rbp + 0xb8]
mov word [rax + rdx*2], r12w
jmp 0x140038045
sub rdx, qword [rbp + 0xc8]
lea rcx, [rbp + 0xb8]
xor r8d, r8d
call fcn.140030b20
cmp qword [rbp + 0xd0], 8
lea r8, [rbp + 0xb8]
mov qword [rsp + 0x38], r12
lea r9, [rsp + 0x48]
cmovae r8, qword [rbp + 0xb8]
mov edx, edi
mov qword [rsp + 0x30], r12
mov rcx, r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x1400380be
cmp dword [rsp + 0x48], 0x7fff
jae 0x140037f6c
mov rax, qword [rbp + 0xd0]
lea rdx, [rax + rax]
cmp qword [rbp + 0xc8], rdx
ja 0x140037fdd
lea rcx, [rbp + 0xb8]
call fcn.14002c5c4
jmp 0x140037fdd
cmp eax, 0x103
jne 0x1400380d3
test r15b, r15b
je 0x140037f6c
jmp 0x140037fd7
test eax, eax
jne 0x140037f6c
mov edx, dword [rsp + 0x48]
cmp rdx, qword [rbp + 0xc8]
ja 0x14003810d
cmp qword [rbp + 0xd0], 8
lea rax, [rbp + 0xb8]
mov qword [rbp + 0xc8], rdx
cmovae rax, qword [rbp + 0xb8]
mov word [rax + rdx*2], r12w
jmp 0x140038123
sub rdx, qword [rbp + 0xc8]
lea rcx, [rbp + 0xb8]
xor r8d, r8d
call fcn.140030b20
lea rdx, [rbp + 0xb8]
lea rcx, [rsp + 0x50]
call fcn.140038f40
test rax, rax
jne 0x14003820a
cmp qword [rbp + 0xd0], 8
lea rdx, [rbp + 0xb8]
mov rcx, r13
cmovae rdx, qword [rbp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140038211
mov ecx, ebx
call fcn.140067fc0
test al, al
je 0x1400381e2
mov r9d, ebx
lea rdx, str..._.._chrome_installer_setup_setup_util.cc
mov r8d, 0x281
lea rcx, [rbp - 0x50]
or r14d, 0x10
call fcn.1400681c0
lea rdx, str.Failed_to_delete_value
lea rcx, [rax + 8]
call fcn.14002bcb4
cmp qword [rbp + 0xd0], 8
lea rdx, [rbp + 0xb8]
mov rcx, rax
cmovae rdx, qword [rbp + 0xb8]
call fcn.140068e50
lea rdx, str._in_key
mov rcx, rax
call fcn.14002bcb4
cmp qword [rsi + 0x18], 8
jb 0x1400381d7
mov rdx, qword [rsi]
jmp 0x1400381da
mov rdx, rsi
mov rcx, rax
call fcn.140068e50
test r14b, 0x10
je 0x1400381f5
and r14d, 0xffffffef
lea rcx, [rbp - 0x50]
call fcn.140068220
lea r8, [rbp + 0xb8]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400392a8
inc edi
jmp 0x140037fdd
mov r15b, 1
jmp 0x140037fdd