Function at 0x10056ce
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x484
mov eax, dword [0x100f6ec]
push ebx
push esi
xor esi, esi
mov dword [ebp + 0x400], eax
mov eax, 0x105
push edi
xor ebx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x1c], edi
je 0x1005a0b
lea eax, [ebp - 0x28]
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1005745
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005a0b
lea eax, [ebp - 0x38]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 1
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x38]
mov edi, dword [sym.imp.msvcrt.dll_malloc]
call edi
test eax, eax
pop ecx
mov dword [ebp - 0x3c], eax
jne 0x1005776
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005792
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 0x38]
push eax
push 1
push dword [ebp - 0x28]
call esi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
jne 0x100579e
call esi
push dword [ebp - 0x28]
call esi
jmp 0x10059f9
call esi
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1f4]
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x10059f9
push 0x1c
lea eax, [ebp - 0x70]
push eax
call fcn.01002054
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x68], eax
call esi
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x1f4]
push eax
mov dword [ebp - 0x70], eax
call esi
pop ecx
pop ecx
push 2
pop esi
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x7c]
push eax
push 0x100fc88
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x70]
push ecx
push eax
push esi
push 0x1001684
push eax
mov dword [ebp - 0x58], esi
call sub.Security.dll_AcquireCredentialsHandleW
test eax, eax
jne 0x10059f9
push 0x100fc84
push 0x1001684
call sub.Security.dll_QuerySecurityPackageInfoW
test eax, eax
jne 0x10059f9
mov eax, dword [0x100fc84]
test eax, eax
je 0x10059f9
and dword [ebp - 0x54], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
push dword [eax + 8]
call edi
test eax, eax
pop ecx
mov dword [ebp - 0x2c], eax
je 0x10059f9
mov esi, 0x1000
push esi
call edi
mov ebx, eax
test ebx, ebx
pop ecx
je 0x10059f9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100fc90
xor eax, eax
push eax
push eax
push 0x10
push eax
push 4
push eax
push eax
push 0x100fc88
call sub.Security.dll_InitializeSecurityContextW
cmp eax, 0x90312
jne 0x10059f9
push 7
pop edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
mov byte [ebx], 0xff
mov byte [ebx + 1], 0xfa
mov byte [ebx + 2], 0x25
mov byte [ebx + 3], 0
mov byte [ebx + 4], 0xf
mov byte [ebx + 5], 0
mov byte [ebx + 6], 0
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], 8
call fcn.01004836
test eax, eax
jne 0x100591a
mov eax, dword [ebp - 0x24]
add eax, 9
cmp eax, esi
jae 0x1005949
mov eax, dword [ebp - 0x34]
mov dword [ebx + 7], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0xb], eax
mov dword [ebp - 0x1c], 0xf
jmp 0x1005946
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + 9]
cmp eax, esi
jae 0x1005949
mov esi, dword [ebp - 0x20]
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 7]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
add eax, 7
mov dword [ebp - 0x1c], eax
mov esi, 0x1000
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
je 0x100595d
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x20], 0
pop ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
call fcn.01004836
test eax, eax
jne 0x100599a
mov ecx, dword [ebp - 0x34]
lea eax, [edi + ecx + 2]
cmp eax, esi
jae 0x10059c1
mov esi, dword [ebp - 0x2c]
mov eax, ecx
shr ecx, 2
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x34]
jmp 0x10059bb
mov ecx, dword [ebp - 0x24]
lea eax, [edi + ecx + 2]
cmp eax, esi
jae 0x10059c1
mov esi, dword [ebp - 0x20]
mov eax, ecx
shr ecx, 2
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
je 0x10059d5
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x20], 0
pop ecx
mov esi, dword [ebp + 0x40c]
mov byte [edi + ebx], 0xff
inc edi
mov byte [edi + ebx], 0xf0
inc edi
push edi
push ebx
push esi
call fcn.010043e6
xor eax, eax
inc eax
mov dword [esi + 0x7dc], eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x3c], 0
je 0x1005a09
push dword [ebp - 0x3c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x1005a1a
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp ebx, esi
je 0x1005a26
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [ebp + 0x400]
mov eax, dword [ebp - 0x40]
pop edi
pop esi
pop ebx
call fcn.0100c260
add ebp, 0x404
leave
ret 4