Function at 0x4ad02ff8
Capabilities:
Create process on windows

Disassembly:
push 0x114
push 0x4ad032d0
call fcn.4ad0162f
mov eax, dword [0x4ad33b78]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp + 0x20]
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0xe8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xe8], 0x44
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd8], ebx
xor ecx, ecx
inc ecx
mov dword [ebp - 0xd4], ecx
push 0x64
pop eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xbc], ebx
mov word [ebp - 0xb8], cx
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x68]
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 - 0x88], eax
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push 2
push eax
call esi
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
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 - 0x74], eax
cmp eax, ebx
je 0x4ad03129
mov edi, eax
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp - 0x68]
push eax
push 2
push dword [ebp - 0x84]
call esi
test eax, eax
je 0x4ad03129
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jbe 0x4ad0310a
shr eax, 1
mov ecx, edi
lea edi, [ecx + eax*2 - 2]
mov word [edi], 0x5c
inc edi
inc edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
push edi
push 2
push dword [ebp - 0x88]
call esi
test eax, eax
je 0x4ad03129
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xe0], eax
mov edi, 0x4ad02bcc
push edi
call fcn.4ad02be1
mov esi, eax
cmp esi, ebx
jne 0x4ad03147
mov esi, 0x4ad02a6c
cmp esi, ebx
je 0x4ad060c6
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 - 0x7c], eax
cmp eax, ebx
je 0x4ad13029
cmp esi, ebx
je 0x4ad03174
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
cmp dword [0x4ad33b68], ebx
jne 0x4ad03188
cmp dword [0x4ad2fabc], ebx
je 0x4ad060b5
push 0x5c
push dword [ebp - 0x64]
call fcn.4ad01a67
cmp eax, ebx
je 0x4ad031aa
push 0x4ad032b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4ad1303b
mov eax, dword [0x4ad2fac4]
cmp eax, ebx
jne 0x4ad05fb8
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe8]
push eax
mov esi, 0x4ad34400
push esi
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x4ad13078
mov eax, dword [ebp - 0xa0]
mov dword [0x4ad2fa98], eax
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 0x7c]
push 0x4ad02bcc
call fcn.4ad01594
push dword [ebp - 0x7c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x74]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, ebx
je 0x4ad13088
mov ecx, dword [0x4ad2fa98]
mov eax, ecx
xor esi, esi
inc esi
and eax, esi
mov dword [ebp - 0x8c], eax
cmp ecx, ebx
je 0x4ad0bf89
cmp byte [0x4ad2fa64], bl
je 0x4ad0326e
cmp dword [0x4ad2fac4], ebx
jne 0x4ad0326e
cmp dword [0x4ad33b68], ebx
jne 0x4ad0326e
cmp dword [0x4ad2fabc], ebx
je 0x4ad0bf6b
mov dword [ebp - 0x60], ebx
mov dword [0x4ad2fa9c], esi
cmp dword [ebp + 0x10], ebx
je 0x4ad032e0
cmp dword [ebp + 0x10], 4
je 0x4ad0c02a
cmp dword [ebp + 0x10], 2
jne 0x4ad0329f
cmp dword [ebp + 0x14], ebx
je 0x4ad131ee
mov eax, dword [0x4ad2fa98]
mov dword [0x4ad33b28], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x1c]
call fcn.4ad01305
call fcn.4ad01447
ret 0x1c
push dword [0x4ad2fa98]
call fcn.4ad02cf4
mov dword [0x4ad2fa20], eax
mov dword [ebp - 0x60], eax
push eax
push 0x4ad03348
lea eax, [ebp - 0x5c]
push eax
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
call edi
add esp, 0xc
mov esi, 0x4ad2b0d0
push esi
lea eax, [ebp - 0x5c]
push eax
push 0x4ad33bb8
call fcn.4ad01594
cmp dword [ebp - 0x60], 0x20
jge 0x4ad1319a
push esi
push 0x4ad032dc
push 0x4ad33bcc
call fcn.4ad01594
cmp dword [ebp - 0x8c], ebx
je 0x4ad0327c
jmp 0x4ad131bf
mov eax, dword [eax + 0x14]
cmp eax, ebx
jne 0x4ad1304c
jmp 0x4ad031b7
cmp dword [0x4ad2fac4], ebx
jne 0x4ad03188
jmp 0x4ad031aa
xor eax, eax
jmp 0x4ad0314f
cmp dword [ebp + 0x10], ebx
jne 0x4ad0326e
test cl, 2
jne 0x4ad0bf89
push ecx
call fcn.4ad0bf9d
cmp ax, 2
jne 0x4ad0326e
mov dword [ebp + 0x10], 4
mov dword [ebp - 0x78], esi
jmp 0x4ad0326e
cmp dword [ebp - 0x78], ebx
je 0x4ad131c9
mov eax, dword [0x4ad2fa98]
cmp eax, ebx
je 0x4ad0329f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ad2fa98], ebx
jmp 0x4ad0329f
push ebx
push 0x2374
call fcn.4ad0606f
pop ecx
pop ecx
jmp 0x4ad13192
push ebx
push 0x4ad06e30
push edi
call fcn.4ad1a4bc
jmp 0x4ad031aa
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
mov esi, 0x4ad34400
push esi
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x4ad031dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad2ba04], eax
jmp 0x4ad031fe
cmp byte [0x4ad2fa64], bl
je 0x4ad1316a
cmp dword [0x4ad2ba04], 0xc1
jne 0x4ad1316a
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x124]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x124], 0x3c
mov dword [ebp - 0x120], 0x88140
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], esi
movzx eax, word [ebp - 0xb8]
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
mov dword [ebp - 0xa4], edi
cmp edi, ebx
je 0x4ad13119
mov eax, dword [ebp - 0xec]
mov dword [0x4ad2fa98], eax
jmp 0x4ad13166
mov eax, dword [ebp - 0x104]
cmp eax, ebx
jne 0x4ad1312f
mov dword [0x4ad2ba04], 8
jmp 0x4ad13166
cmp eax, 0x20
mov dword [0x4ad2ba04], 2
je 0x4ad13166
mov dword [0x4ad2ba04], eax
jmp 0x4ad13166
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
jne 0x4ad0322f
cmp dword [ebp - 0x70], ebx
je 0x4ad1318a
cmp dword [ebp - 0x64], ebx
je 0x4ad1318a
push dword [ebp - 0x64]
push dword [ebp - 0x70]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x70]
call fcn.4ad1afd1
xor eax, eax
inc eax
jmp 0x4ad032a2
cmp dword [ebp - 0x60], 0x7e
jg 0x4ad03326
push dword [ebp - 0x60]
push 0x4ad13210
lea eax, [ebp - 0x34]
push eax
call edi
add esp, 0xc
push esi
lea eax, [ebp - 0x34]
push eax
jmp 0x4ad0332c
call fcn.4ad1af38
jmp 0x4ad0327c
push dword [0x4ad2fa98]
push 0x4ad13208
call fcn.4ad077e5
push eax
push 1
push 0x234c
call fcn.4ad0606f
add esp, 0xc
jmp 0x4ad0c033
push dword [0x4ad2fa98]
call fcn.4ad02cf4
mov dword [0x4ad2fa20], eax
mov dword [ebp - 0x60], eax
jmp 0x4ad0329f