Function at 0x4ad043d8
Capabilities:
Create process on windows

Disassembly:
push 0x174
push 0x4ad04670
call fcn.4ad018b0
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 0x4ad15074
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 0x4ad1508c
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 word [ebp - 0xb4], di
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, 0x4ad01e28
push esi
call fcn.4ad01d61
cmp eax, ebx
jne 0x4ad044e6
mov eax, 0x4ad01408
push eax
call fcn.4ad01ebf
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x4ad150ac
cmp dword [0x4ad24098], ebx
jne 0x4ad0450b
cmp dword [0x4ad2409c], ebx
je 0x4ad11ba6
push 0x5c
push dword [ebp - 0x68]
call fcn.4ad01a11
cmp eax, ebx
je 0x4ad0452d
push 0x4ad04654
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4ad150c1
mov eax, dword [0x4ad24074]
cmp eax, ebx
je 0x4ad0453f
cmp dword [eax + 0x30], ebx
jne 0x4ad150d1
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xe4]
push eax
mov esi, 0x4ad25200
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 0x4ad11b93
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 0x4ad01e28
call fcn.4ad01624
cmp dword [ebp - 0x64], ebx
je 0x4ad11bc4
mov ecx, dword [ebp - 0x60]
mov esi, ecx
and esi, edi
mov eax, ecx
shr eax, 1
and eax, edi
cmp ecx, ebx
je 0x4ad11bb8
cmp byte [0x4ad24041], bl
je 0x4ad045c7
cmp dword [0x4ad24074], ebx
je 0x4ad09bcc
mov dword [ebp - 0x70], ebx
mov dword [0x4ad24164], edi
cmp dword [ebp + 0xc], ebx
jne 0x4ad0fa97
push ecx
call fcn.4ad03ffd
mov dword [0x4ad24130], eax
mov dword [ebp - 0x60], ebx
mov edi, eax
mov dword [ebp - 0x70], edi
push edi
push 0x4ad04648
push 0x14
lea eax, [ebp - 0x5c]
push eax
call fcn.4ad01710
add esp, 0x10
lea eax, [ebp - 0x5c]
push eax
push str.ExitCode
call fcn.4ad01624
lea eax, [edi - 0x20]
cmp eax, 0x5e
jbe 0x4ad151d7
push 0x4ad04048
push str.ExitCodeAscii
call fcn.4ad01624
cmp esi, ebx
jne 0x4ad151f4
mov dword [ebp - 4], 0xfffffffe
call fcn.4ad0469d
mov eax, dword [ebp - 0x70]
call fcn.4ad018a4
ret 0x18
cmp dword [0x4ad24098], ebx
jne 0x4ad045c7
cmp dword [0x4ad2409c], ebx
jne 0x4ad045c7
jmp 0x4ad151ae
cmp dword [ebp + 0xc], 4
je 0x4ad151fe
cmp dword [ebp + 0xc], 2
jne 0x4ad04631
mov dword [0x4ad24128], ecx
jmp 0x4ad04631
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov dword [0x4ad240e0], eax
jmp 0x4ad04588
mov eax, dword [0x4ad24074]
cmp eax, ebx
jne 0x4ad0450b
jmp 0x4ad0453f
mov dword [ebp + 0xc], 4
jmp 0x4ad045c7
cmp byte [0x4ad24041], bl
je 0x4ad15102
cmp dword [0x4ad240e0], 0xc1
jne 0x4ad15102
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 0x4ad15117
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], ebx
xor edi, edi
inc edi
cmp dword [ebp - 0x64], ebx
jne 0x4ad0459e
jmp 0x4ad1517b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad240e0], eax
push esi
call fcn.4ad11767
mov eax, edi
jmp 0x4ad04640
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad240e0], eax
push esi
call fcn.4ad11767
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
jmp 0x4ad15085
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4ad2406c
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
jmp 0x4ad15085
push 0x4ad08624
push esi
call fcn.4ad1c509
jmp 0x4ad0452d
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
mov esi, 0x4ad25200
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 0x4ad04568
cmp dword [0x4ad240e0], 0x2e4
je 0x4ad11be0
jmp 0x4ad11c66
mov eax, dword [ebp - 0x100]
cmp eax, ebx
jne 0x4ad15130
mov dword [0x4ad240e0], 8
jmp 0x4ad11c60
cmp eax, 0x20
jne 0x4ad15144
mov dword [0x4ad240e0], 2
jmp 0x4ad11c60
mov dword [0x4ad240e0], eax
jmp 0x4ad11c60
push 0x208
call fcn.4ad01e3d
mov esi, eax
cmp esi, ebx
je 0x4ad150ac
push dword [ebp - 0x68]
push 0x104
push esi
call fcn.4ad01416
push esi
call fcn.4ad11767
push esi
call fcn.4ad01773
jmp 0x4ad150ac
cmp dword [ebp + 0xc], ebx
jne 0x4ad045c7
cmp eax, ebx
jne 0x4ad11bb8
push ecx
call fcn.4ad1cb31
mov ecx, dword [ebp - 0x60]
cmp ax, 2
je 0x4ad11bb8
jmp 0x4ad045c7
push edi
push 0x4ad15218
push 0xc
lea eax, [ebp - 0x34]
push eax
call fcn.4ad01710
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
jmp 0x4ad0461f
call fcn.4ad1c6dd
jmp 0x4ad04631
cmp ecx, ebx
je 0x4ad04631
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x60], ebx
jmp 0x4ad04631