Function at 0x140053d80
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r14, rcx
mov qword [rbp - 0x80], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400540d2
mov dword [rsp + 0x60], r15d
mov r13, qword [rsp + 0x48]
mov qword [rsp + 0x58], r13
mov word [rbp - 0x70], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x6e]
call fcn.1400da240
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov ecx, dword [0x1401d6d80]
imul ecx, ecx
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 7
jne 0x140053e96
lea ecx, [r15 + 4]
call fcn.1400d55c0
mov rdi, rax
call fcn.1400d57c0
mov dword [rdi], eax
mov dword [0x1401d6d80], eax
mov rcx, rdi
call fcn.1400d4de0
mov dword [rsp + 0x34], 0x800
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x14015db4c]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x140054008
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x140054008
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140053f04
test al, 1
jne 0x140054008
shr rax, 1
cmp word [rbp + rax*2 - 0x72], 0
je 0x140053f09
jmp 0x140054008
mov word [rbp - 0x70], r15w
lea rax, [rbp - 0x70]
mov rsi, rdi
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140053f10
test esi, esi
jne 0x140053f7f
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140054008
cmp dword [rdx + 0x10], 0
jge 0x140053f53
cmp dword [rbx - 0xc], 0
jge 0x140053f46
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140054008
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140053f63
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov r13, qword [rsp + 0x48]
jmp 0x140054008
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x70]
sub r15, rbx
sar r15, 1
test esi, esi
jns 0x140053f9c
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140053fbe
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.140002760
mov rbx, qword [rsp + 0x50]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140053fe2
lea r8, [rbx + r15*2]
call fcn.1400d562c
jmp 0x140053feb
lea r8, [rbp - 0x70]
call fcn.1400d57ec
cmp esi, dword [rbx - 0xc]
jg 0x140053ffd
mov dword [rbx - 0x10], esi
xor r15d, r15d
mov word [r12 + rbx], r15w
jmp 0x140054008
mov ecx, 0x80070057
call fcn.140001920
int3
test r13, r13
je 0x14005401b
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov r8d, dword [0x1401d6d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
and ecx, 0x8000000f
jge 0x140054045
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 7
jne 0x140054085
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x7b
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400d4448
mov rcx, rax
call fcn.1400d5528
lea rcx, [rbx - 0x18]
call fcn.1400027c0
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x1400540b4
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140054310
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
jmp 0x140054310
mov r8d, dword [0x1401d6d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0xb
jne 0x140054125
mov ecx, 1
cmp r8d, ecx
jle 0x14005411f
nop dword [rax + rax]
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x140054110
mov dword [0x1401d6d80], ecx
lea rcx, [rsp + 0x38]
call fcn.14002ce00
nop
mov rcx, qword [rsp + 0x38]
cmp dword [rcx - 0x10], 0
je 0x14005429b
mov edx, dword [0x1401d6d80]
lea r8d, [rdx + 2]
lea eax, [rdx + 1]
imul r8d, eax
imul r8d, edx
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb
sub r8d, edx
mov eax, dword [0x1401d8108]
mov edx, 0x2c289110
cmp r8d, 4
cmove eax, edx
mov dword [0x1401d8108], eax
mov edx, dword [rcx - 0x10]
lea eax, [rdx - 1]
test eax, eax
js 0x140054290
cmp eax, edx
jg 0x140054290
cdqe
cmp word [rcx + rax*2], 0x5c
je 0x1400541b9
mov r8d, 1
lea rdx, [0x14015db34]
lea rcx, [rsp + 0x38]
call fcn.140010c10
lea r8, str.Mozilla_Firefox_firefox.exe
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14001b580
nop
mov r8d, dword [0x1401d6d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0xc
jne 0x14005422b
mov ecx, r8d
test r8d, r8d
je 0x140054221
dec ecx
je 0x140054218
inc r8d
mov dword [0x1401d6d80], r8d
jmp 0x14005422b
mov dword [0x1401d6d80], r15d
jmp 0x14005422b
mov dword [0x1401d6d80], 2
lea rcx, [rsp + 0x40]
call fcn.14002d3e0
test al, al
je 0x140054275
mov rcx, qword [rsp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.1400027c0
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140054270
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1400542f6
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005429b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14005429b
mov ecx, 0x80070057
call fcn.140001920
int3
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
lea rdx, [0x14015db6c]
test rdx, 0xffffffffffff0000
jne 0x1400542e2
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x1400542ee
mov r8d, ebx
mov rdx, rax
mov rcx, r14
call fcn.140002960
jmp 0x1400542ee
xor r8d, r8d
mov rcx, r14
call fcn.140002670
nop
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140054310
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov dword [rsp + 0x60], r15d
mov rax, r14
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1400d4e00
lea r11, [rsp + 0x8a0]
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