Function at 0x50e484
Capabilities:
Create pipe
Get token privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55cd8d
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
xor edi, edi
push 8
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x50e593
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.004036c8
mov esi, eax
push str.OpenProcessToken_failed_with
push esi
mov dword [esp + 0x230], edi
call fcn.00405d7d
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.0041056c
lea eax, [esp + 0x1e0]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x228], 1
cmp dword [esp + 0x1f4], 8
mov eax, dword [esp + 0x1e0]
jae 0x50e54e
lea eax, [esp + 0x1e0]
xor ecx, ecx
push eax
inc ecx
call fcn.00492b4d
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x1e4]
call fcn.00404145
or dword [esp + 0x228], 0xffffffff
lea eax, [esp + 0x94]
call fcn.00402669
push str.OpenProcessToken_failed
push 1
push dword [ebx - 0x50]
call fcn.005065e6
add esp, 0xc
jmp 0x50ecd5
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], esi
lea eax, [esp + 0x20]
push eax
push edi
push edi
push 1
mov dword [esp + 0x238], 2
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x50ecab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x50ecab
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1e0]
mov dword [esp + 0x1e0], edi
mov dword [esp + 0x1e4], edi
mov dword [esp + 0x1e8], edi
call fcn.0042c3df
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x22c], 3
push dword [esp + 0x24]
xor esi, esi
push dword [esp + 0x1e8]
inc esi
push esi
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x50e6fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.004036c8
mov edi, eax
push str.GetTokenInformation_failed_with
push edi
mov byte [esp + 0x230], 4
call fcn.00405d7d
pop ecx
pop ecx
push dword [esp + 0x14]
push edi
call fcn.0041056c
lea eax, [esp + 0x1c4]
push eax
mov eax, edi
call fcn.00403732
mov byte [esp + 0x228], 5
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50e68b
lea eax, [esp + 0x1c4]
push eax
mov ecx, esi
call fcn.00492b4d
pop ecx
push esi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404145
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 3
call fcn.00402669
push str.GetTokenInformation_failed
push 1
push dword [ebx - 0x50]
call fcn.005065e6
add esp, 0xc
lea esi, [esp + 0x1e0]
call fcn.00426e9d
or dword [esp + 0x228], 0xffffffff
cmp dword [esp + 0x10], edi
je 0x50ecd5
cmp dword [esp + 0x10], 0xffffffff
je 0x50ecd5
push dword [esp + 0x10]
jmp 0x50eccf
lea eax, [esp + 0x2c]
push eax
push str.S_1_5_18
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x50e7b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.004036c8
mov edi, eax
push str.ConvertStringSidToSidW_failed_with
push edi
mov byte [esp + 0x230], 6
call fcn.00405d7d
pop ecx
pop ecx
push dword [esp + 0x14]
push edi
call fcn.0041056c
lea eax, [esp + 0x1c4]
push eax
mov eax, edi
call fcn.00403732
mov byte [esp + 0x228], 7
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50e77e
lea eax, [esp + 0x1c4]
push eax
mov ecx, esi
call fcn.00492b4d
pop ecx
push esi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404145
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 3
call fcn.00402669
push str.ConvertStringSidToSidW_failed
jmp 0x50e6bc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
push 0x40
lea eax, [esp + 0x58]
push edi
push eax
mov byte [esp + 0x234], 8
call fcn.00517e90
mov edx, dword [esp + 0x1ec]
add esp, 0xc
push 2
pop eax
mov ecx, 0xc0000000
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
mov edx, dword [edx]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x30]
push ecx
push edi
lea ecx, [esp + 0x5c]
push ecx
push eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x50e883
push str.SetEntriesInAcl_failed
push esi
push dword [ebx - 0x50]
call fcn.005065e6
add esp, 0xc
mov byte [esp + 0x228], 3
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x50e6c9
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x228], 9
xor eax, eax
mov byte [esp + 0x40], 0
lea edi, [esp + 0x41]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
inc edi
push edi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x50e988
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.004036c8
mov esi, eax
push str.InitializeSecurityDescriptor_failed_with
push esi
mov byte [esp + 0x230], 0xa
call fcn.00405d7d
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.0041056c
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x228], 0xb
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50e923
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.00492b4d
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404145
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.00402669
push str.InitializeSecurityDescriptor_failed
push 1
push dword [ebx - 0x50]
call fcn.005065e6
add esp, 0xc
mov byte [esp + 0x228], 8
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov byte [esp + 0x228], 3
push dword [esp + 0x18]
call esi
jmp 0x50e6c9
xor esi, esi
push esi
push dword [esp + 0x34]
lea eax, [esp + 0x48]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x50ea40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.004036c8
mov esi, eax
push str.SetSecurityDescriptorDacl_failed_with
push esi
mov byte [esp + 0x230], 0xc
call fcn.00405d7d
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.0041056c
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x228], 0xd
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50ea0a
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.00492b4d
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404145
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.00402669
push str.SetSecurityDescriptorDacl_failed
jmp 0x50e954
mov eax, dword [esp + 0x1e0]
push esi
push dword [eax]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
jne 0x50eafa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.004036c8
mov esi, eax
push str.SetSecurityDescriptorOwner_failed_with
push esi
mov byte [esp + 0x230], 0xe
call fcn.00405d7d
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.0041056c
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x228], 0xf
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50eac4
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.00492b4d
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404145
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.00402669
push str.SetSecurityDescriptorOwner_failed
jmp 0x50e954
lea eax, [esp + 0x40]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1fc]
push eax
lea eax, [ebx - 0x8c]
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], esi
call fcn.0050d965
mov byte [esp + 0x228], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x50eb33
mov ecx, dword [eax]
jmp 0x50eb35
mov ecx, eax
lea eax, [esp + 0x34]
push eax
push esi
mov eax, 0x1000
push eax
push eax
push edi
push 6
push 0x40080003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea esi, [esp + 0x18]
call fcn.0050edb8
pop ecx
push 0
push edi
lea ecx, [esp + 0x204]
mov byte [esp + 0x230], 0x12
call fcn.00403ff6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x50eb8e
cmp ecx, 0xffffffff
jne 0x50ec50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x12c]
push eax
call fcn.004036c8
mov esi, eax
push str.CreateNamedPipe_failed_with
push esi
mov byte [esp + 0x230], 0x13
call fcn.00405d7d
pop ecx
pop ecx
push dword [esp + 0x24]
push esi
call fcn.0041056c
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x228], 0x14
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x50ebf5
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.00492b4d
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404145
lea eax, [esp + 0x12c]
mov byte [esp + 0x228], 0x12
call fcn.00402669
push str.CreateNamedPipe_failed
push 1
push dword [ebx - 0x50]
call fcn.005065e6
mov byte [esp + 0x234], 9
mov esi, dword [esp + 0x20]
add esp, 0xc
call fcn.004594db
push esi
call fcn.00515a19
pop ecx
jmp 0x50e961
mov dword [ebx + 8], eax
mov eax, dword [ebx - 0x50]
mov byte [esp + 0x228], 8
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx + 0x14], eax
call esi
mov byte [esp + 0x228], 3
push dword [esp + 0x18]
call esi
lea esi, [esp + 0x1e0]
call fcn.00426e9d
or dword [esp + 0x228], 0xffffffff
cmp dword [esp + 0x10], 0
je 0x50eca7
cmp dword [esp + 0x10], 0xffffffff
je 0x50eca7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x50ecd7
push str.GetTokenInformation_misbehaves...
push 1
push dword [ebx - 0x50]
call fcn.005065e6
or dword [esp + 0x234], 0xffffffff
add esp, 0xc
cmp esi, edi
je 0x50ecd5
cmp esi, 0xffffffff
je 0x50ecd5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0051497f
mov esp, ebp
pop ebp
ret