Function at 0x43b2ad
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb8
mov eax, dword [0x4c3360]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
mov ebx, ecx
mov dword [ebp - 0x44], eax
call fcn.0043b15f
test al, al
jne 0x43b2db
inc al
jmp 0x43b556
push edi
or dword [ebp - 0x38], 0xffffffff
xor edi, edi
lea eax, [ebp - 0x3c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp + 0x68]
push eax
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x3c], edi
mov byte [ebp + 0x68], 0
mov byte [ebp + 0x69], 0
mov byte [ebp + 0x6a], 0
mov byte [ebp + 0x6b], 0
mov byte [ebp + 0x6c], 0
mov byte [ebp + 0x6d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x43b36c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov ecx, dword [0x4c6094]
cmp ecx, 0x4c6094
je 0x43b532
test byte [ecx + 0x1c], 1
je 0x43b532
cmp byte [ecx + 0x19], 2
jb 0x43b532
push eax
push 0x4a3654
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00425267
add esp, 0x14
jmp 0x43b532
push esi
lea eax, [ebp - 0x38]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43b3e0
call esi
cmp eax, 0x3f0
jne 0x43b3ab
lea eax, [ebp - 0x38]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43b3e0
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x4c6094]
cmp ecx, 0x4c6094
je 0x43b531
test byte [ecx + 0x1c], 1
je 0x43b531
cmp byte [ecx + 0x19], 2
jb 0x43b531
push eax
push 0x4a3654
push 0x10
jmp 0x43b432
lea eax, [ebp - 0x40]
push eax
push edi
push edi
push 2
push dword [ebp - 0x38]
mov dword [ebp - 0x40], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43b445
call esi
cmp eax, 0x7a
je 0x43b445
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x4c6094]
cmp ecx, 0x4c6094
je 0x43b531
test byte [ecx + 0x1c], 1
je 0x43b531
cmp byte [ecx + 0x19], 2
jb 0x43b531
push eax
push 0x4a3654
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00425267
add esp, 0x14
jmp 0x43b531
lea ecx, [ebp - 0x30]
call fcn.0043ea68
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.0043eaf1
mov edi, eax
test edi, edi
jne 0x43b4a3
mov dword [ebx + 4], 0xe
mov eax, dword [0x4c6094]
cmp eax, 0x4c6094
je 0x43b527
test byte [eax + 0x1c], 1
je 0x43b527
cmp byte [eax + 0x19], 2
jb 0x43b527
push 0x4a3654
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0042524a
add esp, 0x10
jmp 0x43b527
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push edi
push 2
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43b4f1
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x4c6094]
cmp ecx, 0x4c6094
je 0x43b527
test byte [ecx + 0x1c], 1
je 0x43b527
cmp byte [ecx + 0x19], 2
jb 0x43b527
push eax
push 0x4a3654
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00425267
add esp, 0x14
jmp 0x43b527
xor esi, esi
cmp dword [edi], esi
jbe 0x43b527
lea ebx, [edi + 4]
push dword [ebx]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x43b513
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x43b4fa
jmp 0x43b527
mov eax, dword [edi + esi*8 + 8]
mov ecx, dword [ebp - 0x44]
shr eax, 2
not al
and al, 1
mov byte [ecx], al
mov byte [ebp - 0x31], 1
lea ecx, [ebp - 0x30]
call fcn.0043eae6
xor edi, edi
pop esi
cmp dword [ebp - 0x3c], edi
je 0x43b543
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x38], 0xffffffff
pop edi
je 0x43b553
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop ebx
call fcn.0044fc8e
add ebp, 0x74
leave
ret 4