Function at 0x1400d3550
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xdf0]
sub rsp, 0xef0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0xde0], rax
mov rdi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rbp + 0x390], r14
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3a0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x3b0], xmm1
movdqu xmmword [rbp + 0x3c0], xmm0
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x3e0]
call fcn.1402b60e0
mov dword [rbp + 0x3d0], r14d
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x5e0]
call fcn.1402b60e0
mov dword [rbp + 0x3d8], 0x200
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x9e0]
call fcn.1402b60e0
mov dword [rbp + 0x3d4], 0x200
mov dword [rbp + 0x398], reloc.WS2_32.dll_getservbyport
mov esi, 1
mov dword [rbp + 0x39c], esi
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x20], rax
mov r9d, 0x1f4
lea r8, [rbp + 0x3e0]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea r15, str.CCPHelper::_LoadProfileAndEnvironment
lea r12, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedCreateProcessHelper.cpp
test eax, eax
je 0x1400d37e6
lea rax, [rbp + 0x3dc]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3d4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x9e0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3d8]
lea r8, [rbp + 0x5e0]
mov rdx, qword [rbp + 0x3e0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x1400d36ca
mov ecx, esi
call fcn.1400de610
test eax, eax
je 0x1400d36b7
lea rax, [rbp + 0x5e0]
mov qword [rsp + 0x28], rax
call fcn.1400d6da0
lea rax, [rbp + 0x5e0]
mov qword [rbp + 0x3a0], rax
jmp 0x1400d3928
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r14w
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r14w
mov edx, esi
lea rcx, [rbp - 0x10]
call fcn.140029460
nop
nop dword [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], esi
test eax, eax
je 0x1400d371d
cmp eax, 1
jne 0x1400d373b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d3700
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, esi
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0xe8], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0xe8]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0xe8]
mov dword [rax + 0x10], 0xed
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r12
mov dword [rbp - 0x60], 0xed
mov r8d, 0x64
mov rdx, r12
lea rcx, [rbp - 0x58]
call fcn.14002b640
mov dword [rbp - 0x18], 4
mov r8d, 0x25
mov rdx, r15
lea rcx, [rbp - 0x38]
call fcn.14002b640
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_lookup_account_based_on_SID._Error:__d
lea rcx, [rsp + 0x40]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14002be60
nop
lea rcx, [rsp + 0x40]
call fcn.14002ce60
nop
lea rcx, [rbp - 0x60]
jmp 0x1400d3923
mov qword [rbp + 0x108], r14
mov qword [rbp + 0x110], 7
mov word [rbp + 0xf8], r14w
mov qword [rbp + 0x128], r14
mov qword [rbp + 0x130], 7
mov word [rbp + 0x118], r14w
mov edx, esi
lea rcx, [rbp + 0x140]
call fcn.140029460
nop
nop dword [rax]
xor eax, eax
lock cmpxchg dword [0x1403e3090], esi
test eax, eax
je 0x1400d384d
cmp eax, 1
jne 0x1400d386b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d3830
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, esi
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x238], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x238]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x238]
mov dword [rax + 0x10], 0xf2
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r12
mov dword [rbp + 0xf0], 0xf2
mov r8d, 0x64
mov rdx, r12
lea rcx, [rbp + 0xf8]
call fcn.14002b640
mov dword [rbp + 0x138], 4
mov r8d, 0x25
mov rdx, r15
lea rcx, [rbp + 0x118]
call fcn.14002b640
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_get_token_information._Error:__d
lea rcx, [rsp + 0x60]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.14002be60
nop
lea rcx, [rsp + 0x60]
call fcn.14002ce60
nop
lea rcx, [rbp + 0xf0]
call fcn.140028cd0
lea rdx, [rbp + 0x398]
mov rcx, rbx
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x1400d394b
mov rax, qword [rbp + 0x3c8]
mov qword [rdi], rax
jmp 0x1400d3a86
mov qword [rbp + 0x258], r14
mov qword [rbp + 0x260], 7
mov word [rbp + 0x248], r14w
mov qword [rbp + 0x278], r14
mov qword [rbp + 0x280], 7
mov word [rbp + 0x268], r14w
mov edx, esi
lea rcx, [rbp + 0x290]
call fcn.140029460
nop
nop
xor eax, eax
lock cmpxchg dword [0x1403e3090], esi
test eax, eax
je 0x1400d39ad
cmp eax, 1
jne 0x1400d39cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d3990
call fcn.14002b3e0
mov qword [0x1403e3098], rax
neg rax
sbb ecx, ecx
and ecx, 2
mov eax, esi
lock cmpxchg dword [0x1403e3090], ecx
mov rcx, qword [0x1403e3098]
mov qword [rbp + 0x388], rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x388]
mov dword [rax + 8], 4
mov rax, qword [rbp + 0x388]
mov dword [rax + 0x10], 0xfb
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r12
mov dword [rbp + 0x240], 0xfb
mov r8d, 0x64
mov rdx, r12
lea rcx, [rbp + 0x248]
call fcn.14002b640
mov dword [rbp + 0x288], 4
mov r8d, 0x25
mov rdx, r15
lea rcx, [rbp + 0x268]
call fcn.14002b640
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_Load_user_profile._Error:__d
lea rcx, [rbp - 0x80]
call fcn.1400270c0
nop
mov rdx, rax
lea rcx, [rbp + 0x240]
call fcn.14002be60
nop
lea rcx, [rbp - 0x80]
call fcn.14002ce60
nop
lea rcx, [rbp + 0x240]
call fcn.140028cd0
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x390]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rax, qword [rbp + 0x390]
mov rcx, qword [rbp + 0xde0]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0xef0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret