Function at 0x4b85d0
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 0x731c74
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 0x4b8d0f
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4b8d0f
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 0x4b876d
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x1c], eax
je 0x4b868e
cmp byte [0x8e0c40], 0
je 0x4b868e
test cl, cl
je 0x4b875e
cmp cl, 6
jb 0x4b875e
shr ecx, 8
cmp cl, 1
jb 0x4b875e
jmp 0x4b8696
test cl, cl
je 0x4b875e
mov dword [ebp - 0x18], 0xd27181
mov esi, dword [ebp - 0x18]
push 0
sub esi, 0x5d7931
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0055f380
add esp, 0xc
mov ecx, eax
mov eax, dword [0x8300d0]
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 0x4b86d6
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4b86e9
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.00505470
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4b875e
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8754
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8e33
push edx
push ecx
call fcn.00503df0
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x11], 0
jmp 0x4b8cef
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 0x4b8bb1
lea eax, [ebp - 0x48]
push eax
push 0
push 1
push esi
call edi
test eax, eax
je 0x4b8bb1
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 0x4b88eb
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x1c], eax
je 0x4b8815
cmp byte [0x8e0c40], 0
je 0x4b8815
test cl, cl
je 0x4b8cd1
cmp cl, 6
jb 0x4b8cd1
shr ecx, 8
cmp cl, 1
jb 0x4b8cd1
jmp 0x4b881d
test cl, cl
je 0x4b8cd1
mov dword [ebp - 0x28], 0xd6e89b
mov esi, dword [ebp - 0x28]
push 0
sub esi, 0x61efb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0055f380
add esp, 0xc
mov ecx, eax
mov eax, dword [0x8300d0]
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 0x4b8860
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4b8873
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.00505470
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4b8cce
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8cc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8e38
jmp 0x4b8cc4
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.00480c30
mov edi, dword [eax]
call fcn.004b7a60
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4b895f
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 0x74b968
push eax
call fcn.00486250
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 0x4b8b6c
mov ecx, dword [0x8300d0]
cmp byte [0xa82632], al
je 0x4b8a1a
cmp byte [0x8e0c40], al
je 0x4b8a1a
test cl, cl
je 0x4b8b66
cmp cl, 6
jb 0x4b8b66
shr ecx, 8
cmp cl, 1
jb 0x4b8b66
jmp 0x4b8a22
test cl, cl
je 0x4b8b66
mov dword [ebp - 0x4c], 0xdae07b
mov edi, dword [ebp - 0x4c]
sub edi, 0x65e743
push 0
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0055f380
mov esi, eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.005060a0
add esp, 0x14
mov edx, eax
mov eax, dword [0x8300d0]
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 0x4b8a80
sub ecx, edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4b8a93
mov edi, dword [edx]
cmp dword [esi + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov edx, esi
mov dword [ebp - 0x4c], eax
jb 0x4b8aa3
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.00505470
mov edx, dword [ebp - 0x60]
add esp, 0x28
cmp edx, 0x10
jb 0x4b8b17
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8b0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8e3d
push edx
push ecx
call fcn.00503df0
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 0x4b8b63
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8b59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8e3d
push edx
push ecx
call fcn.00503df0
add esp, 8
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0x11], 0
jmp 0x4b8b70
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x9c]
call fcn.0047c860
mov eax, dword [ebp - 0x84]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b8b96
push eax
call edi
test eax, eax
je 0x4b8e42
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4b8cdb
push eax
call edi
test eax, eax
je 0x4b8e55
jmp 0x4b8cdb
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x1c], eax
je 0x4b8bf0
cmp byte [0x8e0c40], 0
je 0x4b8bf0
test cl, cl
je 0x4b8cd1
cmp cl, 6
jb 0x4b8cd1
shr ecx, 8
cmp cl, 1
jb 0x4b8cd1
jmp 0x4b8bf8
test cl, cl
je 0x4b8cd1
mov dword [ebp - 0x1c], 0xd4ec7b
mov esi, dword [ebp - 0x1c]
push 0
sub esi, 0x5ff3eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0055f380
add esp, 0xc
mov ecx, eax
mov eax, dword [0x8300d0]
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 0x4b8c40
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov edi, ecx
jb 0x4b8c53
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.00505470
mov edx, dword [ebp - 0xa0]
add esp, 0x28
cmp edx, 0x10
jb 0x4b8cce
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8cc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8e68
push edx
push ecx
call fcn.00503df0
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 0x4b8cef
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 0x4b8cf9
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 [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x1c], eax
je 0x4b8d4e
cmp byte [0x8e0c40], 0
je 0x4b8d4e
test cl, cl
je 0x4b8e1e
cmp cl, 6
jb 0x4b8e1e
shr ecx, 8
cmp cl, 1
jb 0x4b8e1e
jmp 0x4b8d56
test cl, cl
je 0x4b8e1e
mov dword [ebp - 0x1c], 0xd07581
mov esi, dword [ebp - 0x1c]
push 0
sub esi, 0x5b7d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0055f380
add esp, 0xc
mov edx, eax
mov eax, dword [0x8300d0]
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 0x4b8da0
sub ecx, edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4b8db3
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.00505470
mov edx, dword [ebp - 0x104]
add esp, 0x28
cmp edx, 0x10
jb 0x4b8e1e
mov ecx, dword [ebp - 0x118]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8e14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8e6d
push edx
push ecx
call fcn.00503df0
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.006fee64
call fcn.006fee64
call fcn.006fee64
mov eax, dword [ebx + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00473670
mov eax, dword [ebx + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00473670
call fcn.006fee64
call fcn.006fee64
int3