Function at 0x423300
Capabilities:
Get session user name
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x258
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [0x5c7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx]
mov dword [ecx], 0
test edi, edi
je 0x423338
mov ecx, edi
call fcn.00424320
push edi
call fcn.004f50ae
add esp, 4
lea edi, [ebp - 0x218]
mov dword [edi], 0x101
lea ebx, [ebp - 0x212]
push 0x202
push 0xff
push ebx
call fcn.004f9090
add esp, 0xc
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [ebp - 0x21c], eax
xor ecx, ecx
dec ecx
mov dword [ebp - 0x220], ecx
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x230], xmm0
movdqu xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x248], eax
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x4233a0
mov ecx, dword [esi]
mov dword [ebp - 0x260], esi
lea ebx, [ebp - 0x21c]
lea edi, [ebp - 0x220]
push ebx
push eax
push edi
push eax
push eax
push 4
mov esi, dword [ebp + 0xc]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, 5
jne 0x4233f4
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00422ed0
test al, al
je 0x4233f8
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4233e1
mov eax, dword [esi]
xor ecx, ecx
push ebx
push ecx
push edi
push ecx
push ecx
push 4
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x423435
xor ebx, ebx
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x42340b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x42341c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5620
mov eax, ebx
add esp, 0x258
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x244]
push eax
push ecx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x4233f8
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x4234bf
mov esi, dword [ebp + 0x10]
not esi
xor edi, edi
xor ebx, ebx
jmp 0x42347f
mov eax, dword [ebp - 0x248]
and dword [eax + edi], esi
mov eax, dword [ebp - 0x244]
inc ebx
add edi, 0x20
cmp ebx, eax
jae 0x4234bf
mov ecx, dword [ebp - 0x248]
cmp dword [ecx + edi + 4], 3
jne 0x423477
cmp dword [ecx + edi + 0x14], 0
jne 0x423477
mov dword [ebp - 0x25c], 0xffffffff
lea eax, [ebp - 0x25c]
push eax
push dword [ecx + edi + 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x423471
cmp dword [ebp - 0x25c], 0
jne 0x423468
jmp 0x423471
xor edi, edi
inc edi
lea ebx, [ebp - 0x240]
push 3
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x212]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
xor eax, eax
lea ecx, [ebp - 0x24c]
mov dword [ecx], eax
mov dword [ebp - 0x250], eax
push ecx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x423525
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x42350b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x4233f8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4233f8
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x24c]
push dword [ebp - 0x248]
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x4234fa
mov edi, dword [ebp - 0x250]
lea ebx, [ebp - 0x25c]
mov ecx, ebx
mov edx, dword [ebp + 8]
call fcn.00423250
xor eax, eax
push eax
push edi
push eax
push eax
push 4
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
mov eax, dword [ebx]
test eax, eax
mov edi, dword [ebp + 0x18]
je 0x42359f
mov ecx, dword [ebp - 0x258]
cmp ecx, eax
je 0x423590
add ecx, 0xfffffffe
jne 0x423582
jmp 0x423718
mov dword [ebp - 0x258], eax
push eax
call fcn.004f50ae
add esp, 4
cmp esi, 5
jne 0x4235e3
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00422ed0
mov esi, 5
test al, al
je 0x4235e3
jmp 0x4236ac
cmp ecx, eax
je 0x4235cb
add ecx, 0xfffffffe
jne 0x4235bd
jmp 0x423718
mov dword [ebp - 0x258], eax
push eax
call fcn.004f50ae
add esp, 4
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x4235f4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov cl, byte [ebp + 0x14]
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x42360c
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebx
test esi, esi
sete bl
setne al
or al, cl
jne 0x4233fa
push 0x18
call fcn.004f507e
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00424300
mov ebx, dword [edi]
mov dword [edi], esi
test ebx, ebx
je 0x423649
mov ecx, ebx
call fcn.00424320
push ebx
call fcn.004f50ae
add esp, 4
mov esi, dword [edi]
mov edx, dword [ebp + 8]
cmp esi, edx
je 0x42366e
cmp byte [esi + 0xb], 0
movzx eax, byte [edx + 0xb]
js 0x4236f0
test al, al
jns 0x42369c
mov ecx, esi
push dword [edx + 4]
push dword [edx]
call fcn.00439cd0
mov eax, dword [ebp - 0x220]
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x21c]
mov dword [eax + 0x14], edx
mov dword [ebp - 0x21c], ecx
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov bl, 1
jmp 0x4233fa
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
movq xmm0, qword [edx]
movq qword [esi], xmm0
jmp 0x42366e
mov edi, dword [ebp - 0x250]
lea ebx, [ebp - 0x25c]
mov ecx, ebx
mov edx, dword [ebp + 8]
call fcn.00423250
xor eax, eax
push eax
push edi
push eax
push eax
push 4
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [ebp - 0x264], eax
mov eax, dword [ebx]
test eax, eax
je 0x4235da
mov ecx, dword [ebp - 0x258]
jmp 0x4235bd
test al, al
jns 0x423702
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x260], ecx
mov ecx, esi
push eax
push dword [ebp - 0x260]
call fcn.00439c00
mov edi, dword [ebp + 0x18]
jmp 0x42366e
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
push 0x59f83f
call fcn.00526860
int3