Function at 0x41c460
Capabilities:
Access peb ldr_data
Create pipe
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x178
mov al, byte [ebp + 0xc]
mov ecx, dword [0x646040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], ecx
test al, al
je 0x41c686
lea ebx, [ebp - 0x13c]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.00568ad0
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movdqa xmm0, xmmword [0x63bb90]
movdqu xmmword [esp], xmm0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call esi
mov ecx, 3
push ecx
push 1
push edx
push eax
call esi
mov ecx, 3
push ecx
push 0x20
push edx
push eax
call esi
mov dword [ebx - 8], 6
mov dword [ebx - 4], edi
mov word [ebx + 0x108], 0
lea ecx, [ebp - 0x148]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov esi, 0x80003
test eax, eax
je 0x41c68d
mov dword [ebp - 0x180], 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
je 0x41c6d9
mov eax, dword [0x65a72c]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x41c665
push 0x65a72c
call fcn.00565714
add esp, 4
cmp dword [0x65a72c], 0xffffffff
jne 0x41c665
lea eax, [ebp - 0x14c]
mov dword [eax], 0xffffffff
push 0
push eax
push 1
push str.D:_A__GA___SY__A__GWGR___S_1_15_2_1_S:_ML_____S_1_16_0_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x41c6dc
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x184], eax
pcmpeqd xmm0, xmm0
lea edi, [ebp - 0x16c]
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
movdqa xmm0, xmmword [str.CURRENT_]
lea eax, [ebp - 0x2a]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0x530055
mov dword [eax + 0x14], 0x520045
mov word [eax + 0x18], 0
xor ebx, ebx
xor esi, esi
inc esi
push ebx
push esi
push 0x10000000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x170]
xor edx, edx
dec edx
mov dword [eax], edx
lea ecx, [ebp - 0x174]
mov dword [ecx], edx
push eax
push ecx
push dword [ebp - 0x14c]
push ebx
push ebx
push edi
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_BuildSecurityDescriptorW]
test eax, eax
jne 0x41c754
mov ebx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x41c64d
cmp dword [0x64c79c], 2
jg 0x41c64d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x41c716
mov dword [0x65a728], ebx
push 0x65a72c
call fcn.00565763
add esp, 4
mov esi, 0x80003
mov eax, dword [0x65a728]
test eax, eax
mov ecx, 0x63bc40
cmovne ecx, eax
lea edi, [ebp - 0x180]
mov dword [edi + 4], ecx
mov dword [edi + 8], 1
jmp 0x41c68d
xor edi, edi
mov esi, 3
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x41c698
mov eax, dword [eax]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x63bbb0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567335
mov eax, esi
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret
int3
xor ebx, ebx
cmp dword [0x64c79c], 2
jg 0x41c64d
call fcn.004f17a0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x2e
push str.registration_protocol_win.cc
call fcn.005bb140
lea eax, [ebp - 0x140]
push 0x33
push str.ConvertStringSecurityDescriptorToSecurityDescriptor
jmp 0x41c73f
call fcn.004f17a0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x18
push str.scoped_local_alloc.cc
call fcn.005bb140
lea eax, [ebp - 0x140]
push 9
push 0x63d2ef
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
call fcn.005bb1a0
jmp 0x41c64d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x64c79c], 2
jg 0x41c62b
call fcn.004f17a0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x45
push str.registration_protocol_win.cc
call fcn.005bb140
lea eax, [ebp - 0x140]
push 0x17
push str.BuildSecurityDescriptor
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
call fcn.005bb1a0
jmp 0x41c62b