Function at 0x4ad02fe0
Capabilities:
Create process on windows

Disassembly:
push 0x114
push 0x4ad032b8
call fcn.4ad0161a
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.vUSER32.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.vUSER32.dll_GetUserObjectInformationW]
call esi
call dword [sym.imp.vKERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.vUSER32.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 - 0x6c]
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x20]
push eax
push 8
call dword [sym.imp.vKERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.vKERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x74], eax
cmp eax, ebx
je 0x4ad03111
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 0x4ad03111
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jbe 0x4ad030f2
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 0x4ad03111
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xe0], eax
mov edi, 0x4ad02bb4
push edi
call fcn.4ad02bc9
mov esi, eax
cmp esi, ebx
jne 0x4ad0312f
mov esi, 0x4ad02a54
cmp esi, ebx
je 0x4ad0eb9a
push esi
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.vmsvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x4ad1303d
cmp esi, ebx
je 0x4ad0315c
push esi
push eax
call dword [sym.imp.vmsvcrt.dll_wcscpy]
pop ecx
pop ecx
cmp dword [0x4ad33b68], ebx
jne 0x4ad03170
cmp dword [0x4ad2fabc], ebx
je 0x4ad0eb89
push 0x5c
push dword [ebp - 0x64]
call fcn.4ad01a53
cmp eax, ebx
je 0x4ad03192
push 0x4ad0329c
push eax
call dword [sym.imp.vKERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4ad1304f
mov eax, dword [0x4ad2fac4]
cmp eax, ebx
jne 0x4ad05f39
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.vKERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x4ad1308c
mov eax, dword [ebp - 0xa0]
mov dword [0x4ad2fa98], eax
push dword [ebp - 0x9c]
call dword [sym.imp.vKERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 0x7c]
push 0x4ad02bb4
call fcn.4ad0158f
push dword [ebp - 0x7c]
call dword [sym.imp.vmsvcrt.dll_free]
pop ecx
push dword [ebp - 0x74]
push ebx
call dword [sym.imp.vKERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.vKERNEL32.dll_HeapFree]
cmp edi, ebx
je 0x4ad1309c
mov ecx, dword [0x4ad2fa98]
mov eax, ecx
xor esi, esi
inc esi
and eax, esi
mov dword [ebp - 0x8c], eax
cmp ecx, ebx
je 0x4ad0f505
cmp byte [0x4ad2fa64], bl
je 0x4ad03256
cmp dword [0x4ad2fac4], ebx
jne 0x4ad03256
cmp dword [0x4ad33b68], ebx
jne 0x4ad03256
cmp dword [0x4ad2fabc], ebx
je 0x4ad0f4e7
mov dword [ebp - 0x60], ebx
mov dword [0x4ad2fa9c], esi
cmp dword [ebp + 0x10], ebx
je 0x4ad032c8
cmp dword [ebp + 0x10], 4
je 0x4ad0f5a6
cmp dword [ebp + 0x10], 2
jne 0x4ad03287
cmp dword [ebp + 0x14], ebx
je 0x4ad13202
mov eax, dword [0x4ad2fa98]
mov dword [0x4ad33b28], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x1c]
call fcn.4ad01305
call fcn.4ad01442
ret 0x1c
push dword [0x4ad2fa98]
call fcn.4ad02cdc
mov dword [0x4ad2fa20], eax
mov dword [ebp - 0x60], eax
push eax
push 0x4ad03330
lea eax, [ebp - 0x5c]
push eax
mov edi, dword [sym.imp.vmsvcrt.dll_swprintf]
call edi
add esp, 0xc
mov esi, 0x4ad2b0d0
push esi
lea eax, [ebp - 0x5c]
push eax
push str.ExitCode
call fcn.4ad0158f
cmp dword [ebp - 0x60], 0x20
jge 0x4ad131ae
push esi
push 0x4ad032c4
push str.ExitCodeAscii
call fcn.4ad0158f
cmp dword [ebp - 0x8c], ebx
je 0x4ad03264
jmp 0x4ad131d3
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x4ad0319f
jmp 0x4ad13060
cmp dword [0x4ad2fac4], ebx
je 0x4ad03192
jmp 0x4ad03170
xor eax, eax
jmp 0x4ad03137
cmp dword [ebp + 0x10], ebx
jne 0x4ad03256
test cl, 2
jne 0x4ad0f505
push ecx
call fcn.4ad0f519
cmp ax, 2
jne 0x4ad03256
mov dword [ebp + 0x10], 4
mov dword [ebp - 0x78], esi
jmp 0x4ad03256
cmp dword [ebp - 0x78], ebx
je 0x4ad131dd
mov eax, dword [0x4ad2fa98]
cmp eax, ebx
je 0x4ad03287
push eax
call dword [sym.imp.vKERNEL32.dll_CloseHandle]
mov dword [0x4ad2fa98], ebx
jmp 0x4ad03287
push ebx
push 0x2374
call fcn.4ad05fb5
pop ecx
pop ecx
jmp 0x4ad131a6
push ebx
push 0x4ad0bc24
push edi
call fcn.4ad1a4e0
jmp 0x4ad03192
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.VADVAPI32.dll_CreateProcessAsUserW]
jmp 0x4ad031c5
call dword [sym.imp.vKERNEL32.dll_GetLastError]
mov dword [0x4ad2ba04], eax
jmp 0x4ad031e6
cmp byte [0x4ad2fa64], bl
je 0x4ad1317e
cmp dword [0x4ad2ba04], 0xc1
jne 0x4ad1317e
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.VSHELL32.dll_ShellExecuteExW]
mov edi, eax
mov dword [ebp - 0xa4], edi
cmp edi, ebx
je 0x4ad1312d
mov eax, dword [ebp - 0xec]
mov dword [0x4ad2fa98], eax
jmp 0x4ad1317a
mov eax, dword [ebp - 0x104]
cmp eax, ebx
jne 0x4ad13143
mov dword [0x4ad2ba04], 8
jmp 0x4ad1317a
cmp eax, 0x20
mov dword [0x4ad2ba04], 2
je 0x4ad1317a
mov dword [0x4ad2ba04], eax
jmp 0x4ad1317a
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
jne 0x4ad03217
cmp dword [ebp - 0x70], ebx
je 0x4ad1319e
cmp dword [ebp - 0x64], ebx
je 0x4ad1319e
push dword [ebp - 0x64]
push dword [ebp - 0x70]
call dword [sym.imp.vmsvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x70]
call fcn.4ad1aff5
xor eax, eax
inc eax
jmp 0x4ad0328a
cmp dword [ebp - 0x60], 0x7e
jg 0x4ad0330e
push dword [ebp - 0x60]
push 0x4ad13224
lea eax, [ebp - 0x34]
push eax
call edi
add esp, 0xc
push esi
lea eax, [ebp - 0x34]
push eax
jmp 0x4ad03314
call fcn.4ad1af5c
jmp 0x4ad03264
push dword [0x4ad2fa98]
push 0x4ad1321c
call fcn.4ad0ca1d
push eax
push 1
push 0x234c
call fcn.4ad05fb5
add esp, 0xc
jmp 0x4ad0f5af
push dword [0x4ad2fa98]
call fcn.4ad02cdc
mov dword [0x4ad2fa20], eax
mov dword [ebp - 0x60], eax
jmp 0x4ad03287