Function at 0x140001300
Capabilities:
Execute command
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
lea rcx, str.Catia
call fcn.140001020
lea rcx, [0x140003430]
call fcn.140001020
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
mov rbx, rax
mov edx, dword [rax]
lea rcx, [0x1400033bc]
call fcn.140001020
mov edx, dword [rbx + 4]
lea rcx, [0x1400033bc]
call fcn.140001020
mov edx, dword [rbx + 8]
add edx, 8
lea rcx, [0x1400033bc]
call fcn.140001020
mov edx, dword [rbx + 0xc]
lea rcx, [0x1400033bc]
call fcn.140001020
mov edx, dword [rbx + 0x10]
inc edx
lea rcx, [0x1400033bc]
call fcn.140001020
mov edx, dword [rbx + 0x14]
add edx, 0x76c
lea rcx, [0x1400033bc]
call fcn.140001020
mov ecx, dword [rbx + 0x10]
inc ecx
mov r9d, dword [rbx + 0x14]
add r9d, 0x76c
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea r8, str._d__d__d
mov edx, 0x100
lea rcx, [rbp + 0x3d0]
call fcn.1400010e0
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1d0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x48], 0x100
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x2d0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x70], 0x100
mov dword [rbp - 0x44], 0x100
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2d0]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
lea r8, [rbp + 0xd0]
lea rdx, [rbp + 0x1d0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov rbx, rax
mov r8d, 1
lea rdx, str.S__lu_
lea rcx, [rbp - 0x30]
call fcn.140001080
mov dword [rbp - 0x70], eax
movzx r8d, byte [rbx + 5]
lea rcx, [rbp - 0x30]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x1400014d4
lea rcx, [rbp - 0x30]
add rcx, rax
lea rdx, [0x1400033d4]
call fcn.140001080
add dword [rbp - 0x70], eax
lea rcx, [rbp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx esi, byte [rax]
xor r13d, r13d
mov ebx, r13d
test esi, esi
je 0x140001541
nop dword [rax]
mov edx, ebx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [rbp - 0x70]
lea rdx, [rbp - 0x30]
add rcx, rdx
mov r8d, dword [rax]
lea rdx, str.__lu
call fcn.140001080
add dword [rbp - 0x70], eax
inc ebx
cmp ebx, esi
jl 0x140001510
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], r13b
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140001930
nop
mov r14, qword [rbp - 0x58]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0x16
jb 0x1400018c0
lea r12, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae r12, qword [rbp - 0x68]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea r15, [r14 + 0x16]
mov ebx, 0xf
lea rsi, [rsp + 0x60]
cmp r15, rbx
jbe 0x140001624
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400015c1
mov rbx, rcx
jmp 0x1400015cd
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
add rcx, 1
cmovb rcx, rdi
cmp rcx, 0x1000
jb 0x14000160d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400018ba
mov rcx, rax
call fcn.140001ce0
test rax, rax
je 0x1400017c3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000161f
test rcx, rcx
je 0x14000161c
call fcn.140001ce0
mov rsi, rax
jmp 0x14000161f
mov rsi, r13
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rbx
mov r8, r14
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.reg_delete_HKEY_USERS_]
movups xmmword [rsi + r14], xmm0
mov eax, dword [0x1400034f8]
mov dword [rsi + r14 + 0x10], eax
movzx eax, word [0x1400034fc]
mov word [rsi + r14 + 0x14], ax
mov byte [rsi + r15], 0
lea rax, [rbp - 0x30]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001670
mov r8, rdi
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.140001aa0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 0x52
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionActivityDataModelReaderRevisionInfo__f
lea rcx, [rsp + 0x40]
call fcn.140001aa0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140001734
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001727
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001727
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001d1c
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm1
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000177c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001777
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001777
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001d1c
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400017cf
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001d1c
lea rcx, str.reg_delete_HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionVFUProvider__v__StartTime___f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.reg_delete_HKEY_LOCAL_MACHINESOFTWAREWinLicenseWLdebugTrialInstance28102826__f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.date_2022_05_03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_CATSTART.exe___run__CNEXT.exe____env_CATIA_P3.V5___6R2021.B31___direnv__C:ProgramDataDassaultSystemesCATEnv____nowindow
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rbp + 0x3d0]
lea rdx, str.date__s
lea rcx, [rbp + 0x4d0]
call fcn.140001080
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140001888
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001883
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001883
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001d1c
xor eax, eax
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.140001cc0
lea r11, [rsp + 0x6e0]
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
call fcn.140001240
nop
call fcn.1400012e0
int3