Function at 0x1400521a0
Capabilities:
Encode data using xor
Get installed programs
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7d8]
sub rsp, 0x8b0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r12, rcx
mov qword [rbp - 0x70], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov esi, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, eax
test eax, eax
jne 0x140052242
mov dword [rsp + 0x48], r15d
mov edx, r15d
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov ecx, dword [0x1401d5d60]
mov eax, ecx
imul eax, ecx
and eax, 0x80000003
jge 0x14005225b
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 2
jne 0x140052268
inc ecx
mov dword [0x1401d5d60], ecx
test edx, edx
je 0x1400523bb
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14015ec80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r9d, eax
test eax, eax
jne 0x1400522cb
mov r9d, r15d
test rsi, rsi
je 0x1400522bc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, eax
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x40], rsi
mov ecx, dword [0x1401d5d60]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
mov eax, dword [0x1401d7178]
mov edx, 0x3196a7e0
cmp r8d, 4
cmove eax, edx
mov dword [0x1401d7178], eax
test r9d, r9d
je 0x1400523bb
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140052375
mov eax, r15d
test rsi, rsi
je 0x140052362
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x40], rsi
test eax, eax
je 0x1400523bb
lea rax, [rbp - 0x80]
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x80]
call fcn.140051000
nop
mov rdx, rax
mov rcx, r12
call fcn.140051600
mov dword [rsp + 0x30], 1
test rsi, rsi
je 0x1400523ae
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov rax, r12
jmp 0x1400527c3
mov word [rbp - 0x60], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400d8c20
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea r13, [0x14015edb0]
test r13, 0xffffffffffff0000
jne 0x140052426
movzx edi, r13w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140052497
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002760
mov rbx, qword [rsp + 0x38]
jmp 0x140052497
mov r14d, dword [rbx - 0x10]
mov rdi, r13
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 3
or eax, ecx
jge 0x140052459
mov edx, 3
lea rcx, [rsp + 0x38]
call fcn.140002560
mov rbx, qword [rsp + 0x38]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 6
mov rcx, rbx
add rdx, rdx
cmp rdi, r14
ja 0x140052479
lea r8, [rbx + rdi*2]
call fcn.1400d400c
jmp 0x140052481
mov r8, r13
call fcn.1400d41cc
cmp dword [rbx - 0xc], 3
jl 0x1400527b8
mov dword [rbx - 0x10], 3
mov word [rbx + 6], r15w
mov dword [rsp + 0x58], 0x800
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.Version
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r14, 0xffffffffffffffff
test eax, eax
jne 0x14005260a
mov eax, dword [rsp + 0x5c]
dec eax
cmp eax, 1
ja 0x14005260a
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140052505
test al, 1
jne 0x14005260a
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x14005250a
jmp 0x14005260a
mov word [rbp - 0x60], r15w
lea rax, [rbp - 0x60]
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140052511
test edi, edi
jne 0x140052580
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14005260a
cmp dword [rdx + 0x10], 0
jge 0x140052554
cmp dword [rbx - 0xc], 0
jge 0x140052547
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14005260a
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052564
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov rsi, qword [rsp + 0x40]
jmp 0x14005260a
mov r13d, dword [rbx - 0x10]
lea r15, [rbp - 0x60]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x14005259d
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400525bf
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140002560
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x1400525e3
lea r8, [rbx + r15*2]
call fcn.1400d400c
jmp 0x1400525ec
lea r8, [rbp - 0x60]
call fcn.1400d41cc
cmp edi, dword [rbx - 0xc]
jg 0x1400525ff
mov dword [rbx - 0x10], edi
xor r15d, r15d
mov word [r13 + rbx], r15w
jmp 0x14005260a
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x14005261d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
cmp dword [rbx - 0x10], 0
je 0x140052696
mov rcx, r15
lea rdx, [0x14015ed98]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x14005264b
cmp rcx, 4
jne 0x140052632
mov eax, r15d
jmp 0x140052650
sbb eax, eax
or eax, 1
test eax, eax
je 0x140052696
lea rcx, [rbx - 0x18]
call fcn.1400025c0
add rax, 0x18
mov qword [r12], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140052683
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400523ae
jmp 0x1400523a3
mov r9d, dword [0x1401d5d60]
lea r8d, [r9 + 2]
lea ecx, [r9 + 1]
imul r8d, ecx
imul r8d, r9d
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 4
jne 0x14005277a
mov edx, r15d
nop word [rax + rax]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r9d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r9d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r9d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r9d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r9d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r9d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r9d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r9d
sar ecx, 1
xor eax, ecx
add r9d, eax
inc edx
cmp edx, 0x100
jl 0x1400526e0
mov dword [0x1401d5d60], r9d
lea rax, [rsp + 0x78]
mov qword [rbp - 0x68], rax
lea rcx, [rsp + 0x78]
call fcn.140051000
nop
mov rdx, rax
mov rcx, r12
call fcn.140051600
mov dword [rsp + 0x30], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052683
mov rcx, qword [rdx]
jmp 0x14005267c
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400d37e0
lea r11, [rsp + 0x8b0]
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