Function at 0x1004f3b0
Capabilities:
Compare security identifiers
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0x50], eax
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
cmp dword [ebp + 0xc], 1
mov dword [esp + 0x48], ecx
lea edi, [esp + 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosd dword es:[edi], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], 0x120089
mov dword [esp + 0x3c], 0x120116
mov dword [esp + 0x40], 0x1200a0
mov dword [esp + 0x44], 0x1f01ff
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], ecx
mov edi, ecx
mov dword [esp + 0xc], esi
je 0x103b1dd0
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f42d
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 2
jb 0x1004f4c6
movsx eax, byte [ebx]
push eax
call dword [sym.imp.MSVCR110.dll_isalpha]
pop ecx
test eax, eax
je 0x1004f49e
cmp byte [ebx + 1], 0x3a
jne 0x1004f49e
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.MSVCR110.dll__access]
pop ecx
pop ecx
test eax, eax
jne 0x1004f48c
cmp dword [ebp + 0xc], edi
jne 0x1004f4f0
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10311bec
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
call dword [sym.imp.MSVCR110.dll__errno]
mov eax, dword [eax]
jmp 0x1004f47a
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f4a3
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 2
jb 0x1004f4c6
mov al, byte [ebx]
cmp al, 0x2f
je 0x103b1de8
cmp al, 0x5c
je 0x103b1de8
push 0x104
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x18], esi
call sym.php5.dll_tsrm_realpath
add esp, 0xc
test eax, eax
je 0x1004f757
mov ebx, esi
jmp 0x1004f457
lea eax, [esp + 0x18]
push eax
push 1
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x103b1e00
mov ecx, dword [esp + 0x18]
call fcn.10051260
mov esi, eax
mov eax, dword [0x106606f0]
test esi, esi
je 0x103b1e3f
test eax, eax
je 0x1004f7dd
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x103b1e56
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
cmp dword [0x10667d8c], edi
je 0x1004f692
push 0
call dword [sym.imp.MSVCR110.dll__time32]
mov dword [esp + 0x2c], eax
mov eax, ebx
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004f567
sub eax, edx
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.1004e040
mov edx, eax
mov ecx, edx
mov edi, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f584
sub ecx, esi
add ecx, edx
mov eax, 0x811c9dc5
mov dword [esp + 0x24], eax
test edx, edx
je 0x1004f801
mov esi, eax
cmp edx, ecx
jae 0x1004f5b6
movsx eax, byte [edi]
imul esi, esi, 0x1000193
xor esi, eax
inc edi
cmp edi, ecx
jb 0x1004f5a6
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
and eax, 0x3ff
lea edi, [eax*4 + 0x10667d94]
cmp dword [edi], 0
jne 0x103b1e70
xor edi, edi
mov esi, dword [esp + 0xc]
test edi, edi
jne 0x1004f696
test esi, esi
jne 0x1004f696
push 0x104
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x18], esi
call sym.php5.dll_tsrm_realpath
add esp, 0xc
test eax, eax
je 0x1004f696
mov ecx, esi
mov ebx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f61d
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, esi
call fcn.1004e040
mov edx, eax
mov ecx, edx
mov esi, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f63a
sub ecx, edi
add ecx, edx
test edx, edx
je 0x1004f808
mov edi, 0x811c9dc5
cmp edx, ecx
jae 0x1004f66a
movsx eax, byte [esi]
imul edi, edi, 0x1000193
xor edi, eax
inc esi
cmp esi, ecx
jb 0x1004f656
mov dword [esp + 0x24], edi
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and edi, 0x3ff
lea edi, [edi*4 + 0x10667d94]
cmp dword [edi], 0
jne 0x1004f794
xor edi, edi
mov esi, dword [esp + 0xc]
cmp dword [ebp + 0xc], 6
jg 0x103b1f7d
cmp dword [ebp + 0xc], 2
jg 0x1004f7c2
test edi, edi
jne 0x103b1f3d
mov dword [esp + 0x14], 0x120116
cmp dword [0x106606ec], 0
je 0x1004f757
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 7
push ebx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
jne 0x1004f757
push dword [esp + 0x20]
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1004f753
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x24]
push esi
push 7
push ebx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
je 0x1004f753
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x28]
push dword [0x106606ec]
push esi
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x1004f74b
test edi, edi
jne 0x103b1fa1
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
mov esi, dword [esp + 0xc]
cmp dword [esp + 0x18], 0
je 0x1004f768
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1004f774
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
cmp dword [esp + 0x10], 0
jne 0x1004f478
mov esi, dword [sym.imp.MSVCR110.dll__errno]
call esi
mov dword [eax], 0xd
call esi
jmp 0x1004f49a
cmp dword [0x10667d90], 0
je 0x1004f7ac
mov ecx, dword [edi]
mov eax, dword [esp + 0x28]
cmp dword [ecx + 0x18], eax
jl 0x103b1ee3
mov esi, dword [edi]
mov eax, dword [esp + 0x24]
cmp eax, dword [esi]
je 0x103b1f11
lea edi, [esi + 0x20]
jmp 0x1004f687
cmp dword [ebp + 0xc], 4
jg 0x103b1f4d
test edi, edi
jne 0x1004f813
mov dword [esp + 0x14], 0x2120089
jmp 0x1004f6ba
push 0x106606ec
push 2
push dword [esp + 0x20]
mov dword [0x106606f0], esi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x1004f549
jmp 0x1004f753
xor esi, esi
jmp 0x1004f5c6
xor edi, edi
mov dword [esp + 0x24], edi
jmp 0x1004f67a
cmp byte [edi + 0x1c], 0
jne 0x103b1f87
jmp 0x1004f7d0
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x1004f47a
mov al, byte [ebx + 1]
cmp al, 0x2f
je 0x1004f457
cmp al, 0x5c
je 0x1004f457
jmp 0x1004f4c6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
cmp eax, 0x3f0
jne 0x1004f511
lea eax, [esp + 0x18]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1004f511
and dword [0x106606ec], edi
jmp 0x1004f753
test eax, eax
je 0x103b1e4b
push eax
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
and dword [0x106606f0], edi
jmp 0x1004f753
mov eax, dword [0x106606f0]
test eax, eax
je 0x1004f7dd
push eax
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x1004f7dd
cmp dword [0x10667d90], 0
je 0x103b1eb2
mov ecx, dword [edi]
mov eax, dword [esp + 0x28]
cmp dword [ecx + 0x18], eax
jge 0x103b1eb2
mov eax, dword [ecx + 0x20]
mov dword [edi], eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jne 0x103b1e96
push 0xffffffffffffffdb
pop eax
jmp 0x103b1e9c
push 0xffffffffffffffda
pop eax
sub eax, dword [ecx + 0x10]
sub eax, dword [ecx + 8]
push ecx
add dword [0x10667d88], eax
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x1004f5d4
mov ecx, dword [edi]
cmp esi, dword [ecx]
jne 0x103b1ed4
mov eax, dword [esp + 0x30]
cmp eax, dword [ecx + 8]
jne 0x103b1ed4
push eax
push dword [ecx + 4]
push ebx
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
je 0x103b1edc
mov ecx, dword [edi]
lea edi, [ecx + 0x20]
jmp 0x1004f5d4
mov edi, dword [edi]
jmp 0x1004f5df
mov eax, dword [ecx + 0x20]
mov dword [edi], eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jne 0x103b1ef5
push 0xffffffffffffffdb
pop eax
jmp 0x103b1efb
push 0xffffffffffffffda
pop eax
sub eax, dword [ecx + 0x10]
sub eax, dword [ecx + 8]
push ecx
add dword [0x10667d88], eax
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
jmp 0x1004f687
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 8]
jne 0x1004f7ba
push eax
push dword [esi + 4]
push dword [esp + 0x14]
call sub.MSVCR110.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1004f7ba
mov edi, esi
jmp 0x1004f692
cmp byte [edi + 0x1e], 0
je 0x1004f6b2
movzx eax, byte [edi + 0x1f]
jmp 0x103b1f8b
test edi, edi
je 0x103b1f70
cmp byte [edi + 0x1c], 0
je 0x103b1f70
cmp byte [edi + 0x1e], 0
je 0x103b1f70
movzx ecx, byte [edi + 0x1f]
movzx eax, byte [edi + 0x1d]
and ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x1004f757
mov dword [esp + 0x14], 0x12019f
jmp 0x1004f6ba
test edi, edi
je 0x103b1f94
cmp byte [edi + 0x1c], 0
je 0x103b1f94
movzx eax, byte [edi + 0x1d]
mov dword [esp + 0x10], eax
jmp 0x1004f757
mov dword [esp + 0x14], 0x120089
jmp 0x1004f6ba
cmp dword [esp + 0x14], 0x2120089
jne 0x103b1fbb
mov byte [edi + 0x1c], 1
mov al, byte [esp + 0x10]
mov byte [edi + 0x1d], al
jmp 0x1004f74b
cmp dword [esp + 0x14], 0x120116
je 0x103b1fde
cmp dword [esp + 0x14], 0x12019f
jne 0x1004f74b
mov byte [edi + 0x1c], 1
mov al, byte [esp + 0x10]
mov byte [edi + 0x1d], al
mov byte [edi + 0x1e], 1
mov al, byte [esp + 0x10]
mov byte [edi + 0x1f], al
jmp 0x1004f74b