Function at 0x4ad070d7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad016e8
push 0x4ad1a570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x108
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ebx
push 1
pop ecx
mov dword [ebp - 0x48], ecx
push 0x64
pop eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x2c], cx
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x78]
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 - 0x74]
push ecx
push ebx
push ebx
push 2
push eax
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
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 - 0x7c], eax
cmp eax, ebx
je 0x4ad071dd
mov edi, eax
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp - 0x78]
push eax
push 2
push dword [ebp - 0x64]
call esi
test eax, eax
je 0x4ad071dd
mov eax, dword [ebp - 0x78]
cmp eax, ebx
jbe 0x4ad071c1
shr eax, 1
mov ecx, edi
lea edi, [ecx + eax*2 - 2]
mov word [edi], 0x5c
inc edi
inc edi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push edi
push 2
push dword [ebp - 0x88]
call esi
test eax, eax
je 0x4ad071dd
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
mov edi, 0x4ad016d4
push edi
call fcn.4ad061f6
mov esi, eax
cmp esi, ebx
jne 0x4ad071f7
mov esi, 0x4ad01608
cmp esi, ebx
je 0x4ad07201
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
jmp 0x4ad07203
xor eax, eax
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebp - 0x8c], eax
cmp eax, ebx
je 0x4ad07227
cmp esi, ebx
je 0x4ad07227
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
cmp dword [0x4ad1cf60], ebx
jne 0x4ad0723f
cmp dword [0x4ad1cf64], ebx
jne 0x4ad0723f
cmp dword [0x4ad1cf40], ebx
je 0x4ad07269
push 0x5c
push dword [ebp + 0x1c]
call fcn.4ad19436
cmp eax, ebx
je 0x4ad07269
push 0x4ad016bc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4ad07269
push ebx
push 0x4ad016b4
push edi
call fcn.4ad062e7
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x5c]
push eax
mov esi, 0x4ad228a0
push esi
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
jne 0x4ad0729f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad1d000], eax
jmp 0x4ad072b6
mov eax, dword [ebp - 0xdc]
mov dword [0x4ad22ae0], eax
push dword [ebp - 0xd8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 0x8c]
push 0x4ad016d4
call fcn.4ad062e7
push dword [ebp - 0x8c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0x7c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, ebx
jne 0x4ad073e8
cmp byte [0x4ad1cf7c], bl
je 0x4ad073bc
cmp dword [0x4ad1d000], 0xc1
jne 0x4ad073bc
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x11c], 0x3c
mov dword [ebp - 0x118], 0x88140
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], esi
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x100], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x11c]
push eax
call dword [0x4ad1cf38]
mov edi, eax
mov dword [ebp - 0x68], edi
cmp edi, ebx
je 0x4ad07375
mov eax, dword [ebp - 0xe4]
mov dword [0x4ad22ae0], eax
jmp 0x4ad073b8
mov eax, dword [ebp - 0xfc]
cmp eax, ebx
jne 0x4ad0738b
mov dword [0x4ad1d000], 8
jmp 0x4ad073b8
cmp eax, 0x20
mov dword [0x4ad1d000], 2
je 0x4ad073b8
mov dword [0x4ad1d000], eax
jmp 0x4ad073b8
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
jne 0x4ad073e8
cmp dword [ebp + 0xc], ebx
je 0x4ad073d8
cmp dword [ebp + 0x1c], ebx
je 0x4ad073d8
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0xc]
call fcn.4ad07c06
push 1
pop eax
jmp 0x4ad07550
mov ecx, dword [0x4ad22ae0]
mov eax, ecx
push 1
pop esi
and eax, esi
mov dword [ebp - 0x6c], eax
mov eax, ecx
shr eax, 1
and eax, esi
cmp byte [0x4ad1cf7c], bl
je 0x4ad0743d
cmp dword [0x4ad1cf40], ebx
jne 0x4ad0743d
cmp dword [0x4ad1cf60], ebx
jne 0x4ad0743d
cmp dword [0x4ad1cf64], ebx
jne 0x4ad0743d
cmp dword [ebp + 0x10], ebx
jne 0x4ad0743d
cmp eax, ebx
jne 0x4ad07433
push ecx
call fcn.4ad08590
cmp ax, 2
jne 0x4ad0743d
mov dword [ebp + 0x10], 4
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], ebx
mov dword [0x4ad22ae4], esi
cmp dword [ebp + 0x10], ebx
jne 0x4ad074e4
push dword [0x4ad22ae0]
call fcn.4ad141af
mov dword [0x4ad1fbc0], eax
mov dword [ebp - 0x84], eax
push eax
push 0x4ad016a8
lea eax, [ebp - 0xcc]
push eax
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
call edi
add esp, 0xc
mov esi, 0x4ad23b00
push esi
lea eax, [ebp - 0xcc]
push eax
push str.ExitCode
call fcn.4ad062e7
cmp dword [ebp - 0x84], 0x20
jl 0x4ad074ca
cmp dword [ebp - 0x84], 0x7e
jg 0x4ad074ca
push dword [ebp - 0x84]
push 0x4ad0169c
lea eax, [ebp - 0xa4]
push eax
call edi
add esp, 0xc
push esi
lea eax, [ebp - 0xa4]
push eax
jmp 0x4ad074d0
push esi
push 0x4ad01698
push str.ExitCodeAscii
call fcn.4ad062e7
cmp dword [ebp - 0x6c], ebx
je 0x4ad074e4
call fcn.4ad07044
cmp dword [ebp + 0x10], 4
jne 0x4ad0751d
cmp dword [ebp - 0x80], ebx
jne 0x4ad0750f
push dword [0x4ad22ae0]
push 0x4ad01690
call fcn.4ad13da6
push eax
push 1
push 0x234c
call fcn.4ad1393b
add esp, 0xc
push dword [0x4ad22ae0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ad0754a
cmp dword [ebp + 0x10], 2
jne 0x4ad0754a
cmp dword [ebp + 0x14], ebx
jne 0x4ad07540
push dword [0x4ad22ae0]
call fcn.4ad141af
mov dword [0x4ad1fbc0], eax
mov dword [ebp - 0x84], eax
jmp 0x4ad0754a
mov eax, dword [0x4ad22ae0]
mov dword [0x4ad1faf8], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x1c