Function at 0x140001ec0
Capabilities:
Create process on windows
Delete registry key
Enumerate files on windows
Get common file path
Get installed programs
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1aae0]
mov eax, 0x1abe0
call fcn.140007470
sub rsp, rax
mov rax, qword [0x14006b008]
xor rax, rsp
mov qword [rbp + 0x1aad0], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x250
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x1a4b0]
mov r8d, 0x20a
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x210]
mov r8d, 0x19640
call fcn.140008710
xor r15d, r15d
lea rcx, [rbp + 0x19e80]
xor edx, edx
mov r8d, 0x208
mov r12d, r15d
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x19a60]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x1a090]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x1a2a0]
mov r8d, 0x208
call fcn.140008710
mov edx, 0x104
mov dword [rsp + 0x30], r15d
lea rcx, [rbp + 0x1a2a0]
mov r14d, r15d
call fcn.140001c10
test eax, eax
je 0x1400027eb
lea r8, [rbp + 0x1a2a0]
mov edx, 0x104
lea rax, [rbp + 0x19e80]
sub r8, rax
lea rcx, [rbp + 0x19e80]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140001fe6
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140001fe6
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001fc3
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
je 0x1400027eb
xor edx, edx
lea rcx, [rbp + 0x19e80]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
test rax, rax
je 0x1400027eb
mov word [rax], r15w
lea r8, [rbp + 0x19e80]
lea rax, [rbp + 0x19a60]
mov edx, 0x104
sub r8, rax
lea rcx, [rbp + 0x19a60]
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002063
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140002063
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140002040
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
je 0x1400027eb
mov ecx, 0x104
lea rax, [rbp + 0x19a60]
cmp word [rax], r12w
je 0x140002094
add rax, 2
sub rcx, 1
jne 0x140002084
mov eax, 0x104
mov r8, r15
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x1400027eb
mov edx, 0x104
lea rcx, [rbp + 0x19a60]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x1400020f6
lea rax, [r8 + 0x7ffffefa]
add rax, rdx
lea r9, [0x1400546a0]
sub r9, rcx
test rax, rax
je 0x1400020f6
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400020f6
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x1400020d5
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
je 0x1400027eb
lea rdx, [rbp + 0x19a60]
lea rcx, [rbp + 0x1a090]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x1400027eb
lea r9, [rbp + 0x1a090]
mov edx, 0x105
lea r8, [0x1400546b8]
lea rcx, [rbp + 0x1a4b0]
call fcn.140004810
test eax, eax
js 0x1400027eb
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x1a4b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400027eb
mov qword [rsp + 0x1ac18], rbx
lea rdx, [0x140054604]
lea rcx, [rbp - 0x14]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x14000227e
lea rdx, [0x1400546cc]
lea rcx, [rbp - 0x14]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x14000227e
xor edx, edx
lea rcx, [rbp - 0x14]
lea r8d, [rdx + 0x2e]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
test rax, rax
je 0x14000227e
lea rdx, [0x1400546d8]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14000227e
mov eax, r12d
lea rcx, [rbp + 0x210]
imul rbx, rax, 0x410
lea rax, [rbp - 0x14]
mov edx, 0x104
add rcx, rbx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1a090]
lea r8, [0x1400546e8]
call fcn.140004810
test eax, eax
js 0x14000227e
lea r9, [rbp + 0x418]
mov r8d, 0x104
add r9, rbx
lea rcx, [rbp - 0x14]
mov rdx, r9
sub rcx, r9
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140002252
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140002252
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x140002230
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r15w
je 0x14000227e
xor edx, edx
mov rcx, r9
lea r8d, [rdx + 0x2e]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
test rax, rax
je 0x14000227e
mov word [rax], r15w
inc r12d
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002174
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test r12d, r12d
mov eax, r15d
setne al
test r12d, r12d
je 0x1400027bc
mov qword [rsp + 0x1ac20], r13
lea rbx, [rbp + 0x418]
mov edi, r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc r14d
add rbx, 0x410
add r14d, eax
sub rdi, 1
jne 0x1400022c0
inc r14d
lea ecx, [rdi + 0x40]
mov edx, r14d
add rdx, rdx
mov dword [rsp + 0x38], r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov qword [rsp + 0x40], rax
mov ebx, r15d
mov r13, rax
setne bl
test rax, rax
je 0x1400027a4
xor edx, edx
mov dword [rsp + 0x50], MsiRecordGetStringA
lea r8d, [rdi + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x19850]
mov r8d, 0x208
call fcn.140008710
xor edx, edx
lea rcx, [rbp + 0x1a6c0]
mov r8d, 0x410
call fcn.140008710
lea rax, [rbp + 0x19850]
mov dword [rsp + 0x54], 0x140
mov qword [rsp + 0x68], rax
lea edx, [rdi + 0x25]
lea rax, [rbp + 0x1a6c0]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x70], rax
xor r9d, r9d
lea rax, [rbp + 0x19850]
mov qword [rsp + 0x60], r15
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov dword [rbp - 0x80], 1
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400027a1
mov ecx, 0x104
lea rax, [rbp + 0x19850]
nop
cmp word [rax], r15w
je 0x1400023c0
add rax, 2
sub rcx, 1
jne 0x1400023b0
mov eax, 0x104
mov r8, r15
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x1400027a1
mov edx, 0x104
lea rcx, [rbp + 0x19850]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x140002422
lea rax, [r8 + 0x7ffffefa]
add rax, rdx
lea r9, [0x14005469c]
sub r9, rcx
test rax, rax
je 0x140002422
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140002422
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140002401
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
je 0x1400027a1
mov ecx, 0x104
lea rax, [rbp + 0x19850]
cmp word [rax], r15w
je 0x140002453
add rax, 2
sub rcx, 1
jne 0x140002443
mov eax, 0x104
mov r8, r15
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x1400027a1
mov edx, 0x104
lea rcx, [rbp + 0x19850]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x1400024b5
lea rax, [r8 + 0x7ffffefa]
add rax, rdx
lea r9, [0x1400546f8]
sub r9, rcx
test rax, rax
je 0x1400024b5
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x1400024b5
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140002494
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
je 0x1400027a1
xor edx, edx
lea rcx, [rbp + 0x19c70]
mov r8d, 0x208
call fcn.140008710
mov r14, r13
test r12d, r12d
je 0x140002690
mov r13d, dword [rsp + 0x38]
nop
mov eax, r15d
lea rbx, [rbp + 0x418]
imul rsi, rax, 0x410
add rbx, rsi
mov rcx, rbx
call sub.msi.dll_MsiRecordGetStringA
lea r9, [0x140054710]
mov qword [rsp + 0x20], rbx
lea r8, [0x140054778]
mov edx, 0x104
lea rcx, [rbp + 0x19c70]
mov edi, eax
call fcn.140004810
xor ebx, ebx
test eax, eax
mov ecx, ebx
setns cl
cmp edi, 5
jne 0x140002551
test ecx, ecx
je 0x140002689
lea r8, [0x140054788]
jmp 0x140002560
test ecx, ecx
je 0x140002689
lea r8, [0x1400547a8]
lea r9, [rbp + 0x210]
mov edx, 0x208
add r9, rsi
lea rcx, [rbp + 0x1a6c0]
call fcn.140004810
test eax, eax
js 0x140002689
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140002689
mov edx, r13d
mov ecx, ebx
lea rax, [rdx - 1]
cmp rax, 0x7ffffffe
mov eax, 0x80070057
cmova ecx, eax
test ecx, ecx
js 0x140002608
mov rcx, r14
test r13d, r13d
je 0x1400025f0
mov r8d, 0x7ffffffe
lea r9, [rbp + 0x418]
sub r8, rdx
sub rsi, r14
add r9, rsi
nop
lea rax, [rdx + r8]
test rax, rax
je 0x1400025f0
movzx eax, word [rcx + r9]
test ax, ax
je 0x1400025f0
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400025d0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov ecx, 0x8007007a
cmovne ecx, ebx
mov word [rax], bx
jmp 0x140002611
test r13d, r13d
je 0x140002611
mov word [r14], bx
test ecx, ecx
js 0x140002689
mov rcx, qword [rbp - 0x48]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x19c70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0xffffffff
sub ecx, eax
add r13d, ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x30]
lea ecx, [rcx + rax*2]
add ecx, 2
mov dword [rsp + 0x30], ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc r15d
cdqe
lea r14, [r14 + rax*2]
cmp r15d, r12d
jb 0x1400024f0
mov r13, qword [rsp + 0x40]
jmp 0x140002692
xor ebx, ebx
cmp r15d, r12d
sete bl
jne 0x1400027a4
mov ebx, dword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x38], 0
lea rdx, [0x1400547c0]
mov rcx, 0xffffffff80000002
add ebx, 2
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000278d
mov rcx, qword [rsp + 0x38]
lea r9d, [rax + 7]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1400547f0]
xor r8d, r8d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000278d
xor edx, edx
lea rcx, [rbp + 0x19c70]
mov r8d, 0x208
lea ebx, [rax + 1]
call fcn.140008710
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140054808]
lea rax, [rbp + 0x19c70]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000278f
mov eax, dword [rsp + 0x30]
lea rdx, [0x140054828]
mov rcx, qword [rsp + 0x38]
mov r9d, ebx
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp + 0x19c70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
jmp 0x14000278f
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400027a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400027a4
mov ebx, r15d
test r13, r13
je 0x1400027b2
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r13, qword [rsp + 0x1ac20]
mov eax, ebx
mov rbx, qword [rsp + 0x1ac18]
mov rcx, qword [rbp + 0x1aad0]
xor rcx, rsp
call fcn.1400074e0
mov rsi, qword [rsp + 0x1ac28]
add rsp, 0x1abe0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov eax, r15d
jmp 0x1400027c4