Function at 0x4ad02393
Capabilities:
Create process on windows

Disassembly:
push 0x110
push 0x4ad02698
call fcn.4ad015f8
mov eax, dword [0x4ad33b38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp + 0x20]
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0xe4]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xe4], 0x44
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], ebx
xor ecx, ecx
inc ecx
mov dword [ebp - 0xd0], ecx
push 0x64
pop eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xb8], ebx
mov word [ebp - 0xb4], cx
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push 2
push eax
mov esi, dword [sym.imp.USER32.dll_GetUserObjectInformationW]
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x68]
push ecx
push ebx
push ebx
push 2
push eax
call esi
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
lea eax, [eax + ecx + 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x70], eax
cmp eax, ebx
je 0x4ad024bb
mov edi, eax
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x64]
push eax
push 2
push dword [ebp - 0x80]
call esi
test eax, eax
je 0x4ad024bb
mov eax, dword [ebp - 0x64]
cmp eax, ebx
jbe 0x4ad0249c
shr eax, 1
mov ecx, edi
lea edi, [ecx + eax*2 - 2]
mov word [edi], 0x5c
inc edi
inc edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
push edi
push 2
push dword [ebp - 0x84]
call esi
test eax, eax
je 0x4ad024bb
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xdc], eax
mov edi, 0x4ad032d8
push edi
call fcn.4ad032ed
mov esi, eax
cmp esi, ebx
jne 0x4ad024d9
mov esi, 0x4ad02b40
cmp esi, ebx
je 0x4ad11ac9
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x4ad1359f
cmp esi, ebx
je 0x4ad02506
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
cmp dword [0x4ad33b28], ebx
jne 0x4ad0251a
cmp dword [0x4ad2fa74], ebx
je 0x4ad0490d
push 0x5c
push dword [ebp - 0x60]
call fcn.4ad026cd
cmp eax, ebx
je 0x4ad0253c
push 0x4ad02680
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4ad135b1
mov eax, dword [0x4ad2fa7c]
cmp eax, ebx
jne 0x4ad045f4
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xe4]
push eax
mov esi, 0x4ad34460
push esi
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x4ad135ed
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x78]
push 0x4ad032d8
call fcn.4ad01682
push dword [ebp - 0x78]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, ebx
je 0x4ad135fd
mov ecx, dword [ebp - 0x6c]
mov eax, ecx
xor esi, esi
inc esi
and eax, esi
mov dword [ebp - 0x88], eax
cmp ecx, ebx
je 0x4ad11ad0
cmp byte [0x4ad2fa24], bl
je 0x4ad025fa
cmp dword [0x4ad2fa7c], ebx
jne 0x4ad025fa
cmp dword [0x4ad33b28], ebx
jne 0x4ad025fa
cmp dword [0x4ad2fa74], ebx
je 0x4ad0d1ac
xor edi, edi
mov dword [0x4ad2fa54], esi
cmp dword [ebp + 0x10], ebx
jne 0x4ad0f443
push ecx
call fcn.4ad018d2
mov dword [0x4ad2f9e0], eax
mov edi, eax
push edi
push 0x4ad02674
lea eax, [ebp - 0x5c]
push eax
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
call esi
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push str.ExitCode
call fcn.4ad01682
cmp edi, 0x20
jge 0x4ad11abb
push 0x4ad0191c
push str.ExitCodeAscii
call fcn.4ad01682
cmp dword [ebp - 0x88], ebx
jne 0x4ad13725
mov eax, edi
mov ecx, dword [ebp - 0x1c]
call fcn.4ad01389
call fcn.4ad013a2
ret 0x1c
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x4ad02549
jmp 0x4ad135c1
cmp dword [0x4ad2fa7c], ebx
jne 0x4ad0251a
jmp 0x4ad0253c
cmp dword [ebp + 0x10], ebx
jne 0x4ad0d1ca
test cl, 2
jne 0x4ad11ad0
push ecx
call fcn.4ad0d1d7
cmp ax, 2
je 0x4ad11ad0
mov ecx, dword [ebp - 0x6c]
jmp 0x4ad025fa
cmp dword [ebp + 0x10], 4
je 0x4ad1372f
cmp dword [ebp + 0x10], 2
jne 0x4ad0265f
mov dword [0x4ad33ae8], ecx
jmp 0x4ad0265f
cmp edi, 0x7e
jg 0x4ad02644
jmp 0x4ad1370d
xor eax, eax
jmp 0x4ad024e1
mov dword [ebp + 0x10], 4
jmp 0x4ad0d1ca
push ebx
push 0x2374
call fcn.4ad050c9
pop ecx
pop ecx
jmp 0x4ad13705
push 0x4ad08068
push edi
call fcn.4ad1ad05
jmp 0x4ad0253c
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
mov esi, 0x4ad34460
push esi
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x4ad0256f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad2b9c4], eax
jmp 0x4ad0258e
cmp byte [0x4ad2fa24], bl
je 0x4ad136dd
cmp dword [0x4ad2b9c4], 0xc1
jne 0x4ad136dd
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x120], 0x3c
mov dword [ebp - 0x11c], 0x88140
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x8c]
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], ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
mov dword [ebp - 0xa0], edi
cmp edi, ebx
je 0x4ad1368c
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x6c], eax
jmp 0x4ad136d9
mov eax, dword [ebp - 0x100]
cmp eax, ebx
jne 0x4ad136a2
mov dword [0x4ad2b9c4], 8
jmp 0x4ad136d9
cmp eax, 0x20
mov dword [0x4ad2b9c4], 2
je 0x4ad136d9
mov dword [0x4ad2b9c4], eax
jmp 0x4ad136d9
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
jne 0x4ad025be
cmp dword [ebp - 0x74], ebx
je 0x4ad136fd
cmp dword [ebp - 0x60], ebx
je 0x4ad136fd
push dword [ebp - 0x60]
push dword [ebp - 0x74]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x74]
call fcn.4ad1b9ab
xor eax, eax
inc eax
jmp 0x4ad02661
push edi
push 0x4ad13744
lea eax, [ebp - 0x34]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
jmp 0x4ad02649
call fcn.4ad1b912
jmp 0x4ad0265f
cmp ecx, ebx
je 0x4ad0265f
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ad0265f