Function at 0x140006200
Capabilities:
Check mutex on windows
Get session user name
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov rax, qword [0x140044078]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov rdi, rcx
lea r8, str.PSAgent_D1EFBC5B_2F2D_49FE_B436_0D4BADF8B976
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140006601
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140006601
mov r9d, 0x64
mov qword [rsp + 0x658], r15
lea r8, [0x140046df0]
mov rcx, rdi
lea edx, [r9 + 4]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r15, [0x140046d20]
mov r8, r15
mov rcx, rdi
lea edx, [r9 + 0xf]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [0x140006630]
mov dword [rsp + 0x60], 0x50
xor r14d, r14d
mov qword [rsp + 0x68], rax
mov edx, 0x81
mov dword [rsp + 0x64], 3
mov rcx, rdi
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rdi
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rbp - 0x80], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
movdqa xmm0, xmmword [0x14003e6e0]
mov edx, 0x81
mov rcx, qword [rsp + 0x78]
movdqa xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x60], r15
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x58], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x30], r14
lea r8, [0x140046df0]
mov qword [rsp + 0x28], r14
lea rdx, str.SOFTWAREOEMNitroSenseLog
mov r9d, 0xffff
mov qword [rsp + 0x20], r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140006472
xor edx, edx
lea rcx, [rbp + 0x100]
mov r8d, 0x208
call fcn.14000a380
xor edx, edx
lea rcx, [rbp + 0x310]
mov r8d, 0x208
call fcn.14000a380
mov r8d, 0x104
mov dword [rbp - 0x20], 0x208
lea rdx, [rbp + 0x100]
lea rcx, str.PROGRAMDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x310]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rbp + 0x310]
lea rsi, [0x14003d698]
mov qword [rsp + 0x28], rsi
lea r9, str.OEMNitroSenseLog
lea r8, [rbp + 0x100]
mov qword [rsp + 0x20], rax
lea rdx, str._s_s_s__s.log
lea rcx, [rbp + 0x100]
call fcn.140001760
lea ecx, [r14 + 0x38]
call fcn.1400086c8
mov rbx, rax
lea rcx, [rbp - 0x10]
xor edx, edx
mov r8d, 0x104
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r14
mov qword [rax + 0x30], r14
lea rax, [rbp + 0x100]
mov qword [rbx], rax
mov qword [rbx + 8], rsi
call fcn.14000a380
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], r14
lea r9d, [r14 - 1]
mov dword [rsp + 0x28], 0x104
lea r8, [rbp + 0x100]
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp - 0x10]
call qword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [0x140046af0], rbx
lea rsi, [0x140046b10]
mov r8d, 0x104
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov qword [rsp + 0x58], r14
lea r8, [0x140046df0]
mov qword [rsp + 0x50], rdi
mov r9d, 0xcf0000
mov qword [rsp + 0x48], r14
mov rdx, r15
mov qword [rsp + 0x40], r14
xor ecx, ecx
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r15, qword [rsp + 0x658]
test rax, rax
je 0x140006601
mov ecx, 0x228
call fcn.1400086c8
xor edx, edx
mov r8d, 0x1fe
mov rbx, rax
lea rcx, [rax + 0xa]
call fcn.14000a380
xor eax, eax
mov qword [0x140046af8], rbx
mov qword [rbx + 0x210], rax
lea r9, [0x140005cf0]
mov qword [rbx + 0x218], rax
xor r8d, r8d
movabs rax, 0x3ff0000000000000
mov qword [rbx + 0x208], r14
mov qword [rbx], rsi
mov rcx, rdi
mov word [rbx + 8], r14w
lea edx, [r8 + 0x67]
mov qword [rbx + 0x220], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_CreateDialogParamW]
xor r8d, r8d
mov dword [rbx + 0x210], 0x1ff0000
lea rdx, [0x140044b90]
mov qword [rbx + 0x208], rax
lea rcx, [0x140046b00]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
mov edx, 0x73
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor r9d, r9d
lea rcx, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400065ef
nop word [rax + rax]
mov rcx, qword [rbp - 0x50]
lea r8, [rbp - 0x50]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400065d9
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400065b0
mov rcx, qword [0x140046b00]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [rbp - 0x40]
jmp 0x140006603
xor eax, eax
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.140008670
lea r11, [rsp + 0x630]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret