Function at 0x14004d580
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xaf8]
sub rsp, 0xbd0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401bee90]
xor rax, rsp
mov qword [rbp + 0xac0], rax
mov r12, rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x68], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12], rax
mov r13d, 1
mov dword [rsp + 0x30], r13d
mov word [rbp + 0x2c0], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x2c2]
call fcn.1400d1cf0
mov r8d, dword [0x1401c6d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
cmp ecx, 5
jne 0x14004d670
mov ecx, r15d
lea rdx, [rbp - 0x60]
nop dword [rax]
mov eax, dword [rdx]
imul eax, eax, 0x36
add r8d, eax
inc ecx
lea rdx, [rdx + 4]
movsxd rax, ecx
cmp rax, 0x314
jb 0x14004d650
mov dword [0x1401c6d80], r8d
mov rbx, r15
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftInternet_Explorer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004dcea
mov dword [rsp + 0x70], r15d
mov r14, qword [rsp + 0x58]
mov qword [rsp + 0x68], r14
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea r8, str.svcVe
test r8, 0xffffffffffff0000
jne 0x14004d712
movzx ebx, r8w
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004d784
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400026e0
jmp 0x14004d784
mov esi, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 5
or eax, ecx
jge 0x14004d749
mov edx, 5
lea rcx, [rsp + 0x48]
call fcn.1400024e0
mov rbx, qword [rsp + 0x48]
lea r8, str.svcVe
movsxd rdx, dword [rbx - 0xc]
mov r9d, 0xa
mov rcx, rbx
add rdx, rdx
cmp rdi, rsi
ja 0x14004d769
lea r8, [rbx + rdi*2]
call fcn.1400cd0d4
jmp 0x14004d76e
call fcn.1400cd294
cmp dword [rbx - 0xc], 5
jl 0x14004dcdf
mov dword [rbx - 0x10], 5
mov word [rbx + 0xa], r15w
lea r8, [0x14014f9f8]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.14001b610
nop
mov dword [rsp + 0x54], 0x800
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x2c0]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14004d810
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
jbe 0x14004d7e4
mov ebx, 0xd
jmp 0x14004d810
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x14004d805
test al, 1
jne 0x14004d7fe
shr rax, 1
cmp word [rbp + rax*2 + 0x2be], 0
je 0x14004d80d
mov ebx, 0xd
jmp 0x14004d810
mov word [rbp + 0x2c0], r15w
mov ebx, r15d
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
or rdi, 0xffffffffffffffff
lock add dword [rdx + 0x10], edi
jg 0x14004d82c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d845
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x14004d9c1
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp + 0x2c0]
lea rax, [rbp + 0x2c0]
test rax, 0xffffffffffff0000
jne 0x14004d8aa
movzx esi, cx
mov ecx, esi
call fcn.1400019e0
test rax, rax
je 0x14004d9a0
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400026e0
mov rbx, qword [rsp + 0x40]
jmp 0x14004d9a0
lea rax, [rbp + 0x2c0]
mov rsi, rdi
inc rsi
cmp word [rax + rsi*2], 0
jne 0x14004d8b4
test esi, esi
jne 0x14004d91e
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004d9a0
cmp dword [rdx + 0x10], 0
jge 0x14004d8f7
cmp dword [rbx - 0xc], 0
jge 0x14004d8ea
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004d9a0
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d907
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 + 0x40], rbx
jmp 0x14004d9a0
mov r15d, dword [rbx - 0x10]
lea r14, [rbp + 0x2c0]
sub r14, rbx
sar r14, 1
test esi, esi
jns 0x14004d93e
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14004d95e
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.1400024e0
mov rbx, qword [rsp + 0x40]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x14004d982
lea r8, [rbx + r14*2]
call fcn.1400cd0d4
jmp 0x14004d98e
lea r8, [rbp + 0x2c0]
call fcn.1400cd294
cmp esi, dword [rbx - 0xc]
jg 0x14004d9b6
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [r15 + rbx], ax
xor r15d, r15d
mov r14d, 3
mov dword [rsp + 0x30], r14d
cmp dword [rbx - 0x10], 0
je 0x14004d9cb
mov sil, 1
jmp 0x14004d9ce
mov ecx, 0x80070057
call fcn.140001920
nop
mov rbx, qword [rsp + 0x40]
mov r14d, dword [rsp + 0x30]
xor sil, sil
test r14b, 2
je 0x14004d9f6
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004d9f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14d, dword [rsp + 0x30]
test sil, sil
je 0x14004da23
lea rax, [rbp + 0x2c0]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004da02
mov r8d, edi
lea rdx, [rbp + 0x2c0]
mov rcx, r12
call fcn.1400023f0
jmp 0x14004dcb9
mov dword [rsp + 0x50], 0x800
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004dc15
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x14004dc15
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14004da95
test al, 1
jne 0x14004dc15
shr rax, 1
cmp word [rbp + rax*2 + 0x2be], 0
je 0x14004da9d
jmp 0x14004dc15
mov word [rbp + 0x2c0], r15w
lea rcx, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp + 0x2c0]
lea rax, [rbp + 0x2c0]
test rax, 0xffffffffffff0000
jne 0x14004dafa
movzx esi, cx
mov ecx, esi
call fcn.1400019e0
test rax, rax
je 0x14004dbf6
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400026e0
mov rbx, qword [rsp + 0x38]
jmp 0x14004dbf6
lea rax, [rbp + 0x2c0]
mov rsi, rdi
inc rsi
cmp word [rax + rsi*2], 0
jne 0x14004db04
test esi, esi
jne 0x14004db73
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004dbf6
cmp dword [rdx + 0x10], 0
jge 0x14004db47
cmp dword [rbx - 0xc], 0
jge 0x14004db3a
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14004dbf6
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004db57
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 + 0x38], rbx
mov r14d, dword [rsp + 0x30]
jmp 0x14004dbf6
mov r12d, dword [rbx - 0x10]
lea r15, [rbp + 0x2c0]
sub r15, rbx
sar r15, 1
test esi, esi
jns 0x14004db93
mov ecx, 0x80070057
call fcn.140001920
int3
sub r13d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, r13d
jge 0x14004dbb2
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.1400024e0
mov rbx, qword [rsp + 0x38]
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 0x14004dbd6
lea r8, [rbx + r15*2]
call fcn.1400cd0d4
jmp 0x14004dbe2
lea r8, [rbp + 0x2c0]
call fcn.1400cd294
cmp esi, dword [rbx - 0xc]
jg 0x14004dc0a
mov dword [rbx - 0x10], esi
xor r15d, r15d
mov word [r12 + rbx], r15w
mov r12, qword [rbp - 0x78]
or r14d, 4
mov dword [rsp + 0x30], r14d
cmp dword [rbx - 0x10], 0
je 0x14004dc1a
mov sil, 1
jmp 0x14004dc1d
mov ecx, 0x80070057
call fcn.140001920
nop
mov rbx, qword [rsp + 0x38]
xor sil, sil
test r14b, 4
je 0x14004dc40
and r14d, 0xfffffffb
mov dword [rsp + 0x30], r14d
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004dc40
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14004dc6c
lea rax, [rbp + 0x2c0]
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004dc50
mov r8d, edi
lea rdx, [rbp + 0x2c0]
mov rcx, r12
call fcn.1400023f0
mov ecx, dword [0x1401c6d80]
imul ecx, ecx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 2
jne 0x14004dcb9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0xcccccccd
mul r8d
shr edx, 6
lea ecx, [rdx + rdx*4]
shl ecx, 4
sub r8d, ecx
lea eax, [r8 + 1]
mov dword [0x1401c6d80], eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14004dcd3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x68], rbx
jmp 0x14004dcd8
mov rbx, qword [rsp + 0x68]
mov dword [rsp + 0x70], r15d
jmp 0x14004dcea
mov ecx, 0x80070057
call fcn.140001920
nop
test rbx, rbx
je 0x14004dcfd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], r15d
mov rax, r12
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.1400cc8b0
lea r11, [rsp + 0xbd0]
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