Function at 0x140044cd4
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x288]
sub rsp, 0x388
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rdi, r8
mov r14, rdx
mov rdx, qword [r9 + 0x28]
mov r15, rcx
xor r8d, r8d
lea rcx, [rbp - 0x78]
mov rsi, r9
call fcn.140045e60
cmp qword [rbp - 0x70], 0
jne 0x140044d94
mov ebx, 2
cmp dword [0x140142444], ebx
jb 0x140044d3b
lea rdx, str.Failed_to_open_the_process_to_impersonate_from
mov ecx, ebx
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140044d6e
test byte [rcx + 0x1c], 8
je 0x140044d6e
cmp byte [rcx + 0x19], bl
jb 0x140044d6e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ff638]
mov edx, 0x12
call fcn.1400075e4
mov edi, 0x80004005
mov eax, edi
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400c20a0
add rsp, 0x388
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x70]
lea rbx, [0x1400f0e30]
and qword [rbp - 0x80], 0
lea r8, [rbp - 0x80]
mov edx, 0xf01ff
mov qword [rsp + 0x78], rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
jne 0x140044e46
lea ebx, [rax + 2]
cmp dword [0x140142444], ebx
jb 0x140044de2
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
lea rdx, str.Failed_to_open_interactive_process_token:_0x_x
mov ecx, ebx
mov r8d, eax
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140044e25
test byte [rcx + 0x1c], 8
je 0x140044e25
cmp byte [rcx + 0x19], bl
jb 0x140044e25
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x1400ff638]
mov r9d, eax
mov edx, 0x13
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx edi, ax
mov esi, 0x80070000
or edi, esi
lea rbx, [0x1400f0e30]
test eax, eax
cmovle edi, eax
jmp 0x1400452f6
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x68]
and qword [rsp + 0x68], 0
xor r8d, r8d
mov qword [rsp + 0x60], rbx
mov edx, 0xf01ff
mov qword [rsp + 0x28], rax
mov ebx, 2
mov r9d, ebx
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
test eax, eax
jne 0x140044efd
cmp dword [0x140142444], ebx
jb 0x140044ea0
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
lea rdx, str.Failed_to_duplicate_interactive_process_token:_0x_x
mov ecx, ebx
mov r8d, eax
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140044ee3
test byte [rcx + 0x1c], 8
je 0x140044ee3
cmp byte [rcx + 0x19], bl
jb 0x140044ee3
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x1400ff638]
mov r9d, eax
mov edx, 0x14
mov rcx, qword [rcx + 0x10]
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx edi, ax
mov esi, 0x80070000
or edi, esi
test eax, eax
cmovle edi, eax
jmp 0x1400452d0
xor edx, edx
lea rcx, [rbp - 0x50]
lea r8d, [rdx + 0x38]
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 0x10]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x68]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x50], 0x38
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x140044fe1
cmp dword [0x140142444], ebx
mov edi, 0x80004005
mov esi, 0x80070000
jb 0x140044f6c
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
lea rdx, str.LoadUserProfile_failed:_0x_x
or r8d, esi
mov ecx, ebx
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, edi
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140044fc5
test byte [rcx + 0x1c], 8
je 0x140044fc5
cmp byte [rcx + 0x19], bl
jb 0x140044fc5
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x1400ff638]
movzx r9d, ax
mov edx, 0x15
or r9d, esi
test eax, eax
mov rcx, qword [rcx + 0x10]
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, edi
mov edi, ecx
jmp 0x1400452d0
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x70]
and qword [rsp + 0x70], 0
xor r8d, r8d
call qword [sym.imp.profapi.dll_Ordinal_101]
test eax, eax
je 0x1400450b1
cmp dword [0x140142444], ebx
mov edi, 0x80004005
mov esi, 0x80070000
jb 0x14004503c
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
lea rdx, str.CreateEnvBlock_failed:_0x_x
or r8d, esi
mov ecx, ebx
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, edi
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x140045095
test byte [rcx + 0x1c], 8
je 0x140045095
cmp byte [rcx + 0x19], bl
jb 0x140045095
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x1400ff638]
movzx r9d, ax
mov edx, 0x16
or r9d, esi
test eax, eax
mov rcx, qword [rcx + 0x10]
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, edi
mov edi, ecx
jmp 0x1400452c1
cmp qword [rdi + 0x18], 8
jb 0x1400450bb
mov rdi, qword [rdi]
mov r9, rdi
lea r8, [0x1400ff410]
mov edx, 0x104
lea rcx, [rbp + 0x60]
call fcn.140001e70
mov edi, eax
mov esi, 0x80070000
test eax, eax
jns 0x14004513e
cmp dword [0x140142444], ebx
jb 0x1400450f7
mov r8d, eax
lea rdx, str.Failed_to_create_command_line:_0x_x
mov ecx, ebx
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400452b6
test byte [rcx + 0x1c], 8
je 0x1400452b6
cmp byte [rcx + 0x19], bl
jb 0x1400452b6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ff638]
mov edx, 0x17
mov r9d, edi
call fcn.140007608
jmp 0x1400452b6
xor edx, edx
lea rcx, [rbp - 0xc]
lea r8d, [rdx + 0x64]
call sub.msvcrt.dll_memset
and qword [rbp - 0x58], 0
cmp qword [r14 + 0x10], 0
movdqa xmm0, xmmword [0x14010cf90]
movdqu xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x10], 0x68
jne 0x140045172
xor r14d, r14d
jmp 0x14004517c
cmp qword [r14 + 0x18], 8
jb 0x14004517c
mov r14, qword [r14]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x60]
lea rax, [rbp - 0x10]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov rdx, r14
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x600
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140045275
cmp dword [0x140142444], ebx
mov edi, 0x80004005
jb 0x140045203
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx r8d, ax
lea rdx, str.CreateProcessAsUserW_failed:_0x_x
or r8d, esi
mov ecx, ebx
test eax, eax
cmovle r8d, eax
test r8d, r8d
cmovns r8d, edi
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14004525c
test byte [rcx + 0x1c], 8
je 0x14004525c
cmp byte [rcx + 0x19], bl
jb 0x14004525c
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, [0x1400ff638]
movzx r9d, ax
mov edx, 0x18
or r9d, esi
test eax, eax
mov rcx, qword [rcx + 0x10]
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
call fcn.140007608
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, edi
mov edi, ecx
jmp 0x1400452b6
mov rdi, qword [rbp - 0x68]
mov rcx, qword [r15 + 0x30]
cmp rdi, rcx
je 0x140045299
test rcx, rcx
je 0x140045295
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140045352
mov qword [r15 + 0x30], rdi
mov rcx, qword [rbp - 0x60]
cmp rcx, 0xffffffffffffffff
je 0x1400452a9
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
mov eax, dword [rbp - 0x58]
xor edi, edi
mov dword [r15 + 0x38], eax
mov dword [r15 + 0x60], ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.profapi.dll_Ordinal_102]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x68]
lea rbx, [0x1400f0e30]
mov qword [rsp + 0x60], rbx
test rcx, rcx
je 0x1400452f6
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140045368
and qword [rsp + 0x68], 0
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x78], rbx
test rcx, rcx
je 0x140045313
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140045326
and qword [rbp - 0x80], 0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14004533c
jmp 0x140044d73
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3