Function at 0x4ad03e02
Capabilities:
Create process on windows

Disassembly:
push 0x174
push 0x4ad04098
call fcn.4ad013e1
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 0x4ad156de
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 0x4ad156f6
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, 0x4ad032e4
push esi
call fcn.4ad0321b
cmp eax, ebx
jne 0x4ad03f12
mov eax, 0x4ad03afc
push eax
call fcn.4ad019d6
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x4ad15716
cmp dword [0x4ad240e0], ebx
jne 0x4ad03f37
cmp dword [0x4ad240e4], ebx
je 0x4ad0ce9d
push 0x5c
push dword [ebp - 0x68]
call fcn.4ad02148
cmp eax, ebx
je 0x4ad03f59
push 0x4ad04080
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4ad1572b
mov eax, dword [0x4ad240b4]
cmp eax, ebx
je 0x4ad03f6b
cmp dword [eax + 0x30], ebx
jne 0x4ad1573b
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xe4]
push eax
mov esi, 0x4ad25260
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 0x4ad1576c
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 0x4ad032e4
call fcn.4ad01730
cmp dword [ebp - 0x64], ebx
je 0x4ad1577f
mov ecx, dword [ebp - 0x60]
mov esi, ecx
and esi, edi
mov eax, ecx
shr eax, 1
and eax, edi
cmp ecx, ebx
je 0x4ad0ceaf
cmp byte [0x4ad24081], bl
je 0x4ad03ff3
cmp dword [0x4ad240b4], ebx
je 0x4ad075c3
mov dword [ebp - 0x70], ebx
mov dword [0x4ad241bc], edi
cmp dword [ebp + 0xc], ebx
jne 0x4ad0ce7e
push ecx
call fcn.4ad03be0
mov dword [0x4ad24188], eax
mov dword [ebp - 0x60], ebx
mov edi, eax
mov dword [ebp - 0x70], edi
push edi
push 0x4ad04074
push 0x14
lea eax, [ebp - 0x5c]
push eax
call fcn.4ad0179d
add esp, 0x10
lea eax, [ebp - 0x5c]
push eax
push str.ExitCode
call fcn.4ad01730
lea eax, [edi - 0x20]
cmp eax, 0x5e
jbe 0x4ad158da
push 0x4ad01794
push str.ExitCodeAscii
call fcn.4ad01730
cmp esi, ebx
jne 0x4ad158f7
mov dword [ebp - 4], 0xfffffffe
call fcn.4ad040c5
mov eax, dword [ebp - 0x70]
call fcn.4ad013ca
ret 0x18
cmp dword [0x4ad240e0], ebx
jne 0x4ad03ff3
cmp dword [0x4ad240e4], ebx
jne 0x4ad03ff3
jmp 0x4ad158af
cmp dword [ebp + 0xc], 4
je 0x4ad15901
cmp dword [ebp + 0xc], 2
jne 0x4ad0405d
mov dword [0x4ad24180], ecx
jmp 0x4ad0405d
mov eax, dword [0x4ad240b4]
cmp eax, ebx
jne 0x4ad03f37
jmp 0x4ad03f6b
mov dword [ebp + 0xc], 4
jmp 0x4ad03ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24128], eax
push esi
call fcn.4ad1065b
mov eax, edi
jmp 0x4ad0406c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24128], eax
push esi
call fcn.4ad1065b
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
jmp 0x4ad156ef
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4ad240ac
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
jmp 0x4ad156ef
push 0x4ad09a54
push esi
call fcn.4ad1cd7c
jmp 0x4ad03f59
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
mov esi, 0x4ad25260
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 0x4ad03f94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov dword [0x4ad24128], eax
jmp 0x4ad03fb4
cmp byte [0x4ad24081], bl
je 0x4ad15793
cmp dword [0x4ad24128], 0xc1
je 0x4ad157a3
cmp dword [0x4ad24128], 0x2e4
jne 0x4ad15873
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 0x4ad15821
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x60], eax
jmp 0x4ad1586d
mov eax, dword [ebp - 0x100]
cmp eax, ebx
jne 0x4ad15837
mov dword [0x4ad24128], 8
jmp 0x4ad1586d
cmp eax, 0x20
jne 0x4ad15848
mov dword [0x4ad24128], 2
jmp 0x4ad1586d
mov dword [0x4ad24128], eax
jmp 0x4ad1586d
mov dword [ebp - 4], ebx
xor edi, edi
inc edi
cmp dword [ebp - 0x64], ebx
jne 0x4ad03fca
push 0x208
call fcn.4ad01896
mov esi, eax
cmp esi, ebx
je 0x4ad15716
push dword [ebp - 0x68]
push 0x104
push esi
call fcn.4ad0185a
push esi
call fcn.4ad1065b
push esi
call fcn.4ad0142e
jmp 0x4ad15716
cmp dword [ebp + 0xc], ebx
jne 0x4ad03ff3
cmp eax, ebx
jne 0x4ad0ceaf
push ecx
call fcn.4ad1d7c9
push 2
pop ecx
cmp cx, ax
mov ecx, dword [ebp - 0x60]
je 0x4ad0ceaf
jmp 0x4ad03ff3
push edi
push 0x4ad15918
push 0xc
lea eax, [ebp - 0x34]
push eax
call fcn.4ad0179d
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
jmp 0x4ad0404b
call fcn.4ad1cf50
jmp 0x4ad0405d
cmp ecx, ebx
je 0x4ad0405d
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x60], ebx
jmp 0x4ad0405d