Function at 0x449330
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x158
mov eax, dword [0x48e070]
push ebp
lea ecx, [esp + 0x90]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x18], ecx
xor ebp, ebp
lea ecx, [esp + 8]
mov dword [eax], ebp
push ecx
lea edx, [esp + 0x30]
lea eax, [esp + 0xf8]
push 8
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 0
mov byte [esp + 0x2e], 0
mov byte [esp + 0x2f], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x31], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4493bc
xor al, al
pop ebp
mov ecx, dword [esp + 0x154]
call fcn.004664a7
add esp, 0x158
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0xc]
push edx
push eax
push ebp
push 2
push ecx
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x449401
call ebx
cmp eax, 0x7a
je 0x449401
pop esi
pop ebx
xor al, al
pop ebp
mov ecx, dword [esp + 0x154]
call fcn.004664a7
add esp, 0x158
ret
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edx
push 0x40
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push 2
push eax
call esi
test eax, eax
jne 0x449446
pop edi
pop esi
pop ebx
xor al, al
pop ebp
mov ecx, dword [esp + 0x154]
call fcn.004664a7
add esp, 0x158
ret
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebp
push 1
push edx
mov dword [esp + 0x24], ebp
call esi
test eax, eax
jne 0x449465
call ebx
cmp eax, 0x7a
jne 0x44942d
mov eax, dword [esp + 0x10]
push eax
push 0x40
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push edx
push edi
push 1
push eax
mov dword [esp + 0x40], edi
call esi
test eax, eax
je 0x44942d
push 0x1f4
call fcn.00449210
add esp, 4
cmp eax, ebp
mov dword [esp + 0x28], eax
je 0x44942d
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x220
push 0x20
push 2
lea edx, [esp + 0x58]
push edx
call esi
test eax, eax
je 0x44942d
lea eax, [esp + 0x18]
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x223
push 0x20
push 2
lea ecx, [esp + 0x58]
push ecx
call esi
test eax, eax
je 0x44942d
lea edx, [esp + 0x1c]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x221
push 0x20
push 2
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
je 0x44942d
mov ecx, dword [edi]
mov edx, dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
push ecx
push edx
xor bl, bl
call ebp
test eax, eax
je 0x449535
mov eax, dword [esp + 0x16c]
mov dword [eax], 2
jmp 0x4495a9
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
xor edi, edi
test eax, eax
jbe 0x4495ab
add esi, 4
mov ecx, dword [esi]
mov edx, dword [esp + 0x24]
push ecx
push edx
call ebp
test eax, eax
jne 0x44957e
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call ebp
test eax, eax
jne 0x44958d
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
push edx
push eax
call ebp
test eax, eax
jne 0x44959c
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
inc edi
add esi, 8
cmp edi, eax
jb 0x449544
jmp 0x4495ab
mov edx, dword [esp + 0x16c]
mov dword [edx], 1
jmp 0x4495a9
mov eax, dword [esp + 0x16c]
mov dword [eax], 1
jmp 0x4495a9
mov ecx, dword [esp + 0x16c]
mov dword [ecx], 0
mov bl, 1
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x4495bc
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4495c7
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x4495d8
push eax
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
jne 0x449604
mov ecx, dword [esp + 0x16c]
mov dword [ecx], 0
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
call fcn.004664a7
add esp, 0x158
ret