Function at 0x4a213e02
Capabilities:
Create process on windows

Disassembly:
push 0x174
push 0x4a214098
call fcn.4a2113e1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x68], esi
xor ebx, ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x78], 0x20
lea eax, [ebp - 0x78]
push eax
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
cmp eax, ebx
je 0x4a2256de
mov dword [ebp - 0x80], edi
push ebx
push ebx
push 4
lea eax, [ebp - 0x80]
push eax
push 0x60001
push ebx
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
cmp eax, ebx
je 0x4a2256f6
push 0x48
pop esi
push esi
push ebx
lea eax, [ebp - 0xe4]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xe4], esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], edi
push 0x64
pop eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xb8], ebx
mov eax, edi
mov word [ebp - 0xb4], ax
mov dword [ebp - 0x184], 0x44
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 4], ebx
mov esi, 0x4a2132e4
push esi
call fcn.4a21321b
cmp eax, ebx
jne 0x4a213f12
mov eax, 0x4a213afc
push eax
call fcn.4a2119d6
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x4a225716
cmp dword [0x4a2340e0], ebx
jne 0x4a213f37
cmp dword [0x4a2340e4], ebx
je 0x4a21ce9d
push 0x5c
push dword [ebp - 0x68]
call fcn.4a212148
cmp eax, ebx
je 0x4a213f59
push 0x4a214080
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4a22572b
mov eax, dword [0x4a2340b4]
cmp eax, ebx
je 0x4a213f6b
cmp dword [eax + 0x30], ebx
jne 0x4a22573b
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xe4]
push eax
mov esi, 0x4a235260
push esi
push ebx
push 0x80000
push edi
push ebx
push ebx
push dword [ebp - 0x74]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x64], eax
cmp eax, ebx
je 0x4a22576c
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x60], eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x6c]
push 0x4a2132e4
call fcn.4a211730
cmp dword [ebp - 0x64], ebx
je 0x4a22577f
mov ecx, dword [ebp - 0x60]
mov esi, ecx
and esi, edi
mov eax, ecx
shr eax, 1
and eax, edi
cmp ecx, ebx
je 0x4a21ceaf
cmp byte [0x4a234081], bl
je 0x4a213ff3
cmp dword [0x4a2340b4], ebx
je 0x4a2175c3
mov dword [ebp - 0x70], ebx
mov dword [0x4a2341bc], edi
cmp dword [ebp + 0xc], ebx
jne 0x4a21ce7e
push ecx
call fcn.4a213be0
mov dword [0x4a234188], eax
mov dword [ebp - 0x60], ebx
mov edi, eax
mov dword [ebp - 0x70], edi
push edi
push 0x4a214074
push 0x14
lea eax, [ebp - 0x5c]
push eax
call fcn.4a21179d
add esp, 0x10
lea eax, [ebp - 0x5c]
push eax
push str.ExitCode
call fcn.4a211730
lea eax, [edi - 0x20]
cmp eax, 0x5e
jbe 0x4a2258da
push 0x4a211794
push str.ExitCodeAscii
call fcn.4a211730
cmp esi, ebx
jne 0x4a2258f7
mov dword [ebp - 4], 0xfffffffe
call fcn.4a2140c5
mov eax, dword [ebp - 0x70]
call fcn.4a2113ca
ret 0x18
cmp dword [0x4a2340e0], ebx
jne 0x4a213ff3
cmp dword [0x4a2340e4], ebx
jne 0x4a213ff3
jmp 0x4a2258af
cmp dword [ebp + 0xc], 4
je 0x4a225901
cmp dword [ebp + 0xc], 2
jne 0x4a21405d
mov dword [0x4a234180], ecx
jmp 0x4a21405d
mov eax, dword [0x4a2340b4]
cmp eax, ebx
jne 0x4a213f37
jmp 0x4a213f6b
mov dword [ebp + 0xc], 4
jmp 0x4a213ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a234128], eax
push esi
call fcn.4a22065b
mov eax, edi
jmp 0x4a21406c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a234128], eax
push esi
call fcn.4a22065b
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
jmp 0x4a2256ef
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4a2340ac
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
jmp 0x4a2256ef
push 0x4a219a54
push esi
call fcn.4a22cd7c
jmp 0x4a213f59
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
mov esi, 0x4a235260
push esi
push ebx
push 0x80000
push edi
push ebx
push ebx
push dword [ebp - 0x74]
push dword [ebp - 0x68]
push dword [eax + 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x4a213f94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov dword [0x4a234128], eax
jmp 0x4a213fb4
cmp byte [0x4a234081], bl
je 0x4a225793
cmp dword [0x4a234128], 0xc1
je 0x4a2257a3
cmp dword [0x4a234128], 0x2e4
jne 0x4a225873
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], 0x8140
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], esi
movzx eax, word [ebp - 0xb4]
mov dword [ebp - 0x104], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x64], eax
cmp eax, ebx
je 0x4a225821
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x60], eax
jmp 0x4a22586d
mov eax, dword [ebp - 0x100]
cmp eax, ebx
jne 0x4a225837
mov dword [0x4a234128], 8
jmp 0x4a22586d
cmp eax, 0x20
jne 0x4a225848
mov dword [0x4a234128], 2
jmp 0x4a22586d
mov dword [0x4a234128], eax
jmp 0x4a22586d
mov dword [ebp - 4], ebx
xor edi, edi
inc edi
cmp dword [ebp - 0x64], ebx
jne 0x4a213fca
push 0x208
call fcn.4a211896
mov esi, eax
cmp esi, ebx
je 0x4a225716
push dword [ebp - 0x68]
push 0x104
push esi
call fcn.4a21185a
push esi
call fcn.4a22065b
push esi
call fcn.4a21142e
jmp 0x4a225716
cmp dword [ebp + 0xc], ebx
jne 0x4a213ff3
cmp eax, ebx
jne 0x4a21ceaf
push ecx
call fcn.4a22d7c9
push 2
pop ecx
cmp cx, ax
mov ecx, dword [ebp - 0x60]
je 0x4a21ceaf
jmp 0x4a213ff3
push edi
push 0x4a225918
push 0xc
lea eax, [ebp - 0x34]
push eax
call fcn.4a21179d
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
jmp 0x4a21404b
call fcn.4a22cf50
jmp 0x4a21405d
cmp ecx, ebx
je 0x4a21405d
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x60], ebx
jmp 0x4a21405d