Function at 0x140002860
Capabilities:
Compare security identifiers
Create process on windows
Get token membership
Query or enumerate registry value
Resume thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14019cfa0]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor esi, esi
mov dword [rsp + 0x68], esi
lea rcx, [rsp + 0x68]
call fcn.140007190
call fcn.14000b500
mov dword [0x1401ac6d8], 1
lea rcx, [0x14000e410]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140002901
lea rax, str.ENTRY
mov qword [rsp + 0x28], rax
lea rax, [0x140169560]
mov qword [rsp + 0x20], rax
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
lea edx, [rsi + 5]
call fcn.140006f00
mov r14d, 0xffffffff
mov qword [rbp + 0x48], rsi
lea rcx, [rbp + 0x48]
call fcn.1400024a0
mov rax, qword [rbp + 0x48]
mov r12d, 0xffffffff
cmp dword [rax - 0x10], esi
je 0x140003314
mov qword [rbp + 0x50], rsi
lea rcx, [rbp + 0x50]
call fcn.140002140
mov rcx, qword [rbp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140004c20
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x14000340c
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140002978
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140004870
mov rbx, qword [rsp + 0x70]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.1400e8f44
lea rax, [rbx - 0x18]
mov qword [rsp + 0x60], rax
cmp edi, dword [rbx - 0xc]
jg 0x140003417
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], si
cmp dword [rbx - 0x10], esi
jge 0x1400029a9
mov r15d, r12d
jmp 0x1400029cb
lea rdx, str.__noconsole
mov rcx, rbx
call fcn.1400e0fa0
mov r15, rax
test rax, rax
jne 0x1400029c5
mov r15d, r12d
jmp 0x1400029cb
sub r15, rbx
sar r15, 1
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140002a10
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, str.Launch_reflectbin.exe___s_.
mov qword [rsp + 0x28], rax
lea rax, [0x1401695d0]
mov qword [rsp + 0x20], rax
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 4
call fcn.140006f00
mov r13d, esi
mov qword [rbp - 0x68], rsi
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SOFTWAREMacriumReflect_Launcher
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002a85
mov dword [rbp + 0x58], esi
mov dword [rbp + 0x64], 4
lea rax, [rbp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.UseServiceToLaunchReflectBackup
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove r13d, dword [rbp + 0x58]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140002640
mov dword [rbp + 0x30], eax
test eax, eax
jne 0x140002e87
test r13d, r13d
jne 0x140002e4b
mov qword [rbp - 0x60], rsi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SOFTWAREMacriumReflect_Launcher
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002e03
mov dword [rbp + 0x5c], esi
mov dword [rbp + 0x68], 4
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x5c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AllowUACByPass
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, esi
test eax, eax
cmove edi, dword [rbp + 0x5c]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140002e03
mov qword [rbp - 0x58], rsi
xor dil, dil
mov dword [rbp + 0x34], esi
mov word [rbp + 0x38], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x48]
lea edx, [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002e03
mov dword [rbp - 0x78], 0x2000
mov edx, 0x2000
lea ecx, [r13 + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x78]
mov r8, r14
lea edx, [r13 + 2]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140002e03
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x220
lea r8d, [r13 + 0x20]
mov dl, 2
lea rcx, [rbp + 0x34]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140002e03
cmp dword [r14], esi
jle 0x140002c09
lea rdi, [r14 + 0x10]
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi - 8]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140002bfb
test byte [rdi], 0x14
jne 0x140002dad
inc esi
add rdi, 0x10
cmp esi, dword [r14]
jl 0x140002be0
xor dil, dil
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140002c18
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test dil, dil
je 0x140002e01
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.140003f50
xor r14d, r14d
test al, al
je 0x140002db5
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x140002c57
mov edi, eax
shr edi, 0x10
cmp edi, 0x295a
jbe 0x140002db5
mov dword [rbp + 0x60], r14d
mov qword [rbp - 0x70], r14
mov dword [rbp + 0x3c], r14d
mov word [rbp + 0x40], 0x500
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140002cd6
lea r8, [rbp + 0x60]
mov rdx, qword [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp - 0x70], r14
cmp dword [rbp + 0x60], r14d
jne 0x140002db5
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140002d1c
lea rax, str.Either_OS_is_Windows_10AU__or_the_process_does_not_have_admin_rights.
mov qword [rsp + 0x28], rax
lea rax, [0x140169720]
mov qword [rsp + 0x20], rax
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 4
call fcn.140006f00
lea rsi, [rbx - 0x18]
cmp dword [rsi + 8], r14d
jl 0x140002d8f
lea rdx, [0x140169728]
mov rcx, rbx
call fcn.1400e0fa0
test rax, rax
je 0x140002d8f
sub rax, rbx
sar rax, 1
cmp eax, r12d
je 0x140002d8f
cmp dword [rsi + 8], r14d
jl 0x140002d8f
lea rdx, str..xml
mov rcx, rbx
call fcn.1400e0fa0
test rax, rax
je 0x140002d8f
sub rax, rbx
sar rax, 1
cmp eax, r12d
je 0x140002d8f
cmp dword [rsi + 8], r14d
jl 0x140002d8f
lea rdx, [0x140169740]
mov rcx, rbx
call fcn.1400e0fa0
test rax, rax
je 0x140002d8f
sub rax, rbx
sar rax, 1
cmp eax, r12d
jne 0x140002d9b
call fcn.140001950
test al, al
mov r13d, r14d
je 0x140002da1
mov r13d, 1
mov rcx, qword [0x1401ac6d0]
jmp 0x140002e96
mov dil, 1
jmp 0x140002c09
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140002e91
lea rax, str.Either_OS_is_pre_Windows_10AU__or_the_process_already_has_admin_rights.
mov qword [rsp + 0x28], rax
lea rax, [0x1401697e0]
mov qword [rsp + 0x20], rax
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 4
call fcn.140006f00
mov rcx, qword [0x1401ac6d0]
jmp 0x140002e91
xor esi, esi
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140002e46
lea rax, str.launching_processes_normally.
mov qword [rsp + 0x28], rax
lea rax, [0x140169680]
mov qword [rsp + 0x20], rax
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 4
call fcn.140006f00
mov rcx, qword [0x1401ac6d0]
mov r13d, esi
jmp 0x140002e8e
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140002e8e
lea rax, str.Always_using_service_to_launch_processes.
mov qword [rsp + 0x28], rax
lea rax, [0x140169848]
mov qword [rsp + 0x20], rax
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 4
call fcn.140006f00
mov rcx, qword [0x1401ac6d0]
xor r14d, r14d
mov rsi, qword [rsp + 0x60]
mov ebx, r14d
mov edi, r14d
cmp r15d, r12d
jne 0x140002f64
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov edi, eax
test eax, eax
jne 0x140002f1d
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140002f64
lea r15, [0x140169850]
mov qword [rsp + 0x20], r15
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
lea edx, [rax + 3]
call fcn.140007040
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140002f64
lea rax, str.Could_not_attach_to_parent_console.
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
lea edx, [rdi + 3]
call fcn.140006f00
jmp 0x140002f5d
mov ecx, 2
call fcn.1400e4820
mov r8, rax
lea rdx, [0x1401698a8]
lea rcx, str.CONOUT_
call fcn.1400e46d0
mov ecx, 1
call fcn.1400e4820
mov r8, rax
lea rdx, [0x1401698a8]
lea rcx, str.CONOUT_
call fcn.1400e46d0
mov rcx, qword [0x1401ac6d0]
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x50], r14
cmp dword [rbp + 0x30], 0
je 0x140002f88
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.140001e70
jmp 0x14000313d
test r13d, r13d
je 0x140002fa9
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.140001a70
mov ebx, eax
jmp 0x14000313d
test rcx, rcx
je 0x140002fde
lea rax, str.Launching_process_via_ShellExecute.
mov qword [rsp + 0x28], rax
lea rax, [0x140169208]
mov qword [rsp + 0x20], rax
lea r9, str.LaunchBackupViaShellExecute
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 4
call fcn.140006f00
mov rcx, qword [rbp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.140004c20
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140011090
test eax, eax
jne 0x140003050
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140003144
lea r14, [0x140169248]
mov qword [rsp + 0x20], r14
lea r9, str.LaunchBackupViaShellExecute
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
lea edx, [rax + 1]
call fcn.140007040
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140003144
lea rax, str.reflectbin.exe_failed_signature_check.
jmp 0x14000311b
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rbp - 0x40]
call fcn.1400e17c0
mov dword [rbp - 0x40], WSACleanup
mov dword [rbp - 0x3c], 0x40
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x10], 5
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [0x1401ac6d0]
test eax, eax
je 0x1400030df
test rcx, rcx
je 0x1400030d5
lea rax, str.Launched_reflectbin.exe.
mov qword [rsp + 0x28], rax
lea rax, [0x140169250]
mov qword [rsp + 0x20], rax
lea r9, str.LaunchBackupViaShellExecute
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 4
call fcn.140006f00
mov rcx, qword [0x1401ac6d0]
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x80], rax
jmp 0x140003144
test rcx, rcx
je 0x140003144
lea r14, [0x140169258]
mov qword [rsp + 0x20], r14
lea r9, str.LaunchBackupViaShellExecute
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 1
call fcn.140007040
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x140003144
lea rax, str.ReflectBackup_could_not_be_started.
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, str.LaunchBackupViaShellExecute
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 1
call fcn.140006f00
mov rcx, qword [0x1401ac6d0]
mov dword [rbp + 0x30], 0x1f4
cmp qword [rbp - 0x80], 0
je 0x140003270
test rcx, rcx
je 0x14000318b
lea rax, str.Waiting_for_reflectbin.exe_to_finish_executing.
mov qword [rsp + 0x28], rax
lea rax, [0x140169310]
mov qword [rsp + 0x20], rax
lea r9, str.WaitForReflectProcessToExit
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 4
call fcn.140006f00
test ebx, ebx
je 0x140003199
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0x3e8
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400031ee
nop word [rax + rax]
cmp dword [rbp + 0x30], 0x103
jne 0x14000325a
mov edx, 0x3e8
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400031c0
mov dword [rbp + 0x30], 0x1f5
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x14000325a
lea rbx, [0x140169350]
mov qword [rsp + 0x20], rbx
lea r9, str.WaitForReflectProcessToExit
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 2
call fcn.140007040
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x14000325a
lea rax, str.Could_not_get_exit_code_for_ReflectBin.exe.
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, str.WaitForReflectProcessToExit
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 2
call fcn.140006f00
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400032b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x30], eax
mov rcx, qword [0x1401ac6d0]
test rcx, rcx
je 0x1400032b5
lea rax, str.Could_not_wait_for_reflectbin.exe
mov qword [rsp + 0x28], rax
lea rax, [0x140169408]
mov qword [rsp + 0x20], rax
lea r9, str.WaitForReflectProcessToExit
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 1
call fcn.140006f00
mov r14d, dword [rbp + 0x30]
cmp r14d, 0x259
jne 0x1400032ce
lea rcx, str.Not_authorised_n
call fcn.140003f00
test edi, edi
je 0x1400032d9
call qword [sym.imp.KERNEL32.dll_FreeConsole]
nop
mov eax, r12d
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x1400032f3
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140003312
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor esi, esi
mov rbx, qword [0x1401ac6d0]
test rbx, rbx
je 0x1400033b6
lea rax, str.EXIT
mov qword [rsp + 0x28], rax
lea rax, [0x1401698e0]
mov qword [rsp + 0x20], rax
lea r9, str.wWinMain
lea r8, str.e:_release_reflect_8image_reflectlauncher_reflectlauncher.cpp
mov edx, 5
mov rcx, rbx
call fcn.140006f00
mov rbx, qword [0x1401ac6d0]
test rbx, rbx
je 0x1400033b6
mov rcx, rbx
call fcn.140008880
mov rdx, qword [rbx + 0x10]
sub rdx, 0x18
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000338a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx + 8]
sub rdx, 0x18
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400033a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x48
mov rcx, rbx
call fcn.1400ce9f8
mov qword [0x1401ac6d0], rsi
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x1400033dc
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov eax, r14d
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400dbfd0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140004d90
int3
mov ecx, 0x80070057
call fcn.140004d90
int3