Function at 0x1000e430
Capabilities:
Acquire debug privileges
Compare security identifiers
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push str.SeTcbPrivilege
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
call esi
mov ecx, eax
lea eax, [ebp + 1]
call fcn.1000cb10
add esp, 4
push str.SeDebugPrivilege
call esi
mov ecx, eax
lea eax, [ebp + 1]
call fcn.1000cb10
add esp, 4
push str.SeCreateTokenPrivilege
call esi
mov ecx, eax
lea eax, [ebp + 1]
call fcn.1000cb10
mov ebx, dword [esp + 0x78]
add esp, 4
lea edi, [ebp + 0xa]
call fcn.1000e3c0
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x44], eax
jne 0x1000e504
call esi
push eax
push str.GetInfoFromToken_pTokenStat_Error__0x
push 0x3df
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenStat_Error__0x
push 0x3df
jmp 0x1000eb82
mov edi, 1
call fcn.1000e3c0
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x1000e548
call esi
push eax
push str.GetInfoFromToken_pTokenUser_Error__0x
push 0x3e6
push str..Cutil_Process.c
push edi
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenUser_Error__0x
push 0x3e6
jmp 0x1000eb82
mov edi, 2
call fcn.1000e3c0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x1000e58f
call esi
push eax
push str.GetInfoFromToken_pTokenGroupsUser_Error__0x
push 0x3ed
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenGroupsUser_Error__0x
push 0x3ed
jmp 0x1000eb82
mov ebx, dword [esp + 0x70]
call fcn.1000e3c0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x1000e5d5
call esi
push eax
push str.GetInfoFromToken_pTokenGroupsSystem_Error__0x
push 0x3f4
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenGroupsSystem_Error__0x
push 0x3f4
jmp 0x1000eb82
mov eax, dword [ebx]
add eax, dword [ebp]
lea ecx, [eax*8 + 0xc]
push ecx
call fcn.10018786
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x1000e632
push str.malloc_pTokenGroups_Error
push 0x416
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
push str.malloc_pTokenGroups_Error
push 0x416
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000bb50
add esp, 0x20
jmp 0x1000eb96
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
lea ecx, [edx*8 + 0xc]
push ecx
push eax
push ebp
call fcn.10022400
add esp, 0xc
cmp dword [ebx], 0
mov dword [esp + 0x20], 0
jbe 0x1000e6d4
lea edi, [ebx + 8]
lea ebx, [ebx]
test byte [edi], 0x28
je 0x1000e6c2
xor ebx, ebx
cmp dword [ebp], ebx
jbe 0x1000e6aa
add ebp, 8
nop
test byte [edi], 8
je 0x1000e68b
mov edx, dword [edi - 4]
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1000e71d
mov eax, dword [edi]
test al, 0x20
je 0x1000e69a
cmp dword [ebp], eax
je 0x1000e71d
mov ecx, dword [esp + 0x10]
add ebx, 1
add ebp, 8
cmp ebx, dword [ecx]
jb 0x1000e670
mov ebp, ecx
mov eax, dword [ebp]
mov edx, dword [edi - 4]
mov dword [ebp + eax*8 + 4], edx
mov ecx, dword [edi]
mov dword [ebp + eax*8 + 8], ecx
add dword [ebp], 1
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, 1
add edi, 8
cmp eax, dword [ebx]
mov dword [esp + 0x20], eax
jb 0x1000e660
mov ebx, dword [esp + 0x70]
mov edi, 3
call fcn.1000e3c0
test eax, eax
mov dword [esp + 0x20], eax
jne 0x1000e732
call esi
push eax
push str.GetInfoFromToken_pTokenPrivileges_Error__0x
push 0x44a
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenPrivileges_Error__0x
push 0x44a
jmp 0x1000eb82
mov eax, dword [esp + 0x10]
mov edx, dword [edi - 4]
mov dword [eax + ebx*8 + 4], edx
mov ecx, dword [edi]
mov dword [eax + ebx*8 + 8], ecx
mov ebp, eax
jmp 0x1000e6be
mov ebx, dword [esp + 0x74]
mov edi, 4
call fcn.1000e3c0
test eax, eax
mov dword [esp + 0x24], eax
jne 0x1000e77b
call esi
push eax
push str.GetInfoFromToken_pTokenOwner_Error__0x
push 0x451
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenOwner_Error__0x
push 0x451
jmp 0x1000eb82
mov edi, 5
call fcn.1000e3c0
test eax, eax
mov dword [esp + 0x28], eax
jne 0x1000e7c0
call esi
push eax
push str.GetInfoFromToken_pTokenPrimaryGroup_Error__0x
push 0x458
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenPrimaryGroup_Error__0x
push 0x458
jmp 0x1000eb82
mov edi, 6
call fcn.1000e3c0
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x1000e805
call esi
push eax
push str.GetInfoFromToken_pTokenDefaultDacl_Error__0x
push 0x45f
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenDefaultDacl_Error__0x
push 0x45f
jmp 0x1000eb82
mov edi, 7
call fcn.1000e3c0
test eax, eax
mov dword [esp + 0x30], eax
jne 0x1000e84a
call esi
push eax
push str.GetInfoFromToken_pTokenSource_Error__0x
push 0x466
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetInfoFromToken_pTokenSource_Error__0x
push 0x466
jmp 0x1000eb82
lea edx, [esp + 0x4c]
push edx
push 4
lea eax, [esp + 0x48]
push eax
push 0xc
mov ecx, ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1000e898
call esi
push eax
push str.GetTokenInformation_hTokenUser_Error__0x
push 0x46c
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.GetTokenInformation_hTokenUser_Error__0x
push 0x46c
jmp 0x1000eb82
push str.NtCreateToken
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x1000e8e8
call esi
push eax
push str.LoadNativeApi_NtCreateToken_Error__0x
push 0x473
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.LoadNativeApi_NtCreateToken_Error__0x
push 0x473
jmp 0x1000eb82
mov edi, str.LSASS.exe
call fcn.1000d060
mov edi, eax
test edi, edi
jne 0x1000e92b
call esi
push eax
push str.cutil_process_get_id_by_name_LSASS.exe_Error__0x
push 0x47b
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.cutil_process_get_id_by_name_LSASS.exe_Error__0x
push 0x47b
jmp 0x1000eb82
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esp + 0x48], eax
jne 0x1000e98a
call esi
push eax
push edi
push str.OpenProcess__d_Error__0x
push 0x482
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x18
call esi
push eax
push edi
push str.OpenProcess__d_Error__0x
push 0x482
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000bb50
add esp, 0x18
jmp 0x1000eb96
lea edx, [esp + 0x34]
push edx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000e9d2
call esi
push eax
push str.OpenProcessToken_LSASS_Error__0x
push 0x488
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.OpenProcessToken_LSASS_Error__0x
push 0x488
jmp 0x1000eb82
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
push 1
push 2
xor edi, edi
push edi
push 0xf01ff
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1000ea25
call esi
push eax
push str.DuplicateTokenEx_LSASS_Error__0x
push 0x48e
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.DuplicateTokenEx_LSASS_Error__0x
push 0x48e
jmp 0x1000eb82
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000ea67
call esi
push eax
push str.ImpersonateLoggedOnUser_Error__0x
push 0x494
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
call esi
push eax
push str.ImpersonateLoggedOnUser_Error__0x
push 0x494
jmp 0x1000eb82
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x54]
push ecx
push ebp
push edx
lea ecx, [eax + 0x10]
push ecx
lea edx, [eax + 8]
push edx
mov dword [esp + 0x74], 0x18
mov dword [esp + 0x78], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov eax, dword [eax + 0x18]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0xf01ff
lea edx, [esp + 0x6c]
push edx
call ebx
mov edi, eax
test edi, edi
jge 0x1000eb2f
push str.RtlNtStatusToDosError
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000eaf1
xor edi, edi
jmp 0x1000eaf6
push edi
call eax
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push str.NtCreateToken_Error__0x
push 0x4ae
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
push edi
push str.NtCreateToken_Error__0x
push 0x4ae
jmp 0x1000eb82
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [esp + 0x3c]
push 4
lea eax, [esp + 0x44]
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1000eb96
call esi
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push str.SetTokenInformation_TokenSessionId_Error__0x
push 0x4bf
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000be40
add esp, 0x14
push edi
push str.SetTokenInformation_TokenSessionId_Error__0x
push 0x4bf
push str..Cutil_Process.c
push 1
mov ecx, str.cutil_process_create_union_token
call fcn.1000bb50
add esp, 0x14
call esi
mov edi, eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1000ebab
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000ebbc
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000ebcd
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000ebde
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000ebef
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000ec00
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000ec11
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000ec22
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1000ec33
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000ec44
push eax
call fcn.100186a9
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000ec55
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1000ec60
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1000ec6b
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret