Function at 0x434fa0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x4713e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x42c], 0x10000
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x458], 1
mov byte [ebp - 0x40c], 0
mov byte [ebp - 0x40b], 0
mov byte [ebp - 0x40a], 0
mov byte [ebp - 0x409], 0
mov byte [ebp - 0x408], 0
mov byte [ebp - 0x407], 5
lea eax, [ebp - 0x41c]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x435062
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x43505b
lea ecx, [ebp - 0x41c]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x435059
xor eax, eax
jmp 0x435445
jmp 0x435062
xor eax, eax
jmp 0x435445
lea edx, [ebp - 0x43c]
push edx
push 0
push 0
push 1
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x435087
xor eax, eax
jmp 0x435445
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x435099
xor eax, eax
jmp 0x435445
mov eax, dword [ebp - 0x43c]
call fcn.0043f130
mov dword [ebp - 0x454], esp
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x424], ecx
cmp dword [ebp - 0x424], 0
jne 0x4350c6
xor eax, eax
jmp 0x435445
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x424]
push ecx
push 1
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4350f5
xor eax, eax
jmp 0x435445
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x44c], 0x200
lea edx, [ebp - 0x44c]
push edx
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.00434680
add esp, 0xc
test eax, eax
je 0x4351a9
lea edx, [ebp - 0x204]
push edx
push str.Process_running_as_SID__s_r_n
call fcn.004145f0
add esp, 8
push 0x200
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0x58747e
call fcn.00434860
add esp, 0x10
test eax, eax
jne 0x435195
mov edx, 1
imul eax, edx, 0
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0x200
jae 0x435182
jmp 0x435187
call fcn.0043920a
mov ecx, dword [ebp - 0x434]
mov byte [ebp + ecx - 0x404], 0
lea edx, [ebp - 0x404]
push edx
push str.Process_running_as_NAME__s_r_n
call fcn.004145f0
add esp, 8
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 2
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4351ce
xor eax, eax
jmp 0x435445
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4351e0
xor eax, eax
jmp 0x435445
mov eax, dword [ebp - 0x420]
call fcn.0043f130
mov dword [ebp - 0x450], esp
mov edx, dword [ebp - 0x450]
mov dword [ebp - 0x418], edx
cmp dword [ebp - 0x418], 0
jne 0x43520d
xor eax, eax
jmp 0x435445
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x418]
push edx
push 2
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43523c
xor eax, eax
jmp 0x435445
lea ecx, [ebp - 0x444]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x435270
xor eax, eax
jmp 0x435445
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x428], 0
jmp 0x435295
mov eax, dword [ebp - 0x428]
add eax, 1
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x428]
cmp edx, dword [ecx]
jae 0x4353c8
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x418]
mov edx, dword [ecx + eax*8 + 4]
mov dword [ebp - 0x410], edx
mov eax, dword [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4352ee
mov dword [ebp - 0x414], 1
push str.User_is_member_of_Admin_Group_r_n
call fcn.004145f0
add esp, 4
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ecx, byte [eax]
mov dword [ebp - 0x448], ecx
cmp dword [ebp - 0x448], 1
jne 0x4353c3
mov edx, 1
imul eax, edx, 5
mov ecx, dword [ebp - 0x430]
movzx edx, byte [ecx + eax]
mov eax, 1
shl eax, 2
mov ecx, dword [ebp - 0x430]
movzx eax, byte [ecx + eax]
shl eax, 8
add edx, eax
mov ecx, 1
imul eax, ecx, 3
mov ecx, dword [ebp - 0x430]
movzx eax, byte [ecx + eax]
shl eax, 0x10
add edx, eax
mov ecx, 1
shl ecx, 1
mov eax, dword [ebp - 0x430]
movzx ecx, byte [eax + ecx]
shl ecx, 0x18
add edx, ecx
cmp edx, 0x10
jne 0x4353c3
push 0
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [ebp - 0x42c]
cmp ecx, dword [eax]
jbe 0x4353c3
push 0
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
push ecx
push str.User_has_IntegrityLevel__u_r_n
call fcn.004145f0
add esp, 8
jmp 0x435286
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x414], 0
je 0x4353f6
cmp dword [ebp - 0x42c], 0x3000
jb 0x4353f6
mov dword [ebp - 0x440], 1
jmp 0x435400
mov dword [ebp - 0x440], 0
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x435421
mov dword [ebp - 0x438], str.Admin
jmp 0x43542b
mov dword [ebp - 0x438], str.not_Admin
mov ecx, dword [ebp - 0x438]
push ecx
push str.User_is__s_r_n
call fcn.004145f0
add esp, 8
mov eax, dword [ebp - 0x414]
lea esp, [ebp - 0x458]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439b24
mov esp, ebp
pop ebp
ret