Function at 0x69642b11
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3fc
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov edx, eax
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov dword [esp], edx
mov eax, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call eax
sub esp, 0xc
test eax, eax
je 0x69642f2b
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], str.eb30cdbe18f480a894fde16de2be7c1be6e626289d2b943eb95ed041fd8b7a0b9e55edf9d961f82af4c5cc4d9605859fc84ffd77a17ee773b0019b7ec5e52fd4acef4fe857eda43f4a78abd5b37151a3dd511f42193457732e960125b50725f2
lea eax, [ebp - 0x3d0]
mov ebx, 0x69649f00
mov edx, 0xe1
mov edi, eax
mov esi, ebx
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3d0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 0x384
call sym._y2Ob5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x42], 0
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3e], 0
mov byte [ebp - 0x3d], 5
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
lea eax, [ebp - 0x42]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call eax
sub esp, 0x2c
test eax, eax
je 0x69642c40
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
call eax
sub esp, 8
test eax, eax
jne 0x69642c7f
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x69642c68
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_FreeSid]
call eax
sub esp, 4
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
call eax
sub esp, 8
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call eax
sub esp, 0x14
test eax, eax
jne 0x69642cc2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x7a
jne 0x69642eba
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x24], eax
jmp 0x69642d0c
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0x81
mov dword [esp], 0x57
call sym._WeEn4c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
add dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0x3e7
ja 0x69642d1b
cmp dword [ebp - 0x24], 0
je 0x69642cd9
cmp dword [ebp - 0x24], 0
jne 0x69642d4d
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x69642d43
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_FreeSid]
call eax
sub esp, 4
mov eax, 0
jmp 0x69642f30
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call eax
sub esp, 0x14
test eax, eax
je 0x69642eaf
mov dword [ebp - 0x28], 0
jmp 0x69642ea1
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*8 + 8]
and eax, 0x10
test eax, eax
je 0x69642e9d
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*8 + 4]
lea edx, [ebp - 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
call eax
sub esp, 8
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_EqualSid]
call eax
sub esp, 8
test eax, eax
jne 0x69642e04
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x69642e86
movzx eax, byte [ebp - 0x19]
xor eax, 1
test al, al
je 0x69642e3d
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x69642e26
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x69642e3d
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_FreeSid]
call eax
sub esp, 4
cmp byte [ebp - 0x19], 0
je 0x69642e5a
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x69642e5a
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x69642e7c
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
mov eax, 1
jmp 0x69642f30
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x69642e9d
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jb 0x69642d8e
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._free
movzx eax, byte [ebp - 0x19]
xor eax, 1
test al, al
je 0x69642ef3
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x69642edc
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_FreeSid]
call eax
sub esp, 4
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x69642ef3
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
cmp byte [ebp - 0x19], 0
je 0x69642f10
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x69642f10
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._free
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret