Function at 0x4a64a0
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6feba4
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x108
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
je 0x4a6bdf
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a6bdf
push dword [ebp - 0x44]
push 0
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 1
test eax, eax
jne 0x4a663d
cmp byte [0x991b00], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x7ef0c0]
mov dword [ebp - 0x1c], eax
je 0x4a655e
cmp byte [0x7f0008], 0
je 0x4a655e
test cl, cl
je 0x4a662e
cmp cl, 6
jb 0x4a662e
shr ecx, 8
cmp cl, 1
jb 0x4a662e
jmp 0x4a6566
test cl, cl
je 0x4a662e
mov dword [ebp - 0x18], 0x1040094
mov esi, dword [ebp - 0x18]
push 0
sub esi, 0x927aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0053c950
add esp, 0xc
mov ecx, eax
mov eax, dword [0x7ef0c0]
mov edx, esi
mov dword [ebp - 0x28], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], eax
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a65a6
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4a65b9
mov edi, dword [ecx]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov eax, esp
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x58]
push edx
push esi
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x50], edi
push dword [ebp - 0x28]
mov dword [eax], 0xd2
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.004e9800
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4a662e
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6624
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a6d03
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x11], 0
jmp 0x4a6bbf
mov edi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
lea eax, [ebp - 0x48]
push eax
push 0
push 1
push 0
call edi
mov esi, dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x4a6a81
lea eax, [ebp - 0x48]
push eax
push 0
push 1
push esi
call edi
test eax, eax
je 0x4a6a81
push 0
push 0
push 4
lea eax, [ebp - 0x5c]
push eax
push 0x20000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x4a67bb
cmp byte [0x991b00], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x7ef0c0]
mov dword [ebp - 0x1c], eax
je 0x4a66e5
cmp byte [0x7f0008], 0
je 0x4a66e5
test cl, cl
je 0x4a6ba1
cmp cl, 6
jb 0x4a6ba1
shr ecx, 8
cmp cl, 1
jb 0x4a6ba1
jmp 0x4a66ed
test cl, cl
je 0x4a6ba1
mov dword [ebp - 0x28], 0x10b5954
mov esi, dword [ebp - 0x28]
push 0
sub esi, 0x99d2d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0053c950
add esp, 0xc
mov ecx, eax
mov eax, dword [0x7ef0c0]
mov edx, esi
mov dword [ebp - 0x50], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], eax
lea edi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a6730
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4a6743
mov edi, dword [ecx]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, esp
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x40]
push edx
push esi
push 1
push dword [ebp - 0x28]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x50]
mov dword [eax], 0xd2
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.004e9800
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4a6b9e
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6b94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a6d08
jmp 0x4a6b94
xorps xmm0, xmm0
mov dword [ebp - 0xbc], esi
movlpd qword [ebp - 0xfc], xmm0
movlpd qword [ebp - 0xf4], xmm0
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xe4], xmm0
movlpd qword [ebp - 0xdc], xmm0
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xc4], xmm0
mov dword [ebp - 0x100], 0x48
movups xmmword [ebp - 0x84], xmm0
mov byte [ebp - 4], 6
call fcn.00475ac0
mov edi, dword [eax]
call fcn.004a5ab0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a682f
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, esp
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], edi
push 5
mov dword [eax], 0xcd
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x9c]
push 0x71697c
push eax
call fcn.0047b280
add esp, 0x1c
cmp dword [ebp - 0x88], 8
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 7
push ecx
push 0
push 0
push 0x80010
push 0
push 0
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4a6a3c
mov ecx, dword [0x7ef0c0]
cmp byte [0x991b00], al
je 0x4a68ea
cmp byte [0x7f0008], al
je 0x4a68ea
test cl, cl
je 0x4a6a36
cmp cl, 6
jb 0x4a6a36
shr ecx, 8
cmp cl, 1
jb 0x4a6a36
jmp 0x4a68f2
test cl, cl
je 0x4a6a36
mov dword [ebp - 0x4c], 0x111e0e4
mov edi, dword [ebp - 0x4c]
sub edi, 0xa05a14
push 0
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0053c950
mov esi, eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004ea3e0
add esp, 0x14
mov edx, eax
mov eax, dword [0x7ef0c0]
mov ecx, edi
mov dword [ebp - 0x20], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], eax
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a6950
sub ecx, edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4a6963
mov edi, dword [edx]
cmp dword [esi + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov edx, esi
mov dword [ebp - 0x4c], eax
jb 0x4a6973
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov esi, dword [ebp - 0x4c]
push 1
sub esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, esp
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], edi
lea edx, [ebp - 0x40]
mov dword [ebp - 0x3c], esi
push ecx
push dword [ebp - 0x28]
mov dword [eax], 0xdd
push 1
push dword [ebp - 0x30]
mov dword [eax + 4], 0
push dword [ebp - 0x20]
mov dword [eax + 8], edx
call fcn.004e9800
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4a69e7
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a69dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a6d0d
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp edx, 0x10
jb 0x4a6a33
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6a29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a6d0d
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0x11], 0
jmp 0x4a6a40
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x9c]
call fcn.00471710
mov eax, dword [ebp - 0x84]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a6a66
push eax
call edi
test eax, eax
je 0x4a6d12
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4a6bab
push eax
call edi
test eax, eax
je 0x4a6d25
jmp 0x4a6bab
cmp byte [0x991b00], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x7ef0c0]
mov dword [ebp - 0x1c], eax
je 0x4a6ac0
cmp byte [0x7f0008], 0
je 0x4a6ac0
test cl, cl
je 0x4a6ba1
cmp cl, 6
jb 0x4a6ba1
shr ecx, 8
cmp cl, 1
jb 0x4a6ba1
jmp 0x4a6ac8
test cl, cl
je 0x4a6ba1
mov dword [ebp - 0x1c], 0x108155c
mov esi, dword [ebp - 0x1c]
push 0
sub esi, 0x968f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0053c950
add esp, 0xc
mov ecx, eax
mov eax, dword [0x7ef0c0]
mov edx, esi
mov dword [ebp - 0x30], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], eax
lea edi, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a6b10
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4a6b23
mov edi, dword [ecx]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x10]
push 1
sub esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
mov eax, esp
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x40]
push edx
push esi
push 1
push dword [ebp - 0x1c]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x30]
mov dword [eax], 0xd2
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.004e9800
mov edx, dword [ebp - 0xa0]
add esp, 0x28
cmp edx, 0x10
jb 0x4a6b9e
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6b94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a6d38
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x11], 0
test esi, esi
je 0x4a6bbf
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4a6bc9
push eax
call edi
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [0x991b00], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x7ef0c0]
mov dword [ebp - 0x1c], eax
je 0x4a6c1e
cmp byte [0x7f0008], 0
je 0x4a6c1e
test cl, cl
je 0x4a6cee
cmp cl, 6
jb 0x4a6cee
shr ecx, 8
cmp cl, 1
jb 0x4a6cee
jmp 0x4a6c26
test cl, cl
je 0x4a6cee
mov dword [ebp - 0x1c], 0x100bcbc
mov esi, dword [ebp - 0x1c]
push 0
sub esi, 0x8f370c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0053c950
add esp, 0xc
mov edx, eax
mov eax, dword [0x7ef0c0]
mov ecx, esi
mov dword [ebp - 0x30], eax
mov eax, dword [str.DesktopInstaller]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a6c70
sub ecx, edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4a6c83
mov edi, dword [edx]
mov eax, dword [edx + 0x10]
lea edx, [ebp - 0x50]
push 1
sub esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, esp
mov dword [ebp - 0x50], edi
push ecx
push esi
push 1
push dword [ebp - 0x1c]
mov dword [eax], 0xd
push dword [ebp - 0x30]
mov dword [eax + 4], 0
mov dword [eax + 8], edx
call fcn.004e9800
mov edx, dword [ebp - 0x104]
add esp, 0x28
cmp edx, 0x10
jb 0x4a6cee
mov ecx, dword [ebp - 0x118]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6ce4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a6d3d
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006cc674
call fcn.006cc674
call fcn.006cc674
mov eax, dword [ebx + 4]
push str.C:Contrib2MicrosoftWILincludewil_resource.h
push 0x93e
push eax
call fcn.00468580
mov eax, dword [ebx + 4]
push str.C:Contrib2MicrosoftWILincludewil_resource.h
push 0x93e
push eax
call fcn.00468580
call fcn.006cc674
call fcn.006cc674
int3