Function at 0x4f1cf6
Capabilities:
Create pipe
Get token privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a430f
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
xor edi, edi
push 8
mov ebx, ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4f1e05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403aba
mov esi, eax
push str.OpenProcessToken_failed_with
push esi
mov dword [esp + 0x230], edi
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.004109e7
lea eax, [esp + 0x1e0]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x228], 1
cmp dword [esp + 0x1f4], 8
mov eax, dword [esp + 0x1e0]
jae 0x4f1dc0
lea eax, [esp + 0x1e0]
xor ecx, ecx
push eax
inc ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x1e4]
call fcn.00404589
or dword [esp + 0x228], 0xffffffff
lea eax, [esp + 0x94]
call fcn.004027ed
push str.OpenProcessToken_failed
push 1
push dword [ebx - 0x50]
call fcn.004e9b93
add esp, 0xc
jmp 0x4f2561
mov esi, dword [esp + 0x2c]
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 0x4f2537
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4f2537
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.0042b9f3
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 + 0x3c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4f1f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403aba
mov edi, eax
push str.GetTokenInformation_failed_with
push edi
mov byte [esp + 0x230], 4
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x14]
push edi
call fcn.004109e7
lea eax, [esp + 0x1c4]
push eax
mov eax, edi
call fcn.00403b24
mov byte [esp + 0x228], 5
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x4f1efd
lea eax, [esp + 0x1c4]
push eax
mov ecx, esi
call fcn.0047feaf
pop ecx
push esi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404589
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 3
call fcn.004027ed
push str.GetTokenInformation_failed
push 1
push dword [ebx - 0x50]
call fcn.004e9b93
add esp, 0xc
cmp dword [esp + 0x1e0], edi
je 0x4f1f51
push dword [esp + 0x1e0]
call fcn.0055da69
pop ecx
or dword [esp + 0x228], 0xffffffff
cmp dword [esp + 0x10], edi
je 0x4f2561
cmp dword [esp + 0x10], 0xffffffff
je 0x4f2561
push dword [esp + 0x10]
jmp 0x4f255b
lea eax, [esp + 0x30]
push eax
push str.S_1_5_18
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x4f2030
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403aba
mov edi, eax
push str.ConvertStringSidToSidW_failed_with
push edi
mov byte [esp + 0x230], 6
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x14]
push edi
call fcn.004109e7
lea eax, [esp + 0x1c4]
push eax
mov eax, edi
call fcn.00403b24
mov byte [esp + 0x228], 7
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x4f1ffa
lea eax, [esp + 0x1c4]
push eax
mov ecx, esi
call fcn.0047feaf
pop ecx
push esi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404589
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 3
call fcn.004027ed
push str.ConvertStringSidToSidW_failed
jmp 0x4f1f2e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
push 0x40
lea eax, [esp + 0x58]
push edi
push eax
mov byte [esp + 0x234], 8
call fcn.0055fda0
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 + 0x30]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x28]
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 + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x4f20ff
push str.SetEntriesInAcl_failed
push esi
push dword [ebx - 0x50]
call fcn.004e9b93
add esp, 0xc
mov byte [esp + 0x228], 3
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4f1f44
mov eax, dword [esp + 0x28]
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 0x4f2204
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403aba
mov esi, eax
push str.InitializeSecurityDescriptor_failed_with
push esi
mov byte [esp + 0x230], 0xa
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.004109e7
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x228], 0xb
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x4f219f
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.0047feaf
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404589
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.004027ed
push str.InitializeSecurityDescriptor_failed
push 1
push dword [ebx - 0x50]
call fcn.004e9b93
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 0x4f1f44
xor esi, esi
push esi
push dword [esp + 0x2c]
lea eax, [esp + 0x48]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4f22bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403aba
mov esi, eax
push str.SetSecurityDescriptorDacl_failed_with
push esi
mov byte [esp + 0x230], 0xc
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.004109e7
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x228], 0xd
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x4f2286
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.0047feaf
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404589
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.004027ed
push str.SetSecurityDescriptorDacl_failed
jmp 0x4f21d0
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 0x4f2376
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
call fcn.00403aba
mov esi, eax
push str.SetSecurityDescriptorOwner_failed_with
push esi
mov byte [esp + 0x230], 0xe
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x14]
push esi
call fcn.004109e7
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x228], 0xf
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x4f2340
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.0047feaf
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404589
lea eax, [esp + 0x94]
mov byte [esp + 0x228], 9
call fcn.004027ed
push str.SetSecurityDescriptorOwner_failed
jmp 0x4f21d0
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.004f121b
mov byte [esp + 0x228], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x4f23af
mov ecx, dword [eax]
jmp 0x4f23b1
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.004f26b5
pop ecx
push 0
push edi
lea ecx, [esp + 0x204]
mov byte [esp + 0x230], 0x12
call fcn.0040443a
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x4f240a
cmp ecx, 0xffffffff
jne 0x4f24c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x12c]
push eax
call fcn.00403aba
mov esi, eax
push str.CreateNamedPipe_failed_with
push esi
mov byte [esp + 0x230], 0x13
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x24]
push esi
call fcn.004109e7
lea eax, [esp + 0x1c4]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x228], 0x14
cmp dword [esp + 0x1d8], 8
mov eax, dword [esp + 0x1c4]
jae 0x4f2471
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.0047feaf
pop ecx
push edi
xor edi, edi
lea esi, [esp + 0x1c8]
call fcn.00404589
lea eax, [esp + 0x12c]
mov byte [esp + 0x228], 0x12
call fcn.004027ed
push str.CreateNamedPipe_failed
push 1
push dword [ebx - 0x50]
call fcn.004e9b93
add esp, 0xc
lea eax, [esp + 0x14]
mov byte [esp + 0x228], 9
call fcn.004f25b4
jmp 0x4f21dd
and dword [esp + 0x14], 0
mov dword [ebx + 8], eax
mov eax, dword [ebx - 0x50]
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x228], 9
call fcn.004f25b4
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
push dword [esp + 0x1e0]
call fcn.0055da69
or dword [esp + 0x22c], 0xffffffff
cmp dword [esp + 0x14], 0
pop ecx
je 0x4f2533
cmp dword [esp + 0x10], 0xffffffff
je 0x4f2533
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4f2563
push str.GetTokenInformation_misbehaves...
push 1
push dword [ebx - 0x50]
call fcn.004e9b93
or dword [esp + 0x234], 0xffffffff
add esp, 0xc
cmp esi, edi
je 0x4f2561
cmp esi, 0xffffffff
je 0x4f2561
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.0055c9d4
mov esp, ebp
pop ebp
ret